:root {
  --ink: #713018;
  --dark: #37170f;
  --red: #a82914;
  --red-2: #7f1d10;
  --gold: #d9a24b;
  --gold-2: #f8d88d;
  --paper: #fff3da;
  --paper-2: #f8e6c3;
  --line: rgba(155, 86, 45, .32);
  --shadow: 0 18px 42px rgba(83, 35, 16, .18);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 1200px;
  color: var(--ink);
  font-family: 'Be Vietnam Pro', sans-serif;
  background: #fff3da;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .23;
}

a { color: inherit; text-decoration: none; }

header {
	background: url("bg.jpg") no-repeat center top / 100% auto, var(--paper);
	height: 900px;
}
.page {
  
}

.topbar {
  position: absolute;
  z-index: 1000;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 70px;
  background: rgba(15, 7, 5, 0.85);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(217, 162, 75, 0.3);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  padding: 0 30px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(217, 162, 75, 0.5), transparent, rgba(217, 162, 75, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.header-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.logo-img {
  display: block;
  height: 75px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(217, 162, 75, 0.3));
  transition: all 0.3s ease;
}

.brand:hover .logo-img {
  filter: drop-shadow(0 0 20px rgba(217, 162, 75, 0.6));
  transform: scale(1.05);
}

.nav {
  display: flex;
  gap: 5px;
  height: 100%;
  align-items: center;
}

.nav a {
  position: relative;
  padding: 8px 20px;
  color: #c9a67a;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.nav a:hover,
.nav .active {
  color: #fff;
  background: rgba(217, 162, 75, 0.15);
  text-shadow: 0 0 15px rgba(217, 162, 75, 0.8);
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f8d88d, transparent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  box-shadow: 0 0 10px #d9a24b;
}

.nav a:hover::after,
.nav .active::after {
  width: 60%;
}

.nav a::before {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(217, 162, 75, 0.1), transparent);
  transition: all 0.3s ease;
}

.nav a:hover::before {
  top: 0;
}

.account {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 22px;
  border: 1px solid #f8d88d;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  background: linear-gradient(180deg, #be3a18 0%, #8d2011 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  clip-path: none;
  border-radius: 4px;
}

.btn:hover {
  background: linear-gradient(180deg, #e34c26 0%, #a82914 100%);
  box-shadow: 0 0 15px rgba(190, 58, 24, 0.5);
  transform: translateY(-2px);
}

.btn.dark {
  background: linear-gradient(180deg, #4d251a 0%, #25120f 100%);
  border-color: #8b5a2e;
}

.btn.dark:hover {
  background: linear-gradient(180deg, #6d3a2a 0%, #3d1c16 100%);
}

.btn.gold {
  color: #6b2414;
  background: linear-gradient(180deg, #ffe9ae 0%, #d69c4a 100%);
  border-color: #ab6627;
  text-shadow: none;
}
.btn.gold:hover {
  background: linear-gradient(180deg, #fff3d5 0%, #e7bd72 100%);
  box-shadow: 0 0 15px rgba(214, 156, 74, 0.5);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-width: 1200px;
  height: 900px; /* Tăng chiều cao bao phủ */
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-overlay::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 170px;
  background:
    linear-gradient(180deg, rgba(255, 243, 218, 0), rgba(255, 243, 218, 0.9) 72%, #fff3da 100%);
  pointer-events: none;
}

.headline {
  text-align: center;
  color: #fff;
}

/* New Action Bar styles */
.action-bar-container {
  position: relative;
  margin-top: -450px; /* Tạo không gian hiển thị top background bg.jpg */
  z-index: 100;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 0;
  padding: 0;
}

.action-bar-inner {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  width: 1200px;
  margin: 0 auto;
}

.bar-download-btn {
  display: block;
  z-index: 2;
  order: 2;
  margin: 0 -40px;
  position: relative;
  width: 420px;
}

.bar-download-btn img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.8));
  transition: filter 0.3s ease;
}

.bar-download-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  background-position: 150% 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-mask: url("taigame.png") no-repeat center / contain;
  mask: url("taigame.png") no-repeat center / contain;
}

.bar-download-btn:hover::after {
  opacity: 1;
  animation: shineSweep 2s ease-in-out forwards;
}

@keyframes shineSweep {
  0% { background-position: 150% 0; }
  100% { background-position: -150% 0; }
}

.bar-download-btn:hover img {
  filter: brightness(1.1) drop-shadow(0 0 50px rgba(217, 162, 75, 0.7));
}

.bar-btn {
  width: 280px;
  height: 80px;
  margin-bottom: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  color: #e0c397;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(180deg, rgba(40, 20, 15, 0.95) 0%, rgba(10, 5, 5, 1) 100%);
  border: 1px solid #d9a24b;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  z-index: 0; /* Tăng z-index để nằm trên nút Tải Game */
}

.bar-btn:first-child {
  order: 1;
  margin-right: -25px;
  clip-path: polygon(0% 0%, 92% 0%, 100% 100%, 8% 100%);
}

.bar-btn:last-child {
  order: 3;
  margin-left: -25px;
  clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
}

.bar-btn span {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.bar-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #a82914 0%, #5d150b 100%);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.bar-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-30deg);
  z-index: 2;
}

.bar-btn:hover {
  color: #fff;
  border-color: #f8d88d;
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(168, 41, 20, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.1);
}

.bar-btn:hover::before {
  transform: scaleY(1);
}

.bar-btn:hover::after {
  animation: shineBtn 0.6s forwards;
}

@keyframes shineBtn {
  0% { left: -100%; }
  100% { left: 150%; }
}

.bar-btn:hover span {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  letter-spacing: 3px;
}

.secondary-btn {
  /* Style kế thừa từ bar-btn */
}

.section {
  position: relative;
  width: 1100px;
  margin: 0 auto;
  padding: 0;
}

.title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 20px;
  color: #8b351c;
  font-size: 30px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.title::before,
.title::after {
  content: "";
  width: 170px;
  height: 15px;
  background:
    radial-gradient(circle, #b9834a 2px, transparent 3px) center / 28px 14px no-repeat,
    linear-gradient(90deg, transparent, rgba(174, 112, 65, .55), transparent) center / 100% 1px no-repeat;
}

.events-slider {
  position: relative;
  width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  border: 3px double #d9a24b;
  padding: 5px 2px;
  background: #1a0f0a;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  user-select: none;
}

.events-slider:active {
  cursor: default;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #d9a24b;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #d9a24b;
  transform: scale(1.2);
  box-shadow: 0 0 10px #d9a24b;
}

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: rgba(26, 15, 10, 0.7);
  border: 1px solid #d9a24b;
  color: #d9a24b;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.slider-arrow:hover {
  background: #d9a24b;
  color: #1a0f0a;
}

.slider-arrow.prev { left: 15px; }
.slider-arrow.next { right: 15px; }

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 11;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Hoa văn 4 góc */
.panel::before {
  top: 0; left: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v4H4v36H0V0zm10 10h20v2H10v18h-2V10h2z' fill='%23d9a24b'/%3E%3C/svg%3E");
}

.panel::after {
  bottom: 0; right: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 40H0v-4h36V0h4v40zm-10-10H10v-2h20V10h2v20h-2z' fill='%23d9a24b'/%3E%3C/svg%3E");
}

/* Thêm góc còn lại cho slider */
.slider-ornament-tr, .slider-ornament-bl {
  position: absolute; width: 40px; height: 40px; z-index: 11; pointer-events: none;
}
.slider-ornament-tr {
  top: 0; right: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0v40h-4V4H0V0h40zm-10 10v20h-2V10H10V8h20v2z' fill='%23d9a24b'/%3E%3C/svg%3E") no-repeat;
}
.slider-ornament-bl {
  bottom: 0; left: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40V0h4v36h36v4H0zm10 30V10h2v20h20v2H10v-2z' fill='%23d9a24b'/%3E%3C/svg%3E") no-repeat;
}

.slides {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-out;
  will-change: transform;
}

.slides input {
  display: none;
}

.slide {
  flex: 0 0 50%; /* Mỗi slide chiếm đúng 50% chiều rộng khung nhìn */
  padding: 0 5px;
  box-sizing: border-box;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Slider Logic using Transform */
#radio1:checked ~ .slides {
  transform: translateX(0);
}

#radio2:checked ~ .slides {
  transform: translateX(-50%); /* Trượt sang 1 slide */
}

#radio3:checked ~ .slides {
  transform: translateX(-100%); /* Trượt sang 2 slide */
}

/* Manual Navigation */
.navigation-manual {
  position: absolute;
  width: 100%;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}

.manual-btn {
  width: 12px;
  height: 12px;
  border: 2px solid #d9a24b;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(0,0,0,0.6);
  transition: 0.3s;
}

.manual-btn:hover {
  background: #d9a24b;
}

/* Automatic Navigation */
.navigation-auto {
  position: absolute;
  display: flex;
  width: 100%;
  justify-content: center;
  bottom: 12px;
  gap: 10px;
  pointer-events: none;
}

.navigation-auto div {
  width: 12px;
  height: 12px;
  border: 2px solid #d9a24b;
  border-radius: 50%;
  transition: 0.3s;
}

#radio1:checked ~ .navigation-auto .auto-btn1,
#radio2:checked ~ .navigation-auto .auto-btn2,
#radio3:checked ~ .navigation-auto .auto-btn3 {
  background: #d9a24b;
}

.date-pill {
  width: max-content;
  margin-top: 12px;
  padding: 5px 14px;
  border: 1px solid rgba(255, 226, 168, .45);
  border-radius: 999px;
  color: #fff3d1;
  font-weight: 900;
  font-size: 13px;
  background: rgba(35, 12, 8, .55);
}

.main-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.panel {
  position: relative;
  min-height: 370px;
  padding: 10px;
  background: linear-gradient(180deg, #fff3da 0%, #f8e6c3 100%);
  border: 1px solid #d9a24b;
  box-shadow: 0 0 0 3px #fff3da, 0 0 0 4px #d9a24b, 0 10px 30px rgba(83, 35, 16, 0.15);
}

/* Các góc panel cũ xóa bỏ */
.panel::before { top: 0; left: 0; }
.panel::after { bottom: 0; right: 0; }

.panel-ornament-tr, .panel-ornament-bl {
  position: absolute; width: 30px; height: 30px; z-index: 11; pointer-events: none;
}
.panel-ornament-tr {
  top: 0; right: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0v40h-4V4H0V0h40z' fill='%23d9a24b'/%3E%3C/svg%3E") no-repeat;
}
.panel-ornament-bl {
  bottom: 0; left: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40V0h4v36h36v4H0z' fill='%23d9a24b'/%3E%3C/svg%3E") no-repeat;
}

.panel h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 20px;
  color: #8b351c;
  font-family: 'Pattaya', sans-serif; /* Font kiếm hiệp */
  font-size: 24px;
  text-transform: none; /* Tắt viết hoa để giữ nét thư pháp */
  background: linear-gradient(180deg, #f8d88d 0%, #d9a24b 50%, #8b351c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3));
}

.panel h2::before,
.panel h2::after {
  content: "";
  width: 42px;
  height: 1px;
  background: rgba(165, 96, 50, .36);
}

.sects-showcase {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 15px 0;
}

.sect-display {
  width: 100%;
  height: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(217, 162, 75, 0.3);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.sect-display img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: all 0.5s ease-in-out;
}

#sect-name {
  position: absolute;
  bottom: 15px;
  right: 15px;
  font-family: 'Pattaya', sans-serif;
  font-size: 20px;
  color: #f8d88d;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 18px;
  border-radius: 4px;
  border-right: 4px solid #d9a24b;
  z-index: 5;
  pointer-events: none;
  transition: all 0.3s ease;
}

.sect-selector {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.sect-item {
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
}

.sect-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(80%);
  transition: all 0.3s ease;
}

.sect-item:hover img,
.sect-item.active img {
  filter: grayscale(0);
}

.sect-item.active {
  border-color: #d9a24b;
  box-shadow: 0 0 10px rgba(217, 162, 75, 0.5);
  transform: scale(1.05);
}

.sects-footer {
  margin-top: 20px;
  border-top: 1px solid rgba(217, 162, 75, 0.2);
  padding-top: 15px;
  text-align: center;
}

.sects-footer img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.sects-footer img:hover {
  transform: translateY(-5px);
}

.rank-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid rgba(160, 92, 49, .22);
}

.rank-tabs button {
  min-height: 42px;
  border: 0;
  color: #7d351c;
  font-weight: 900;
  background: rgba(255, 243, 219, .72);
  cursor: pointer;
  font-family: 'Be Vietnam Pro', sans-serif;
  text-transform: uppercase;
  font-size: 13px;
  transition: all 0.3s ease;
}

.rank-tabs button.active {
  color: #fff0c4;
  background: linear-gradient(180deg, #b43618, #8d2011);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

.rank-content {
  display: none;
}

.rank-content.active {
  display: block;
}

/* Rank Icons (Huy hiệu tròn) */
.rank-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-weight: 800;
  font-size: 14px;
  color: #8b351c;
  position: relative;
  z-index: 1;
  border-radius: 50%;
  border: 1px solid rgba(139, 53, 28, 0.2);
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.rank-icon.gold, .rank-icon.silver, .rank-icon.bronze {
  color: #fff;
  font-family: 'Pattaya', sans-serif;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.rank-icon.gold {
  background: linear-gradient(135deg, #fceabb 0%, #fccd4d 50%, #f8b500 51%, #fbdf93 100%);
  box-shadow: 0 0 10px rgba(250, 190, 0, 0.5);
  color: #532306;
}

.rank-icon.silver {
  background: linear-gradient(135deg, #f2f2f2 0%, #dbdbdb 50%, #b3b3b3 51%, #ebebeb 100%);
  box-shadow: 0 0 10px rgba(180, 180, 180, 0.4);
  color: #333;
}

.rank-icon.bronze {
  background: linear-gradient(135deg, #f5d1b5 0%, #e89e66 50%, #be6c2c 51%, #f5d1b5 100%);
  box-shadow: 0 0 10px rgba(190, 110, 50, 0.4);
  color: #4a2105;
}

.rank-icon::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.ranking {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ranking th {
  padding: 11px 8px;
  color: #9b5a2e;
  font-size: 12px;
  text-transform: uppercase;
  background: rgba(218, 166, 91, .18);
}

.ranking td {
  padding: 8px 8px;
  border-bottom: 1px solid rgba(159, 94, 52, .15);
  color: #6d2f1a;
  font-weight: 500;
}

.ranking td:last-child { text-align: right; }

.medal {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff6d6;
  border-radius: 50%;
  font-weight: 900;
  background: linear-gradient(180deg, #f4ca67, #b66a25);
  box-shadow: inset 0 0 0 2px rgba(255, 244, 187, .55);
}

.avatar {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 50%;
  background: linear-gradient(135deg, #3d1c16, #d7a25e);
  box-shadow: inset 0 0 0 2px rgba(255, 235, 187, .7);
}

.fanpage-card {
  overflow: hidden;
  border: 1px solid rgba(151, 88, 50, .24);
  background: #fffaf0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
}

.fan-cover {
  min-height: 86px;
  padding: 14px 16px;
  color: #fff5da;
  background:
    linear-gradient(90deg, rgba(38, 12, 8, .8), rgba(38, 12, 8, .28)),
    url("bg.png") center 54% / cover;
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .45);
}

.fan-logo {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: radial-gradient(circle, #f8d178, #a52716 62%, #41140f);
  box-shadow: inset 0 0 0 2px rgba(255, 232, 171, .65);
  font-size: 26px;
  font-weight: 900;
}

.fan-body {
  padding: 16px;
  color: #4f2a1c;
  font-size: 14px;
  line-height: 1.55;
}

.fan-actions {
  display: flex;
  gap: 8px;
  margin: 10px 0 14px;
}

.fan-actions span {
  padding: 6px 10px;
  color: #3f2b20;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(118, 70, 43, .18);
  background: #fff;
}

.media-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: -6px 0 18px;
}

.media-tabs button {
  min-width: 120px;
  min-height: 40px;
  border: 0;
  color: #81351d;
  font-weight: 900;
  background: linear-gradient(180deg, #fff3d5, #e7bd72);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%, 0 10px);
  cursor: pointer;
}

.media-tabs .current {
  color: #fff1bd;
  background: linear-gradient(180deg, #bd3b1b, #862110);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.media-card {
  position: relative;
  min-height: 120px;
  overflow: hidden;
  color: #ffe9b4;
  background: #5d2718;
  border: 1px solid rgba(255, 220, 150, .42);
  box-shadow: var(--shadow);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}

.media-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(19, 8, 6, .28), rgba(19, 8, 6, .06)),
    var(--art);
  background-size: cover;
  background-position: center;
  transition: transform .35s ease;
}

.media-card:hover::before { transform: scale(1.06); }

.media-card::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 226, 168, .35);
  pointer-events: none;
}

.media-card span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 1;
  padding: 6px 10px;
  color: #ffeab7;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  background: rgba(47, 16, 10, .64);
}

.footer {
  margin-top: 60px;
  color: #f7d99d;
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 185, 76, .14), transparent 18rem),
    linear-gradient(180deg, #8b1f10, #54150e 58%, #31100d);
  border-top: 3px solid #d9a24b;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f8d88d, transparent);
}

.footer-inner {
  width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding: 60px 20px 40px;
}

.footer-col-brand .footer-logo-main {
  height: 90px;
  width: auto;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}

.footer-brand-top {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #a82914;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 4px;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.footer-desc {
  color: #c9a67a;
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
  text-align: justify;
}

.footer h3 {
  margin: 0 0 25px;
  color: #f8d88d;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 10px;
}

.footer h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #d9a24b;
}

.footer-col-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col-links li {
  margin-bottom: 12px;
}

.footer-col-links a {
  color: #bfa181;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-col-links a:hover {
  color: #fff;
  transform: translateX(5px);
  text-shadow: 0 0 10px rgba(217, 162, 75, 0.5);
}

.footer-col-contact {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.socials {
  display: flex;
  gap: 15px;
}

.socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(217, 162, 75, 0.3);
}

.socials a i { font-style: normal; }

.socials a.soc-fb:hover { background: #3b5998; border-color: #3b5998; transform: translateY(-5px); }
.socials a.soc-yt:hover { background: #ff0000; border-color: #ff0000; transform: translateY(-5px); }
.socials a.soc-tk:hover { background: #000000; border-color: #f8d88d; transform: translateY(-5px); }

.newsletter h3 { margin-bottom: 15px; }

.news-input-group {
  display: flex;
  height: 45px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(217, 162, 75, 0.4);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.news-input-group:focus-within {
  border-color: #f8d88d;
  box-shadow: 0 0 15px rgba(217, 162, 75, 0.2);
}

.news-input-group input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0 15px;
  color: #fff;
  outline: none;
  font-size: 14px;
}

.btn-send {
  width: 50px;
  background: linear-gradient(180deg, #ffe9ae 0%, #d69c4a 100%);
  border: none;
  color: #6b2414;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-send:hover {
  background: linear-gradient(180deg, #fff3d5 0%, #e7bd72 100%);
  filter: brightness(1.1);
}

.copyright {
  border-top: 1px solid rgba(217, 162, 75, 0.1);
  padding: 25px 0;
  background: rgba(0, 0, 0, 0.2);
}

.copyright-inner {
  width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  color: rgba(201, 166, 122, 0.6);
  font-size: 13px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(201, 166, 122, 0.6);
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #d9a24b;
}

/* Modal Download Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: linear-gradient(180deg, #fff3da 0%, #f8e6c3 100%);
  margin: 10% auto;
  padding: 0;
  border: 1px solid #d9a24b;
  width: 500px;
  border-radius: 12px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(180deg, #8b1f10, #54150e);
  padding: 15px 25px;
  color: #f8d88d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #d9a24b;
}

.modal-header h2 {
  margin: 0;
  font-family: 'Pattaya', sans-serif;
  font-size: 24px;
}

.close-modal {
  color: #f8d88d;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close-modal:hover {
  color: #fff;
}

.modal-body {
  padding: 30px;
  color: #37170f;
  text-align: center;
}

.download-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.dl-btn {
  display: block;
  padding: 15px;
  border-radius: 8px;
  font-weight: 800;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.1);
}

.dl-btn.direct {
  background: linear-gradient(180deg, #a82914 0%, #5d150b 100%);
  color: #fff;
}

.dl-btn.gdrive {
  background: #fff;
  color: #37170f;
  border: 1px solid #d9a24b;
}

.dl-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.dl-note {
  margin-top: 20px;
  font-size: 13px;
  color: #713018;
  font-style: italic;
}
