/* ==========================================================================
   SHAIYA HARDCORE - DARK FANTASY MMORPG THEME (64-Bit DirectX 11 C++ Server)
   ========================================================================== */

:root {
  --bg-deep: #07080b;
  --panel-bg: rgba(11, 12, 15, 0.93);
  --panel-inner: rgba(16, 17, 22, 0.95);
  --gold-light: #f0d59c;
  --gold-main: #c8a45d;
  --gold-muted: #8a6f3b;
  --gold-border: rgba(168, 134, 72, 0.38);
  --gold-border-bright: rgba(218, 180, 105, 0.72);
  --text-main: #d8d4c8;
  --text-muted: #8c887e;
  --green-bright: #4cd964;
  --green-glow: rgba(76, 217, 100, 0.25);
  --blue-accent: #4aa3ff;
  --fury-accent: #ff5858;
  --red-ban-bg: rgba(22, 42, 28, 0.45);
  --red-ban-border: rgba(76, 168, 100, 0.32);
  --red-ban-text: #a8e2b5;
  --discord-blurple: #5865f2;
  --font-serif: 'Cinzel', Georgia, serif;
  --font-editorial: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button, a, input, select, textarea {
  outline: none;
}

button:focus-visible,
a:focus-visible {
  box-shadow: 0 0 0 1px var(--gold-border-bright), 0 0 12px rgba(200, 164, 93, 0.35);
}

html, body {
  min-height: 100vh;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  overflow-x: hidden;
}

/* ==========================================================================
   BACKGROUND ARTWORK (LIGHT ICE BLUE VS FURY FIRE RED)
   ========================================================================== */
.bg-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    url('/assets/images/bg-hardcore.jpg') center top / cover no-repeat,
    #06080d;
}

.bg-side {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 55%;
  opacity: 0.35;
  filter: saturate(1.1);
}

.bg-left {
  left: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(56, 182, 255, 0.25) 0%, transparent 65%);
}

.bg-right {
  right: 0;
  background:
    radial-gradient(circle at 82% 24%, rgba(235, 48, 58, 0.25) 0%, transparent 65%);
}

.bg-moon {
  display: none;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center top, rgba(5, 6, 9, 0.18) 0%, rgba(5, 6, 9, 0.62) 72%, rgba(5, 6, 9, 0.92) 100%),
    linear-gradient(to bottom, rgba(5, 6, 9, 0.22) 0%, rgba(5, 6, 9, 0.55) 58%, rgba(5, 6, 9, 0.94) 100%);
}

#emberCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.65;
}

/* ==========================================================================
   PAGE WRAPPER & TOP NAVBAR
   ========================================================================== */
.page-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 34px 20px 40px;
}

.top-header {
  margin-bottom: 56px;
  position: relative;
}

.main-nav {
  height: 54px;
  background: linear-gradient(180deg, rgba(20, 19, 22, 0.95) 0%, rgba(11, 11, 14, 0.96) 100%);
  border: 1px solid var(--gold-border);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.85),
    inset 0 0 0 1px rgba(255, 215, 130, 0.05);
  display: grid;
  grid-template-columns: 1fr 270px 1fr;
  align-items: center;
  padding: 0 24px;
  position: relative;
}

.nav-group {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 8px;
}

.nav-left {
  justify-content: flex-end;
  padding-right: 12px;
}

.nav-right {
  justify-content: flex-start;
  padding-left: 12px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: var(--font-serif);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #b59b6d;
  text-decoration: none;
  padding: 0 12px;
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--gold-light);
  text-shadow: 0 0 10px rgba(240, 205, 130, 0.45);
}

.nav-link.active {
  color: var(--gold-light);
  background: linear-gradient(180deg, rgba(168, 134, 72, 0.08) 0%, rgba(168, 134, 72, 0.22) 100%);
  box-shadow: inset 0 0 12px rgba(200, 164, 93, 0.15);
}

.nav-diamond {
  color: #6e5832;
  font-size: 8px;
  user-select: none;
}

.brand-logo-wrap {
  position: relative;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
}

.brand-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -47%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 280px;
  pointer-events: auto;
}

.brand-logo-img {
  width: 280px;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.95));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.04);
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.98)) drop-shadow(0 0 14px rgba(235, 175, 75, 0.35));
}

/* ==========================================================================
   3-COLUMN MAIN GRID
   ========================================================================== */
.main-grid {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr) 256px;
  gap: 20px;
  align-items: start;
}

.col-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.col-center {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.page-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ==========================================================================
   PANEL BOXES
   ========================================================================== */
.panel-box {
  background: linear-gradient(180deg, rgba(16, 17, 23, 0.95) 0%, rgba(9, 10, 14, 0.97) 100%);
  border: 1px solid var(--gold-border);
  border-radius: 3px;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(240, 213, 156, 0.08),
    inset 0 0 24px rgba(0, 0, 0, 0.72);
  position: relative;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 14px 10px;
  background: linear-gradient(180deg, rgba(28, 25, 22, 0.75) 0%, rgba(12, 12, 15, 0.4) 100%);
}

.header-icon {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
}

.panel-title {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-main);
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  text-align: center;
}

.panel-divider {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, rgba(168, 134, 72, 0.15) 0%, rgba(205, 168, 96, 0.65) 50%, rgba(168, 134, 72, 0.15) 100%);
}

.divider-gem {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--gold-main);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 6px var(--gold-main);
}

.panel-body {
  padding: 16px;
}

/* ==========================================================================
   DISCORD PANEL
   ========================================================================== */
.discord-body {
  text-align: center;
  padding: 16px 14px;
}

.discord-goal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.discord-goal-label {
  font-family: var(--font-serif);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #a9a498;
  font-weight: 600;
}

.discord-goal-count {
  font-family: var(--font-serif);
  font-size: 13px;
  color: #b8b2a4;
}

.discord-goal-count strong {
  color: var(--gold-light);
  font-size: 15px;
}

.discord-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(18, 20, 28, 0.95);
  border: 1px solid rgba(114, 137, 218, 0.38);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}

.discord-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #5865f2 0%, #7d8cff 60%, #f0d59c 100%);
  border-radius: 99px;
  box-shadow: 0 0 10px rgba(88, 101, 242, 0.55);
  transition: width 0.5s ease;
}

.discord-live-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  color: #b5b0a4;
  margin-bottom: 12px;
}

.discord-count-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 12px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.online-dot {
  background: #43b581;
  box-shadow: 0 0 8px #43b581;
}

.discord-number {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.discord-label {
  font-family: var(--font-serif);
  font-size: 11px;
  color: #a9a498;
  letter-spacing: 0.04em;
}

.discord-avatars {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #14151a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-left: -6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.avatar-circle:first-child { margin-left: 0; }
.av-1 { background: linear-gradient(135deg, #6b4c2b, #2d1e10); }
.av-2 { background: linear-gradient(135deg, #2b4c6b, #102030); }
.av-3 { background: linear-gradient(135deg, #7a2828, #330d0d); }
.av-4 { background: linear-gradient(135deg, #3b6b4c, #122b1b); }
.av-5 { background: #5865f2; }
.av-6 { background: linear-gradient(135deg, #6b3b6b, #291229); }
.av-7 { background: linear-gradient(135deg, #5c5326, #24200c); }

.discord-more-pill {
  display: inline-block;
  background: #1d2028;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d6d9e0;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.btn-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  background: var(--discord-blurple);
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.35);
}

.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-1px);
}

/* ==========================================================================
   LOGIN & ACCOUNT PANEL
   ========================================================================== */
.login-body {
  text-align: center;
  padding: 20px 22px 22px;
}

.field-wrap { margin-bottom: 10px; }

.fantasy-input {
  width: 100%;
  padding: 9px 12px;
  background: #141416;
  border: 1px solid rgba(168, 134, 72, 0.36);
  border-radius: 4px;
  color: #e8e2d5;
  font-family: var(--font-sans);
  font-size: 13px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fantasy-input::placeholder { color: #6f6a61; }

.fantasy-input:focus {
  border-color: var(--gold-main);
  box-shadow: 0 0 10px rgba(200, 164, 93, 0.22);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  background: linear-gradient(180deg, #1d1a15 0%, #100e0c 100%);
  border: 1px solid rgba(186, 148, 80, 0.55);
  color: var(--gold-main);
  font-family: var(--font-serif);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 0 8px rgba(200, 164, 93, 0.08);
}

.btn-gold:hover {
  color: var(--gold-light);
  border-color: var(--gold-border-bright);
  background: linear-gradient(180deg, #2b241a 0%, #17140f 100%);
  box-shadow: 0 0 14px rgba(200, 164, 93, 0.28), inset 0 0 10px rgba(200, 164, 93, 0.15);
}

.btn-gold:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#loginSubmitBtn {
  margin-top: 6px;
  min-width: 98px;
}

.forgot-link {
  display: inline-block;
  margin-top: 12px;
  color: #3b9eff;
  font-size: 12.5px;
  text-decoration: underline;
  line-height: 1.35;
}

.forgot-link:hover { color: #6eb8ff; }

.sub-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 18px 0 16px;
}

.no-account-text {
  color: #9e9a91;
  font-size: 12.5px;
  margin-bottom: 10px;
}

.btn-create-new {
  min-width: 130px;
  padding: 9px 20px;
}

.auth-alert {
  padding: 9px 11px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 12px;
  text-align: center;
  line-height: 1.4;
}

.auth-alert.error {
  background: rgba(145, 28, 35, 0.35);
  border: 1px solid rgba(220, 65, 75, 0.55);
  color: #ff9ea4;
}

.auth-alert.success {
  background: rgba(28, 120, 56, 0.35);
  border: 1px solid rgba(76, 217, 100, 0.55);
  color: #98f5ab;
}

.hidden { display: none !important; }

.user-card { padding: 2px 0; }

.user-hero-head {
  padding: 6px 8px 12px;
  border-bottom: 1px solid rgba(186, 148, 80, 0.22);
  margin-bottom: 12px;
  text-align: center;
}

.user-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  margin-bottom: 4px;
  text-shadow: 0 0 12px rgba(200, 164, 93, 0.35);
}

.user-sub-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #8f8a7f;
}

.user-role-tag {
  font-weight: 600;
}

.user-sub-sep {
  color: #554d3d;
}

.user-uid-tag {
  color: #9e9789;
  font-weight: 600;
}

.user-balance-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(20, 22, 29, 0.92) 0%, rgba(12, 13, 18, 0.95) 100%);
  border: 1px solid rgba(168, 134, 72, 0.22);
  border-radius: 3px;
}

.balance-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: #b5afa2;
}

.balance-val {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 700;
}

.account-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.account-btn-row .btn-gold {
  padding: 8px 6px;
  font-size: 11px;
}

.gold-text { color: var(--gold-light); }
.green-text { color: var(--green-bright); }

.account-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-profile {
  width: 100%;
  border-color: rgba(218, 180, 105, 0.72);
  color: var(--gold-light);
}

.btn-logout { width: 100%; }

/* ==========================================================================
   EVENTS PANEL
   ========================================================================== */
.events-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 9px;
  background: rgba(18, 19, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 11.5px;
}

.event-name { color: #c9c4b8; font-weight: 500; }
.event-timer { color: var(--gold-main); font-size: 11px; font-weight: 600; }
.event-timer.active-ev { color: var(--green-bright); }

/* ==========================================================================
   VIDEO / TRAILER SLIDER
   ========================================================================== */
.media-box { overflow: hidden; }

.video-stage {
  position: relative;
  height: 290px;
  background:
    radial-gradient(circle at 55% 42%, rgba(45, 165, 210, 0.35) 0%, rgba(16, 52, 84, 0.65) 48%, rgba(8, 12, 20, 0.96) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.68) 0%, transparent 24%, transparent 74%, rgba(0, 0, 0, 0.82) 100%),
    radial-gradient(circle at 50% 60%, rgba(120, 220, 255, 0.24) 0%, transparent 50%);
  pointer-events: none;
}

.video-TopBar {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

.yt-channel-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, #38181c, #0f0a0c);
  border: 1px solid var(--gold-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-light);
}

.yt-main-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.yt-sub-title { font-size: 12px; color: #d0d0d0; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(220, 230, 242, 0.45);
  border: none;
  color: #10141a;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-50%) scale(1.06);
}

.arrow-prev { left: 18px; }
.arrow-next { right: 18px; }

.yt-play-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 3;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.yt-play-btn:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 16px rgba(255, 0, 0, 0.6));
}

.video-BottomBar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}

.video-quick-icons { display: flex; gap: 8px; }

.v-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(15, 17, 22, 0.72);
  color: #e0e0e0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
}

.slider-bars { display: flex; gap: 5px; align-items: center; }

.s-bar {
  width: 24px;
  height: 4px;
  background: rgba(15, 17, 22, 0.65);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}

.s-bar.active { background: rgba(240, 213, 156, 0.85); }

.yt-watch-badge {
  background: rgba(12, 13, 16, 0.82);
  padding: 6px 11px;
  border-radius: 3px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
}

/* ==========================================================================
   FEATURE HIGHLIGHT CARDS (C++ 64-BIT / DX11 / AUTO PVP)
   ========================================================================== */
.feature-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feat-card {
  background: linear-gradient(180deg, rgba(22, 23, 29, 0.9) 0%, rgba(12, 13, 17, 0.95) 100%);
  border: 1px solid rgba(168, 134, 72, 0.28);
  padding: 14px 12px;
  border-radius: 3px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.feat-card:hover {
  border-color: var(--gold-border-bright);
  transform: translateY(-2px);
}

.feat-icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.feat-card h3 {
  font-family: var(--font-serif);
  font-size: 12.5px;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.feat-card p {
  font-size: 11.5px;
  color: #a49f94;
  line-height: 1.45;
}

/* ==========================================================================
   PATCH NOTES
   ========================================================================== */
.patch-body { padding: 18px; }

.latest-update-card {
  background: linear-gradient(135deg, rgba(38, 31, 21, 0.62) 0%, rgba(18, 16, 14, 0.92) 100%);
  border: 1px solid rgba(185, 148, 86, 0.35);
  padding: 16px 20px;
  margin-bottom: 14px;
}

.latest-tag {
  font-family: var(--font-serif);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #9e8454;
  margin-bottom: 4px;
}

.latest-title {
  font-family: var(--font-editorial);
  font-size: 22px;
  font-weight: 600;
  color: #d8b56c;
  margin-bottom: 10px;
}

.latest-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.latest-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8f8a7e;
  font-size: 12px;
}

.ver-badge {
  display: inline-block;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 600;
  color: #c8a45d;
  background: rgba(24, 20, 15, 0.9);
  border: 1px solid rgba(175, 138, 72, 0.45);
  border-radius: 2px;
  white-space: nowrap;
}

.dotted-u {
  text-decoration: underline dotted rgba(180, 175, 165, 0.55);
  text-underline-offset: 3px;
}

.btn-read { padding: 6px 16px; font-size: 12px; }

.patch-list { list-style: none; }

.patch-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.patch-item:last-child { border-bottom: none; }

.patch-name {
  flex: 1;
  color: #c5bfb2;
  text-decoration: none;
  font-size: 12.5px;
  transition: color 0.15s;
}

.patch-name:hover { color: var(--gold-light); }

.patch-age {
  color: #8c877c;
  font-size: 12px;
  white-space: nowrap;
}

/* ==========================================================================
   RICH PAGES (ABOUT, EVENTS, DOWNLOADS, SUPPORT)
   ========================================================================== */
.rich-page-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-banner-card {
  background: linear-gradient(135deg, rgba(38, 31, 21, 0.65) 0%, rgba(16, 17, 22, 0.95) 100%);
  border: 1px solid rgba(186, 148, 80, 0.4);
  padding: 18px 20px;
}

.hero-banner-card h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.hero-banner-card p {
  color: #c8c3b6;
  font-size: 13px;
  line-height: 1.55;
}

.dl-actions {
  margin-top: 14px;
}

.btn-dl-main {
  padding: 11px 22px;
  font-size: 13px;
}

.detail-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-item {
  background: linear-gradient(135deg, rgba(22, 23, 30, 0.92) 0%, rgba(12, 13, 18, 0.96) 100%);
  border: 1px solid rgba(186, 148, 80, 0.26);
  border-left: 3px solid rgba(200, 164, 93, 0.65);
  border-radius: 3px;
  padding: 14px 16px;
  transition: border-color 0.2s, transform 0.15s;
}

.detail-item:hover {
  border-color: rgba(218, 180, 105, 0.48);
}

.detail-item h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 13.5px;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.detail-item p {
  color: #b4afa3;
  font-size: 12.5px;
  line-height: 1.5;
}

/* ==========================================================================
   PVP RANKINGS TABLE
   ========================================================================== */
.ranking-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.ranking-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.ranking-mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px !important;
  font-size: 11.5px !important;
  opacity: 0.78;
}

.ranking-mode-btn.active {
  opacity: 1;
  background: linear-gradient(180deg, rgba(168, 134, 72, 0.34) 0%, rgba(88, 66, 28, 0.45) 100%) !important;
  border-color: var(--gold-border-bright) !important;
  color: #fff5d6 !important;
  box-shadow: 0 0 14px rgba(200, 164, 93, 0.25);
}

.faction-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 6px 11px;
  font-size: 11px;
}

.tab-btn.active,
.sort-btn.active {
  background: linear-gradient(180deg, #3b2f1c 0%, #1f180e 100%);
  border-color: var(--gold-border-bright);
  color: #fff2cc;
  outline: none;
}

.sort-btn:focus {
  outline: none;
}

.ranking-search-wrap {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ranking-search-wrap .fantasy-input {
  width: 185px;
  padding: 6px 10px;
  text-align: left;
  font-size: 12px;
}

.ranking-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(168, 134, 72, 0.28);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.ranking-table thead th {
  background: rgba(24, 21, 17, 0.95);
  color: var(--gold-main);
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 10px;
  text-align: left;
  border-bottom: 1px solid var(--gold-border);
}

.ranking-table tbody td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #d6d1c5;
}

.ranking-table tbody tr:hover {
  background: rgba(200, 164, 93, 0.07);
}

.rank-num { font-weight: 700; color: var(--gold-light); }
.char-name-cell { font-weight: 600; color: #ffffff; }
.kills-cell { font-weight: 700; color: #ffcf6e; }

.faction-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}

.faction-light {
  background: rgba(45, 130, 220, 0.2);
  border: 1px solid rgba(74, 163, 255, 0.45);
  color: #79beff;
}

.faction-fury {
  background: rgba(210, 45, 55, 0.2);
  border: 1px solid rgba(255, 88, 88, 0.45);
  color: #ff8e8e;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
}

.status-pill.online { color: var(--green-bright); }
.status-pill.offline { color: #7e7a72; }

.table-empty {
  text-align: center;
  padding: 24px !important;
  color: #8c887e;
}

/* ==========================================================================
   RIGHT SIDEBAR: SERVER STATUS & VOTE
   ========================================================================== */
.status-body { padding: 14px; }

.online-counter-card {
  background: radial-gradient(circle at center, rgba(22, 58, 34, 0.45) 0%, rgba(12, 22, 16, 0.85) 100%);
  border: 1px solid rgba(64, 150, 86, 0.35);
  padding: 14px 12px;
  text-align: center;
  margin-bottom: 10px;
}

.online-big {
  font-size: 21px;
  font-weight: 700;
  color: var(--green-bright);
  letter-spacing: 0.1em;
  text-shadow: 0 0 12px var(--green-glow);
  margin-bottom: 6px;
}

.faction-split-row {
  font-size: 12px;
  margin-bottom: 5px;
}

.light-count { color: #7ac0ff; }
.fury-count { color: #ff8a8a; }
.split-sep { color: #5e5a52; margin: 0 6px; }

.online-time { font-size: 12px; color: #9e9a90; }
.cyan-time { color: #3bc9db; font-weight: 600; }

.server-spec-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(18, 22, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12.5px;
}

.spec-label {
  color: #b8b4aa;
  display: flex;
  align-items: center;
  gap: 7px;
}

.spec-val { font-weight: 600; }
.blue-val { color: var(--blue-accent); }
.green-val { color: var(--green-bright); }
.white-val { color: #e0dcd3; }

.server-ban-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ban-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--red-ban-bg);
  border: 1px solid var(--red-ban-border);
  color: var(--red-ban-text);
  font-size: 12px;
}

.ban-ic { color: #4cd964; font-weight: 700; }

.vote-body {
  text-align: center;
  padding: 16px 14px 18px;
}

.vote-desc {
  color: #b8b3a8;
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.vote-bonus {
  color: #9e9a90;
  font-size: 12px;
  margin-bottom: 14px;
}

.green-star { color: var(--green-bright); }

.btn-vote {
  width: 100%;
  padding: 11px 16px;
  background: linear-gradient(180deg, #348f41 0%, #24692e 100%);
  border: 1px solid #49b858;
  border-radius: 4px;
  color: #e9fcef;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: filter 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(36, 105, 46, 0.45);
}

.btn-vote:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: 28px;
  padding: 20px 24px;
  text-align: center;
}

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

.footer-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-light);
}

.footer-sub {
  font-size: 12px;
  color: #9b9588;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 12px;
}

.footer-links a {
  color: var(--gold-main);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.footer-links span { color: #5c513d; }

.footer-copy {
  font-size: 11px;
  color: #6f6a60;
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 4, 7, 0.82);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 470px;
  border: 1px solid var(--gold-border-bright);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(200, 164, 93, 0.18);
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--gold-main);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover { color: #fff; }

.modal-body { padding: 20px 24px 24px; }

.modal-sub {
  color: #a8a398;
  font-size: 12.5px;
  text-align: center;
  margin-bottom: 16px;
}

.modal-sub strong { color: var(--gold-light); }

.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-group { margin-bottom: 13px; }

.field-group label {
  display: block;
  font-family: var(--font-serif);
  font-size: 11px;
  color: var(--gold-main);
  margin-bottom: 5px;
  letter-spacing: 0.04em;
}

.field-group .fantasy-input { text-align: left; }

.field-hint {
  display: block;
  font-size: 10.5px;
  color: #7c776d;
  margin-top: 3px;
}

input[type="date"].fantasy-input { color-scheme: dark; }

.challenge-group {
  margin-top: 14px;
  padding: 12px;
  background: rgba(22, 19, 15, 0.78);
  border: 1px solid rgba(186, 148, 80, 0.35);
  border-radius: 4px;
}

.challenge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.challenge-header label { margin-bottom: 0; }

.btn-refresh-q {
  background: transparent;
  border: 1px solid rgba(186, 148, 80, 0.35);
  color: var(--gold-light);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-refresh-q:hover {
  background: rgba(200, 164, 93, 0.18);
  border-color: var(--gold-main);
}

.challenge-question-box {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  color: #ffe2a8;
  background: rgba(10, 11, 14, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 9px 11px;
  border-radius: 3px;
  margin-bottom: 8px;
  text-align: center;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-img-wrap {
  flex-shrink: 0;
  background: #10121a;
  border: 1px solid rgba(186, 148, 80, 0.42);
  border-radius: 3px;
  overflow: hidden;
  line-height: 0;
}

.captcha-svg-img {
  display: block;
  width: 190px;
  height: 52px;
}

.login-captcha-box {
  margin-bottom: 10px;
  padding: 9px;
}

.login-captcha-box .captcha-img-wrap {
  margin-bottom: 7px;
}

.login-captcha-box .captcha-svg-img {
  width: 100%;
  height: 46px;
}

.captcha-code-input {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-align: center !important;
}

.modal-actions { margin-top: 18px; }

.btn-register-submit {
  width: 100%;
  padding: 11px;
  font-size: 14px;
}

/* ==========================================================================
   USER WEB PANEL (DASHBOARD, STATS, CHARACTERS, SECURITY)
   ========================================================================== */
.dp-text {
  color: #c77dff;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(199, 125, 255, 0.35);
}

.red-text {
  color: #ff6b6b;
  font-weight: 700;
}

.btn-panel-open {
  background: linear-gradient(180deg, rgba(168, 134, 72, 0.38) 0%, rgba(82, 60, 24, 0.55) 100%) !important;
  border-color: var(--gold-border-bright) !important;
  color: #fff6dc !important;
  box-shadow: 0 0 14px rgba(200, 164, 93, 0.2), inset 0 1px 0 rgba(255, 232, 175, 0.25);
}

.panel-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.panel-hero-tag {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #c8a45d;
  font-weight: 700;
  margin-bottom: 4px;
}

.panel-hero-meta {
  font-size: 13px;
  color: #b7becf;
  margin-top: 4px;
}

.panel-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 14px 0 16px;
}

.panel-stat-card {
  background: linear-gradient(180deg, rgba(22, 24, 34, 0.92) 0%, rgba(11, 12, 18, 0.96) 100%);
  border: 1px solid rgba(200, 164, 93, 0.25);
  border-top: 2px solid rgba(200, 164, 93, 0.5);
  border-radius: 4px;
  padding: 13px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel-stat-card.stat-ap {
  border-color: rgba(245, 190, 65, 0.35);
  border-top-color: #f5be41;
}

.panel-stat-card.stat-dp {
  border-color: rgba(199, 125, 255, 0.35);
  border-top-color: #c77dff;
}

.panel-stat-card.stat-fair {
  border-color: rgba(76, 217, 100, 0.38);
  border-top-color: #4cd964;
}

.about-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #9ba3b8;
  font-weight: 700;
}

.stat-value {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 22px;
  font-weight: 800;
  color: #f2f4fa;
}

.stat-sub {
  font-size: 11px;
  color: #7c859d;
}

.panel-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 5px;
  background: rgba(8, 9, 13, 0.85);
  border: 1px solid rgba(168, 134, 72, 0.28);
  border-radius: 4px;
  margin-bottom: 16px;
}

.panel-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px !important;
  font-size: 11px !important;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #a89a7e !important;
  opacity: 0.88;
  transition: all 0.18s ease;
}

.panel-tab-btn:hover {
  color: var(--gold-light) !important;
  background: rgba(200, 164, 93, 0.08) !important;
}

.panel-tab-btn.active {
  opacity: 1;
  background: linear-gradient(180deg, rgba(168, 134, 72, 0.32) 0%, rgba(88, 66, 28, 0.42) 100%) !important;
  border-color: var(--gold-border-bright) !important;
  color: #fff5d6 !important;
  box-shadow: 0 0 14px rgba(200, 164, 93, 0.25), inset 0 1px 0 rgba(255, 232, 175, 0.25);
}

/* ==========================================================================
   AUTHENTIC SHAIYA SPRITE ICONS (PVP RANKS, CLASSES, CHAT ICONS, UI SVGS)
   ========================================================================== */
.ui-svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--gold-main);
  vertical-align: -2px;
}

.ui-svg.lg {
  width: 24px;
  height: 24px;
}

.ui-svg.cyan { color: #5fcdff; }
.ui-svg.purple { color: #c77dff; }
.ui-svg.green { color: #4cd964; }
.ui-svg.gold { color: #f5be41; }

.shaiya-rank-icon {
  display: inline-block;
  width: 32px;
  height: 16px;
  background-image: url('/assets/icons/grade2.png');
  background-repeat: no-repeat;
  background-size: 64px 512px;
  vertical-align: middle;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.85));
}

.faction-emblem-img {
  display: inline-block;
  width: 24px;
  height: 26px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.85));
  transition: transform 0.15s ease;
}

.faction-emblem-img:hover {
  transform: scale(1.14);
}

/* ==========================================================================
   LIVE SERVER TIMERS (GRB MAP 50 & OBLIVION INSULA MAP 64)
   ========================================================================== */
.timer-card {
  background: linear-gradient(180deg, rgba(20, 21, 28, 0.92) 0%, rgba(11, 12, 17, 0.96) 100%);
  border: 1px solid rgba(186, 148, 80, 0.25);
  border-left: 3px solid var(--gold-main);
  border-radius: 3px;
  padding: 10px 11px;
  margin-bottom: 9px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.timer-card:last-child {
  margin-bottom: 0;
}

.timer-card.timer-open {
  border-color: rgba(76, 217, 100, 0.55);
  border-left-color: #4cd964;
  box-shadow: 0 0 14px rgba(76, 217, 100, 0.16);
}

.timer-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
}

.timer-name {
  font-size: 11.5px;
  font-weight: 600;
  color: #e6dfd0;
}

.timer-schedule {
  font-size: 10px;
  font-weight: 600;
  color: #9e9684;
  white-space: nowrap;
}

.timer-countdown {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-light);
}

.timer-card.timer-open .timer-countdown {
  color: #5ee675;
  text-shadow: 0 0 10px rgba(76, 217, 100, 0.35);
}

/* ==========================================================================
   SUPPORT TICKET SYSTEM & STAFF ADMIN PANEL
   ========================================================================== */
.panel-hero-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-staff-entry {
  background: linear-gradient(180deg, rgba(168, 134, 72, 0.35) 0%, rgba(82, 60, 24, 0.55) 100%) !important;
  border-color: var(--gold-border-bright) !important;
  color: #fff6dc !important;
}

.ticket-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ticket-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ticket-tab-btn,
.admin-filter-btn {
  padding: 7px 12px !important;
  font-size: 11px !important;
  opacity: 0.78;
}

.ticket-tab-btn.active,
.admin-filter-btn.active {
  opacity: 1;
  background: linear-gradient(180deg, rgba(168, 134, 72, 0.32) 0%, rgba(88, 66, 28, 0.42) 100%) !important;
  border-color: var(--gold-border-bright) !important;
  color: #fff5d6 !important;
}

.btn-sm-refresh {
  padding: 6px 11px !important;
  font-size: 11px !important;
}

.fantasy-select {
  text-align: left !important;
  cursor: pointer;
}

.fantasy-select-sm {
  width: auto !important;
  padding: 5px 10px !important;
  font-size: 11px !important;
  text-align: left !important;
}

.fantasy-textarea {
  text-align: left !important;
  resize: vertical;
  min-height: 86px;
  line-height: 1.5;
  font-family: var(--font-sans);
}

.ticket-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-family: var(--font-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ticket-status-open {
  background: rgba(245, 190, 65, 0.16);
  border: 1px solid rgba(245, 190, 65, 0.55);
  color: #ffd97d;
}

.ticket-status-answered {
  background: rgba(76, 217, 100, 0.16);
  border: 1px solid rgba(76, 217, 100, 0.55);
  color: #8cf0a5;
}

.ticket-status-closed {
  background: rgba(130, 135, 150, 0.16);
  border: 1px solid rgba(130, 135, 150, 0.4);
  color: #a6adbe;
}

.ticket-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: rgba(16, 18, 24, 0.92);
  border: 1px solid rgba(186, 148, 80, 0.3);
  border-radius: 4px;
  margin-bottom: 12px;
}

.ticket-detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.ticket-detail-meta strong {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--gold-light);
}

.ticket-player-tag {
  font-size: 11.5px;
  color: #9ba3b8;
}

.admin-status-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-ticket-close {
  padding: 6px 10px !important;
  font-size: 11px !important;
  border-color: rgba(220, 80, 80, 0.5) !important;
  color: #ff9ea4 !important;
}

.ticket-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding: 12px;
  background: rgba(9, 10, 14, 0.85);
  border: 1px solid rgba(168, 134, 72, 0.22);
  border-radius: 4px;
  margin-bottom: 12px;
}

.ticket-msg {
  padding: 11px 13px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ticket-msg-player {
  background: rgba(20, 23, 32, 0.92);
  border-left: 3px solid #4aa3ff;
}

.ticket-msg-staff {
  background: linear-gradient(135deg, rgba(42, 34, 20, 0.82) 0%, rgba(18, 16, 14, 0.95) 100%);
  border-left: 3px solid #f5be41;
}

.ticket-msg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11.5px;
}

.ticket-msg-sender {
  font-weight: 700;
  color: #e6dfd0;
}

.ticket-msg-staff .ticket-msg-sender {
  color: #ffd97d;
}

.ticket-msg-time {
  font-size: 10.5px;
  color: #848996;
}

.ticket-msg-body {
  font-size: 13px;
  color: #d6d2c8;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
}

.ticket-reply-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-reply-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-close-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #b4afa3;
  cursor: pointer;
}

/* ==========================================================================
   STRIPE DONATIONS & LEGAL LINKS
   ========================================================================== */
.inline-gold-link {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inline-gold-link:hover {
  color: #fff3cc;
}

.donate-currency-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.donate-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px !important;
  font-size: 11.5px !important;
  opacity: 0.78;
}

.donate-tab-btn.active {
  opacity: 1;
  background: linear-gradient(180deg, rgba(168, 134, 72, 0.34) 0%, rgba(88, 66, 28, 0.45) 100%) !important;
  border-color: var(--gold-border-bright) !important;
  color: #fff5d6 !important;
  box-shadow: 0 0 14px rgba(200, 164, 93, 0.25);
}

.donate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.donate-card {
  background: linear-gradient(180deg, rgba(22, 23, 31, 0.94) 0%, rgba(11, 12, 17, 0.97) 100%);
  border: 1px solid rgba(186, 148, 80, 0.3);
  border-top: 2px solid var(--gold-main);
  border-radius: 5px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.donate-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-border-bright);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.75);
}

.donate-card.donate-card-dp {
  border-top-color: #c77dff;
}

.donate-card.donate-card-bonus {
  border-color: rgba(245, 190, 65, 0.65);
  box-shadow: 0 0 22px rgba(245, 190, 65, 0.14);
}

.donate-badge {
  font-family: var(--font-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  background: rgba(200, 164, 93, 0.14);
  border: 1px solid rgba(200, 164, 93, 0.4);
  color: var(--gold-light);
}

.donate-badge.badge-bonus {
  background: rgba(76, 217, 100, 0.18);
  border-color: rgba(76, 217, 100, 0.6);
  color: #8cf0a5;
}

.donate-price {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}

.donate-points {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
}

.donate-breakdown {
  font-size: 11.5px;
  color: #9ba3b8;
  min-height: 30px;
  display: flex;
  align-items: center;
}

.donate-card .btn-gold {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font-size: 12px;
}

.donate-history-title {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold-main);
  margin: 16px 0 8px;
}

/* ==========================================================================
   OPEN BETA LAUNCH COUNTDOWN HERO (HOME PAGE)
   ========================================================================== */
.beta-hero-box {
  overflow: hidden;
}

.beta-hero-stage {
  position: relative;
  padding: 30px 24px 26px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 25%, rgba(56, 182, 255, 0.22) 0%, transparent 52%),
    radial-gradient(circle at 82% 25%, rgba(235, 58, 48, 0.22) 0%, transparent 52%),
    linear-gradient(180deg, rgba(16, 18, 26, 0.92) 0%, rgba(9, 10, 14, 0.98) 100%);
}

.beta-pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 99px;
  background: rgba(200, 164, 93, 0.14);
  border: 1px solid rgba(218, 180, 105, 0.55);
  font-family: var(--font-serif);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.beta-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff4d2;
  text-shadow: 0 2px 18px rgba(240, 195, 95, 0.35);
  margin-bottom: 6px;
}

.beta-subtitle {
  font-size: 12.5px;
  color: #b5afa2;
  margin-bottom: 20px;
}

.beta-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 22px;
}

.beta-unit {
  background: linear-gradient(180deg, rgba(24, 25, 34, 0.95) 0%, rgba(11, 12, 17, 0.98) 100%);
  border: 1px solid rgba(200, 164, 93, 0.38);
  border-top: 2px solid var(--gold-light);
  border-radius: 5px;
  padding: 14px 8px 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 232, 175, 0.14);
}

.beta-num {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: var(--gold-light);
  text-shadow: 0 0 14px rgba(240, 200, 105, 0.4);
}

.beta-label {
  font-family: var(--font-serif);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: #8f8a7f;
  font-weight: 700;
}

.beta-live-banner {
  display: inline-block;
  padding: 12px 24px;
  margin-bottom: 20px;
  background: rgba(42, 140, 65, 0.25);
  border: 1px solid #4cd964;
  border-radius: 4px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #8cf0a5;
  box-shadow: 0 0 22px rgba(76, 217, 100, 0.3);
}

.beta-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.beta-cta-row a {
  text-decoration: none;
  padding: 9px 18px;
  font-size: 12px;
}

.beta-cta-primary {
  background: linear-gradient(180deg, rgba(168, 134, 72, 0.4) 0%, rgba(82, 60, 24, 0.58) 100%) !important;
  border-color: var(--gold-border-bright) !important;
  color: #fff6dc !important;
}

.shaiya-class-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-image: url('/assets/icons/classicon.png');
  background-repeat: no-repeat;
  background-size: 64px 128px;
  vertical-align: middle;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(200, 164, 93, 0.48);
}

.shaiya-class-icon.lg {
  transform: scale(1.15);
  margin: 0 2px;
}

.shaiya-chat-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url('/assets/icons/chat_emojis.png');
  background-repeat: no-repeat;
  background-size: 144px 36px;
  vertical-align: middle;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.75));
}

.char-rank-wrap,
.class-icon-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.podium-rank {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.podium-1 { color: #ffd75e; }
.podium-2 { color: #d8e2ee; }
.podium-3 { color: #e69d67; }

.btn-unstuck {
  padding: 4px 10px !important;
  font-size: 11px !important;
}

.panel-footnote {
  margin-top: 10px;
  font-size: 12px;
  color: #9ba3b8;
}

.panel-security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.panel-profile-summary {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #d6dce8;
}

/* ==========================================================================
   VOTE FOR AP (XTREMETOP100 & ARENA-TOP100)
   ========================================================================== */
.vote-double-banner {
  margin-bottom: 14px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(42, 138, 62, 0.28), rgba(200, 164, 93, 0.24));
  border: 1px solid rgba(112, 224, 134, 0.55);
  border-radius: 4px;
  color: #dfffe6;
  font-size: 13px;
  text-align: center;
}

.vote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.vote-card {
  background: rgba(12, 15, 24, 0.88);
  border: 1px solid rgba(200, 164, 93, 0.3);
  border-radius: 5px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vote-card.vote-state-pending {
  border-color: rgba(245, 190, 65, 0.65);
  box-shadow: 0 0 18px rgba(245, 190, 65, 0.14);
}

.vote-card.vote-state-cooldown {
  opacity: 0.82;
}

.vote-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.vote-site-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-light);
  margin: 0 0 4px;
}

.vote-site-desc {
  font-size: 12px;
  color: #9ba3b8;
  margin: 0;
  line-height: 1.4;
}

.vote-reward-badge {
  flex-shrink: 0;
  padding: 4px 9px;
  background: rgba(245, 190, 65, 0.14);
  border: 1px solid rgba(245, 190, 65, 0.5);
  border-radius: 3px;
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  color: #ffd97d;
}

.vote-card-actions .btn-vote,
.vote-card-actions .btn-gold {
  width: 100%;
  padding: 10px 14px;
  font-size: 13px;
}

.vote-btn-claim {
  background: linear-gradient(180deg, #d8a33a 0%, #8f6215 100%) !important;
  border-color: #ffe08a !important;
  color: #fffdf5 !important;
  box-shadow: 0 0 16px rgba(245, 190, 65, 0.45);
}

.vote-btn-wait {
  opacity: 0.78;
  cursor: wait !important;
}

.vote-btn-cooldown {
  opacity: 0.65;
  cursor: not-allowed !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1060px) {
  .panel-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-tabs { grid-template-columns: repeat(2, 1fr); }
  .panel-security-grid { grid-template-columns: 1fr; }
  .about-feature-grid { grid-template-columns: 1fr; }
  .donate-currency-tabs { grid-template-columns: 1fr; }
  .donate-grid { grid-template-columns: 1fr; }
  .vote-grid { grid-template-columns: 1fr; }
  .main-grid { grid-template-columns: 1fr; }
  .feature-grid-3 { grid-template-columns: 1fr; }
  .field-row-2 { grid-template-columns: 1fr; }
  .main-nav {
    height: auto;
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 10px;
  }
  .brand-logo-wrap { height: 110px; order: -1; }
  .brand-logo {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }
  .nav-group {
    width: 100%;
    justify-content: center;
    padding: 0;
    flex-wrap: wrap;
  }
}
