:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  margin: 0;
  background: #080507;
  font-family: "Cinzel", Georgia, serif;
  color: #eee8e2;
  overflow-x: hidden;
}

/* ==========================================================================
   HERO / WORLD SECTION
   ========================================================================== */

.world {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.world__media {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.world__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.93) saturate(0.85) contrast(1.05);
  will-change: opacity;
}

.world__overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: 
    linear-gradient(180deg, rgba(6, 2, 4, 0.8) 0%, transparent 22%, transparent 52%, rgba(8, 5, 7, 0.65) 75%, #080507 100%),
    linear-gradient(90deg, rgba(6, 2, 4, 0.45) 0%, transparent 50%, rgba(6, 2, 4, 0.35) 100%),
    radial-gradient(ellipse 60% 30% at 50% 100%, rgba(140, 18, 28, 0.25) 0%, transparent 70%);
}

/* ==========================================================================
   NAVBAR (STICKY / FIXED WITH GLASSMORPHISM ON SCROLL)
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  min-height: 88px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4.5vw, 60px);
  background: linear-gradient(180deg, rgba(8, 5, 7, 0.85) 0%, rgba(8, 5, 7, 0.4) 65%, transparent 100%);
  border-bottom: 1px solid rgba(216, 196, 186, 0.12);
  transition: min-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.navbar--scrolled {
  min-height: 68px;
  background: rgba(9, 6, 8, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216, 196, 186, 0.22);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 16px rgba(186, 23, 38, 0.2);
}

.navbar__brand {
  display: block;
  width: 140px;
  flex-shrink: 0;
  transition: width 0.3s ease, transform 0.2s ease, filter 0.2s ease;
}

.navbar.navbar--scrolled .navbar__brand {
  width: 120px;
}

.navbar__brand:hover {
  transform: scale(1.03);
  filter: brightness(1.15);
}

.navbar__brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.85));
}

.menu {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 42px);
  margin: 0;
  padding: 0;
}

.menu a {
  position: relative;
  height: 88px;
  display: flex;
  align-items: center;
  color: #d8cfc8;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, height 0.3s ease;
}

.navbar.navbar--scrolled .menu a {
  height: 68px;
}

.menu a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #ba1726;
  box-shadow: 0 0 8px #e41e2c;
  transition: width 0.25s ease, left 0.25s ease;
}

.menu a:hover,
.menu a.active {
  color: #ffffff;
}

.menu a:hover::after,
.menu a.active::after {
  width: 100%;
  left: 0;
}

.menu .download {
  height: 38px !important;
  padding: 0 20px;
  color: #faece6 !important;
  background: linear-gradient(180deg, #7c121d, #3c060c);
  clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%);
  box-shadow: inset 0 0 0 1px #d68f8a, 0 3px 12px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.navbar.navbar--scrolled .menu .download {
  height: 34px !important;
}

.menu .download::after {
  display: none;
}

.menu .download:hover {
  filter: brightness(1.3);
  transform: translateY(-2px);
}

.navbar__tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ==========================================================================
   WELCOME HERO CONTENT
   ========================================================================== */

.welcome {
  position: absolute;
  top: 53%;
  left: clamp(28px, 9vw, 170px);
  transform: translateY(-50%);
  width: min(560px, 86vw);
  text-align: left;
  z-index: 5;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.95);
}

.welcome p {
  margin: 0 0 14px;
  color: #dfd3cb;
  font-size: clamp(10px, 1vw, 13px);
  letter-spacing: clamp(4px, 0.5vw, 7px);
  font-weight: 600;
}

.welcome h1 {
  margin: 0;
  color: #f3eae4;
  font-weight: 600;
  font-size: clamp(30px, 3.9vw, 60px);
  line-height: 1.08;
  letter-spacing: 1.2px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.9);
}

.welcome a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 14px 26px;
  color: #faede6;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 2.2px;
  font-weight: 600;
  border: 1px solid #b87970;
  background: rgba(45, 6, 11, 0.72);
  box-shadow: inset 0 0 12px rgba(180, 20, 30, 0.35), 0 6px 18px rgba(0, 0, 0, 0.6);
  transition: background 0.25s, transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.welcome a:hover {
  background: #7a111b;
  border-color: #e5535b;
  transform: translateY(-3px);
  box-shadow: inset 0 0 16px rgba(220, 25, 40, 0.6), 0 8px 24px rgba(0, 0, 0, 0.8);
}

.welcome a .play-icon {
  font-size: 13px;
  color: #e84d53;
  transition: transform 0.2s ease;
}

.welcome a:hover .play-icon {
  transform: scale(1.2);
}

/* ==========================================================================
   SCROLL CUE
   ========================================================================== */

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  font-size: 8px;
  letter-spacing: 3.5px;
  color: #cbb8af;
  white-space: nowrap;
  text-transform: uppercase;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scroll-cue span {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: #ba2631;
  box-shadow: 0 0 6px #e41e2c;
  animation: cueBounce 2s ease-in-out infinite;
}

@keyframes cueBounce {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50% { transform: scaleY(1.4); opacity: 1; }
}

/* ==========================================================================
   NEWS SECTION & SEAMLESS HORIZON
   ========================================================================== */

.news-section {
  position: relative;
  min-height: 100svh;
  padding: clamp(90px, 9vw, 130px) 0 100px;
  overflow: visible;
  background: 
    radial-gradient(ellipse 80% 35% at 50% 0%, rgba(130, 16, 26, 0.28) 0%, transparent 65%),
    linear-gradient(180deg, #080507 0%, #0d070a 40%, #060405 100%);
}

/* Standalone subpages top clearance under sticky fixed navbar */
main.news-section,
main.ranking-section,
main.event-section,
main.guide-section,
main.download-section {
  padding-top: clamp(105px, 11vw, 135px) !important;
}

.news-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background-image: 
    linear-gradient(118deg, transparent 0 48%, #5b23291b 48.2% 48.6%, transparent 48.8% 100%), 
    radial-gradient(#a6535830 0.5px, transparent 0.7px);
  background-size: 100% 100%, 14px 14px;
  mix-blend-mode: screen;
}

.blood-divider {
  position: absolute;
  z-index: 4;
  top: -36px;
  left: 0;
  width: 100%;
  height: 72px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 55% 100% at 50% 50%, rgba(160, 20, 32, 0.2) 0%, transparent 75%);
}

.blood-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(850px, 92vw);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(185, 26, 38, 0.3) 20%, rgba(225, 45, 60, 0.8) 50%, rgba(185, 26, 38, 0.3) 80%, transparent 100%);
  box-shadow: 0 0 12px rgba(220, 28, 42, 0.6), 0 0 28px rgba(180, 15, 28, 0.3);
}

.blood-divider::after {
  content: "✦";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ee3444;
  font-size: 15px;
  line-height: 1;
  text-shadow: 0 0 10px #ff2537, 0 0 22px #aa0d1b;
  background: #080507;
  padding: 0 16px;
}

.news-section__inner {
  position: relative;
  z-index: 3;
  width: min(100% - 10vw, 1420px);
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 10px;
  color: #d14b51;
  font-size: 10px;
  letter-spacing: 4.5px;
  font-weight: 600;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(166, 118, 109, 0.28);
}

.section-heading h2 {
  margin: 0;
  color: #f0e5df;
  font-size: clamp(28px, 3.8vw, 52px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.85);
}

.section-heading a {
  color: #d9c6be;
  font-size: 11px;
  letter-spacing: 2px;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
  transition: color 0.2s ease;
}

.section-heading a:hover {
  color: #ffffff;
}

.section-heading a span,
.news-card a span {
  color: #d32937;
  font-size: 14px;
  margin-left: 6px;
  transition: transform 0.2s ease;
  display: inline-block;
}

.news-card a:hover span,
.section-heading a:hover span {
  transform: translateX(4px);
}

/* ==========================================================================
   CATEGORY FILTER CHIPS (Referenced from htdocs-chaos)
   ========================================================================== */

.news-filter-chips {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 34px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 8px 18px;
  font-family: "Cinzel", Georgia, serif;
  font-size: 11px;
  letter-spacing: 1.8px;
  font-weight: 600;
  color: #c9b9b0;
  background: rgba(30, 12, 16, 0.6);
  border: 1px solid rgba(175, 110, 100, 0.3);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.25s ease;
  outline: none;
}

.filter-chip:hover {
  color: #ffffff;
  border-color: #c8454c;
  background: rgba(85, 15, 25, 0.7);
  transform: translateY(-2px);
}

.filter-chip.active {
  color: #ffffff;
  background: linear-gradient(180deg, #8b1420, #42070d);
  border-color: #e5535b;
  box-shadow: 0 0 14px rgba(220, 25, 40, 0.5), inset 0 0 8px rgba(255, 100, 110, 0.3);
}

/* ==========================================================================
   NEWS CARDS GRID
   ========================================================================== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.8vw, 26px);
}

.news-card {
  background: linear-gradient(150deg, rgba(32, 14, 18, 0.92), rgba(12, 5, 7, 0.95));
  border: 1px solid rgba(173, 130, 120, 0.24);
  border-radius: 6px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.28s ease, box-shadow 0.28s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-8px);
  border-color: #d13640;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.8), 0 0 20px rgba(185, 25, 38, 0.25);
}

.news-card__visual {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: #090305;
}

.news-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.9) contrast(1.05);
}

.news-card:hover .news-card__visual img {
  transform: scale(1.08);
  filter: brightness(1.05) contrast(1.1);
}

.news-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 3px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.badge--announcement {
  background: linear-gradient(135deg, #1b3d54, #0b1e2b);
  color: #7dd3fc;
  border: 1px solid #38bdf8;
}

.badge--event {
  background: linear-gradient(135deg, #613b0a, #331d03);
  color: #fde047;
  border: 1px solid #eab308;
}

.badge--update {
  background: linear-gradient(135deg, #4c0f18, #26050a);
  color: #fca5a5;
  border: 1px solid #ef4444;
}

.news-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card__meta {
  margin: 0 0 10px;
  color: #bfa197;
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.news-card h3 {
  margin: 0;
  min-height: 48px;
  color: #f3eae5;
  font-weight: 600;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.25;
}

.news-card__body > p:not(.news-card__meta) {
  margin: 12px 0 18px;
  color: #baa7a0;
  font-family: Georgia, serif;
  font-size: 13.5px;
  line-height: 1.5;
  flex-grow: 1;
}

.news-card a {
  color: #f0e2da;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.news-card a:hover {
  color: #ff5560;
}

/* ==========================================================================
   INTERACTIVE NEWS DETAIL MODAL (Referenced from htdocs-chaos)
   ========================================================================== */

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.news-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 2, 3, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.news-modal__box {
  position: relative;
  z-index: 2;
  width: min(720px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  padding: 32px;
  background: linear-gradient(145deg, rgba(28, 12, 16, 0.95), rgba(10, 4, 6, 0.98));
  border: 1px solid rgba(220, 60, 75, 0.45);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(185, 25, 38, 0.35);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modalPopIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalPopIn {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.news-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 28px;
  color: #d1c0b8;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
  outline: none;
}

.news-modal__close:hover {
  color: #ff3b4b;
  transform: scale(1.15);
}

.news-modal__header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.news-modal__date {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #bdaea6;
}

.news-modal__views {
  font-size: 11px;
  color: #9f8d85;
  margin-left: auto;
  padding-right: 28px;
}

.news-modal__title {
  margin: 0;
  font-size: clamp(20px, 2.8vw, 26px);
  color: #f7ede7;
  line-height: 1.25;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(185, 110, 100, 0.25);
}

.news-modal__banner {
  width: 100%;
  max-height: 300px;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(185, 110, 100, 0.3);
}

.news-modal__banner img {
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
}

.news-modal__content {
  font-family: Georgia, serif;
  font-size: 15px;
  line-height: 1.75;
  color: #e5d8d2;
}

.news-modal__content h4 {
  font-family: "Cinzel", Georgia, serif;
  color: #ff5560;
  margin: 16px 0 8px;
  font-size: 16px;
  letter-spacing: 1px;
}

.news-modal__content ul {
  padding-left: 20px;
  margin: 10px 0;
}

.news-modal__content li {
  margin-bottom: 6px;
}

/* ==========================================================================
   HALL OF LEGENDS / RANKING SECTION (Referenced from htdocs-chaos)
   ========================================================================== */

.ranking-section {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: clamp(90px, 9vw, 120px) 0 80px;
  background: #060305;
  overflow: hidden;
}

.ranking-video-container {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.ranking-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.ranking-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: contrast(1.1) brightness(0.85);
}

.ranking-shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: 
    linear-gradient(180deg, #080507 0%, rgba(8, 5, 7, 0.55) 15%, rgba(8, 5, 7, 0.45) 50%, rgba(8, 5, 7, 0.75) 85%, #080507 100%),
    radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(6, 2, 4, 0.85) 100%);
  pointer-events: none;
}

.ranking-inner {
  position: relative;
  z-index: 10;
  width: min(100% - 10vw, 1380px);
  margin: 0 auto;
}

/* Live Sync Indicator Badge */
.live-sync-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 9.5px;
  letter-spacing: 1.5px;
  color: #86efac;
  background: rgba(16, 52, 28, 0.55);
  border: 1px solid rgba(74, 222, 128, 0.4);
  padding: 4px 11px;
  border-radius: 20px;
  font-family: sans-serif;
  font-weight: 700;
  vertical-align: middle;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.18);
}

.live-sync-indicator .live-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: livePulseAnim 2s infinite ease-in-out;
}

@keyframes livePulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.ranking-controls {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 24px 0 28px;
}

.ranking-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ranking-tabs button {
  padding: 10px 22px;
  background: rgba(26, 12, 16, 0.75);
  border: 1px solid rgba(185, 110, 100, 0.3);
  color: #cbb8af;
  font-family: "Cinzel", Georgia, serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.25s ease;
}

.ranking-tabs button:hover,
.ranking-tabs button.selected {
  background: linear-gradient(180deg, #84121d, #3c060c);
  border-color: #e5535b;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(220, 25, 40, 0.45);
}

.ranking-actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.view-all-rank-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, rgba(140, 20, 30, 0.4) 0%, rgba(20, 6, 9, 0.9) 100%);
  border: 1px solid rgba(220, 70, 85, 0.6);
  color: #faede6;
  font-family: "Cinzel", Georgia, serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.view-all-rank-btn i {
  font-style: normal;
  font-size: 14px;
  color: #ff4a58;
  transition: transform 0.25s ease;
}

.view-all-rank-btn:hover,
.view-all-rank-btn.active {
  background: linear-gradient(135deg, #8f1522 0%, #3e050c 100%);
  border-color: #ff6675;
  box-shadow: 0 0 18px rgba(220, 25, 40, 0.6);
}

.view-all-rank-btn:hover i {
  transform: translateX(4px);
}

.ranking-sub-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(20, 8, 12, 0.85);
  padding: 4px 6px;
  border: 1px solid rgba(185, 110, 100, 0.3);
  border-radius: 4px;
}

.ranking-sub-tabs .sub-tab-btn {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid transparent;
  color: #bcaaa2;
  font-family: "Cinzel", Georgia, serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.ranking-sub-tabs .sub-tab-btn:hover {
  color: #ffffff;
  border-color: rgba(220, 60, 75, 0.4);
}

.ranking-sub-tabs .sub-tab-btn[data-nation="karus"].selected {
  background: rgba(85, 200, 152, 0.2);
  border-color: #55c898;
  color: #7fffd4;
  box-shadow: 0 0 10px rgba(85, 200, 152, 0.35);
}

.ranking-sub-tabs .sub-tab-btn[data-nation="elmorad"].selected {
  background: rgba(224, 176, 107, 0.2);
  border-color: #e0b06b;
  color: #fce4b8;
  box-shadow: 0 0 10px rgba(224, 176, 107, 0.35);
}

/* ==========================================================================
   RANKING SLIDER TRACK & HORIZONTAL TRANSITION
   ========================================================================== */

.ranking-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 10px;
}

.ranking-slider-track {
  display: flex;
  width: 200%;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateX(0%);
  will-change: transform;
}

.ranking-slider-track.show-leaderboard {
  transform: translateX(-50%);
}

.ranking-slide {
  width: 50%;
  min-width: 50%;
  max-width: 50%;
  flex: 0 0 50%;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  pointer-events: none;
}

.ranking-slider-track:not(.show-leaderboard) .podium-slide,
.ranking-slider-track.show-leaderboard .leaderboard-slide {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ==========================================================================
   TOP 3 PODIUM SHOWCASE FRAMES (1.png, 2.png, 3.png)
   ========================================================================== */

.podium-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0 30px;
}

.podium-cards {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(10px, 2.5vw, 36px);
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  box-sizing: border-box;
}

.podium-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.35s ease, filter 0.35s ease;
  cursor: pointer;
  max-width: 32%;
}

.podium-avatar-wrapper {
  position: absolute;
  top: 26.5%;
  left: 20%;
  width: 60%;
  height: 41%;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.podium-card.rank-1 .podium-avatar-wrapper {
  top: 26.5%;
  left: 20%;
  width: 60%;
  height: 41.5%;
}

.podium-avatar {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  margin-top: 6px;
  transform-origin: center top;
  transform: scale(1.38);
  mix-blend-mode: screen;
  filter: contrast(1.15) brightness(1.05);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.podium-card:hover .podium-avatar {
  transform: scale(1.48);
  filter: contrast(1.25) brightness(1.18);
}

.podium-card .podium-img {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(110px, 24vw, 290px);
  height: auto;
  max-width: 100%;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.9));
  transition: filter 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.podium-card.rank-1 {
  z-index: 3;
  margin-bottom: clamp(16px, 3vw, 36px);
}

.podium-card.rank-1 .podium-img {
  width: clamp(130px, 28vw, 335px);
  filter: drop-shadow(0 16px 45px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 25px rgba(220, 45, 60, 0.45));
}

.podium-card.rank-2 {
  z-index: 2;
  transform: rotate(-1.5deg);
}

.podium-card.rank-3 {
  z-index: 2;
  transform: rotate(1.5deg);
}

.podium-card:hover {
  transform: translateY(-8px) scale(1.03) rotate(0deg);
  z-index: 10;
}

.podium-card:hover .podium-img {
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 35px rgba(230, 50, 65, 0.7));
}

.podium-info {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 72%;
  text-align: center;
  pointer-events: none;
}

.podium-card.rank-1 .podium-info {
  bottom: 14.5%;
  width: 70%;
}

.podium-card.rank-2 .podium-info {
  left: 53%;
}

.podium-card.rank-3 .podium-info {
  left: 48.5%;
}

.podium-player-name {
  font-family: "Cinzel", Georgia, serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #f7ecd9;
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 0 8px rgba(220, 45, 60, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  line-height: 1.1;
}

.podium-card.rank-1 .podium-player-name {
  font-size: 15.5px;
  color: #fff4d4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.98), 0 0 12px rgba(255, 180, 80, 0.8);
}

.podium-card.rank-2 .podium-player-name {
  color: #e2e8f0;
}

.podium-card.rank-3 .podium-player-name {
  color: #f6ad55;
}

.podium-player-points {
  font-family: "Cinzel", Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #e5d8d0;
  margin-top: 2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  white-space: nowrap;
}

/* ==========================================================================
   FULL LEADERBOARD TABLE VIEW
   ========================================================================== */

.ranking-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 25px;
  width: 100%;
}

.class-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.class-filter button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(22, 10, 14, 0.85);
  border: 1px solid rgba(185, 110, 100, 0.25);
  color: #bfaea5;
  font-family: "Cinzel", Georgia, serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.class-filter button:hover,
.class-filter button.selected {
  background: linear-gradient(135deg, rgba(130, 18, 28, 0.85), rgba(45, 6, 12, 0.9));
  border-color: #e5535b;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(220, 25, 40, 0.4);
}

.leaderboard {
  background: rgba(14, 6, 9, 0.92);
  border: 1px solid rgba(185, 110, 100, 0.3);
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8);
  width: 100%;
  overflow-x: auto;
}

.leaderboard-head,
.rank-row {
  display: grid;
  grid-template-columns: 60px 1.8fr 1.2fr 1fr 80px 1.2fr 1.3fr;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(185, 110, 100, 0.15);
  font-size: 12px;
  min-width: 680px;
}

.leaderboard-head {
  background: rgba(28, 10, 15, 0.95);
  color: #f0e2da;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}

.rank-row {
  color: #cbbab0;
  transition: background 0.2s ease;
}

.rank-row:hover {
  background: rgba(130, 20, 30, 0.2);
}

.rank-row.champion {
  background: rgba(150, 22, 34, 0.25);
  color: #ffffff;
}

.rank-medal {
  color: #f0e2da;
  font-weight: 700;
}

.rank-row .player {
  font-weight: 700;
  color: #f7ede6;
}

.ranking-pages {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
}

.ranking-pages button {
  width: 36px;
  height: 36px;
  background: rgba(22, 10, 14, 0.8);
  border: 1px solid rgba(185, 110, 100, 0.25);
  color: #cbbab0;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s ease;
  font-family: "Cinzel", serif;
  font-weight: 600;
}

.ranking-pages button.selected,
.ranking-pages button:hover {
  background: #e5535b;
  border-color: #ff6675;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(220, 25, 40, 0.5);
}

/* ==========================================================================
   REALM EVENTS SECTION & ACCORDION SLIDER (Referenced from htdocs-chaos)
   ========================================================================== */

.event-section {
  position: relative;
  min-height: 100svh;
  padding: clamp(96px, 8vw, 120px) 0 80px;
  background: 
    radial-gradient(ellipse 80% 35% at 50% 0%, rgba(130, 16, 26, 0.22) 0%, transparent 65%),
    linear-gradient(180deg, #080507 0%, #0b0709 40%, #060405 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 100%;
  padding: 0 clamp(20px, 3.8vw, 60px);
  margin: 0;
  box-sizing: border-box;
}

.event-header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.live-sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #86efac;
  background: rgba(16, 52, 28, 0.6);
  border: 1px solid rgba(74, 222, 128, 0.45);
  padding: 5px 12px;
  border-radius: 20px;
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.2);
}

.live-sync-pill .sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: livePulseAnim 2s infinite ease-in-out;
}

/* Next Event Live Countdown Banner */
.next-event-banner {
  margin-top: 24px;
  margin-bottom: 24px;
  padding: 16px 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(32, 14, 18, 0.95) 0%, rgba(18, 10, 14, 0.92) 50%, rgba(10, 6, 8, 0.95) 100%);
  border: 1px solid rgba(220, 60, 75, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(220, 30, 45, 0.08), 0 0 25px rgba(220, 40, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.next-event-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #ff4d5a, #c01426);
  box-shadow: 0 0 10px #ff3b4b;
}

.next-event-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 4px;
  background: rgba(180, 20, 35, 0.35);
  border: 1px solid rgba(255, 75, 90, 0.5);
  color: #ff9da6;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b4b;
  box-shadow: 0 0 10px #ff3b4b;
  animation: pulseDotAnim 1.5s infinite ease-in-out;
}

@keyframes pulseDotAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.next-event-details {
  flex: 1;
  min-width: 240px;
}

.next-event-name {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 700;
  color: #fff4f0;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.next-event-meta {
  font-size: 13px;
  color: #c9b8b0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-bullet {
  color: rgba(220, 60, 75, 0.7);
  font-weight: bold;
}

.next-event-timer-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.timer-label {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #e5b382;
  text-shadow: 0 0 8px rgba(229, 179, 130, 0.4);
}

.countdown-clock {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 4, 6, 0.85);
  border: 1px solid rgba(229, 179, 130, 0.35);
  padding: 6px 14px;
  border-radius: 6px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.9), 0 0 15px rgba(229, 179, 130, 0.12);
}

.clock-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 34px;
}

.clock-val {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffecd6;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 170, 70, 0.5);
}

.clock-sub {
  font-size: 8.5px;
  letter-spacing: 1px;
  color: #9f8c82;
  margin-top: 3px;
  font-weight: 600;
}

.clock-sep {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #e5b382;
  line-height: 1;
  margin-bottom: 8px;
}

/* Collection Race Quests Strip */
.collection-race-strip {
  margin-top: 36px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(22, 10, 14, 0.75) 0%, rgba(12, 6, 9, 0.85) 100%);
  border: 1px solid rgba(185, 110, 100, 0.25);
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.cr-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(220, 60, 75, 0.2);
  flex-wrap: wrap;
  gap: 12px;
}

.cr-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cr-strip-tag {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #ff6675;
}

.cr-strip-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #f5ebe6;
  letter-spacing: 1px;
}

.cr-strip-count {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(36, 16, 22, 0.8);
  border: 1px solid rgba(220, 60, 75, 0.4);
  color: #e5c4bc;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.cr-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.cr-card {
  background: rgba(14, 7, 10, 0.85);
  border: 1px solid rgba(185, 90, 80, 0.3);
  border-radius: 6px;
  padding: 16px 18px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cr-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 85, 100, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 15px rgba(220, 30, 45, 0.2);
  background: rgba(24, 11, 16, 0.9);
}

.cr-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(220, 60, 75, 0.7), transparent);
}

.cr-card-name {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: #f7ede8;
  margin-bottom: 8px;
}

.cr-card-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: #bfaea5;
}

.cr-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cr-card-row .label {
  color: #8f7d75;
  font-size: 11px;
}

.cr-card-row .value {
  color: #dfd0c8;
  font-weight: 600;
}

.cr-card-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 2px 8px;
  background: rgba(220, 60, 75, 0.18);
  border: 1px solid rgba(220, 60, 75, 0.35);
  border-radius: 3px;
  color: #ff9da6;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.event-nav-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-arrow {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(26, 12, 16, 0.85);
  border: 1px solid rgba(220, 60, 75, 0.5);
  color: #f7ede6;
  font-size: 22px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.event-arrow:hover {
  background: #8e1420;
  border-color: #ff5565;
  box-shadow: 0 0 15px rgba(220, 25, 40, 0.6);
  transform: scale(1.08);
}

.event-slider-container {
  position: relative;
  width: 100%;
  height: clamp(580px, 66vh, 760px);
  margin-top: 24px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(185, 110, 100, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), inset 0 0 30px rgba(0, 0, 0, 0.9);
  background: #000000;
}

.event-now-showing {
  position: absolute;
  top: 20px;
  left: 24px;
  color: #ff6675;
  font-family: "Cinzel", Georgia, serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  z-index: 10;
  text-shadow: 0 0 10px rgba(220, 25, 40, 0.8);
  pointer-events: none;
}

.accordion-slider {
  display: flex;
  height: 100%;
  width: 100%;
  position: relative;
}

.slide {
  flex: 1;
  position: relative;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: flex 0.75s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
  overflow: hidden;
  filter: grayscale(0.85) brightness(0.65);
}

.slide:hover {
  filter: grayscale(0.2) brightness(0.9);
}

.slide.active {
  flex: 3.5;
  filter: grayscale(0) brightness(1.05);
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(6, 2, 4, 0.88) 75%, rgba(4, 1, 2, 0.98) 100%);
  z-index: 1;
  transition: opacity 0.5s ease;
}

.slide.active::before {
  background: linear-gradient(180deg, rgba(6, 2, 4, 0.2) 0%, transparent 40%, rgba(6, 2, 4, 0.82) 75%, rgba(4, 1, 2, 0.98) 100%);
}

.slide-content {
  position: absolute;
  bottom: 28px;
  left: 28px;
  right: 28px;
  color: #ffffff;
  z-index: 2;
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active .slide-content {
  bottom: 45px;
}

.slide-number {
  font-family: "Cinzel", Georgia, serif;
  font-size: 58px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1;
  position: absolute;
  bottom: 15px;
  left: 20px;
  transition: all 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
}

.slide.active .slide-number {
  bottom: auto;
  top: -46px;
  font-size: 42px;
  left: 0;
  color: #ff6675;
  text-shadow: 0 0 12px rgba(220, 25, 40, 0.8);
}

.event-brand-tag {
  font-family: "Cinzel", Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  color: #e5d8d0;
  letter-spacing: 2px;
  margin-bottom: 6px;
  transform: rotate(-90deg);
  transform-origin: left bottom;
  position: absolute;
  bottom: 90px;
  left: 24px;
  white-space: nowrap;
  transition: all 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.slide.active .event-brand-tag {
  transform: rotate(0deg);
  position: static;
  transform-origin: unset;
  color: #ff6675;
}

.event-name {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.95);
}

.slide.active .event-name {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.event-subtitle {
  font-family: Georgia, serif;
  font-size: 14px;
  color: #dfd0c8;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active .event-subtitle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.event-specs {
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 520px;
}

.slide.active .event-specs {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 12.5px;
  border-bottom: 1px dashed rgba(200, 140, 130, 0.2);
  padding-bottom: 4px;
}

.spec-label {
  color: #bfaea5;
  font-family: "Cinzel", Georgia, serif;
  font-size: 11px;
  letter-spacing: 1px;
}

.spec-value {
  color: #ffffff;
  font-weight: 600;
}

.performance-badges {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  flex-wrap: wrap;
}

.slide.active .performance-badges {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.performance-badges .badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(140, 20, 30, 0.5);
  border: 1px solid rgba(220, 60, 75, 0.6);
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: "Cinzel", Georgia, serif;
  color: #faede6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1150px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .navbar {
    width: 100%;
    min-height: auto;
    flex-direction: column;
    padding: 10px 16px;
    gap: 8px;
    background: rgba(9, 6, 8, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  }

  .navbar.navbar--scrolled {
    min-height: auto;
    padding: 8px 16px;
  }

  .navbar__brand {
    width: 110px;
  }

  .navbar.navbar--scrolled .navbar__brand {
    width: 100px;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
  }

  .menu a {
    height: 32px !important;
    font-size: 9px;
    letter-spacing: 1px;
  }

  .navbar.navbar--scrolled .menu a {
    height: 32px !important;
  }

  .menu .download {
    height: 28px !important;
    padding: 0 10px;
  }

  .navbar.navbar--scrolled .menu .download {
    height: 28px !important;
  }

  .welcome {
    top: 55%;
    left: 20px;
    width: calc(100% - 40px);
  }

  .welcome p {
    font-size: 10px;
    letter-spacing: 3px;
  }

  .welcome h1 {
    font-size: clamp(28px, 8vw, 44px);
  }

  .news-section {
    padding: 80px 0 60px;
  }

  .blood-divider {
    top: -28px;
    height: 56px;
  }

  .news-section__inner {
    width: calc(100% - 36px);
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-card {
    min-height: unset;
  }
}

/* ==========================================================================
   PAGE TRANSITIONS
   ========================================================================== */

.page-transition-curtain {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  background: radial-gradient(circle at center, #1f050b 0%, #070305 85%);
  opacity: 1;
  transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

body.page-ready .page-transition-curtain {
  opacity: 0;
}

body.page-leaving .page-transition-curtain {
  opacity: 1;
  pointer-events: all;
}

.world, .welcome, .navbar {
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-leaving .world {
  opacity: 0 !important;
  transform: scale(0.98);
}

body.page-ready .welcome {
  animation: welcomeEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes welcomeEntrance {
  from {
    opacity: 0;
    transform: translateY(-44%);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%);
    filter: blur(0);
  }
}

/* ==========================================================================
   ADVENTURER'S GUIDE 3D TURNING BOOK STYLES
   ========================================================================== */
.guide-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 100px 20px 80px 20px;
  background: #0b0907;
  overflow: hidden;
  box-sizing: border-box;
}

.guide-video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.guide-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: opacity, transform;
  transform: translateZ(0);
  transition: opacity 2.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.guide-video.active {
  opacity: 1;
}

.guide-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.65) 100%), linear-gradient(180deg, rgba(11, 9, 7, 0.8) 0%, transparent 20%, transparent 80%, rgba(11, 9, 7, 0.95) 100%);
  z-index: 2;
  pointer-events: none;
}

.guide-main {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-heading {
  text-align: center;
  margin-bottom: 30px;
}

.page-heading .eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 4px;
  color: #c0c8d0;
  margin-bottom: 8px;
}

.page-heading h2 {
  font-family: 'Cinzel', serif;
  font-size: 38px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: 2px;
}

.page-heading h2 em {
  font-style: normal;
  color: #ffd89b;
}

.page-heading .ornament {
  margin: 12px 0;
  color: #c0c8d0;
}

.page-heading p {
  font-size: 14px;
  color: #c4b8a5;
  margin: 0;
}

/* 3D Book Container */
.turning-book-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 10px auto 40px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
  min-height: 650px;
}

.turning-book-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.turning-book {
  position: relative;
  width: 420px;
  height: 300px;
  perspective: 630px;
  perspective-origin: center 50px;
  transform: scale(2.05);
  filter: drop-shadow(0px 20px 35px rgba(0, 0, 0, 0.9));
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

@media (max-width: 1024px) {
  .turning-book-container {
    min-height: 480px;
  }
  .turning-book {
    transform: scale(1.5);
  }
}

@media (max-width: 768px) {
  .turning-book-container {
    min-height: 400px;
  }
  .turning-book {
    transform: scale(1.15);
  }
}

@media (max-width: 480px) {
  .turning-book-container {
    min-height: 310px;
  }
  .turning-book {
    transform: scale(0.76);
  }
}

/* Click Zones */
.book-click-zone {
  position: absolute;
  top: -20px;
  bottom: -20px;
  width: 50%;
  z-index: 50;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.book-click-zone.zone-left {
  left: -20px;
  border-radius: 12px 0 0 12px;
}

.book-click-zone.zone-right {
  right: -20px;
  border-radius: 0 12px 12px 0;
}

.book-click-zone:hover {
  background: rgba(203, 213, 225, 0.08);
}

.zone-arrow {
  font-size: 36px;
  color: #ffd89b;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8), 0 0 15px rgba(203, 213, 225, 0.8);
}

.book-click-zone.zone-left:hover .zone-arrow {
  opacity: 0.9;
  transform: translateX(-5px);
}

.book-click-zone.zone-right:hover .zone-arrow {
  opacity: 0.9;
  transform: translateX(5px);
}

/* Book Gap / Spine */
.turning-book .gap {
  width: 10px;
  height: 300px;
  background: none;
  transform: rotateX(60deg);
  transform-origin: bottom;
  position: absolute;
  top: 0px;
  left: calc(50% - 5px);
  z-index: 5;
}

.turning-book .gap::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  background-color: #555;
  width: 10px;
  height: 5px;
  border-radius: 50%;
}

/* Static Pages & Stack Structure */
.turning-book .pages,
.turning-book .flips {
  transform-style: preserve-3d;
}

.turning-book .page {
  width: 210px;
  height: 300px;
  background-color: #1a1612;
  position: absolute;
  top: 0px;
  right: 50%;
  transform-origin: 100% 100%;
  border: solid #555 2px;
  background-size: 420px 300px;
  background-position: center;
  transform-style: preserve-3d;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.turning-book .page-left-1 { transform: rotateX(60deg) rotateY(3deg); }
.turning-book .page-left-2 { transform: rotateX(60deg) rotateY(4.5deg); }

.turning-book .static-left-page {
  transform: rotateX(60deg) rotateY(6deg);
  background-image: url('assets/guide/fragment_gem.jpg');
  background-size: 420px 300px;
  background-position: -2px -2px;
  cursor: pointer;
}

.turning-book .page-right-1 { transform: rotateX(60deg) rotateY(177deg); }
.turning-book .page-right-2 { transform: rotateX(60deg) rotateY(175.5deg); }

.turning-book .static-right-page {
  transform: rotateX(60deg) rotateY(174deg);
  overflow: hidden;
  cursor: pointer;
}

.turning-book .static-right-inner {
  width: 210px;
  height: 300px;
  position: absolute;
  top: 0px;
  right: 0%;
  transform-origin: center;
  transform: rotateY(180deg);
  background-image: url('assets/guide/fragment_gem.jpg');
  background-size: 420px 300px;
  background-position: -210px -2px;
}

/* 7-Strip 3D Bending Page Flips */
.turning-book .flip {
  width: 32px;
  height: 300px;
  position: absolute;
  top: 0px;
  transform-origin: 100% 100%;
  right: 100%;
  border: solid #555;
  border-width: 2px 0px;
  perspective: 4200px;
  perspective-origin: center;
  transform-style: preserve-3d;
  background-size: 420px 300px;
}

.turning-book .flip::after {
  content: "";
  position: absolute;
  top: 0px;
  right: 0%;
  width: 100%;
  height: 100%;
  transform-origin: center;
  background-size: 420px 300px;
}

.turning-book .flip.flip1 {
  right: 50%;
  border-width: 2px 2px 2px 0;
  transform: rotateX(60deg) rotateY(174deg);
}

.turning-book .flip:not(.flip1) {
  right: calc(100% - 2px);
  top: -2px;
  transform-origin: right;
  transform: rotateY(0deg);
}

.turning-book .flip.flip7 {
  width: 30px;
  border-width: 2px 0px 2px 2px;
}

/* Flips visibility control */
.turning-book .flips {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.turning-book.is-flipping .flips {
  opacity: 1;
}

/* NEXT Animation Keyframes & Classes */
.turning-book.is-flipping.flip-dir-next .flip.flip1 {
  animation: flipNextMain 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.turning-book.is-flipping.flip-dir-next .flip:not(.flip1) {
  animation: flipNextBend 0.85s ease-in-out forwards;
}

.turning-book.is-flipping.flip-dir-next .flip.flip1::after { animation: flipNextInner1 0.85s steps(1) forwards; }
.turning-book.is-flipping.flip-dir-next .flip.flip2::after { animation: flipNextInner2 0.85s steps(1) forwards; }
.turning-book.is-flipping.flip-dir-next .flip.flip3::after { animation: flipNextInner3 0.85s steps(1) forwards; }
.turning-book.is-flipping.flip-dir-next .flip.flip4::after { animation: flipNextInner4 0.85s steps(1) forwards; }
.turning-book.is-flipping.flip-dir-next .flip.flip5::after { animation: flipNextInner5 0.85s steps(1) forwards; }
.turning-book.is-flipping.flip-dir-next .flip.flip6::after { animation: flipNextInner6 0.85s steps(1) forwards; }
.turning-book.is-flipping.flip-dir-next .flip.flip7::after { animation: flipNextInner7 0.85s steps(1) forwards; }

@keyframes flipNextMain {
  0% { transform: rotateX(60deg) rotateY(174deg); }
  100% { transform: rotateX(60deg) rotateY(6deg); }
}

@keyframes flipNextBend {
  0%, 100% { transform: rotateY(0deg) translateY(0px); }
  50% { transform: rotateY(14deg) translateY(0px); }
}

@keyframes flipNextInner7 {
  0% { background-image: var(--bg-current); background-position: -388px -2px; transform: rotateY(180deg); }
  44%, 100% { background-image: var(--bg-next); background-position: -2px -2px; transform: rotateY(0deg); }
}
@keyframes flipNextInner6 {
  0% { background-image: var(--bg-current); background-position: -358px -2px; transform: rotateY(180deg); }
  46%, 100% { background-image: var(--bg-next); background-position: -28px -2px; transform: rotateY(0deg); }
}
@keyframes flipNextInner5 {
  0% { background-image: var(--bg-current); background-position: -328px -2px; transform: rotateY(180deg); }
  48%, 100% { background-image: var(--bg-next); background-position: -58px -2px; transform: rotateY(0deg); }
}
@keyframes flipNextInner4 {
  0% { background-image: var(--bg-current); background-position: -298px -2px; transform: rotateY(180deg); }
  50%, 100% { background-image: var(--bg-next); background-position: -88px -2px; transform: rotateY(0deg); }
}
@keyframes flipNextInner3 {
  0% { background-image: var(--bg-current); background-position: -268px -2px; transform: rotateY(180deg); }
  52%, 100% { background-image: var(--bg-next); background-position: -118px -2px; transform: rotateY(0deg); }
}
@keyframes flipNextInner2 {
  0% { background-image: var(--bg-current); background-position: -238px -2px; transform: rotateY(180deg); }
  54%, 100% { background-image: var(--bg-next); background-position: -148px -2px; transform: rotateY(0deg); }
}
@keyframes flipNextInner1 {
  0% { background-image: var(--bg-current); background-position: -210px -2px; transform: rotateY(180deg); }
  56%, 100% { background-image: var(--bg-next); background-position: -178px -2px; transform: rotateY(0deg); }
}

/* PREV Animation Keyframes & Classes */
.turning-book.is-flipping.flip-dir-prev .flip.flip1 {
  animation: flipPrevMain 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.turning-book.is-flipping.flip-dir-prev .flip:not(.flip1) {
  animation: flipPrevBend 0.85s ease-in-out forwards;
}

.turning-book.is-flipping.flip-dir-prev .flip.flip1::after { animation: flipPrevInner1 0.85s steps(1) forwards; }
.turning-book.is-flipping.flip-dir-prev .flip.flip2::after { animation: flipPrevInner2 0.85s steps(1) forwards; }
.turning-book.is-flipping.flip-dir-prev .flip.flip3::after { animation: flipPrevInner3 0.85s steps(1) forwards; }
.turning-book.is-flipping.flip-dir-prev .flip.flip4::after { animation: flipPrevInner4 0.85s steps(1) forwards; }
.turning-book.is-flipping.flip-dir-prev .flip.flip5::after { animation: flipPrevInner5 0.85s steps(1) forwards; }
.turning-book.is-flipping.flip-dir-prev .flip.flip6::after { animation: flipPrevInner6 0.85s steps(1) forwards; }
.turning-book.is-flipping.flip-dir-prev .flip.flip7::after { animation: flipPrevInner7 0.85s steps(1) forwards; }

@keyframes flipPrevMain {
  0% { transform: rotateX(60deg) rotateY(6deg); }
  100% { transform: rotateX(60deg) rotateY(174deg); }
}

@keyframes flipPrevBend {
  0%, 100% { transform: rotateY(0deg) translateY(0px); }
  50% { transform: rotateY(-14deg) translateY(0px); }
}

@keyframes flipPrevInner1 {
  0% { background-image: var(--bg-current); background-position: -178px -2px; transform: rotateY(0deg); }
  44%, 100% { background-image: var(--bg-prev); background-position: -210px -2px; transform: rotateY(180deg); }
}
@keyframes flipPrevInner2 {
  0% { background-image: var(--bg-current); background-position: -148px -2px; transform: rotateY(0deg); }
  46%, 100% { background-image: var(--bg-prev); background-position: -238px -2px; transform: rotateY(180deg); }
}
@keyframes flipPrevInner3 {
  0% { background-image: var(--bg-current); background-position: -118px -2px; transform: rotateY(0deg); }
  48%, 100% { background-image: var(--bg-prev); background-position: -268px -2px; transform: rotateY(180deg); }
}
@keyframes flipPrevInner4 {
  0% { background-image: var(--bg-current); background-position: -88px -2px; transform: rotateY(0deg); }
  50%, 100% { background-image: var(--bg-prev); background-position: -298px -2px; transform: rotateY(180deg); }
}
@keyframes flipPrevInner5 {
  0% { background-image: var(--bg-current); background-position: -58px -2px; transform: rotateY(0deg); }
  52%, 100% { background-image: var(--bg-prev); background-position: -328px -2px; transform: rotateY(180deg); }
}
@keyframes flipPrevInner6 {
  0% { background-image: var(--bg-current); background-position: -28px -2px; transform: rotateY(0deg); }
  54%, 100% { background-image: var(--bg-prev); background-position: -358px -2px; transform: rotateY(180deg); }
}
@keyframes flipPrevInner7 {
  0% { background-image: var(--bg-current); background-position: -2px -2px; transform: rotateY(0deg); }
  56%, 100% { background-image: var(--bg-prev); background-position: -388px -2px; transform: rotateY(180deg); }
}

/* Controls Bar */
.book-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 30px;
  z-index: 10;
  position: relative;
}

.book-btn {
  background: linear-gradient(180deg, rgba(38, 30, 22, 0.95) 0%, rgba(18, 14, 10, 0.98) 100%);
  border: 1px solid rgba(203, 213, 225, 0.6);
  border-radius: 6px;
  color: #f7ecd9;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 10px 22px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.book-btn:hover {
  border-color: #ffd89b;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(203, 213, 225, 0.5);
  transform: translateY(-2px);
}

.book-page-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.book-page-num {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  color: #c0c8d0;
  letter-spacing: 0.15em;
}

.book-page-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  transition: color 0.25s ease;
}

.book-page-title:hover {
  color: #ffd89b;
}

.book-open-btn {
  background: rgba(203, 213, 225, 0.15);
  border: 1px solid rgba(203, 213, 225, 0.4);
  border-radius: 12px;
  color: #ffd89b;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  padding: 3px 10px;
  cursor: pointer;
  margin-top: 2px;
  transition: all 0.25s ease;
}

.book-open-btn:hover {
  background: rgba(203, 213, 225, 0.35);
  color: #fff;
}

.book-dots {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.book-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(203, 213, 225, 0.3);
  border: 1px solid rgba(203, 213, 225, 0.5);
  cursor: pointer;
  transition: all 0.25s ease;
}

.book-dot.active {
  background: #ffd89b;
  box-shadow: 0 0 8px #ffd89b;
  transform: scale(1.2);
}

/* ==========================================================================
   DOWNLOAD SECTION & 3-PLATFORM HUB STYLES
   ========================================================================== */
.download-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 100px 20px 80px 20px;
  background: #070506;
  overflow: hidden;
  box-sizing: border-box;
}

.download-video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.download-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  will-change: opacity;
  pointer-events: none;
}

.download-video.active {
  opacity: 0.62;
}

/* Authentic Platform Brand Logos for Download Section */
.platform-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

.brand-real-logo {
  display: block;
  flex-shrink: 0;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.platform-tab-btn:hover .brand-windows {
  filter: drop-shadow(0 0 10px #00adef);
  transform: scale(1.08);
}

.platform-tab-btn:hover .brand-macbook {
  filter: drop-shadow(0 0 10px #00e5ff);
  transform: scale(1.08);
}

.platform-tab-btn:hover .brand-android {
  filter: drop-shadow(0 0 10px #3ddc84);
  transform: scale(1.08);
}

.platform-tab-btn.active .brand-windows {
  filter: drop-shadow(0 0 12px #00adef);
}

.platform-tab-btn.active .brand-macbook {
  filter: drop-shadow(0 0 12px #00e5ff);
}

.platform-tab-btn.active .brand-android {
  filter: drop-shadow(0 0 12px #3ddc84);
}

.inline-brand-svg {
  display: inline-block;
  vertical-align: -3px;
  margin-right: 6px;
  width: 18px;
  height: 18px;
}

.download-shade {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at center, rgba(7, 5, 6, 0.5) 25%, rgba(7, 5, 6, 0.92) 100%),
    linear-gradient(180deg, rgba(7, 5, 6, 0.98) 0%, rgba(7, 5, 6, 0.65) 25%, rgba(7, 5, 6, 0.65) 75%, rgba(7, 5, 6, 0.98) 100%);
  z-index: 2;
  pointer-events: none;
}

.download-inner {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-heading {
  text-align: center;
  margin-bottom: 36px;
}

.download-heading .eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 4px;
  color: #c0c8d0;
  margin-bottom: 8px;
}

.download-heading h2 {
  font-family: 'Cinzel', serif;
  font-size: 38px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: 2px;
}

.download-heading h2 em {
  font-style: normal;
  color: #ffd89b;
}

.download-heading .ornament {
  margin: 12px 0;
  color: #c0c8d0;
}

.download-heading p {
  font-size: 14px;
  color: #c4b8a5;
  margin: 0;
}

/* 3 Platform Switcher Tabs */
.platform-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
  width: 100%;
  max-width: 860px;
  flex-wrap: wrap;
}

.platform-tab-btn {
  flex: 1;
  min-width: 220px;
  background: linear-gradient(180deg, rgba(28, 22, 18, 0.95) 0%, rgba(14, 11, 9, 0.98) 100%);
  border: 1.5px solid rgba(220, 180, 140, 0.35);
  border-radius: 10px;
  padding: 14px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.platform-tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: all 0.3s ease;
}

.platform-tab-btn:hover {
  border-color: #ffd89b;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85), 0 0 15px rgba(255, 216, 155, 0.2);
}

.platform-tab-btn.active {
  background: linear-gradient(180deg, rgba(48, 36, 26, 0.98) 0%, rgba(20, 15, 12, 0.98) 100%);
  border-color: #ffd89b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 216, 155, 0.35);
  transform: translateY(-2px);
}

.platform-tab-btn.active::before {
  background: #ffd89b;
  box-shadow: 0 0 10px #ffd89b;
}

.platform-tab-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

.platform-tab-text {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.platform-tab-text strong {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 1.5px;
  color: #ffffff;
  font-weight: 700;
}

.platform-tab-btn.active .platform-tab-text strong {
  color: #ffd89b;
}

.platform-tab-text small {
  font-size: 11px;
  color: #a89a8c;
  margin-top: 2px;
}

/* Platform Content Panels */
.platform-panel {
  display: none;
  width: 100%;
  animation: fadeInPanel 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.platform-panel.active {
  display: block;
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.platform-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  width: 100%;
}

@media (max-width: 980px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }
}

/* Download Hero Card */
.dl-platform-card {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 24, 20, 0.94) 0%, rgba(14, 11, 9, 0.98) 100%);
  border: 1px solid rgba(220, 180, 140, 0.35);
  border-radius: 12px;
  padding: 36px 40px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dl-platform-art {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48%;
  opacity: 0.75;
  pointer-events: none;
  overflow: hidden;
}

.dl-platform-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  mask-image: linear-gradient(to right, transparent, black 40%);
  -webkit-mask-image: linear-gradient(to right, transparent, black 40%);
}

.dl-platform-content {
  position: relative;
  z-index: 2;
  max-width: 460px;
}

.platform-badge {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: #ffd89b;
  margin-bottom: 8px;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 216, 155, 0.3);
}

.platform-main-title {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin: 6px 0 12px 0;
  letter-spacing: 1px;
}

.highlight-title {
  color: #ffd89b;
}

.platform-desc {
  font-size: 13px;
  color: #c4b8a5;
  line-height: 1.5;
  margin-bottom: 22px;
}

.primary-download-wrap {
  margin-bottom: 20px;
}

.dl-png-btn img {
  height: 54px;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 4px 15px rgba(220, 25, 40, 0.4));
}

.dl-png-btn:hover img {
  transform: scale(1.04);
  filter: drop-shadow(0 6px 22px rgba(220, 25, 40, 0.75));
}

/* Mirror Links */
.mirror-links-group {
  margin-bottom: 20px;
}

.mirror-label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 10.5px;
  letter-spacing: 1px;
  color: #a89a8c;
  margin-bottom: 8px;
  font-weight: 600;
}

.mirror-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mirror-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(220, 200, 180, 0.25);
  border-radius: 6px;
  padding: 8px 12px;
  color: #f1f5f9;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.mirror-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffd89b;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 216, 155, 0.25);
  transform: translateY(-1px);
}

.dl-meta-badge {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  color: #a89a8c;
  flex-wrap: wrap;
}

.dl-meta-badge b {
  color: #ffd89b;
}

.dl-meta-badge .sep {
  opacity: 0.4;
}

/* System Specs & Requirements Card */
.platform-specs-card {
  background: linear-gradient(135deg, rgba(22, 18, 16, 0.94) 0%, rgba(12, 9, 8, 0.98) 100%);
  border: 1px solid rgba(220, 180, 140, 0.3);
  border-radius: 12px;
  padding: 28px 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.specs-card-title {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1.5px;
  margin: 0 0 18px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(220, 180, 140, 0.2);
  padding-bottom: 12px;
}

.specs-table-wrap {
  overflow-x: auto;
  margin-bottom: 20px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.specs-table th {
  font-family: 'Cinzel', serif;
  font-size: 10.5px;
  letter-spacing: 1px;
  color: #ffd89b;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(220, 180, 140, 0.3);
  background: rgba(0, 0, 0, 0.3);
}

.specs-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(220, 180, 140, 0.1);
  color: #dfd0c8;
}

.specs-table .spec-name {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  color: #ffffff;
}

.platform-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.feat-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(220, 180, 140, 0.2);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: 'Cinzel', serif;
  font-size: 10.5px;
  color: #faede6;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.feat-icon {
  font-size: 14px;
}

/* ==========================================================================
   GUIDE MODAL DIALOGS & POPUPS
   ========================================================================== */
.monster-modal-backdrop,
.upgrade-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 3, 2, 0.88);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.monster-modal-backdrop.active,
.upgrade-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.monster-modal-window,
.upgrade-modal-window {
  width: 94vw;
  max-width: 1100px;
  height: 85vh;
  background: linear-gradient(135deg, rgba(22, 28, 38, 0.95) 0%, rgba(12, 16, 24, 0.98) 100%);
  border: 1.5px solid rgba(220, 235, 255, 0.35);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85), 0 0 35px rgba(200, 225, 250, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.monster-modal-backdrop.active .monster-modal-window,
.upgrade-modal-backdrop.active .upgrade-modal-window {
  transform: scale(1);
}

.monster-modal-header,
.upgrade-modal-header {
  padding: 16px 24px;
  background: linear-gradient(180deg, rgba(220, 235, 255, 0.12) 0%, rgba(140, 160, 185, 0.05) 100%);
  border-bottom: 1px solid rgba(220, 235, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.monster-modal-title,
.upgrade-modal-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  color: #f1f5f9;
  margin: 0;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(220, 235, 255, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
}

.monster-modal-close,
.upgrade-modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(200, 215, 235, 0.3);
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.monster-modal-close:hover,
.upgrade-modal-close:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

/* Guide Universal Nav Tabs */
.guide-modal-nav-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 15, 22, 0.85);
  border-bottom: 1px solid rgba(200, 215, 235, 0.18);
  padding: 8px 16px;
  overflow-x: auto;
  flex-shrink: 0;
}

.guide-modal-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid rgba(200, 215, 235, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-family: 'Cinzel', serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.guide-modal-nav-tab img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.guide-modal-nav-tab:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(240, 245, 255, 0.7);
  color: #ffffff;
}

.guide-modal-nav-tab.active {
  background: linear-gradient(180deg, rgba(210, 230, 255, 0.25) 0%, rgba(130, 165, 205, 0.15) 100%);
  border-color: rgba(240, 245, 255, 0.85);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(190, 215, 250, 0.35);
}

/* Monster/Item Search Controls */
.monster-search-controls {
  background: rgba(10, 14, 20, 0.75);
  padding: 12px 24px;
  border-bottom: 1px solid rgba(200, 215, 235, 0.18);
}

.monster-search-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(200, 215, 235, 0.28);
  border-radius: 6px;
  padding: 4px 12px;
}

.monster-search-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-family: 'Cinzel', sans-serif;
  font-size: 13px;
  padding: 8px 0;
}

.monster-search-input-wrap input::placeholder {
  color: #94a3b8;
}

.monster-search-submit-btn {
  background: linear-gradient(180deg, rgba(140, 165, 195, 0.35) 0%, rgba(75, 95, 120, 0.45) 100%);
  border: 1px solid rgba(210, 230, 255, 0.45);
  color: #ffffff;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.monster-search-submit-btn:hover {
  background: linear-gradient(180deg, rgba(170, 195, 225, 0.5) 0%, rgba(95, 120, 150, 0.6) 100%);
  box-shadow: 0 0 14px rgba(210, 230, 255, 0.4);
}

/* Dual Column Modal Body */
.monster-modal-body {
  display: grid;
  grid-template-columns: 340px 1fr;
  flex: 1;
  overflow: hidden;
}

@media (max-width: 850px) {
  .monster-modal-body {
    grid-template-columns: 1fr;
  }
}

.monster-list-column {
  border-right: 1px solid rgba(200, 215, 235, 0.18);
  background: rgba(8, 12, 18, 0.6);
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.monster-card-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(200, 215, 235, 0.18);
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.monster-card-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(220, 235, 255, 0.6);
}

.monster-card-item.active {
  background: linear-gradient(90deg, rgba(200, 225, 255, 0.2) 0%, rgba(200, 225, 255, 0.05) 100%);
  border-color: rgba(235, 245, 255, 0.85);
  box-shadow: 0 0 15px rgba(200, 225, 255, 0.25);
}

.monster-item-name {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: #f8fafc;
  font-weight: bold;
}

.monster-detail-column {
  padding: 24px;
  overflow-y: auto;
  background: rgba(12, 16, 24, 0.7);
}

.monster-empty-detail {
  text-align: center;
  padding: 80px 20px;
  color: #94a3b8;
  font-family: 'Cinzel', serif;
  font-size: 14px;
}

.monster-detail-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.monster-header-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(200, 215, 235, 0.2);
  padding-bottom: 14px;
}

.monster-detail-name {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  color: #f8fafc;
  margin: 0;
  letter-spacing: 1px;
}

.monster-detail-tag {
  background: rgba(140, 165, 195, 0.35);
  border: 1px solid rgba(200, 215, 235, 0.4);
  color: #ffffff;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
}

.monster-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.monster-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(200, 215, 235, 0.2);
  border-radius: 6px;
  padding: 8px 12px;
  text-align: center;
}

.monster-stat-label {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  color: #cbd5e1;
  margin-bottom: 3px;
  letter-spacing: 1px;
}

.monster-stat-value {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  color: #e2e8f0;
  font-weight: bold;
}

.monster-drops-title {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  color: #f1f5f9;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(200, 215, 235, 0.2);
  padding-bottom: 6px;
}

.monster-drops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.monster-drop-card {
  background: rgba(22, 28, 38, 0.7);
  border: 1px solid rgba(200, 215, 235, 0.22);
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.drop-item-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid rgba(200, 215, 235, 0.35);
  background: rgba(8, 12, 18, 0.85);
}

.drop-item-info {
  flex: 1;
}

.drop-item-name {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: #f8fafc;
  font-weight: bold;
  margin-bottom: 2px;
}

.drop-item-desc {
  font-family: sans-serif;
  font-size: 10.5px;
  color: #cbd5e1;
  margin-bottom: 2px;
}

.drop-item-rate {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: #7fffd4;
  font-weight: bold;
}

/* Upgrade Rates Modal Specific */
.upgrade-scroll-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(10, 14, 20, 0.75);
  border-bottom: 1px solid rgba(200, 215, 235, 0.18);
  padding: 10px 20px;
  align-items: center;
}

.upgrade-tab-btn.icon-only-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(200, 215, 235, 0.25);
  border-radius: 6px;
  padding: 4px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upgrade-tab-btn.icon-only-tab:hover {
  border-color: rgba(240, 245, 255, 0.75);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.upgrade-tab-btn.icon-only-tab.active {
  border-color: #ffffff;
  background: linear-gradient(180deg, rgba(200, 225, 255, 0.25) 0%, rgba(140, 170, 210, 0.12) 100%);
  box-shadow: 0 0 16px rgba(200, 225, 255, 0.4);
}

.tab-scroll-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.upgrade-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.scroll-info-banner {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(200, 215, 235, 0.2);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.scroll-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid rgba(200, 215, 235, 0.35);
  background: rgba(8, 12, 18, 0.85);
  object-fit: contain;
}

.scroll-banner-name {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  color: #f1f5f9;
  font-weight: bold;
}

.scroll-banner-desc {
  font-family: sans-serif;
  font-size: 12px;
  color: #cbd5e1;
}

.upgrade-rates-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-family: 'Cinzel', serif;
}

.upgrade-rates-table th {
  background: rgba(28, 36, 48, 0.85);
  color: #f1f5f9;
  padding: 10px 16px;
  font-size: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(200, 215, 235, 0.3);
}

.upgrade-rates-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(200, 215, 235, 0.12);
  font-size: 13px;
  color: #f1f5f9;
}

.upgrade-level-badge {
  display: inline-block;
  background: rgba(18, 24, 34, 0.8);
  border: 1px solid rgba(200, 215, 235, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
}

.rate-text-clean {
  font-weight: bold;
  font-size: 15px;
}

.rate-text-clean.rate-green { color: #81c784; }
.rate-text-clean.rate-gold { color: #ffe082; }
.rate-text-clean.rate-orange { color: #ffb74d; }
.rate-text-clean.rate-red { color: #e57373; }

/* Custom RPG Floating Tooltip */
#rpg-item-tooltip {
  position: fixed;
  z-index: 9999999;
  background: linear-gradient(180deg, rgba(22, 28, 38, 0.95) 0%, rgba(10, 14, 20, 0.98) 100%);
  border: 1.5px solid rgba(220, 235, 255, 0.45);
  border-radius: 6px;
  box-shadow: 0 0 25px rgba(180, 205, 235, 0.3);
  padding: 10px 14px;
  max-width: 280px;
  pointer-events: none;
  display: none;
  font-family: 'Cinzel', serif;
}

.rpg-tooltip-title {
  color: #f8fafc;
  font-size: 13.5px;
  font-weight: bold;
  margin-bottom: 4px;
}

.rpg-tooltip-desc {
  color: #cbd5e1;
  font-family: sans-serif;
  font-size: 11.5px;
  line-height: 1.35;
  margin-bottom: 6px;
  border-top: 1px dashed rgba(200, 215, 235, 0.25);
  padding-top: 5px;
}

.rpg-tooltip-rate {
  color: #7fffd4;
  font-size: 13px;
  font-weight: bold;
}

/* ==========================================================================
   TOP UP KNIGHT CASH (KC) & DATABASE RECHARGE STYLES
   ========================================================================== */
.topup-nav-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(180, 83, 9, 0.25)) !important;
  border: 1px solid rgba(234, 179, 8, 0.5) !important;
  color: #fef08a !important;
  padding: 6px 14px !important;
  border-radius: 4px;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.2);
  transition: all 0.3s ease !important;
}

.topup-nav-btn:hover {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.35), rgba(180, 83, 9, 0.45)) !important;
  border-color: #facc15 !important;
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.45);
  transform: translateY(-1px);
}

.topup-nav-btn .kc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 8px #facc15;
  animation: livePulseAnim 1.8s infinite ease-in-out;
}

/* ==========================================================================
   TOP UP KNIGHT CASH (KC) — LUXURY MAROON ROSE AESTHETIC (MERAH MARON MAWAR MEWAH)
   ========================================================================== */
.topup-section {
  position: relative;
  min-height: 100vh;
  padding: clamp(90px, 9vw, 130px) 0 100px;
  background: 
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(159, 18, 57, 0.28) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 50% 60%, rgba(190, 24, 60, 0.12) 0%, transparent 80%),
    linear-gradient(180deg, #090306 0%, #12050b 50%, #070204 100%);
  overflow: hidden;
}

.topup-inner {
  position: relative;
  z-index: 3;
  width: min(100% - 6vw, 1420px);
  margin: 0 auto;
}

.topup-header-simple {
  text-align: center;
  margin-bottom: 44px;
}

.topup-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fda4af;
  margin-bottom: 12px;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.35);
  padding: 5px 16px;
  border-radius: 9999px;
  box-shadow: 0 0 15px rgba(225, 29, 72, 0.2);
}

.topup-kicker .kicker-gem {
  color: #facc15;
  font-size: 13px;
}

.topup-title-main {
  font-family: 'Cinzel', serif;
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #ffffff;
  margin: 0 0 12px 0;
  text-shadow: 0 0 30px rgba(225, 29, 72, 0.45);
}

.topup-title-main em {
  font-style: normal;
  color: #facc15;
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #e11d48 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 25px rgba(250, 204, 21, 0.4);
}

.topup-subtitle-main {
  font-family: sans-serif;
  color: #d1b5af;
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 6-Card Horizontal Grid — Matching Reference Image */
.topup-cards-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 1280px) {
  .topup-cards-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 680px) {
  .topup-cards-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 440px) {
  .topup-cards-row {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* Individual Showcase Card */
.kc-showcase-card {
  position: relative;
  background: linear-gradient(180deg, #180811 0%, #0f050b 100%);
  border: 1px solid rgba(225, 29, 72, 0.3);
  border-radius: 20px;
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.kc-showcase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.4) 0%, rgba(225, 29, 72, 0.05) 60%, transparent 100%);
  -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;
}

.kc-showcase-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 63, 94, 0.75);
  box-shadow: 
    0 18px 40px rgba(0, 0, 0, 0.85),
    0 0 25px rgba(225, 29, 72, 0.35),
    0 0 45px rgba(159, 18, 57, 0.2);
}

.kc-card-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  font-family: 'Cinzel', serif;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(159, 18, 57, 0.85);
  border: 1px solid rgba(254, 205, 211, 0.6);
  color: #fff;
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.6);
  text-transform: uppercase;
}

/* Card Artwork Image — Rounded square at top */
.kc-card-art-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #090306;
  border: 1px solid rgba(244, 63, 94, 0.25);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
  margin-bottom: 14px;
}

.kc-card-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.kc-showcase-card:hover .kc-card-art-wrap img {
  transform: scale(1.05);
}

/* Card Info */
.kc-card-meta {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.kc-meta-sub {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #fda4af;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.kc-meta-title {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 6px 0;
  letter-spacing: 0.5px;
}

.kc-meta-price {
  font-family: 'Cinzel', serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #facc15;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.35);
  margin-top: auto;
}

.kc-meta-bonus {
  font-size: 10.5px;
  color: #4ade80;
  font-weight: 600;
  margin-top: 2px;
}

/* The BUY KC Outline Button — Matching reference image pill outline */
.btn-buy-kc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 0;
  border-radius: 9999px;
  background: rgba(225, 29, 72, 0.08);
  border: 1.5px solid #e11d48;
  color: #ffedd5;
  font-family: 'Cinzel', serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.15);
}

.btn-buy-kc:hover {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 50%, #9f1239 100%);
  border-color: #facc15;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.6), 0 0 10px rgba(250, 204, 21, 0.4);
  transform: translateY(-2px);
}

/* Secondary Voucher Quick Bar Below */
.topup-bottom-bar {
  margin-top: 40px;
  padding: 16px 24px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(24, 8, 16, 0.8) 0%, rgba(36, 12, 22, 0.85) 50%, rgba(24, 8, 16, 0.8) 100%);
  border: 1px solid rgba(225, 29, 72, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.voucher-quick-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.voucher-quick-info .v-icon {
  font-size: 24px;
}

.voucher-quick-info strong {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 13.5px;
  color: #ffffff;
  letter-spacing: 1px;
}

.voucher-quick-info small {
  display: block;
  font-size: 11.5px;
  color: #c9b8b0;
}

.btn-open-voucher-modal {
  padding: 9px 20px;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid rgba(250, 204, 21, 0.6);
  color: #fef08a;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-open-voucher-modal:hover {
  background: rgba(250, 204, 21, 0.15);
  border-color: #facc15;
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.3);
  transform: translateY(-1px);
}

/* ==========================================================================
   TOP UP CHECKOUT MODAL (LUXURY ROSE MAROON)
   ========================================================================== */
.topup-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.topup-modal.active {
  opacity: 1;
  visibility: visible;
}

.topup-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 2, 4, 0.85);
  backdrop-filter: blur(8px);
}

.topup-modal__box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  background: linear-gradient(180deg, #1c0813 0%, #10040a 100%);
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-radius: 18px;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(225, 29, 72, 0.35);
  overflow: hidden;
  animation: modalPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

@keyframes modalPopIn {
  from {
    transform: scale(0.92) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.topup-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.topup-modal__close:hover {
  background: #e11d48;
  border-color: #facc15;
  transform: rotate(90deg);
}

/* Selected Package Summary Banner in Modal */
.modal-pkg-banner {
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(159, 18, 57, 0.4) 0%, rgba(32, 10, 20, 0.8) 100%);
  border-bottom: 1px solid rgba(244, 63, 94, 0.25);
  display: flex;
  align-items: center;
  gap: 16px;
}

.modal-pkg-img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(250, 204, 21, 0.5);
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(225, 29, 72, 0.4);
}

.modal-pkg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-pkg-info {
  flex: 1;
}

.modal-pkg-badge {
  font-family: 'Cinzel', serif;
  font-size: 9.5px;
  letter-spacing: 1.5px;
  color: #fda4af;
  text-transform: uppercase;
}

.modal-pkg-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 2px 0 4px 0;
}

.modal-pkg-price-tag {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  color: #facc15;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.35);
}

/* Modal Body */
.modal-checkout-body {
  padding: 22px 24px 28px;
  overflow-y: auto;
}

.modal-section-title {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fde047;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-acc-input-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.modal-acc-input-wrap input {
  flex: 1;
  padding: 12px 14px;
  background: rgba(8, 3, 6, 0.9);
  border: 1px solid rgba(225, 29, 72, 0.35);
  border-radius: 8px;
  color: #fff;
  font-family: sans-serif;
  font-size: 13.5px;
  outline: none;
  transition: all 0.25s ease;
}

.modal-acc-input-wrap input:focus {
  border-color: #facc15;
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.35);
}

.btn-modal-verify {
  padding: 0 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #be123c 0%, #881337 100%);
  border: 1px solid #f43f5e;
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-modal-verify:hover {
  background: #e11d48;
  border-color: #facc15;
}

/* Live Verified Acc Pill */
.modal-verified-card {
  background: rgba(14, 5, 9, 0.95);
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.modal-acc-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-acc-meta .acc-icon {
  font-size: 22px;
}

.modal-acc-meta strong {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: #fff;
}

.modal-acc-meta small {
  font-size: 11px;
  color: #4ade80;
}

.modal-acc-bal {
  text-align: right;
}

.modal-acc-bal .bal-title {
  font-size: 10px;
  color: #a89a92;
  letter-spacing: 1px;
}

.modal-acc-bal .bal-amt {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  font-weight: 700;
  color: #facc15;
}

/* Modal Tabs (Pay vs ESN) */
.modal-method-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(225, 29, 72, 0.2);
  padding-bottom: 10px;
}

.modal-tab-btn {
  padding: 8px 16px;
  border-radius: 6px;
  background: rgba(20, 6, 12, 0.8);
  border: 1px solid rgba(225, 29, 72, 0.25);
  color: #c9b8b0;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.modal-tab-btn.active {
  background: rgba(225, 29, 72, 0.25);
  border-color: #f43f5e;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.3);
}

.modal-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

@media (max-width: 500px) {
  .modal-pay-grid {
    grid-template-columns: 1fr;
  }
}

.modal-pay-card {
  position: relative;
  cursor: pointer;
}

.modal-pay-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.modal-pay-card-inner {
  padding: 12px 10px;
  text-align: center;
  background: rgba(10, 4, 7, 0.9);
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: 8px;
  transition: all 0.25s ease;
}

.modal-pay-card:hover .modal-pay-card-inner {
  border-color: rgba(244, 63, 94, 0.5);
}

.modal-pay-card input:checked + .modal-pay-card-inner {
  background: rgba(159, 18, 57, 0.35);
  border-color: #facc15;
  box-shadow: 0 0 15px rgba(225, 29, 72, 0.4);
}

.modal-pay-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.modal-pay-name {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

/* Action Confirm Button */
.btn-modal-checkout-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 50%, #881337 100%);
  border: 1.5px solid #facc15;
  color: #ffffff;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 25px rgba(225, 29, 72, 0.5), 0 0 10px rgba(250, 204, 21, 0.3);
}

.btn-modal-checkout-submit:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #9f1239 100%);
  box-shadow: 0 0 35px rgba(225, 29, 72, 0.8), 0 0 15px rgba(250, 204, 21, 0.5);
  transform: translateY(-2px);
}

/* ESN Modal Voucher Inputs */
.modal-esn-box {
  margin-bottom: 20px;
}

.modal-esn-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.modal-esn-input-row input {
  flex: 1;
  padding: 12px 14px;
  background: rgba(8, 3, 6, 0.9);
  border: 1px solid rgba(225, 29, 72, 0.35);
  border-radius: 8px;
  color: #fff;
  font-family: monospace;
  font-size: 13px;
  letter-spacing: 1px;
  outline: none;
}

.modal-esn-input-row input:focus {
  border-color: #facc15;
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.35);
}

.modal-test-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-test-chip {
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(225, 29, 72, 0.3);
  color: #fda4af;
  font-size: 10.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-test-chip:hover {
  background: rgba(225, 29, 72, 0.25);
  border-color: #facc15;
  color: #fff;
}

/* Feedback Alert in Modal */
.modal-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  margin-top: 16px;
  display: none;
  animation: fadeIn 0.3s ease;
}

.modal-alert.success {
  background: rgba(22, 101, 52, 0.4);
  border: 1px solid #4ade80;
  color: #bbf7d0;
}

.modal-alert.error {
  background: rgba(153, 27, 27, 0.4);
  border: 1px solid #f87171;
  color: #fecaca;
}

.pay-speed {
  margin-left: auto;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(74, 222, 128, 0.2);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #86efac;
}

.action-submit-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.order-summary-pill {
  font-size: 13px;
  color: #c9b8b0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-submit-topup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: linear-gradient(135deg, #eab308, #ca8a04);
  border: 1px solid #fde047;
  color: #000000;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.4);
}

.btn-submit-topup:hover {
  background: linear-gradient(135deg, #facc15, #eab308);
  box-shadow: 0 0 30px rgba(234, 179, 8, 0.65);
  transform: translateY(-2px);
}

/* ESN Panel */
.esn-form-wrap {
  padding: 10px 0;
}

.esn-label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: #facc15;
  margin-bottom: 8px;
}

.esn-input-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.esn-input-row input {
  flex: 1;
  min-width: 260px;
  padding: 13px 16px;
  background: rgba(8, 4, 6, 0.85);
  border: 1px solid rgba(220, 100, 80, 0.4);
  border-radius: 4px;
  color: #fff4f0;
  font-family: 'VT323', monospace;
  font-size: 20px;
  letter-spacing: 2px;
  outline: none;
}

.esn-input-row input:focus {
  border-color: #facc15;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.35);
}

.btn-redeem-esn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 1px solid #60a5fa;
  color: #ffffff;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-redeem-esn:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  transform: translateY(-1px);
}

.demo-vouchers-helper {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(14, 8, 12, 0.7);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.demo-vouchers-helper .helper-title {
  display: block;
  font-size: 11px;
  color: #a89a92;
  margin-bottom: 8px;
}

.voucher-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-btn {
  padding: 4px 10px;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 3px;
  color: #fef08a;
  font-size: 11px;
  font-family: monospace;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-btn:hover {
  background: rgba(234, 179, 8, 0.3);
  border-color: #facc15;
}

.topup-alert-box {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 13.5px;
  animation: fadeIn 0.3s ease-in-out;
}

.topup-alert-box.success {
  background: rgba(16, 52, 28, 0.85);
  border: 1px solid rgba(74, 222, 128, 0.5);
  color: #86efac;
}

.topup-alert-box.error {
  background: rgba(60, 15, 20, 0.85);
  border: 1px solid rgba(248, 113, 113, 0.5);
  color: #fca5a5;
}

/* Side Card Styles */
.side-card-header {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-badge {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 9.5px;
  letter-spacing: 1.5px;
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.35);
  padding: 2px 7px;
  border-radius: 3px;
  margin-bottom: 6px;
}

.side-card-header h4 {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.side-card-header p {
  font-size: 11.5px;
  color: #a89a92;
  margin: 0;
}

.pus-spotlight-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(8, 4, 6, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.pus-spotlight-item:hover {
  border-color: rgba(234, 179, 8, 0.4);
  background: rgba(16, 8, 12, 0.9);
}

.pus-item-name {
  font-size: 12.5px;
  color: #f7ede8;
  font-weight: 600;
}

.pus-item-price {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  color: #facc15;
}

.recent-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.recent-order-user {
  color: #c9b8b0;
  font-family: monospace;
}

.recent-order-cash {
  color: #4ade80;
  font-weight: 700;
  font-family: 'Cinzel', serif;
}

.recent-order-time {
  font-size: 10.5px;
  color: #8f7d75;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-cue span {
    animation: none !important;
  }
}

/* ==========================================================================
   AUTHENTICATION SYSTEM (ELEGANT OBSIDIAN BLACK THEME)
   ========================================================================== */

/* Register Button (Identical to Download Button Style) */
.btn-register,
.menu .btn-register {
  height: 38px !important;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #faece6 !important;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(180deg, #7c121d, #3c060c);
  clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%);
  box-shadow: inset 0 0 0 1px #d68f8a, 0 3px 12px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease, filter 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-register:hover,
.menu .btn-register:hover {
  filter: brightness(1.3);
  transform: translateY(-2px);
}

.navbar.navbar--scrolled .btn-register {
  height: 34px !important;
}

/* Logged-In User Profile Badge in Navbar */
.auth-user-badge {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 14px;
  background: #0d0d10;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.8);
  transition: all 0.2s ease;
  user-select: none;
}

.auth-user-info:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: #141418;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.9);
}

.auth-user-nation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
}

.auth-user-nation.nation-karus {
  background: radial-gradient(circle, #7f1d1d, #450a0a);
  border: 1px solid #ef4444;
  color: #fca5a5;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.auth-user-nation.nation-elmorad {
  background: radial-gradient(circle, #0c4a6e, #082f49);
  border: 1px solid #38bdf8;
  color: #bae6fd;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.auth-user-nation.nation-none {
  background: #27272a;
  border: 1px solid #71717a;
  color: #d4d4d8;
}

.auth-user-name {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-user-kc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 700;
  color: #fbbf24;
  font-family: monospace;
}

.auth-user-caret {
  font-size: 9px;
  color: #a1a1aa;
  transition: transform 0.2s ease;
}

.auth-user-badge.dropdown-open .auth-user-caret {
  transform: rotate(180deg);
}

/* User Profile Dropdown */
.auth-user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 230px;
  background: #0c0c0f;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.98);
  padding: 14px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-user-badge.dropdown-open .auth-user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-user-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.dropdown-user-header .role-tag {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #a1a1aa;
  font-weight: 700;
  margin-bottom: 4px;
}

.dropdown-user-header .kc-balance {
  font-size: 14px;
  font-weight: 700;
  color: #fbbf24;
  font-family: 'Cinzel', serif;
}

.dropdown-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #eee;
  text-decoration: none;
  font-size: 11.5px;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropdown-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateX(3px);
}

.dropdown-menu-logout {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}

.dropdown-menu-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fee2e2;
}

/* ==========================================================================
   AUTH MODAL DIALOG (ELEGANT OBSIDIAN BLACK THEME)
   ========================================================================== */

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
  pointer-events: none;
}

.auth-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.auth-modal__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgba(5, 2, 4, 0.55) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.45s ease;
}

.auth-modal__box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  max-height: 100vh;
  background: 
    radial-gradient(circle at 100% 0%, rgba(159, 18, 57, 0.28) 0%, transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(136, 19, 55, 0.2) 0%, transparent 55%),
    linear-gradient(180deg, #13090e 0%, #070305 100%);
  border: none;
  border-left: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: 24px 0 0 24px;
  box-shadow: 
    -24px 0 70px rgba(0, 0, 0, 0.95),
    -1px 0 0 rgba(225, 29, 72, 0.3),
    inset 1px 0 25px rgba(225, 29, 72, 0.08);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.48s ease;
  will-change: transform;
}

.auth-modal.active .auth-modal__box {
  transform: translateX(0);
}

.auth-modal__box::-webkit-scrollbar {
  width: 5px;
}

.auth-modal__box::-webkit-scrollbar-track {
  background: #080305;
}

.auth-modal__box::-webkit-scrollbar-thumb {
  background: rgba(180, 40, 50, 0.35);
  border-radius: 3px;
}

.auth-modal__box::-webkit-scrollbar-thumb:hover {
  background: rgba(220, 50, 60, 0.6);
}

.auth-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(124, 18, 29, 0.2);
  border: 1px solid rgba(214, 143, 138, 0.32);
  color: #e5989b;
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.auth-modal__close:hover {
  background: linear-gradient(180deg, #7c121d, #3c060c);
  border-color: #fca5a5;
  color: #fff;
  transform: rotate(90deg);
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.5);
}

/* Modal Tab Bar */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid rgba(225, 29, 72, 0.22);
  background: #090306;
  padding-right: 54px;
  position: relative;
}

.auth-tab {
  flex: 1;
  padding: 16px 12px;
  text-align: center;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #a8928c;
  font-family: 'Cinzel', serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  position: relative;
}

.auth-tab::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f43f5e, #fb7185, transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.auth-tab:hover {
  color: #faede6;
  background: rgba(159, 18, 57, 0.12);
}

.auth-tab.active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(159, 18, 57, 0.28) 0%, rgba(18, 5, 10, 0.45) 100%);
  border-bottom-color: #f43f5e;
  text-shadow: 0 0 14px rgba(244, 63, 94, 0.7);
}

.auth-tab.active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Modal Panels with Smooth Directional Transition & Fade */
.auth-panel {
  display: none;
  opacity: 0;
  padding: 24px 28px 28px;
  flex-direction: column;
  gap: 14px;
  will-change: transform, opacity, filter;
}

.auth-panel.active {
  display: flex;
  animation: authSlideFromRight 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-panel.active.slide-from-left {
  animation: authSlideFromLeft 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-panel.active.slide-from-right {
  animation: authSlideFromRight 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes authSlideFromRight {
  0% {
    opacity: 0;
    transform: translateX(26px) scale(0.985);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes authSlideFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-26px) scale(0.985);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

.auth-intro {
  text-align: center;
  margin-bottom: 2px;
}

.auth-intro h3 {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  font-weight: 700;
  color: #faede6;
  letter-spacing: 2px;
  margin: 0 0 4px;
  text-shadow: 0 0 18px rgba(180, 20, 30, 0.5), 0 2px 10px rgba(0, 0, 0, 0.9);
}

.auth-intro p {
  font-size: 11.5px;
  color: #bfa59d;
  margin: 0;
  line-height: 1.4;
}

/* Form Groups */
.auth-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.auth-label {
  font-family: 'Cinzel', serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #d1b8b0;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

.auth-label span.req {
  color: #ef4444;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 14px;
  background: rgba(16, 7, 10, 0.88);
  border: 1px solid rgba(214, 143, 138, 0.22);
  border-radius: 6px;
  color: #faede6;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7);
}

.auth-input:focus {
  outline: none;
  border-color: #b8333e;
  background: #16080c;
  box-shadow: 0 0 16px rgba(184, 51, 62, 0.3), inset 0 0 8px rgba(184, 51, 62, 0.15);
}

.auth-input::placeholder {
  color: #7d6560;
  font-size: 12px;
}

.auth-toggle-pass {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #9c847e;
  font-size: 15px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
  line-height: 1;
}

.auth-toggle-pass:hover {
  color: #faede6;
}

/* Status Notifications */
.auth-status {
  display: none;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 11.5px;
  line-height: 1.4;
  animation: authFadeIn 0.2s ease;
}

.auth-status.active {
  display: block;
}

.auth-status.error {
  background: #140507;
  border: 1px solid #7f1d1d;
  color: #fca5a5;
}

.auth-status.success {
  background: #05140a;
  border: 1px solid #14532d;
  color: #86efac;
}

/* Submit Action Button (Luxury Crimson Maroon) */
.btn-auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  background: linear-gradient(180deg, #7c121d 0%, #3c060c 100%);
  border: 1px solid #d68f8a;
  border-radius: 6px;
  color: #faede6;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 
    0 4px 18px rgba(0, 0, 0, 0.8),
    inset 0 0 12px rgba(220, 25, 40, 0.35);
  transition: all 0.25s ease;
}

.btn-auth-submit:hover {
  background: linear-gradient(180deg, #991b28 0%, #4a070f 100%);
  border-color: #fca5a5;
  transform: translateY(-2px);
  box-shadow: 
    0 6px 24px rgba(180, 20, 30, 0.55),
    inset 0 0 16px rgba(255, 100, 110, 0.4);
}

.btn-auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.5);
}

/* Footer Link Switcher */
.auth-footer {
  text-align: center;
  font-size: 11.5px;
  color: #9c847e;
  margin-top: 2px;
}

.auth-footer a {
  color: #e5989b;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.auth-footer a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(229, 152, 155, 0.8);
}

@media (max-width: 650px) {
  .btn-register {
    padding: 0 14px;
    height: 32px;
    font-size: 10px;
  }
  .auth-modal__box {
    max-width: 100vw;
    border-radius: 0;
    border-left: none;
  }
  .auth-panel {
    padding: 20px 18px;
  }
}

/* Bottom-Right Corner Emblem (logo2.png) on Home Section */
.corner-logo-wrap {
  position: absolute;
  right: clamp(18px, 3.5vw, 44px);
  bottom: clamp(18px, 3.5vh, 40px);
  z-index: 10;
  pointer-events: auto;
  user-select: none;
  animation: cornerLogoFloat 6s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.corner-logo {
  display: block;
  width: clamp(110px, 11.5vw, 160px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 16px rgba(185, 28, 28, 0.35));
  transition: filter 0.35s ease, transform 0.35s ease;
}

.corner-logo-wrap:hover {
  transform: translateY(-5px) scale(1.05);
}

.corner-logo-wrap:hover .corner-logo {
  filter: drop-shadow(0 14px 35px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 24px rgba(225, 29, 72, 0.65));
}

@keyframes cornerLogoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 768px) {
  .corner-logo-wrap {
    right: 14px;
    bottom: 14px;
    opacity: 0.9;
  }
  .corner-logo {
    width: clamp(75px, 18vw, 105px);
  }
}

/* ==========================================================================
   SITE FOOTER (DARK FANTASY MEDIEVAL AESTHETICS)
   ========================================================================== */

.site-footer {
  position: relative;
  background: radial-gradient(ellipse at 50% 0%, #1e050b 0%, #090407 65%, #050204 100%);
  border-top: 1px solid rgba(225, 29, 72, 0.28);
  box-shadow: 0 -15px 45px rgba(0, 0, 0, 0.9);
  padding: 65px 24px 45px;
  text-align: center;
  color: #dfd6ce;
  overflow: hidden;
  margin-top: auto;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #be123c 25%, #f43f5e 50%, #be123c 75%, transparent);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.7);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 155px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.85));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 16px rgba(225, 29, 72, 0.4));
}

.footer-tagline {
  margin: 0;
  font-size: 11px;
  letter-spacing: 4px;
  color: #9e8d85;
  font-weight: 500;
}

.footer-divider-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  color: #be123c;
}

.footer-divider-top span {
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #be123c, transparent);
}

.footer-divider-top b {
  font-size: 20px;
  text-shadow: 0 0 12px #f43f5e;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px clamp(16px, 2.8vw, 40px);
  margin-top: 4px;
}

.footer-links a {
  color: #c7b6ab;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2px;
  transition: color 0.25s ease, transform 0.25s ease, text-shadow 0.25s ease;
}

.footer-links a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(244, 63, 94, 0.85);
  transform: translateY(-2px);
}

.footer-copyright {
  margin-top: 10px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: min(720px, 100%);
}

.copyright-main {
  margin: 0 0 8px 0;
  font-size: 14px;
  letter-spacing: 3px;
  font-weight: 700;
  color: #f7e7df;
  text-shadow: 0 0 12px rgba(225, 29, 72, 0.5);
  text-transform: uppercase;
}

.copyright-main span.highlight {
  color: #f43f5e;
  font-weight: 800;
  text-shadow: 0 0 14px rgba(244, 63, 94, 0.8);
}

.copyright-sub {
  margin: 0;
  font-size: 11px;
  letter-spacing: 2.2px;
  color: #8c7b74;
}



