/* ═══════════════════════════════════════════════
   VALYRIA ONLINE — Dark Retro Fantasy UI System
   ═══════════════════════════════════════════════ */
:root {
    /* ── Backgrounds (deep dark red-black) ── */
    --bg-primary:    #110810;
    --bg-secondary:  #1a0e12;
    --bg-dark:       #0a0608;
    --bg-color:      #0a0608;
    --bg-surface:    #110810;
    --bg-elevated:   #1a0e12;
    --bg-highlight:  rgba(139, 26, 26, 0.10);

    /* ── Gold / Oxidized ── */
    --gold-primary:  #c9a227;
    --gold-light:    #e8c547;
    --gold-dark:     #8b6914;
    --gold-border:   rgba(201, 162, 39, 0.35);

    /* Keep legacy names pointing to gold */
    --primary-color:    #c9a227;
    --primary-hover:    #e8c547;
    --secondary-color:  #a8892a;
    --secondary-hover:  #e8c547;
    --accent-color:     #c9a227;

    /* ── Paper → Dark Stone Surface ── */
    --paper-bg:      #1a0e12;
    --paper-shadow:  #0d080b;
    --paper-border:  #2d1a1a;

    /* ── Red Accent ── */
    --red-dark:   #8b1a1a;
    --red-bright: #c0392b;
    --red-glow:   rgba(139, 26, 26, 0.4);

    /* ── Text (parchment on dark) ── */
    --text-primary:   #c8b89a;
    --text-secondary: #a09080;
    --text-inverse:   #ede0ca;
    --text-muted:     #7a6a5a;

    /* ── Status ── */
    --success: #27ae60;
    --warning: #e6a23c;
    --error:   #c0392b;
    --info:    #8b6914;

    /* ── Borders ── */
    --border-thin:  #2d1a1a;
    --border-thick: #4d2a2a;
    --border-gold:  rgba(201, 162, 39, 0.35);
    --border-color: #2d1a1a;

    /* ── Shadows ── */
    --shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.6);
    --shadow-md:    0 4px 16px rgba(0, 0, 0, 0.65);
    --shadow-lg:    0 8px 28px rgba(0, 0, 0, 0.7);
    --shadow-inner: inset 0 0 10px rgba(0, 0, 0, 0.4);
    --shadow-gold:  0 0 18px rgba(201, 162, 39, 0.25);

    /* ── Gradients ── */
    --gradient-primary:   linear-gradient(180deg, #e8c547, #c9a227);
    --gradient-secondary: linear-gradient(180deg, #c9a227, #8b6914);
    --gradient-accent:    linear-gradient(135deg, #e8c547, #c9a227);
    --gradient-dark:      linear-gradient(135deg, #1a0e12, #0a0608);
    --gradient-gold:      linear-gradient(180deg, #e8c547, #c9a227, #8b6914);

    /* ── Typography ── */
    --font-heading: 'Cinzel', Georgia, serif;
    --font-body:    'Lora', Georgia, 'Times New Roman', serif;
    --font-ui:      'Crimson Pro', Georgia, serif;
    --font-mono:    'Share Tech Mono', 'Courier New', monospace;

    /* ── Spacing (8px grid) ── */
    --spacing-xs:  8px;
    --spacing-sm:  12px;
    --spacing-md:  16px;
    --spacing-lg:  24px;
    --spacing-xl:  32px;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* ── Radius ── */
    --radius-sm:   3px;
    --radius-md:   5px;
    --radius-lg:   8px;
    --radius-xl:   1rem;
    --radius-full: 9999px;

    /* ── Transitions ── */
    --transition-fast:   0.15s ease;
    --transition-smooth: 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
    --transition-slow:   0.5s ease;

    /* ── Legacy compatibility ── */
    --primary:    var(--bg-surface);
    --secondary:  var(--bg-color);
    --third:      #3d2020;
    --border:     var(--gold-dark);
    --font-color: var(--text-primary);
    --anchor:     var(--gold-primary);
    --anchor-hover: var(--gold-light);

    /* Container */
    --container-width: 1600px;

    /* DARKREST compat */
    --dark-bg:        var(--bg-dark);
    --dark-secondary: var(--bg-secondary);
    --dark-accent:    var(--bg-primary);

    /* ── rv-* shorthand aliases (used by downloads.php and newer pages) ── */
    --vy-bg:           #0a0608;
    --vy-bg-2:         #110810;
    --vy-bg-3:         #1a0e12;
    --vy-bg-card:      #150c10;
    --vy-bg-header:    #080406;
    --vy-red:          #8b1a1a;
    --vy-red-2:        #c0392b;
    --vy-red-3:        #e74c3c;
    --vy-gold:         #8b6914;
    --vy-gold-2:       #c9a227;
    --vy-gold-3:       #f0c040;
    --vy-text:         #c8b89a;
    --vy-text-2:       #9a8a7a;
    --vy-text-3:       #6e5a4a;
    --vy-border:       #2d1a1a;
    --vy-border-2:     #3d2a2a;
    --vy-border-gold:  rgba(139, 105, 20, 0.4);
    --vy-font-display: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
    --vy-font-heading: 'Cinzel', Georgia, serif;
    --vy-font-body:    'Lora', serif;
    --vy-font-ui:      'Crimson Pro', serif;
    --vy-font-mono:    'Share Tech Mono', monospace;
}

.discord-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.discord-icon {
  font-size: 36px;
  margin-bottom: 15px;
  color: #7289DA;
}

.discord-title {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.discord-text {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 15px;
}

.discord-button {
  background-color: #7289DA;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  font-size: 14px;
}

.stats-widget {
  padding: 20px;
  text-align: center;
}

.stats-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.stats-label {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.page-item {
  margin: 0 5px;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background-color: var(--dark-accent);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s;
}

.page-link.active {
  background-color: var(--accent-color);
  color: var(--text-primary);
}

.page-link:hover:not(.active) {
  background-color: #333;
}


/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    background-color: #0d0608;
    background-image:
        radial-gradient(ellipse at center, transparent 35%, rgba(4,1,2,0.82) 100%),
        linear-gradient(rgba(8,3,5,0.70), rgba(8,3,5,0.70)),
        url('../img/backgroundred2.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    font-weight: 400;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
    font-size: 15px;
    letter-spacing: 0.01em;
}

/* iOS Safari: fixed-attachment background glitches on scroll — use scroll */
@media (max-width: 768px) {
    body { background-attachment: scroll; }
}

/* ::before and ::after not used for background layers */
body::before { display: none; }
body::after  { display: none; }

/* Typography — medieval serif headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--gold-primary);
}

/* On paper/parchment surfaces override heading color */
.left_box h1, .left_box h2, .left_box h3, .left_box h4,
.right_box h1, .right_box h2, .right_box h3, .right_box h4,
.center_box h1, .center_box h2, .center_box h3, .center_box h4 {
    color: var(--text-primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
    color: var(--gold-dark);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

a:hover {
    color: var(--gold-primary);
}

/* Container — zero padding so header aligns with container_main */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0;
}

.main {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Navigation — sticky dark glass navbar, full-bleed */
.main-header {
    background: rgba(10, 6, 8, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid #2d1a1a;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(139, 26, 26, 0.15);
    position: sticky;
    top: 0;
    /* break out of .main's max-width to span full viewport */
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    z-index: 1000;
    margin-bottom: 0;
    box-sizing: border-box;
}

/* Override container max-width inside header so content spans full viewport */
.main-header .container {
    max-width: 100%;
    width: 100%;
    padding: 0;
}

.main-header .header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    height: 64px;
    width: 100%;
    padding: 0 24px;
    position: relative;
}

/* Logo never shrinks */
.vly-nav-logo-link { flex-shrink: 0; }

/* Login area fills space to push status to center */
.header-login-area  { flex: 1; justify-content: flex-start; }

/* Status bar stays compact in the middle */
.server-status-bar  { flex-shrink: 0; }

/* Right actions pushed to the end */
.header-actions     { flex: 1; justify-content: flex-end; }

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold-light);
    padding-left: 8px;   /* small inset so logo isn't at border edge */
    display: flex;
    align-items: center;
}

.site-logo {
  max-height: 52px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.4));
}

/* Logo banner — hidden; logo is now in the sticky navbar */
.logo-banner {
    display: none;
}

@media (max-width: 768px) {
  .site-logo {
    max-height: 48px;
  }
}

/* Server Status Bar — centered between login area and action links */
.server-status-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(6, 14, 26, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.30);
  border-radius: 3px;
  padding: 0 14px;
  height: 32px;
  justify-content: center;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  flex: 1;
  justify-content: center;
  height: 100%;
}

.status-item:first-child {
  padding-left: 0;
}

.status-item:last-child {
  padding-right: 0;
}

.status-icon {
  color: var(--gold-primary);
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  display: inline-block;
}

.status-value {
  color: #ffffff;
  font-weight: 600;
  font-size: 12px !important;
  line-height: 1.2;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.status-label {
  color: #ffffff;
  font-size: 11px !important;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  opacity: 0.75;
}

.server-status-bar .status-item:first-child .status-label {
  color: #43b581;
  opacity: 1;
  font-size: 13px !important;
}

.launch-card .launch-count {
  color: var(--gold-primary);
  letter-spacing: 0.5px;
}

.status-divider {
  width: 1px;
  height: 60%;
  background: rgba(212, 175, 55, 0.35);
  margin: 0 8px;
  flex-shrink: 0;
  align-self: center;
}

@media (max-width: 1024px) {
  .server-status-bar {
    padding: 10px 16px;
    margin: 0 15px;
    max-width: 500px;
  }
  
  .status-item {
    padding: 0 14px;
    gap: 10px;
  }
  
  .status-icon {
    font-size: 20px;
  }
  
  .status-value {
    font-size: 13px;
  }
  
  .status-label {
    font-size: 13px !important;
  }
  
  .status-divider {
    height: 30px;
    margin: 0 6px;
  }
}

/* Hide header status bar on mobile, show sidebar widget instead */
@media (max-width: 768px) {
  .main-header .header-content {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 15px;
  }
  
  .server-status-bar {
    display: none;
  }
  
  /* Show sidebar widget on mobile */
  .server-status-widget-mobile {
    display: block !important;
  }
}

@media (max-width: 480px) {
  .server-status-bar {
    display: none;
  }
  
  .server-status-widget-mobile {
    display: block !important;
  }
}

/* Hide sidebar widget on desktop */
@media (min-width: 769px) {
  .server-status-widget-mobile {
    display: none !important;
  }
}

.main-nav {
    display: flex;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    display: block;
    padding: 0 15px;
    height: 70px;
    line-height: 70px;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
	position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px 3px 0 0;
}

.nav-links a i {
    margin-right: 6px;
    color: var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-thin);
    border-top: 2px solid var(--primary-color);
    width: 220px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 5px 0;
}

.nav-links > li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    height: auto;
    line-height: 1.4;
    color: var(--text-primary);
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--border-thin);
    position: relative;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: var(--bg-highlight);
    color: var(--primary-color);
    padding-left: 25px;
}

.new-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    margin-left: 5px;
    vertical-align: middle;
}

/* ── Header inline login area (left) ── */
.header-login-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.header-login-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-field {
    height: 32px;
    width: 130px;
    padding: 0 10px;
    background: rgba(0, 0, 0, 0.40);
    border: 1px solid rgba(212, 175, 55, 0.30);
    border-radius: 3px;
    color: #fff;
    font-family: var(--font-ui);
    font-size: 12px;
    outline: none;
    transition: border-color 0.15s ease;
}

.header-field::placeholder {
    color: rgba(255, 255, 255, 0.50);
}

.header-field:focus {
    border-color: rgba(212, 175, 55, 0.70);
    background: rgba(0, 0, 0, 0.55);
}

.header-login-btn {
    height: 32px;
    padding: 0 18px;
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-primary) 60%, var(--gold-dark) 100%);
    color: #1a0f00;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: filter 0.15s ease;
    white-space: nowrap;
}

.header-login-btn:hover {
    filter: brightness(1.12);
}

.header-lost-link {
    color: rgba(255, 255, 255, 0.65);
    font-family: var(--font-ui);
    font-size: 12px;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.header-lost-link:hover {
    color: var(--gold-light);
}

/* ── Header action links (right) ── */
.header-actions {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.header-action-link {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 3px;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
    text-decoration: none;
}

.header-action-link i {
    font-size: 13px;
}

.header-action-link:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.55);
    color: #fff;
}

.header-action-link.discord i  { color: #7289da; }
.header-action-link.instagram i { color: #bf9052; }
.header-action-link.twitch i   { color: #9146ff; }

/* legacy — kept for compatibility */
.auth-buttons {
    display: flex;
    gap: 8px;
}

/* Custom Buttons */
.btn {
    display: inline-block;
    padding: 7px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn:hover::after {
    transform: translateX(100%);
}

.btn i {
    margin-right: 5px;
}

.btn-primary {
    background: linear-gradient(180deg, var(--gold-light), var(--gold-border));
    color: #2B2B2B;
    border: 2px solid var(--gold-dark);
    font-family: var(--font-ui);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #2B2B2B;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--gold-light);
    border: 2px solid var(--gold-border);
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--gold-light);
    color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-outline:active {
    transform: translateY(0);
}

/* Banner */
.banner {
    background: url("../img/header.png");
    height: 240px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 0;
    border: none;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0.3), rgba(18, 18, 18, 0.7));
    z-index: 1;
}

/* Content Layout */
.leftPane {
    width: 70%;
    padding-right: 20px;
    background: transparent;
}

.rightPane {
    width: 29%;
    background: transparent;
}

/* Posts and Wells */
.well {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
}

.postHolder {
    margin-bottom: 20px;
}

.header {
    padding: 10px 16px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gold-dark);
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--gradient-primary);
}

.body {
    background-color: var(--paper-bg);
    padding: 16px 20px;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
}

/* Top Pane */
.topPane {
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.countdown-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.countdown-label {
    font-weight: 600;
    color: var(--text-secondary);
}

#countDownTimer {
    line-height: 1;
    padding: 10px 15px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-inner);
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.searchForm {
    width: 100%;
    position: relative;
}

.searchForm input {
    width: 100%;
    height: 40px;
    border: 1px solid var(--border-thin);
    background-color: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 0.95rem;
    padding: 0 45px 0 15px;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.searchForm input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    outline: none;
}

.search-button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.loginContainer {
    display: none;
    position: absolute;
    right: 0;
    top: 70px;
    width: 300px;
    z-index: 1000;
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 2px solid var(--gold-border);
    box-shadow: var(--shadow-lg);
}

.loginContainer .header {
    background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
    color: var(--gold-light);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gold-dark);
}

.loginContainer .body {
    background-color: var(--bg-primary);
    padding: 15px;
}

.loginContainer .well {
    background-color: var(--bg-secondary);
    border: none;
    margin-bottom: 10px;
}

.loginContainer input[type="text"],
.loginContainer input[type="password"] {
    background-color: var(--bg-secondary);
    border: 1px solid var(--gold-dark);
    color: var(--text-inverse);
}

.loginContainer input[type="submit"] {
    width: 100%;
    height: 40px;
    background: linear-gradient(180deg, var(--gold-light), var(--gold-border));
    color: #2B2B2B;
    font-weight: 700;
    font-family: var(--font-ui);
    text-transform: uppercase;
    border: 2px solid var(--gold-dark);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.loginContainer input[type="submit"]:hover {
    filter: brightness(1.1);
}

.loginContainer a {
    color: var(--gold-primary);
}

.loginContainer a:hover {
    color: var(--gold-light);
}

.loginForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
}

.loginForm .form-group {
    margin-bottom: 10px;
}

.loginForm input {
    width: 100%;
    height: 40px;
    border: 1px solid var(--border-thin);
    background-color: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 0.95rem;
    padding: 0 15px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.loginForm input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    outline: none;
}

.loginForm .login-button {
	width: 100%;
    height: 40px;
    background: var(--gradient-primary);
    color: #000;
    font-weight: 600;
	border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.loginForm .login-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.loginForm .login-button:active {
    transform: translateY(0);
}

.loginForm .form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.9rem;
}

.loginForm .form-links a {
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
}

.loginForm .form-links a i {
    color: var(--primary-color);
}

.loginForm .form-links a:hover {
    color: var(--primary-color);
}

/* Tables */
table {
    width: 100%;
    background-color: var(--bg-surface);
    border-collapse: collapse;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-sizing: border-box;
    margin-top: 20px;
}

td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-thin);
}

tr:nth-child(2n+1) {
    background-color: var(--bg-surface);
}

tr:hover {
    background-color: var(--bg-highlight);
}

/* Countdown Timer */
#countDownTimer {
    line-height: 2.3;
    padding: 0 15px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
}

/* Social Media */
.smedia {
    font-size: 1.8em;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.smedia a {
    color: var(--text-muted);
    transition: var(--transition-fast);
    padding: 10px;
}

.smedia a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Footer */
.main-footer {
    background-color: #0f0f0f;
    padding: 40px 0 20px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
}

.main-footer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
	position: relative;
	z-index: 1;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
}

.footer-section p {
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.footer-links li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-elevated);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-fast);
    z-index: -1;
}

.social-links a:hover {
    color: #000;
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.social-links a:hover::before {
    opacity: 1;
}

.copyright {
    padding-top: 20px;
    border-top: 1px solid var(--border-thin);
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-section {
        min-width: 100%;
    }
    
    .copyright {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Utilities */
.pull-left { float: left; }
.pull-right { float: right; }
.preventCollapse { overflow: hidden; }
.centralizeContent { text-align: center; }

/* Responsive */
@media (max-width: 992px) {
    .leftPane, .rightPane {
        width: 100%;
        padding-right: 0;
    }
    
    .leftPane {
        margin-bottom: 20px;
    }
    
    .main {
        width: 95%;
    }
}

@media (max-width: 768px) {
    nav .container > div > ul > li > a {
        padding: 15px 10px;
    }
    
    .searchForm {
        width: 100%;
    }
    
    .banner {
        height: 180px;
    }
}

/* Custom Buttons */
.modIcon {
    display: inline-block;
    padding: 10px 15px;
    background: var(--gradient-primary);
    color: #000;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.modIcon:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.modIcon i {
    margin-right: 5px;
}

.modIcon > i:nth-child(2),
.modIcon:hover > i:nth-child(1) {
    display: none;
}

.modIcon:hover > i:nth-child(2) {
    display: inline-block;
}

/* Alert Boxes */
.alert-box {
	max-width: 500px;
	font-size: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-thin);
    margin: 0 auto 15px;
    padding: 15px;
	text-align: center;
}

.alert-default {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-thin);
}

.alert-info {
    background: rgba(88, 101, 242, 0.15);
    color: var(--info);
    border-color: rgba(88, 101, 242, 0.3);
}

.alert-success {
    background: rgba(67, 181, 129, 0.15);
    color: var(--success);
    border-color: rgba(67, 181, 129, 0.3);
}

.alert-warning {
    background: rgba(250, 166, 26, 0.15);
    color: var(--warning);
    border-color: rgba(250, 166, 26, 0.3);
}

.alert-danger {
    background: rgba(240, 71, 71, 0.15);
    color: var(--error);
    border-color: rgba(240, 71, 71, 0.3);
}

/* Additional Styles for Existing Elements */
select, input {
    background-color: var(--bg-elevated);
    color: var(--text-primary);
    height: 40px;
    border: 1px solid var(--border-thin);
    font-size: 0.95rem;
    padding: 0 15px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

select:focus, input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    outline: none;
}

/* Existing Widget Styles */
.widget {
    background: linear-gradient(180deg, #14090d 0%, #110810 100%);
    border: 1px solid #2d1a1a;
    border-top: 2px solid rgba(139, 26, 26, 0.55);
    border-radius: 0;
    box-shadow: none;
    margin-top: 0;
    margin-bottom: 5px;
    overflow: hidden;
    padding: 12px 10px;
}

.widget h3 {
    color: var(--gold-primary);
    font-family: var(--font-heading);
    font-size: 0.67rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

ul.linkbuttons {
    margin: 10px 0;
    list-style: none;
}

ul.linkbuttons li {
    margin-bottom: 8px;
}

ul.linkbuttons li a {
    display: block;
    padding: 10px 15px;
    background-color: var(--bg-elevated);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

ul.linkbuttons li a:hover {
    background-color: var(--bg-highlight);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 600px;
    background: url('../img/header-banner.png') center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 2;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(18, 18, 18, 1), transparent);
    pointer-events: none;
    z-index: 2;
}

.hero-content {
	text-align: center;
    z-index: 3;
    padding: 0 20px;
    max-width: 800px;
}

.hero-logo {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    background: linear-gradient(180deg, var(--gold-light), var(--gold-border));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    position: relative;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
    }
    to {
        text-shadow: 0 0 20px rgba(183,139,82, 0.9), 0 0 30px rgba(183,139,82, 0.5);
    }
}

.hero-logo::before, 
.hero-logo::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 3px;
    background: var(--gradient-primary);
    top: 50%;
    transform: translateY(-50%);
}

.hero-logo::before {
    left: -140px;
}

.hero-logo::after {
    right: -140px;
}

.hero-description {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-button {
	display: inline-block;
    padding: 15px 30px;
    background: var(--gradient-primary);
    color: #000;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border-radius: var(--radius-md);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.hero-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
	width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: var(--transition-smooth);
    z-index: -1;
}

.hero-button:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
    color: #000;
}

.hero-button:hover::before {
    transform: translateX(100%);
}

.hero-button:active {
    transform: translateY(0);
}

/* Theme Toggle Button */
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--gold-light), var(--gold-border));
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 10px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--gold-dark), transparent, var(--gold-dark));
    opacity: 0;
    transition: var(--transition-smooth);
}

.theme-toggle:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.theme-toggle:hover::before {
    opacity: 0.5;
}

.theme-toggle:active {
    transform: translateY(0);
}

.theme-toggle-animated {
    animation: theme-toggle-spin 0.5s ease-in-out;
}

@keyframes theme-toggle-spin {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Adjust theme toggle in auth buttons */
.auth-buttons .theme-toggle {
    margin-right: 15px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Download Button — gold medieval */
.download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(180deg, var(--gold-light), var(--gold-border));
    color: #2B2B2B;
    font-weight: 700;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 13px 20px;
    border-radius: var(--radius-md);
    border: 2px solid var(--gold-dark);
    margin-bottom: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}

.download-button:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    color: #2B2B2B;
}

.download-button i {
    font-size: 1.1rem;
}

/* Server Status Card */
.server-status-card {
    background-color: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 15px;
    box-shadow: var(--shadow-inner);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-fast);
}

.server-status-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.server-status-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

.server-status-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-gold);
    pointer-events: none;
    z-index: 1;
}

.status-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: rgba(0, 0, 0, 0.3);
    font-size: 1.2rem;
}

.status-icon.online {
    color: var(--success);
    background-color: rgba(67, 181, 129, 0.1);
}

.status-icon.offline {
    color: var(--error);
    background-color: rgba(240, 71, 71, 0.1);
}

.pulse-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(67, 181, 129, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

.status-info {
    flex: 1;
}

.status-label {
    font-weight: 700;
}

.status-info.online .status-label {
    color: var(--success);
}

.status-info.offline .status-label {
    color: var(--error);
}

.status-details {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.player-count {
	text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-thin);
    font-weight: 500;
}

/* Server Save Countdown */
.server-save-countdown {
    margin-top: 15px;
    padding: 12px;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
}

.save-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.save-timer {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.save-time {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Top Players List */
.top-players-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: var(--radius-md);
    background-color: var(--bg-elevated);
    transition: var(--transition-fast);
}

.player-row:hover {
    background-color: var(--bg-highlight);
}

.rank-number {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.gold-crown {
    background: linear-gradient(180deg, var(--gold-light), var(--gold-border));
    color: #000;
}

.silver-crown {
    background: linear-gradient(135deg, #e0e0e0, #b3b3b3);
    color: #000;
}

.bronze-crown {
    background: linear-gradient(135deg, #8C6B1F, #5A4A1C);
    color: #000;
}

.player-info {
    flex: 1;
}

.player-name {
    font-weight: 600;
    color: var(--primary-color);
}

.player-level {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Top Players List */
.top-players-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: var(--radius-md);
    background-color: var(--bg-elevated);
    transition: var(--transition-fast);
}

.player-row:hover {
    background-color: var(--bg-highlight);
}

.rank-number {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.gold-crown {
    background: linear-gradient(180deg, var(--gold-light), var(--gold-border));
    color: #000;
}

.silver-crown {
    background: linear-gradient(135deg, #e0e0e0, #b3b3b3);
    color: #000;
}

.bronze-crown {
    background: linear-gradient(135deg, #8C6B1F, #5A4A1C);
    color: #000;
}

.player-info {
    flex: 1;
}

.player-name {
    font-weight: 600;
    color: var(--primary-color);
}

.player-level {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* News Section — flush within the parchment center panel */
.center_box {
    background-color: transparent;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--paper-border);
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
}

.box-header {
    height: 48px;
    padding: 0 14px 0 12px;
    background-image: url('../img/header.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: none;
    position: relative;
    z-index: 2;
    margin-bottom: -7px;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    user-select: none;
}

.box-header::before {
    display: none; /* removed — image frame handles decoration */
}

.box-header i {
    margin-right: 7px;
    color: var(--gold-light);
    font-size: 0.85rem;
    flex-shrink: 0;
    text-shadow: 0 0 6px rgba(212,175,55,0.6);
}

.box-header h3 {
    margin: 0;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    background: none;
    color: #fff;
    -webkit-background-clip: initial;
    background-clip: initial;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.box-header .toggle-arrow {
    margin-left: auto;
    color: var(--gold-light);
    font-size: 10px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
    text-shadow: none;
}

.container_right .well .header .toggle-arrow {
    margin-left: auto;
    color: var(--gold-light);
    font-size: 10px;
    transition: transform 0.3s;
}
.box-header .toggle-arrow.rotated,
.container_right .well .header .toggle-arrow.rotated {
    transform: rotate(180deg);
}

.left_box.collapsed .box-content,
.right_box.collapsed .box-content,
.container_right .well.collapsed .body {
    display: none;
}

.box-content {
    margin-top: -7px;
    padding-top: 7px;
    position: relative;
    background-image: url('../img/content.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* Bottom cap — shown at the end of each expanded box */
.box-content::after {
    content: '';
    display: block;
    width: 100%;
    height: 26px;
    background-image: url('../img/bottom.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.news-item {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-thin);
    padding-bottom: 20px;
    position: relative;
    z-index: 1;
}

.news-item:last-child {
	margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.news-header {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--gold-dark);
    position: relative;
    display: inline-block;
}

.news-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
}

.news-item:hover .news-title::after {
    width: 100%;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    background-color: var(--bg-elevated);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.news-content {
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
}

.news-content p {
    margin-bottom: 15px;
}

.news-features {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    background-color: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 10px 15px;
}

.news-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-thin);
    transition: var(--transition-fast);
}

.news-features li:hover {
    padding-left: 5px;
}

.news-features li:last-child {
    border-bottom: none;
}

.news-features li i {
    color: var(--success);
    margin-right: 8px;
}

.news-footer {
    margin-top: 20px;
    text-align: right;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #2B2B2B;
    font-weight: bold;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    transition: var(--transition-fast);
    background: linear-gradient(180deg, var(--gold-light), var(--gold-border));
    border: 1px solid var(--gold-dark);
    padding: 7px 14px;
    border-radius: var(--radius-md);
}

.read-more:hover {
    filter: brightness(1.1);
    gap: 8px;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: #2B2B2B;
}

@media (max-width: 768px) {
    .topPane {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        max-width: 100%;
    }
}

.feedContainer {
    margin: 2rem 0;
    background: transparent;
    border: none;
}

/* Right Sidebar box — same PNG frame system as left sidebar */
.right_box {
    background: transparent;
    border-radius: 0;
    border: none;
    overflow: visible;
    position: relative;
    margin-bottom: 8px;
    transition: var(--transition-fast);
}

/* right_box .box-header inherits all styles from generic .box-header (header.png, height, z-index, etc.) */
.right_box .box-header {
    background-image: url('../img/header.png');
    border-bottom: none;
}

/* Well widgets inside right sidebar — header stays in flow, body overlays content */
.container_right .well:not(.loginContainer) {
    background: transparent;
    border: none;
    overflow: hidden;
    position: relative;
    margin-bottom: 8px;
}

.container_right .well:not(.loginContainer) .header {
    height: 48px;
    padding: 0 14px 0 12px;
    background: url('../img/header.png');  /* override global .header gradient */
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    border-bottom: none;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    margin-bottom: -7px;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    user-select: none;
}

.container_right .well:not(.loginContainer) .header::before {
    display: none;  /* kill global .header gold left-bar pseudo-element */
}

.container_right .well:not(.loginContainer) .header i {
    margin-right: 7px;
    color: var(--gold-light);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.container_right .well:not(.loginContainer) .body {
    position: relative;
    padding: 10px 8px 14px;
    background-color: transparent;
    background-image: none;
}

.container_right .well:not(.loginContainer) .body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 26px;
    background-image: url('../img/bottom.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

/* Right sidebar body — dark text on parchment (content.png) */
.container_right .well:not(.loginContainer) .body,
.container_right .well:not(.loginContainer) .body td,
.container_right .well:not(.loginContainer) .body th,
.container_right .well:not(.loginContainer) .body p,
.container_right .well:not(.loginContainer) .body span,
.container_right .well:not(.loginContainer) .body label {
    color: var(--text-primary);
    font-size: 12px;
}

.container_right .well:not(.loginContainer) .body a {
    color: var(--gold-dark);
}

.container_right .well:not(.loginContainer) .body a:hover {
    color: var(--gold-primary);
}

.container_right .well:not(.loginContainer) .body table {
    width: 100%;
    border-collapse: collapse;
}

.container_right .well:not(.loginContainer) .body td {
    padding: 4px 2px;
    border-bottom: 1px solid rgba(200,178,138,0.35);
    vertical-align: middle;
    word-break: break-word;
    max-width: 0;
}

.container_right .well:not(.loginContainer) .body tr:last-child td {
    border-bottom: none;
}

/* Select is inside .header (topplayers world picker), not .body */
.container_right .well:not(.loginContainer) .header select {
    background: transparent;
    color: var(--gold-light);
    border: none;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 4px;
    max-width: 90px;
    border-radius: 2px;
    text-shadow: 0 0 10px rgba(212,175,55,0.9);
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.container_right .well:not(.loginContainer) .header select:focus {
    box-shadow: 0 0 10px rgba(212,175,55,0.8), inset 0 1px 3px rgba(0,0,0,0.4);
    border-color: var(--gold-light);
}

.container_right .well:not(.loginContainer) .header select option {
    background: var(--bg-secondary);
    color: var(--gold-light);
}

/* Neutralise .widget blue background inside right sidebar — PNG frames handle decoration */
.container_right .widget {
    background: linear-gradient(180deg, #14090d 0%, #110810 100%) !important;
    border: 1px solid #2d1a1a !important;
    border-top: 2px solid rgba(139, 26, 26, 0.55) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 0 5px !important;
    padding: 10px !important;
    overflow: hidden !important;
}

/* Additional Effects and Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

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

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    background-color: var(--bg-color);
}

::-webkit-scrollbar-track {
    background-color: var(--bg-surface);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

/* Responsive Improvements */
@media (max-width: 992px) {
    .main-header .header-content {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 15px;
    }
    
    .logo-text {
        margin: 10px 0;
    }
    
    .site-logo {
        max-height: 32px;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        height: 50px;
        line-height: 50px;
    }
    
    .dropdown-menu {
        width: 100%;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
	display: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border-thin);
        border-bottom: 1px solid var(--border-thin);
        margin: 0;
        padding: 0;
    }
    
    .hero-section {
        height: 500px;
    }
    
    .hero-logo {
        font-size: 3.5rem;
    }
    
    .hero-logo::before, 
    .hero-logo::after {
        width: 60px;
    }
    
    .hero-logo::before {
        left: -80px;
    }
    
    .hero-logo::after {
        right: -80px;
    }
}

/* Fix media queries */
@media (max-width: 768px) {
    .hero-section {
        height: 400px;
    }
    
    .hero-logo {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}

/* Content center — parchment background, takes all remaining space */
.container_mid {
    flex: 1;
    background-color: var(--paper-bg);
    border: 1px solid rgba(139,26,26,0.55);
    border-top: 2px solid rgba(201,162,39,0.65);
    border-radius: 8px 8px 0 0;
    padding: 8px 0 0;
    min-width: 0;
    max-width: none;
    overflow: hidden;
}

/* Never cap the central content column */
.container_mid,
#main-content {
    max-width: none !important;
}

/* Right sidebar */
.container_right {
    width: 268px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
    position: relative;
    border-radius: 6px 6px 0 0;
}
.container_right::before {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    flex-shrink: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(201,162,39,0.45) 45%, rgba(201,162,39,0.85) 100%);
    border-radius: 3px;
    margin-bottom: 4px;
    box-shadow: 0 2px 10px rgba(201,162,39,0.20);
}

/* Fix feedContainer */
.feedContainer {
    display: none;
}

/* Fix well classes */
.well {
    background: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

/* Footer well inside container_mid */
.container_mid > footer.well {
    background: var(--paper-shadow);
    border-top: 1px solid var(--paper-border);
    padding: 10px 12px;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 12px;
}

/* Fix topPane */
.topPane {
    display: none;
}

/* Container Main — 3-column medieval layout */
.container_main {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin: 0 auto;
    max-width: var(--container-width);
    padding: 142px 12px 0;
    background-color: transparent;
}

/* Left Sidebar */
.container_left {
    width: 268px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 6px 6px 0 0;
}
.container_left::before {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    flex-shrink: 0;
    background: linear-gradient(90deg, rgba(201,162,39,0.85) 0%, rgba(201,162,39,0.45) 55%, transparent 100%);
    border-radius: 3px;
    margin-bottom: 4px;
    box-shadow: 0 2px 10px rgba(201,162,39,0.20);
}

/* Left Box — 4px gap between boxes lets background show through */
.left_box {
    background: transparent;
    border-radius: 0;
    border: none;
    overflow: visible;
    position: relative;
    margin-bottom: 8px;
    transition: var(--transition-fast);
}

/* Content hidden when collapsed — default state */
.left_box.collapsed .box-content {
    display: none;
}

/* Navigation Menu — medieval tab style */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li + li {
    border-top: none;
}

.nav-menu a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    background: transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(139, 26, 26, 0.08);
    color: var(--text-inverse);
    padding-left: 20px;
}

.nav-menu i {
    margin-right: 8px;
    color: var(--gold-dark);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* Media Queries — stacked on mobile */
@media (max-width: 992px) {
    .container_main {
        flex-direction: column;
        gap: 4px;
    }

    .container_left,
    .container_mid,
    .container_right {
        width: 100%;
        border: 2px solid var(--paper-border);
    }

    .container_left {
        border-left: 2px solid var(--gold-border);
        border-right: 2px solid var(--gold-border);
    }

    .container_right {
        border-left: 2px solid var(--gold-border);
        border-right: 2px solid var(--gold-border);
    }
}

/* Countdown Container in Header */
.main-header .countdown-container {
    background-color: var(--bg-elevated);
    padding: 10px 0;
    text-align: center;
    border-top: 1px solid var(--border-thin);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.main-header .countdown-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.main-header #countDownTimer {
    padding: 5px 15px;
    color: var(--gold-primary);
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-inner);
}

/* Search Container in Header */
.auth-buttons .search-container {
	position: relative;
    margin-right: 15px;
}

.auth-buttons .searchForm {
    width: 200px;
}

@media (max-width: 992px) {
    .main-header .countdown-container {
        padding: 8px 0;
    }
    
    .auth-buttons .search-container {
        display: none;
    }
}

/* Discord Button */
.discord-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #7289DA, #5865F2);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-smooth);
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-shadow: var(--shadow-md);
}

/* Twitch Button */
.twitch-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #9146ff, #6441a5);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-smooth);
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-shadow: var(--shadow-md);
}

.discord-button::before {
    content: '';
	position: absolute;
	top: 0;
	left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: var(--transition-smooth);
}

.discord-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

/* Twitch Widget Basic Styles */
.twitch-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.twitch-icon {
    font-size: 36px;
    margin-bottom: 15px;
    color: #9146ff;
}

.twitch-title {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.twitch-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
}

.twitch-button {
    background: linear-gradient(135deg, #9146ff, #6441a5);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.twitch-button:hover {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    transform: translateY(-3px);
    color: white;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(145, 70, 255, 0.4);
}

.discord-button:hover::before {
    opacity: 1;
}

.discord-button:active {
    transform: translateY(0);
}

.discord-button i {
    font-size: 1.2rem;
}

/* Twitch Button Effects */
.twitch-button::before {
    content: '';
	position: absolute;
	top: 0;
	left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: var(--transition-smooth);
}

.twitch-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

.twitch-button:hover::before {
    opacity: 1;
}

.twitch-button:active {
    transform: translateY(0);
}

.twitch-button i {
    font-size: 1.2rem;
}

/* Search Button */
.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: #000;
    border: none;
    padding: 10px 15px;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-top: 10px;
    width: 100%;
}

.search-button:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
}

.search-button:active {
    transform: translateY(0);
}

/* Custom Discord Icon */
.fa-discord:before {
    content: "\f392";
}

/* If the above Unicode doesn't work, use a custom implementation */
.fa-discord {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path fill="white" d="M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Search Form Styles */
.full-width-input {
    width: 100%;
    height: 40px;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: var(--radius-md);
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-thin);
    color: var(--text-primary);
    margin-bottom: 10px;
    transition: var(--transition-fast);
}

.full-width-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    outline: none;
}

.full-width-button {
    width: 100%;
    height: 40px;
    font-size: 1rem;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.searchForm {
    padding: 5px 0;
}

/* Discord Widget Styles */
.discord-widget {
    padding: 0;
    overflow: hidden;
}

.discord-widget-header {
    background-color: #5865F2;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.discord-logo {
    font-size: 1.5rem;
    margin-right: 10px;
}

.discord-title {
    font-weight: 700;
    font-size: 1.2rem;
    flex-grow: 1;
}

.discord-members {
    font-size: 0.9rem;
    opacity: 0.9;
}

.discord-widget-content {
    background-color: #1e1e1e;
    padding: 30px 15px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    position: relative;
}

.discord-loading-animation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.discord-dot {
    width: 8px;
    height: 8px;
    background-color: #5865F2;
    border-radius: 50%;
    animation: discord-pulse 1.5s infinite ease-in-out;
}

.discord-dot:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes discord-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.discord-tagline {
    color: #8e8e8e;
    font-size: 0.9rem;
    text-align: center;
}

/* Twitch Widget Styles */
.twitch-widget {
    padding: 0;
    overflow: hidden;
}

.twitch-widget-header {
    background-color: #9146ff;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.twitch-logo {
    font-size: 1.5rem;
    margin-right: 10px;
}

.twitch-title {
    font-weight: 700;
    font-size: 1.2rem;
    flex-grow: 1;
}

.twitch-members {
    font-size: 0.9rem;
    opacity: 0.9;
}

.twitch-widget-content {
    background-color: #1e1e1e;
    padding: 30px 15px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    position: relative;
}

.twitch-loading-animation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.twitch-dot {
    width: 8px;
    height: 8px;
    background-color: #9146ff;
    border-radius: 50%;
    animation: twitch-pulse 1.5s infinite ease-in-out;
}

.twitch-dot:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes twitch-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.twitch-tagline {
    color: #8e8e8e;
    font-size: 0.9rem;
    text-align: center;
}

/* Twitch Widget Streams List */
.twitch-streams-list {
    margin: 15px 0;
    max-height: 200px;
    overflow-y: auto;
}

.twitch-stream-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(145, 70, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

.twitch-stream-item:hover {
    background-color: rgba(145, 70, 255, 0.05);
    border-radius: 6px;
    padding: 8px 5px;
}

.streamer-avatar-small {
    position: relative;
    margin-right: 10px;
    flex-shrink: 0;
}

.streamer-avatar-small img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #9146ff;
}

.streamer-avatar-small .fallback-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #9146ff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.live-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #ff0000;
    border-radius: 50%;
    border: 2px solid var(--dark-secondary);
    animation: pulse 2s infinite;
}

.streamer-info-small {
    flex: 1;
    min-width: 0;
}

.streamer-name-small {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.viewer-count-small {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.viewer-count-small i {
    font-size: 10px;
}

.stream-link-small {
    color: #9146ff;
    text-decoration: none;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.stream-link-small:hover {
    background-color: rgba(145, 70, 255, 0.1);
    color: #a855f7;
    text-decoration: none;
}

.stream-link-small i {
    font-size: 12px;
}

.no-streams-widget {
    text-align: center;
    padding: 20px 10px;
    color: var(--text-secondary);
    font-size: 13px;
}

.no-streams-widget i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
    color: #9146ff;
}

/* Scrollbar for streams list */
.twitch-streams-list::-webkit-scrollbar {
    width: 4px;
}

.twitch-streams-list::-webkit-scrollbar-track {
    background: rgba(145, 70, 255, 0.1);
    border-radius: 2px;
}

.twitch-streams-list::-webkit-scrollbar-thumb {
    background: #9146ff;
    border-radius: 2px;
}

.twitch-streams-list::-webkit-scrollbar-thumb:hover {
    background: #a855f7;
}

/* Improved Search Bar */
.player-search-container {
    padding: 15px;
}

.player-search-form {
    display: flex;
    flex-direction: column;
}

.full-width-input {
    width: 100%;
    height: 40px;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: var(--radius-md);
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-thin);
    color: var(--text-primary);
    margin-bottom: 10px;
    transition: var(--transition-fast);
}

.full-width-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    outline: none;
}

.full-width-button {
    width: 100%;
    height: 40px;
    font-size: 1rem;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login Page Styles */
.login-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.login-box {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    position: relative;
}

.login-box::before {
    content: '';
	position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-gold);
    opacity: 0.5;
    pointer-events: none;
}

.login-header {
    background-color: var(--bg-elevated);
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-thin);
}

.login-header h2 {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.login-header p {
    color: var(--text-muted);
    margin: 0;
}

.login-form-container {
    padding: 30px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
	display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.login-form input {
    width: 100%;
    height: 45px;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: var(--radius-md);
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-thin);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.login-form input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    outline: none;
}

.login-button {
    width: 100%;
    height: 45px;
    background: var(--gradient-primary);
    color: #000;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.login-button:active {
    transform: translateY(0);
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-thin);
}

.login-links a {
    color: var(--text-primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.login-links a:hover {
    color: var(--gold-primary);
}

.login-links a i {
    color: var(--gold-primary);
}

/* Update theme toggle for dark/light mode */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
    margin-right: 15px;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 50%;
    transform: scale(0);
    transition: var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--gold-primary);
}

.theme-toggle:hover::before {
    transform: scale(1);
}

.theme-toggle:active {
    transform: scale(0.9);
}

.theme-toggle-animated {
    animation: theme-toggle-spin 0.5s ease-in-out;
}

@keyframes theme-toggle-spin {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

/* Ensure theme toggle in auth buttons is visible */
.auth-buttons .theme-toggle {
    margin-right: 15px;
}

.loginContainer .login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 14px;
}

.loginContainer .login-links i {
    margin-right: 5px;
}

.loginContainer .create-account,
.loginContainer .recover-account {
    display: flex;
    align-items: center;
}

.loginContainer .submitButton {
    font-family: 'FontAwesome', sans-serif;
}

/* Fix for FontAwesome icon in submit button */
.loginContainer input[type="submit"] {
    width: 100%;
    height: 40px;
    background: linear-gradient(180deg, var(--gold-light), var(--gold-border));
    color: #000; /* Black text on gold */
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: 'FontAwesome', sans-serif;
}

.creature-circle-symbol {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px solid var(--border-thin);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.creature-circle-symbol img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
    margin-right: 15px;
}

/* ═══════════════════════════════════════════════════════════════════════
   VALYRIA — DARK NAVBAR & SIDEBAR OVERRIDES (Dark Retro System v2)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Navbar logo ── */
.vly-nav-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.vly-nav-logo-img {
    height: 48px;
    margin: -6px 0; /* taller mark bleeds into the bar padding, bar height unchanged */
    width: auto;
    display: block;
    /* opaque animated AVIF cut out by the static logo; the glow lives on the link */
    -webkit-mask: url("../../brand/logo.png") center / 100% 100% no-repeat;
    mask: url("../../brand/logo.png") center / 100% 100% no-repeat;
}

/* ── Navbar register link (highlighted) ── */
.header-action-link.vly-register {
    background: linear-gradient(160deg, #8b1a1a, #6b1414);
    border-color: rgba(201,162,39,0.4);
    color: #e8c547;
    font-weight: 700;
}

.header-action-link.vly-register:hover {
    background: linear-gradient(160deg, #a82020, #8b1a1a);
    border-color: #c9a227;
    color: #e8c547;
    box-shadow: 0 0 16px rgba(139,26,26,0.5);
}

/* ── Mobile hamburger ── */
.vly-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: 1px solid #2d1a1a;
    border-radius: 3px;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.vly-burger:hover { border-color: #8b1a1a; }

.vly-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #c8b89a;
    border-radius: 2px;
    transition: all 0.25s;
}

.vly-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.vly-burger.open span:nth-child(2) { opacity: 0; }
.vly-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Container layout (extra padding above content) ── */
.container_main {
    padding-top: 12px;
}

/* ── Left sidebar boxes: remove header.png, use dark CSS ── */
/* ══════════════════════════════════════════════════════════════════
   SIDEBAR — Dark Retro Fantasy redesign
   ══════════════════════════════════════════════════════════════════ */

/* ── Left & Right box containers ── */
.left_box,
.right_box {
    background: linear-gradient(180deg, #14090d 0%, #110810 100%) !important;
    border: 1px solid #2d1a1a !important;
    border-top: 2px solid rgba(139, 26, 26, 0.55) !important;
    margin-bottom: 5px !important;
    overflow: hidden !important;
    position: relative !important;
}

/* ── Box header ── */
.box-header {
    background-image: none !important;
    background: linear-gradient(90deg, #1e0508 0%, #261d11 45%, #1e0508 100%) !important;
    border-bottom: 1px solid rgba(139, 26, 26, 0.35) !important;
    border-left: 3px solid var(--gold-dark, #8b6914) !important;
    margin-bottom: 0 !important;
    height: 36px !important;
    padding: 0 10px 0 9px !important;
}

.box-header h3 {
    color: var(--gold-primary, #c9a227) !important;
    text-shadow: 0 0 12px rgba(201, 162, 39, 0.22) !important;
    font-size: 0.67rem !important;
    letter-spacing: 0.18em !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

.box-header i {
    color: rgba(139, 26, 26, 0.85) !important;
    text-shadow: none !important;
    font-size: 0.78rem !important;
}

.box-header .toggle-arrow {
    color: #3a2a1a !important;
    font-size: 8px !important;
    opacity: 0.7;
}

/* ── Box content panel ── */
.box-content {
    background-image: none !important;
    background: #0f070a !important;
    border-left: 3px solid rgba(139, 26, 26, 0.25) !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 2px !important;
}

.box-content::after {
    background-image: none !important;
    height: 0 !important;
}

/* ── Navigation Menu ── */
.nav-menu {
    padding: 3px 0 5px !important;
    margin: 0 !important;
    list-style: none !important;
}

.nav-menu li {
    position: relative;
}

/* Hairline separator between items */
.nav-menu li + li::before {
    content: '' !important;
    display: block !important;
    height: 1px !important;
    margin: 0 10px !important;
    background: linear-gradient(to right, rgba(45, 26, 26, 0.6), transparent) !important;
}

.nav-menu a {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 5px 10px 5px 11px !important;
    color: #5a4a3a !important;
    font-family: var(--font-ui, 'Crimson Pro', serif) !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em !important;
    border-left: 2px solid transparent !important;
    border-bottom: none !important;
    background: transparent !important;
    transition: color 0.14s ease, background 0.14s ease,
                border-color 0.14s ease, padding-left 0.14s ease !important;
    text-decoration: none !important;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold-light, #e8c547) !important;
    background: linear-gradient(90deg,
        rgba(139, 26, 26, 0.18) 0%,
        rgba(139, 26, 26, 0.06) 60%,
        transparent 100%) !important;
    border-left-color: var(--gold-primary, #c9a227) !important;
    padding-left: 15px !important;
    text-shadow: 0 0 10px rgba(201, 162, 39, 0.18) !important;
}

.nav-menu i {
    color: rgba(139, 26, 26, 0.6) !important;
    width: 12px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
    font-size: 10px !important;
    transition: color 0.14s ease, text-shadow 0.14s ease !important;
}

.nav-menu a:hover i,
.nav-menu a.active i {
    color: var(--gold-primary, #c9a227) !important;
    text-shadow: 0 0 8px rgba(201, 162, 39, 0.6) !important;
}

/* ── container_mid: transparent ── */
.container_mid {
    background-color: transparent !important;
    border-color: transparent !important;
}

/* ── Right sidebar well boxes ── */
.container_right .well:not(.loginContainer) {
    background: linear-gradient(180deg, #14090d 0%, #110810 100%) !important;
    border: 1px solid #2d1a1a !important;
    border-top: 2px solid rgba(139, 26, 26, 0.55) !important;
    margin-bottom: 5px !important;
}

.container_right .well:not(.loginContainer) .header {
    background: linear-gradient(90deg, #1e0508 0%, #261d11 45%, #1e0508 100%) !important;
    border-bottom: 1px solid rgba(139, 26, 26, 0.35) !important;
    border-left: 3px solid var(--gold-dark, #8b6914) !important;
    background-image: none !important;
    height: 36px !important;
    padding: 0 10px 0 9px !important;
    color: var(--gold-primary, #c9a227) !important;
}

.container_right .well:not(.loginContainer) .body {
    background-color: #0f070a !important;
    background-image: none !important;
    border-left: 3px solid rgba(139, 26, 26, 0.25) !important;
    color: #c8b89a !important;
}

.container_right .well:not(.loginContainer) .body::after {
    background-image: none !important;
    height: 0 !important;
}

/* ── Download button — gold CTA ── */
.download-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    background: linear-gradient(160deg,
        #c9a227 0%, #a07818 55%, #c9a227 100%) !important;
    border: 1px solid rgba(201, 162, 39, 0.55) !important;
    border-bottom: 3px solid #5a4008 !important;
    color: #1a0f00 !important;
    font-family: var(--font-heading, 'Cinzel', serif) !important;
    font-size: 0.67rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    padding: 10px 12px !important;
    border-radius: 2px !important;
    margin-bottom: 6px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7),
                0 0 18px rgba(201, 162, 39, 0.12) !important;
    transition: all 0.18s ease !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    text-shadow: none !important;
}

/* Shimmer sweep */
.download-button::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(105deg,
        transparent 30%, rgba(255,255,255,0.16) 50%, transparent 70%) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.45s ease !important;
}

.download-button:hover::after {
    transform: translateX(150%) !important;
}

.download-button:hover {
    background: linear-gradient(160deg,
        #e8c547 0%, #c9a227 55%, #e8c547 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75),
                0 0 28px rgba(201, 162, 39, 0.28) !important;
    color: #1a0f00 !important;
}

.download-button i {
    font-size: 0.88rem !important;
}

/* ── Inner page body text ── */
.dl-box-body p,
.dl-steps li,
.dl-detail-row,
.dl-disclaimer {
    color: var(--text-primary);
}

/* ── Input / form fields site-wide ── */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea {
    background-color: #0d080b;
    border: 1px solid #2d1a1a;
    color: #c8b89a;
    font-family: 'Lora', Georgia, serif;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    border-color: rgba(201,162,39,0.55);
    box-shadow: 0 0 0 2px rgba(201,162,39,0.12);
    outline: none;
}

input::placeholder { color: #4a3a2a; }

/* ── Tables site-wide ── */
table {
    background-color: var(--bg-surface) !important;
}

tr:nth-child(2n+1) {
    background-color: rgba(26,14,18,0.6) !important;
}

tr:hover {
    background-color: rgba(139,26,26,0.07) !important;
}

td, th {
    color: var(--text-primary);
    border-bottom-color: var(--border-thin) !important;
}

/* ── Responsive: show burger, stack layout ── */
@media (max-width: 860px) {
    .vly-burger { display: flex; }

    .main-nav { display: none; }
    .main-nav.open { display: flex; }

    /* Sidebar only appears through the burger on phones, not at the page bottom */
    .container_left:not(.open) { display: none !important; }

    /* Burger opens the left sidebar as a full-width panel under the navbar */
    .container_left.open {
        position: fixed !important;
        top: var(--vly-header-h, 60px);
        left: 0;
        right: 0;
        bottom: 0;
        width: 100% !important;
        margin: 0 !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        z-index: 999;
        background: #120a0e !important;
        border-top: 1px solid rgba(183,139,81,0.35) !important;
        box-shadow: 0 12px 32px rgba(0,0,0,0.8) !important;
    }
    .container_left.open > * { flex-shrink: 0; }
    /* Show every section expanded inside the panel */
    .container_left.open .left_box .box-content { display: block !important; }
    .container_left.open .toggle-arrow { display: none; }
    body.vly-nav-open { overflow: hidden; }

    .header-login-form { display: none; }
    .header-lost-link  { display: none; }

    .main-header .header-content {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .vly-nav-logo-img { height: 44px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .vly-burger span { transition: none; }
}

/* ── VALYRIA SITE FOOTER ───────────────────────────────────────────────── */
.vly-site-footer {
    background: #0d080b;
    border-top: 1px solid #2d1a1a;
    padding: 40px 16px 24px;
    margin-top: 12px;
    position: relative;
    z-index: 1;
}

.vly-footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
}

.vly-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.vly-footer-logo {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 8px rgba(139,26,26,0.25));
    display: block;
}

.vly-footer-tagline {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #46362a;
    line-height: 1.65;
}

.vly-footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #8b6914;
    margin-bottom: 10px;
    padding-bottom: 7px;
    border-bottom: 1px solid #2d1a1a;
}

.vly-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vly-footer-col a {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: #7a6a5a;
    text-decoration: none;
    transition: color 160ms;
}

.vly-footer-col a:hover {
    color: #c8b89a;
}

.vly-footer-bottom {
    border-top: 1px solid #2d1a1a;
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

.vly-footer-copy {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #46362a;
}

.vly-footer-disclaimer {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #46362a;
    opacity: 0.55;
    text-align: right;
    max-width: 480px;
}

.vly-footer-creator {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}
.vly-footer-creator a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(201,162,39,0.52);
    text-decoration: none;
    transition: color 220ms ease, text-shadow 220ms ease;
}
.vly-footer-creator a:hover {
    color: rgba(201,162,39,0.92);
    text-shadow: 0 0 12px rgba(201,162,39,0.35);
}
.vly-footer-creator .fa-github {
    font-size: 0.95rem;
}

@media (max-width: 860px) {
    .vly-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .vly-footer-grid { grid-template-columns: 1fr; }
    .vly-footer-bottom { flex-direction: column; align-items: center; text-align: center; }
    .vly-footer-disclaimer { text-align: center; max-width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════════
   VISUAL DEPTH SYSTEM — Content column + Downloads page enhancements
   ══════════════════════════════════════════════════════════════════════ */

/* ── Center content column: dark stone surface with ornate borders ── */
.container_mid {
    background: linear-gradient(180deg, #0f070b 0%, #0b0609 100%) !important;
    border-top:   2px solid rgba(201,162,39,0.65) !important;
    border-left:  1px solid rgba(139,26,26,0.55) !important;
    border-right: 1px solid rgba(139,26,26,0.55) !important;
    border-radius: 8px 8px 0 0 !important;
    box-shadow:
        0 0 0 1px rgba(30,8,8,0.90),
        0 -6px 28px rgba(201,162,39,0.14),
        0 4px 48px rgba(0,0,0,0.65),
        inset  1px 0 0 rgba(139,26,26,0.12),
        inset -1px 0 0 rgba(139,26,26,0.12) !important;
}

/* ── DL hero: ornate border overlay via 1.png (screen-mode) ── */
.dl-hero {
    overflow: hidden !important;
    position: relative !important;
}

.dl-hero::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: none no-repeat center !important;
    background-size: cover !important;
    pointer-events: none !important;
    opacity: 0.38 !important;
    /* hue-rotate +30deg shifts pink→red; darken slightly */
    filter: hue-rotate(30deg) saturate(1.15) brightness(0.72) !important;
    mix-blend-mode: screen !important;
    z-index: 0 !important;
}

/* Hero text stays above the ornate overlay */
.dl-hero-logo,
.dl-hero-title,
.dl-hero-subtitle,
.dl-hero-monsters {
    position: relative !important;
    z-index: 1 !important;
}

/* ── DL section divider: gold diamond gem prefix ── */
.dl-section-title::before {
    content: '' !important;
    display: inline-block !important;
    width: 5px !important;
    height: 5px !important;
    background: var(--gold-primary) !important;
    transform: rotate(45deg) !important;
    margin-right: 5px !important;
    flex-shrink: 0 !important;
    align-self: center !important;
    box-shadow: 0 0 6px rgba(201, 162, 39, 0.55) !important;
}

/* Richer gradient rule after the title */
.dl-section-title::after {
    background: linear-gradient(to right,
        rgba(201, 162, 39, 0.42),
        rgba(139, 26, 26, 0.18),
        transparent) !important;
    height: 1px !important;
}

/* ── DL cards: deeper, rounded, inset top shimmer ── */
.dl-card {
    border-radius: 12px !important;
    background: linear-gradient(160deg, #1e1018 0%, #120a10 60%, #0e0810 100%) !important;
    border: 1px solid rgba(139, 105, 20, 0.28) !important;
    box-shadow:
        inset 0  1px 0 rgba(201, 162, 39, 0.12),
        inset 0 -1px 0 rgba(139, 26, 26, 0.15),
        0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

.dl-card:hover {
    border-color: rgba(201, 162, 39, 0.50) !important;
    box-shadow:
        inset 0 1px 0 rgba(201, 162, 39, 0.22),
        0 0 0 1px rgba(201, 162, 39, 0.15),
        0 8px 32px rgba(139, 26, 26, 0.18),
        0 4px 16px rgba(0, 0, 0, 0.5) !important;
    transform: translateY(-3px) !important;
}

.dl-card-icon .fa {
    font-size: 2.4rem !important;
    filter: drop-shadow(0 0 8px rgba(201, 162, 39, 0.42)) !important;
}

/* ── IP block: stone tablet ── */
.dl-ip-block {
    background: linear-gradient(160deg, #0e0810 0%, #0a0608 100%) !important;
    border: 1px solid rgba(139, 105, 20, 0.35) !important;
    border-radius: 10px !important;
    box-shadow:
        inset 0 1px 0 rgba(201, 162, 39, 0.08),
        inset 0 0 20px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

.dl-ip-value {
    font-size: 1.25rem !important;
    text-shadow: 0 0 16px rgba(201, 162, 39, 0.25) !important;
}

/* ── dl-section wrapper: subtle top border for separation ── */
.dl-section {
    border-bottom: 1px solid rgba(45, 26, 26, 0.6) !important;
}

/* ── Steps list: richer counter circles ── */
.dl-steps li::before {
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-primary) 100%) !important;
    box-shadow: 0 0 8px rgba(201, 162, 39, 0.35) !important;
    font-family: var(--font-heading) !important;
}

/* ── Req list icon: gold accent ── */
.dl-req-row .req-icon {
    color: var(--gold-dark) !important;
}

/* ── Right sidebar: ornate border overlay via Mid copy 8.png ── */
.container_right .well:not(.loginContainer),
.container_right .left_box,
.container_right .right_box {
    position: relative !important;
    overflow: visible !important;
}

/* Download button container gets the ornate frame treatment */
.download-button {
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

/* ══════════════════════════════════════════════════════════════════════
   NAVBAR — TWITCH LINK + PLAY/COMMUNITY DROPDOWN TWEAKS
   ══════════════════════════════════════════════════════════════════════ */

/* Twitch live link — purple accent */
.nav-links .nav-twitch-link {
    color: #b48be0 !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
}

.nav-links .nav-twitch-link .fa-twitch {
    color: #9147ff !important;
    text-shadow: 0 0 10px rgba(145, 71, 255, 0.55) !important;
}

.nav-links .nav-twitch-link:hover,
.nav-links li:has(.nav-twitch-link):hover > .nav-twitch-link {
    color: #c9a0f0 !important;
    text-shadow: 0 0 12px rgba(145, 71, 255, 0.4) !important;
    background: linear-gradient(90deg, rgba(145,71,255,0.10), transparent) !important;
}

/* ══════════════════════════════════════════════════════════════════════
   LEFT SIDEBAR — PER-SECTION HEADER ICON ACCENTS
   ══════════════════════════════════════════════════════════════════════ */

/* Navigation — teal/cyan map vibe */
.box-header--nav i {
    color: #4a9a8a !important;
    text-shadow: 0 0 10px rgba(74, 154, 138, 0.50) !important;
    font-size: 13px !important;
}

/* Account — cool silver-blue mysterious */
.box-header--account i {
    color: #7a9ab8 !important;
    text-shadow: 0 0 10px rgba(122, 154, 184, 0.50) !important;
    font-size: 13px !important;
}

/* Community — crimson red heroic shield */
.box-header--community i {
    color: #c0392b !important;
    text-shadow: 0 0 12px rgba(192, 57, 43, 0.60) !important;
    font-size: 13px !important;
}

/* Shop — bright gold diamond premium */
.box-header--shop i {
    color: var(--gold-primary) !important;
    text-shadow: 0 0 12px rgba(201, 162, 39, 0.65) !important;
    font-size: 12px !important;
}

/* Library — amber knowledge */
.box-header--library i {
    color: #c27c3a !important;
    text-shadow: 0 0 10px rgba(194, 124, 58, 0.55) !important;
    font-size: 13px !important;
}

/* ══════════════════════════════════════════════════════════════════════
   GLOBAL LAYOUT — DEPTH & VISUAL RICHNESS OVERHAUL
   ══════════════════════════════════════════════════════════════════════ */

/* ── Main wrapper: no harsh side shadows ── */
.main {
    box-shadow: none !important;
}

/* ══ HERO BANNER ══════════════════════════════════════════════════════════ */
.vly-hero {
    position: relative;
    width: calc(100% + 140px);
    margin-left: -70px;
    aspect-ratio: 16 / 9;
    max-height: 380px;
    overflow: hidden;
    display: block;
    z-index: 1;
    /* transparent mask — strong left fade + right fade + bottom fade, top center stays clear */
    -webkit-mask-image:
        linear-gradient(to right,  rgba(0,0,0,.06) 0%, black 22%),
        linear-gradient(to left,   rgba(0,0,0,.38) 0%, black 20%),
        linear-gradient(to bottom, black 0%, black 38%, rgba(0,0,0,.52) 62%, rgba(0,0,0,.14) 80%, transparent 94%);
    -webkit-mask-composite: source-in, source-in;
    mask-image:
        linear-gradient(to right,  rgba(0,0,0,.06) 0%, black 22%),
        linear-gradient(to left,   rgba(0,0,0,.38) 0%, black 20%),
        linear-gradient(to bottom, black 0%, black 38%, rgba(0,0,0,.52) 62%, rgba(0,0,0,.14) 80%, transparent 94%);
    mask-composite: intersect, intersect;
}

.vly-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    /* tint grey tones toward crimson so the image belongs in this palette */
    filter: sepia(0.50) hue-rotate(322deg) saturate(1.30) brightness(0.72);
}

/* subtle center depth — mask handles all edge fading */
.vly-hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 48%, transparent 40%, rgba(0,0,0,0.18) 100%);
    pointer-events: none;
}

.vly-hero-logo-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.vly-hero-logo-wrap picture { display: contents; }

.vly-hero-logo {
    width: min(46%, 440px);
    height: auto;
    display: block;
    -webkit-mask: url("../../brand/logo.png") center / 100% 100% no-repeat;
    mask: url("../../brand/logo.png") center / 100% 100% no-repeat;
}

@media (max-width: 768px) {
    .vly-hero { width: 100%; margin-left: 0; aspect-ratio: 16 / 9; min-height: 180px; }
    .vly-hero-logo { width: min(60%, 280px); }
}
@media (max-width: 480px) {
    .vly-hero { min-height: 140px; }
    .vly-hero-logo { width: 68%; }
}
@media (hover: none) {
    /* Safari iOS: keep aspect-ratio, no fixed attachment */
    .vly-hero-bg { object-position: center 20%; }
}

/* ── container_main: overlaps hero so hero shows behind columns ── */
.container_main {
    background: transparent !important;
    gap: 14px !important;
    padding: 0 12px 0 !important;
    margin-top: -90px !important;
    position: relative !important;
    z-index: 2 !important;
}

/* ── Left sidebar: dark stone panel with top separator ── */
.container_left {
    background: linear-gradient(180deg, #1f1a13 0%, #180c12 100%) !important;
    border-right: 1px solid rgba(45,26,26,0.5) !important;
    padding: 8px 0 16px !important;
    position: relative !important;
}

.container_left::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent, rgba(139,26,26,0.6), rgba(201,162,39,0.4), rgba(139,26,26,0.6), transparent) !important;
}

/* ── Left boxes: bigger, more tactile ── */
.left_box,
.right_box {
    margin: 0 0 2px !important;
    border-radius: 0 !important;
    border-top: 1px solid rgba(45,26,26,0.4) !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* ── Box headers: taller with per-section colored left stripe ── */
.left_box .box-header,
.right_box .box-header {
    height: 40px !important;
    padding: 0 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    cursor: pointer !important;
    background: linear-gradient(90deg, #1c0a10 0%, #180811 60%, #130710 100%) !important;
    transition: background 0.2s ease !important;
}

.left_box .box-header:hover,
.right_box .box-header:hover {
    background: linear-gradient(90deg, #211b14 0%, #1e0a14 60%, #170811 100%) !important;
}

.box-header--nav   { border-left: 3px solid #3d8a7a !important; }
.box-header--account { border-left: 3px solid #6888a8 !important; }
.box-header--community { border-left: 3px solid #a82820 !important; }
.box-header--shop  { border-left: 3px solid #b8901a !important; }
.box-header--library { border-left: 3px solid #b06a28 !important; }
.box-header--wiki  { border-left: 3px solid #7a5aa8 !important; }

/* ── Sidebar boxes that are a plain link instead of a collapsible list ── */
a.left_box--link { display: block !important; text-decoration: none !important; }
a.left_box--link .fa-chevron-right {
    font-size: 11px !important;
    color: var(--gold-dark) !important;
    transition: transform 0.18s ease, color 0.18s ease !important;
}
a.left_box--link:hover .fa-chevron-right {
    transform: translateX(3px) !important;
    color: var(--gold-light) !important;
}

/* ── Box header icons: bigger, breathing room ── */
.box-header i:not(.toggle-arrow) {
    font-size: 15px !important;
    flex-shrink: 0 !important;
    width: 18px !important;
    text-align: center !important;
}

/* ── Box header title: more legible ── */
.left_box .box-header h3,
.right_box .box-header h3 {
    font-size: 0.72rem !important;
    letter-spacing: 0.22em !important;
    font-weight: 700 !important;
    color: var(--gold-primary) !important;
    text-shadow: 0 0 10px rgba(201,162,39,0.18) !important;
    flex: 1 !important;
    margin: 0 !important;
}

/* ── Box content: richer dark background ── */
.left_box .box-content,
.right_box .box-content {
    background: linear-gradient(180deg, #0c0408 0%, #080306 100%) !important;
    border-left: 3px solid rgba(45,26,26,0.3) !important;
    padding: 4px 0 6px !important;
}

/* ── Nav-menu: more spacious, better typography ── */
.nav-menu a {
    padding: 7px 12px 7px 14px !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.03em !important;
    color: #6a5848 !important;
    transition: color 0.18s, background 0.18s, padding-left 0.18s, border-left-color 0.18s !important;
}

.nav-menu a:hover {
    color: var(--gold-light) !important;
    padding-left: 18px !important;
}

.nav-menu i {
    font-size: 11px !important;
    width: 14px !important;
    text-align: center !important;
    margin-right: 6px !important;
}

/* Per-section hover accent colors */
.left_box:has(.box-header--nav) .nav-menu a:hover {
    border-left-color: #3d8a7a !important;
    background: linear-gradient(90deg, rgba(61,138,122,0.12), transparent) !important;
}
.left_box:has(.box-header--nav) .nav-menu a:hover i {
    color: #4a9a8a !important;
    text-shadow: 0 0 8px rgba(74,154,138,0.5) !important;
}

.left_box:has(.box-header--account) .nav-menu a:hover {
    border-left-color: #6888a8 !important;
    background: linear-gradient(90deg, rgba(104,136,168,0.12), transparent) !important;
}
.left_box:has(.box-header--account) .nav-menu a:hover i {
    color: #7a9ab8 !important;
    text-shadow: 0 0 8px rgba(122,154,184,0.5) !important;
}

.left_box:has(.box-header--community) .nav-menu a:hover {
    border-left-color: #a82820 !important;
    background: linear-gradient(90deg, rgba(168,40,32,0.15), transparent) !important;
}
.left_box:has(.box-header--community) .nav-menu a:hover i {
    color: #c0392b !important;
    text-shadow: 0 0 8px rgba(192,57,43,0.55) !important;
}

.left_box:has(.box-header--shop) .nav-menu a:hover {
    border-left-color: #b8901a !important;
    background: linear-gradient(90deg, rgba(184,144,26,0.14), transparent) !important;
}
.left_box:has(.box-header--shop) .nav-menu a:hover i {
    color: var(--gold-primary) !important;
    text-shadow: 0 0 8px rgba(201,162,39,0.55) !important;
}

.left_box:has(.box-header--library) .nav-menu a:hover {
    border-left-color: #b06a28 !important;
    background: linear-gradient(90deg, rgba(176,106,40,0.13), transparent) !important;
}
.left_box:has(.box-header--library) .nav-menu a:hover i {
    color: #c27c3a !important;
    text-shadow: 0 0 8px rgba(194,124,58,0.5) !important;
}

/* ── Container_mid: subtle inner depth ── */
.container_mid {
    background: linear-gradient(180deg, #0f070b 0%, #0b0609 100%) !important;
    border-left: 1px solid rgba(45,26,26,0.5) !important;
    border-right: 1px solid rgba(45,26,26,0.3) !important;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.35), inset 0 2px 0 rgba(139,26,26,0.12) !important;
    position: relative !important;
}

/* Subtle diagonal hatching texture inside container_mid */
.container_mid::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background-image:
        repeating-linear-gradient(
            -55deg,
            transparent 0px,
            transparent 18px,
            rgba(139,26,26,0.018) 18px,
            rgba(139,26,26,0.018) 19px
        ) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* All content inside container_mid must sit above the texture */
.container_mid > * {
    position: relative !important;
    z-index: 1 !important;
}

/* ── Right sidebar (container_right) ── */
.container_right {
    background: linear-gradient(180deg, #100710 0%, #0b0509 100%) !important;
    border-left: 1px solid rgba(45,26,26,0.4) !important;
    padding: 8px 0 16px !important;
    position: relative !important;
}

.container_right::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent, rgba(139,26,26,0.6), rgba(201,162,39,0.4), rgba(139,26,26,0.6), transparent) !important;
}

/* ══════════════════════════════════════════════════════════════════════
   DOWNLOADS PAGE — VISUAL OVERHAUL
   ══════════════════════════════════════════════════════════════════════ */

/* ── Hero: taller, more dramatic ── */
.dl-hero {
    padding: 52px 40px 44px !important;
    min-height: 250px !important;
    background: linear-gradient(160deg, #060305 0%, #180507 45%, #0c0810 100%) !important;
    border-bottom: 2px solid rgba(139,26,26,0.5) !important;
}

/* Stronger ambient glow at bottom of hero */
.dl-hero::before {
    background:
        radial-gradient(ellipse 70% 90% at 50% 130%, rgba(139,26,26,0.30) 0%, transparent 65%),
        radial-gradient(ellipse 50% 70% at 15% 60%, rgba(201,162,39,0.07) 0%, transparent 55%),
        radial-gradient(ellipse 50% 70% at 85% 60%, rgba(201,162,39,0.07) 0%, transparent 55%) !important;
}

/* ── Hero logo: larger and glowing ── */
.dl-hero-logo {
    height: 66px !important;
    filter:
        drop-shadow(0 0 28px rgba(201,162,39,0.45))
        drop-shadow(0 0 8px rgba(201,162,39,0.2))
        drop-shadow(0 4px 12px rgba(0,0,0,0.7)) !important;
    margin-bottom: 22px !important;
}

/* ── Hero title: bigger, more imposing ── */
.dl-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
    letter-spacing: 0.07em !important;
    text-shadow:
        0 0 50px rgba(201,162,39,0.55),
        0 0 20px rgba(201,162,39,0.25),
        0 3px 8px rgba(0,0,0,0.8) !important;
    margin-bottom: 12px !important;
}

/* ── Hero subtitle: slightly more visible ── */
.dl-hero-subtitle {
    font-size: 1.0rem !important;
    letter-spacing: 0.07em !important;
    color: rgba(200,184,154,0.7) !important;
}

/* ── Sections: more breathing room ── */
.dl-section {
    padding: 32px 28px !important;
    border-bottom: 1px solid rgba(45,26,26,0.5) !important;
}

/* Alternating very subtle section tinting */
.dl-section:nth-child(even) {
    background: rgba(201,162,39,0.015) !important;
}

/* ── Section title: much more prominent chapter heading ── */
.dl-section-title {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.18em !important;
    color: var(--gold-light) !important;
    text-shadow: 0 0 18px rgba(201,162,39,0.35) !important;
    margin-bottom: 24px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid rgba(201,162,39,0.12) !important;
    position: relative !important;
}

.dl-section-title .fa {
    color: var(--gold-primary) !important;
    text-shadow: 0 0 12px rgba(201,162,39,0.55) !important;
    margin-right: 4px !important;
}

/* Glowing dot after the title text */
.dl-section-title::after {
    background: linear-gradient(to right, rgba(201,162,39,0.35), transparent) !important;
    height: 1px !important;
    margin-top: 0 !important;
}

/* ── Download cards: premium treatment ── */
.dl-card {
    background: linear-gradient(160deg, #1b1813 0%, #130b10 50%, #0d0a12 100%) !important;
    border: 1px solid rgba(45,26,26,0.8) !important;
    border-radius: 12px !important;
    padding: 30px 18px !important;
    min-height: 172px !important;
    box-shadow:
        0 2px 20px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.03),
        inset 0 -1px 0 rgba(0,0,0,0.3) !important;
}

.dl-card:hover {
    border-color: rgba(201,162,39,0.45) !important;
    box-shadow:
        0 6px 35px rgba(139,26,26,0.28),
        0 0 0 1px rgba(201,162,39,0.18),
        0 2px 8px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(201,162,39,0.12),
        inset 0 0 30px rgba(201,162,39,0.03) !important;
    transform: translateY(-4px) !important;
}

/* Card platform icon: bigger with glow */
.dl-card-icon {
    font-size: 2.6rem !important;
    line-height: 1 !important;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)) !important;
    margin-bottom: 4px !important;
}

.dl-card-icon .fa {
    font-size: 2.6rem !important;
    color: var(--gold-primary) !important;
    text-shadow:
        0 0 20px rgba(201,162,39,0.5),
        0 0 6px rgba(201,162,39,0.25) !important;
}

/* Card OS name: more prominent */
.dl-card-os {
    font-size: 0.97rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    color: var(--text-inverse) !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6) !important;
}

.dl-card-label {
    font-size: 0.75rem !important;
    color: var(--text-secondary) !important;
    letter-spacing: 0.06em !important;
}

.dl-card-badge {
    font-size: 0.68rem !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    letter-spacing: 0.08em !important;
    background: rgba(201,162,39,0.10) !important;
    color: var(--gold-primary) !important;
    border: 1px solid rgba(201,162,39,0.3) !important;
    box-shadow: 0 0 10px rgba(201,162,39,0.12) !important;
}

.dl-card-badge.badge-alt {
    background: rgba(139,26,26,0.12) !important;
    color: #e08080 !important;
    border-color: rgba(139,26,26,0.3) !important;
    box-shadow: 0 0 10px rgba(139,26,26,0.12) !important;
}

/* ── IP Block: stone tablet look ── */
.dl-ip-block {
    background:
        linear-gradient(160deg, #18090e 0%, #100710 50%, #0c0610 100%) !important;
    border: 1px solid rgba(201,162,39,0.3) !important;
    border-radius: 10px !important;
    padding: 22px 22px !important;
    box-shadow:
        0 4px 24px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(201,162,39,0.08),
        inset 0 0 30px rgba(0,0,0,0.35) !important;
}

.dl-ip-label {
    font-size: 0.72rem !important;
    letter-spacing: 0.15em !important;
    color: var(--gold-dark) !important;
    text-shadow: 0 0 8px rgba(201,162,39,0.2) !important;
    text-transform: uppercase !important;
    margin-bottom: 10px !important;
}

.dl-ip-value {
    font-size: 1.28rem !important;
    color: var(--gold-light) !important;
    text-shadow: 0 0 20px rgba(201,162,39,0.3) !important;
    letter-spacing: 0.06em !important;
}

.dl-ip-copy-btn {
    background: rgba(201,162,39,0.12) !important;
    border: 1px solid rgba(201,162,39,0.3) !important;
    color: var(--gold-primary) !important;
    border-radius: 6px !important;
    padding: 5px 12px !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.08em !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 0 10px rgba(201,162,39,0.08) !important;
}

.dl-ip-copy-btn:hover {
    background: rgba(201,162,39,0.22) !important;
    box-shadow: 0 0 16px rgba(201,162,39,0.22) !important;
    color: var(--gold-light) !important;
}

/* ── Steps: richer number circles ── */
.dl-steps li::before {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.75rem !important;
    background: linear-gradient(180deg, #c9a227 0%, #8b6914 100%) !important;
    box-shadow:
        0 0 12px rgba(201,162,39,0.4),
        0 2px 6px rgba(0,0,0,0.5) !important;
    border: 1px solid rgba(201,162,39,0.5) !important;
}

/* ── Requirement rows: cleaner icon treatment ── */
.dl-req-row {
    padding: 11px 0 !important;
}

.dl-req-row .req-icon {
    color: var(--gold-dark) !important;
    font-size: 14px !important;
    text-shadow: 0 0 8px rgba(201,162,39,0.25) !important;
}

.dl-req-row .req-key {
    font-family: var(--font-heading) !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.06em !important;
    color: var(--text-secondary) !important;
    min-width: 120px !important;
}

/* ── Disclaimer: italics with muted parchment color ── */
.dl-disclaimer {
    font-size: 0.8rem !important;
    color: rgba(200,184,154,0.45) !important;
    letter-spacing: 0.03em !important;
    line-height: 1.8 !important;
}

/* ══════════════════════════════════════════════════════════════════════
   NAVBAR — POLISH & TWITCH LIVE INDICATOR
   ══════════════════════════════════════════════════════════════════════ */

/* Twitch live pulse dot */
.nav-twitch-link::before {
    content: '' !important;
    display: inline-block !important;
    width: 6px !important;
    height: 6px !important;
    background: #9147ff !important;
    border-radius: 50% !important;
    margin-right: 5px !important;
    vertical-align: middle !important;
    margin-top: -2px !important;
    box-shadow: 0 0 6px rgba(145,71,255,0.8), 0 0 12px rgba(145,71,255,0.4) !important;
    animation: twitch-pulse 2s ease-in-out infinite !important;
}

@keyframes twitch-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(145,71,255,0.8), 0 0 12px rgba(145,71,255,0.4); }
    50%       { opacity: 0.5; box-shadow: 0 0 3px rgba(145,71,255,0.4), 0 0 6px rgba(145,71,255,0.2); }
}

/* Play dropdown items use gold hover treatment */
.nav-links .dropdown-menu li a:hover {
    color: var(--gold-light) !important;
    background: linear-gradient(90deg, rgba(139,26,26,0.22), transparent) !important;
}

/* ══════════════════════════════════════════════════════════════════════
   LEFT SIDEBAR — FINAL SPEC (matches user brief)
   ══════════════════════════════════════════════════════════════════════ */

/* Section header: gradient + red-left-bar + gold title */
.left_box .box-header,
.right_box .box-header {
    min-height: 40px !important;
    background: linear-gradient(90deg, rgba(139,26,26,0.35) 0%, rgba(80,10,10,0.15) 70%, transparent 100%) !important;
    border-bottom: 1px solid rgba(45,26,26,0.6) !important;
    padding: 0 10px 0 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: auto !important;
}

.left_box .box-header h3,
.right_box .box-header h3 {
    color: #f0c040 !important;
    font-family: 'Cinzel', Georgia, serif !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    flex: 1 !important;
    margin: 0 !important;
    text-shadow: 0 0 12px rgba(240,192,64,0.2) !important;
}

/* Section type border accent */
.box-header--nav      { border-left: 3px solid #c0392b !important; }
.box-header--account  { border-left: 3px solid #c0392b !important; }
.box-header--community{ border-left: 3px solid #c0392b !important; }
.box-header--shop     { border-left: 3px solid #c9a227 !important; }
.box-header--library  { border-left: 3px solid #c0392b !important; }

/* Nav links: spec values */
.nav-menu a {
    font-size: 0.875rem !important;
    padding: 8px 10px 8px 20px !important;
    color: #9a8a7a !important;
    font-family: 'Lora', serif !important;
    border-left: 2px solid transparent !important;
    transition: all 0.18s ease !important;
    line-height: 1.4 !important;
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

.nav-menu a:hover {
    background: linear-gradient(90deg, rgba(139,26,26,0.12), transparent) !important;
    border-left-color: #c0392b !important;
    color: #e8d0a0 !important;
    padding-left: 24px !important;
}

.nav-menu a.active,
.nav-menu a.current {
    border-left-color: #e74c3c !important;
    color: #f0c040 !important;
    background: rgba(139,26,26,0.10) !important;
}

/* Nav icons */
.nav-menu i {
    font-size: 12px !important;
    margin-right: 7px !important;
    flex-shrink: 0 !important;
    width: 14px !important;
    text-align: center !important;
    color: rgba(201,162,39,0.55) !important;
}

.nav-menu a:hover i {
    color: var(--gold-primary) !important;
}

/* ══════════════════════════════════════════════════════════════════════
   CONTENT AREA — BODY RHYTHM
   ══════════════════════════════════════════════════════════════════════ */

.container_mid p,
.container_mid li,
.container_mid td,
.container_mid span:not([class]) {
    font-size: 0.925rem !important;
    line-height: 1.6 !important;
}

/* ══════════════════════════════════════════════════════════════════════
   CONTAINER_MID — BORDER RADIUS & DEPTH
   ══════════════════════════════════════════════════════════════════════ */

.container_mid {
    border-radius: 10px !important;
    box-shadow:
        0 0 0 1px rgba(139,26,26,0.06),
        0 8px 32px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(201,162,39,0.04),
        inset 0 0 60px rgba(0,0,0,0.35) !important;
    border: 1px solid rgba(45,26,26,0.7) !important;
}

/* ══════════════════════════════════════════════════════════════════════
   RIGHT SIDEBAR — WIDGET REDESIGN
   Replaces header.png / content.png look with pure CSS
   ══════════════════════════════════════════════════════════════════════ */

/* Download button pulse */
@keyframes vy-btn-pulse {
    0%,100% {
        box-shadow: 0 0 6px rgba(201,162,39,0.25), 0 2px 8px rgba(0,0,0,0.4);
    }
    50% {
        box-shadow: 0 0 18px rgba(201,162,39,0.5),
                    0 0 32px rgba(139,26,26,0.25),
                    0 2px 8px rgba(0,0,0,0.4);
    }
}

.download-button {
    animation: vy-btn-pulse 3.5s ease-in-out infinite !important;
    min-height: 48px !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.08em !important;
}

/* Widget headers: replace header.png with CSS gradient */
.container_right .well:not(.loginContainer) .header {
    background: linear-gradient(90deg, #1d170f 0%, #1a0608 50%, #1d170f 100%) !important;
    background-image: none !important;
    border-bottom: 1px solid rgba(139,105,20,0.3) !important;
    border-top: none !important;
    height: 38px !important;
    min-height: 38px !important;
    margin-bottom: 0 !important;
    padding: 0 12px !important;
    color: #f0c040 !important;
    font-family: 'Cinzel', serif !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    text-shadow: 0 0 10px rgba(240,192,64,0.18) !important;
    box-shadow: none !important;
    border-radius: 8px 8px 0 0 !important;
}

.container_right .well:not(.loginContainer) .header i {
    color: var(--gold-primary) !important;
    font-size: 0.78rem !important;
    margin-right: 6px !important;
}

/* Widget body: replace content.png with CSS */
.container_right .well:not(.loginContainer) .body {
    position: relative !important;
    background: linear-gradient(160deg, #160c12 0%, #0f080d 100%) !important;
    background-image: none !important;
    border: 1px solid rgba(139,105,20,0.28) !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
    padding: 10px 10px 14px !important;
    box-shadow: 0 6px 24px rgba(0,0,0,0.45), inset 0 0 30px rgba(0,0,0,0.2) !important;
}

.container_right .well:not(.loginContainer) .body::after {
    display: none !important;
}

/* Body text in redesigned widgets */
.container_right .well:not(.loginContainer) .body,
.container_right .well:not(.loginContainer) .body td,
.container_right .well:not(.loginContainer) .body span,
.container_right .well:not(.loginContainer) .body p {
    color: var(--text-primary) !important;
    font-size: 0.82rem !important;
}

.container_right .well:not(.loginContainer) .body a {
    color: var(--gold-dark) !important;
}

.container_right .well:not(.loginContainer) .body a:hover {
    color: var(--gold-primary) !important;
}

/* Table inside body: clean rows */
.container_right .well:not(.loginContainer) .body table {
    width: 100% !important;
    border-collapse: collapse !important;
}

.container_right .well:not(.loginContainer) .body td {
    padding: 6px 4px !important;
    border-bottom: 1px solid rgba(45,26,26,0.45) !important;
    vertical-align: middle !important;
    font-size: 0.82rem !important;
}

.container_right .well:not(.loginContainer) .body tr:last-child td {
    border-bottom: none !important;
}

/* Login widget */
.container_right .loginContainer {
    background: linear-gradient(160deg, #160c12 0%, #0f080d 100%) !important;
    border: 1px solid rgba(139,105,20,0.28) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    margin-bottom: 10px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35), inset 0 1px 0 rgba(201,162,39,0.06) !important;
}

.container_right .loginContainer .header {
    background: linear-gradient(90deg, #1d170f 0%, #1a0608 50%, #1d170f 100%) !important;
    border-bottom: 1px solid rgba(139,105,20,0.3) !important;
    padding: 10px 12px !important;
    color: #f0c040 !important;
    font-family: 'Cinzel', serif !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
}

.container_right .loginContainer .body {
    padding: 12px !important;
    background: transparent !important;
}

/* Social widgets (Discord, Twitch) */
.container_right .widget {
    background: linear-gradient(160deg, #160c12 0%, #0f080d 100%) !important;
    border: 1px solid rgba(139,105,20,0.28) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    margin-bottom: 10px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35), inset 0 1px 0 rgba(201,162,39,0.06) !important;
}

/* Server status mobile widget */
.right_box.server-status-widget-mobile .box-header {
    background: linear-gradient(90deg, #1d170f 0%, #1a0608 50%, #1d170f 100%) !important;
    background-image: none !important;
    border-bottom: 1px solid rgba(139,105,20,0.3) !important;
    height: 38px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
}

/* ══════════════════════════════════════════════════════════════════════
   DOWNLOADS PAGE — MONSTER FLOAT ANIMATION + ORNAMENTAL BORDER
   ══════════════════════════════════════════════════════════════════════ */

@keyframes vy-float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}

.dl-m-left {
    height: 96px !important;
    left: 24px !important;
    opacity: 0.5 !important;
    animation: vy-float 4s ease-in-out infinite !important;
}

.dl-m-right {
    height: 96px !important;
    right: 24px !important;
    opacity: 0.5 !important;
    animation: vy-float 4s ease-in-out infinite 2s !important;
}

/* Ornamental border overlay on hero — Mid copy 8.png (best complete frame) */
.dl-hero::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: none no-repeat center !important;
    background-size: 100% 100% !important;
    pointer-events: none !important;
    opacity: 0.15 !important;
    filter: hue-rotate(295deg) saturate(1.3) brightness(0.65) !important;
    z-index: 0 !important;
    mix-blend-mode: screen !important;
}

/* ═══════════════════════════════════════════════
   GLOBAL: Row variants, legacy font colours, forms
   ═══════════════════════════════════════════════ */

/* Yellow header rows — serverinfo, changelog, shop, market, auctionChar */
tr.yellow td, tr.yellow th {
    background: linear-gradient(90deg, rgba(8,3,6,0.95), rgba(26,14,18,0.85)) !important;
    color: var(--primary-color) !important;
    font-family: var(--font-heading);
    font-size: 0.7rem !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(201,162,39,0.3) !important;
    padding: 11px 10px !important;
}

/* Item/data rows (shop, market) */
tr.special td {
    background: rgba(17,8,16,0.55) !important;
    border-bottom: 1px solid rgba(45,26,26,0.5) !important;
    color: var(--text-primary) !important;
    vertical-align: middle !important;
}
tr.special:hover td { background: var(--bg-highlight) !important; }

/* Legacy <font color=""> result banners */
font[color="green"] {
    display: block;
    background: rgba(39,174,96,0.1);
    border-left: 3px solid var(--success);
    color: var(--success) !important;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin: 0 0 14px;
    font-size: 0.93rem;
    font-family: var(--font-body);
}
font[color="red"] {
    display: block;
    background: rgba(192,57,43,0.1);
    border-left: 3px solid var(--error);
    color: var(--error) !important;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin: 0 0 14px;
    font-size: 0.93rem;
    font-family: var(--font-body);
}

/* Changelog table */
#changelogTable td:first-child {
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.93rem;
    line-height: 1.65;
}
#changelogTable td b {
    color: var(--primary-color);
    font-size: 0.75rem;
    font-family: var(--font-heading);
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 4px;
}
#changelogTable td:not(:first-child) {
    width: 80px;
    text-align: center;
    vertical-align: middle;
}

/* Admin paste / changelog textarea */
.container_mid textarea {
    min-height: 120px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    width: 100%;
    resize: vertical;
    font-size: 0.88rem;
    margin: 8px 0 6px;
    box-sizing: border-box;
}
