﻿:root {
    --bg-0: #050302;
    --bg-1: #120a04;
    --bg-2: #1d1206;
    --card-bg: rgba(22, 13, 5, 0.75);
    --card-border: rgba(232, 194, 90, 0.2);
    --gold-deep: #5c4014;
    --gold-mid: #b8860b;
    --gold-bright: #e8c25a;
    --gold-hi: #fbe8b0;
    --diamond: #eaf4ff;
    --text-main: #e6dfd5;
    --text-muted: #a39582;
    --accent-red: #c0392b;
    --accent-blue: #2980b9;
    --accent-green: #27ae60;
  }

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

  body {
    width: 100%;
    min-height: 100vh;
    background: var(--bg-0);
    color: var(--text-main);
    font-family: 'Tajawal', 'Cinzel', sans-serif;
    overflow-x: hidden;
  }

  /* =========================================
     CINEMATIC ENTRANCE STAGE
     ========================================= */
  #entrance-stage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
      radial-gradient(ellipse 60% 80% at 20% 50%, rgba(184,134,11,0.16), transparent 60%),
      radial-gradient(ellipse 70% 90% at 100% 100%, rgba(92,64,20,0.25), transparent 55%),
      linear-gradient(135deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 100%);
    z-index: 9999;
    cursor: pointer;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.2s;
  }

  #entrance-stage.hidden-stage {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.08);
    pointer-events: none;
  }

  .glow-sweep {
    position: absolute;
    inset: -20%;
    background: conic-gradient(from 0deg at 50% 50%,
      transparent 0deg,
      rgba(232,194,90,0.05) 60deg,
      transparent 140deg,
      transparent 220deg,
      rgba(184,134,11,0.07) 300deg,
      transparent 360deg);
    animation: rotateSweep 26s linear infinite;
    filter: blur(20px);
    pointer-events: none;
  }
  @keyframes rotateSweep {
    to { transform: rotate(360deg); }
  }

  .particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
  }

  .particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold-hi) 0%, var(--gold-mid) 60%, transparent 75%);
    opacity: 0;
    animation: drift linear infinite;
  }
  @keyframes drift {
    0% { transform: translateY(20px) translateX(0) scale(0.4); opacity: 0; }
    10% { opacity: .9; }
    50% { opacity: .6; }
    90% { opacity: 0; }
    100% { transform: translateY(-420px) translateX(var(--dx, 30px)) scale(1); opacity: 0; }
  }

  .halo {
    position: absolute;
    width: 900px;
    height: 900px;
    border-radius: 50%;
    border: 1px solid rgba(232,194,90,0.10);
    box-shadow: 0 0 60px rgba(184,134,11,0.08) inset;
    animation: haloSpin 40s linear infinite;
    pointer-events: none;
  }
  .halo.h2 {
    width: 1150px;
    height: 1150px;
    border-color: rgba(184,134,11,0.06);
    animation-duration: 60s;
    animation-direction: reverse;
  }
  @keyframes haloSpin { to { transform: rotate(360deg); } }

  .content {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 5vw, 80px);
    width: min(1200px, 92vw);
    user-select: none;
  }

  .logo-wrap {
    flex: 0 0 auto;
    width: clamp(140px, 18vw, 240px);
    opacity: 0;
    transform: scale(1.6) rotate(-8deg);
    filter: drop-shadow(0 0 0 rgba(232,194,90,0));
    animation: logoIn 1.4s cubic-bezier(.16,.9,.28,1) 0.15s forwards;
  }
  .logo-wrap img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 6px 30px rgba(0,0,0,0.6));
  }
  @keyframes logoIn {
    0% { opacity: 0; transform: scale(1.7) rotate(-10deg); filter: drop-shadow(0 0 0 rgba(232,194,90,0)); }
    55% { opacity: 1; transform: scale(0.92) rotate(2deg); filter: drop-shadow(0 0 40px rgba(232,194,90,0.55)); }
    75% { transform: scale(1.04) rotate(-1deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 16px rgba(232,194,90,0.28)); }
  }

  .text-wrap {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .eyebrow-line {
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    animation: fadeUp .9s ease 0.85s forwards;
  }
  .eyebrow-line .bar {
    width: 0px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-bright));
    animation: barGrow 1s ease 0.9s forwards;
  }
  .eyebrow-line .gem {
    width: 9px;
    height: 9px;
    background: linear-gradient(135deg, #fff, var(--diamond) 40%, #8fb4d4 70%, #fff);
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(234,244,255,0.8);
    flex: 0 0 auto;
  }
  .eyebrow-line span.label {
    font-size: clamp(11px, 1.1vw, 14px);
    letter-spacing: .45em;
    color: var(--gold-mid);
    text-transform: uppercase;
    white-space: nowrap;
    font-family: 'Cinzel', serif;
  }
  @keyframes barGrow { to { width: 64px; } }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

  .title-numidia {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-weight: 900;
    font-size: clamp(34px, 6.2vw, 84px);
    line-height: 1;
    letter-spacing: .04em;
    background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold-bright) 30%, var(--gold-mid) 60%, var(--gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
    opacity: 0;
    transform: translateX(-60px);
    animation: slideIn .9s cubic-bezier(.2,.85,.3,1) 0.45s forwards;
    white-space: nowrap;
  }

  .title-roleplay {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: clamp(16px, 2.4vw, 32px);
    letter-spacing: .55em;
    color: #f1dfae;
    opacity: 0;
    transform: translateX(-40px);
    animation: slideIn .9s cubic-bezier(.2,.85,.3,1) 0.68s forwards;
    white-space: nowrap;
    padding-inline-start: 2px;
  }
  @keyframes slideIn { to { opacity: 1; transform: translateX(0); } }

  .enter-prompt {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Cinzel', 'Tajawal', serif;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--gold-bright);
    background: rgba(184, 134, 11, 0.1);
    padding: 10px 24px;
    border-radius: 30px;
    border: 1px solid rgba(232, 194, 90, 0.3);
    animation: pulsePrompt 2s infinite ease-in-out;
  }
  @keyframes pulsePrompt {
    0%, 100% { opacity: 0.6; transform: scale(1); box-shadow: 0 0 10px rgba(232,194,90,0.1); }
    50% { opacity: 1; transform: scale(1.03); box-shadow: 0 0 25px rgba(232,194,90,0.4); }
  }

  /* =========================================
     MAIN PORTAL WEBPAGE
     ========================================= */
  #main-portal {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background: radial-gradient(circle at 50% 0%, var(--bg-1), var(--bg-0) 70%);
    min-height: 100vh;
    display: none;
  }

  #main-portal.active-portal {
    display: block;
    opacity: 1;
  }

  /* Navigation Bar */
  .navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5%;
    background: rgba(10, 6, 3, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--card-border);
  }

  .nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
  }

  .nav-logo {
    width: 42px;
    height: auto;
  }

  .nav-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(180deg, var(--gold-hi), var(--gold-bright));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
  }

  .nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
  }

  .nav-links a:hover {
    color: var(--gold-bright);
    text-shadow: 0 0 8px rgba(232, 194, 90, 0.5);
  }

  .nav-cta {
    display: flex;
    gap: 12px;
  }

  .btn {
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
  }

  .btn-gold {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-mid));
    color: #120a04;
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
  }

  .btn-gold:hover {
    background: linear-gradient(135deg, #fff, var(--gold-bright));
    box-shadow: 0 6px 25px rgba(232, 194, 90, 0.5);
    transform: translateY(-2px);
  }

  .btn-discord {
    background: #5865F2;
    color: #fff;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
  }

  .btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
  }

  /* Hero Section */
  .hero-section {
    position: relative;
    padding: 100px 5% 80px;
    text-align: center;
    overflow: hidden;
  }

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(184, 134, 11, 0.12);
    border: 1px solid var(--gold-mid);
    padding: 6px 18px;
    border-radius: 20px;
    color: var(--gold-bright);
    font-size: 0.85rem;
    margin-bottom: 25px;
    font-family: 'Cinzel', serif;
  }

  .hero-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 20px;
    background: linear-gradient(180deg, #fff, var(--gold-bright) 60%, var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .hero-subtitle {
    max-width: 750px;
    margin: 0 auto 40px;
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
  }

  .server-status-card {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  }

  .status-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .status-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .status-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-bright);
    font-family: 'Cinzel', serif;
  }

  /* Section Standard Layout */
  .section {
    padding: 90px 8%;
    border-top: 1px solid rgba(232, 194, 90, 0.08);
  }

  .section-header {
    text-align: center;
    margin-bottom: 60px;
  }

  .section-tag {
    font-family: 'Cinzel', serif;
    color: var(--gold-mid);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
  }

  .section-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.3rem;
    color: var(--gold-hi);
  }

  /* Grid & Cards */
  .grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
  }

  .grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
  }

  .card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 32px;
    border-radius: 14px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
  }

  .card:hover {
    transform: translateY(-6px);
    border-color: rgba(232, 194, 90, 0.5);
    box-shadow: 0 12px 35px rgba(92, 64, 20, 0.3);
  }

  .card-icon {
    font-size: 2.2rem;
    color: var(--gold-bright);
    margin-bottom: 20px;
  }

  .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--gold-hi);
  }

  .card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
  }

  /* Rules & Jobs Tabs */
  .tab-container {
    margin-top: 40px;
  }

  .tab-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 35px;
    flex-wrap: wrap;
  }

  .tab-btn {
    background: rgba(184, 134, 11, 0.08);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: 'Tajawal', sans-serif;
  }

  .tab-btn.active, .tab-btn:hover {
    background: var(--gold-mid);
    color: #050302;
    border-color: var(--gold-bright);
  }

  .tab-content {
    display: none;
  }

  .tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
  }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .rule-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: rgba(5, 3, 2, 0.6);
    border-radius: 8px;
    margin-bottom: 16px;
    border-right: 4px solid var(--gold-mid);
  }

  .rule-number {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gold-bright);
    min-width: 32px;
  }

  .rule-title {
    font-weight: 700;
    color: var(--gold-hi);
    margin-bottom: 6px;
  }

  /* VIP Tiers */
  .vip-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
  }

  .vip-card.featured {
    border-color: var(--gold-bright);
    background: linear-gradient(180deg, rgba(92, 64, 20, 0.4), var(--card-bg));
    transform: scale(1.04);
    box-shadow: 0 15px 45px rgba(184, 134, 11, 0.25);
  }

  .vip-badge {
    position: absolute;
    top: -14px;
    right: 50%;
    transform: translateX(50%);
    background: var(--gold-bright);
    color: #050302;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .vip-tier-name {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--gold-hi);
  }

  .vip-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold-bright);
    margin-bottom: 25px;
    font-family: 'Cinzel', serif;
  }

  .vip-price span {
    font-size: 0.9rem;
    color: var(--text-muted);
  }

  .vip-features {
    list-style: none;
    text-align: right;
    margin-bottom: 30px;
  }

  .vip-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(232, 194, 90, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-size: 0.95rem;
  }

  .vip-features li i {
    color: var(--gold-bright);
  }

  /* Support & Ticketing */
  .ticket-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
  }

  .form-group {
    margin-bottom: 22px;
  }

  .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gold-hi);
  }

  .form-control {
    width: 100%;
    background: rgba(5, 3, 2, 0.8);
    border: 1px solid var(--card-border);
    color: #fff;
    padding: 14px 18px;
    border-radius: 8px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
  }

  .form-control:focus {
    outline: none;
    border-color: var(--gold-bright);
    box-shadow: 0 0 15px rgba(232, 194, 90, 0.2);
  }

  .form-hint {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
  }

  .whitelist-template {
    background: rgba(5, 3, 2, 0.85);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 18px;
    direction: ltr;
    text-align: left;
  }

  .whitelist-template pre {
    margin: 0;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--gold-hi);
    white-space: pre-wrap;
  }

  .whitelist-notes {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .whitelist-notes li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .whitelist-notes li i {
    color: var(--gold-bright);
    margin-top: 4px;
    flex-shrink: 0;
  }

  .whitelist-notes code {
    color: var(--gold-hi);
    font-size: 0.88rem;
  }

  /* Footer */
  .footer {
    background: #020101;
    border-top: 1px solid var(--card-border);
    padding: 50px 8% 30px;
    text-align: center;
  }

  .footer-brand {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.6rem;
    color: var(--gold-bright);
    margin-bottom: 16px;
  }

  .footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
    list-style: none;
  }

  .footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
  }

  .footer-links a:hover {
    color: var(--gold-bright);
  }

  .copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
  }

  @media (max-width: 850px) {
    .content { flex-direction: column; text-align: center; gap: 20px; }
    .text-wrap { align-items: center; }
    .eyebrow-line { justify-content: center; }
    .title-numidia, .title-roleplay { white-space: normal; text-align: center; }
    .nav-links { display: none; }
    .vip-card.featured { transform: scale(1); }
  }

  .dynamic-card-image { width:100%; height:190px; border-radius:12px; overflow:hidden; background:rgba(0,0,0,.25); margin-bottom:16px; display:flex; align-items:center; justify-content:center; }
  .dynamic-card-image img { width:100%; height:100%; object-fit:cover; display:block; transition: transform 0.5s cubic-bezier(.16,1,.3,1); }
  .dynamic-image-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:var(--gold-mid); font-size:3rem; }
  .dynamic-product-card { overflow:hidden; }
  .static-badge { position:static !important; display:inline-block; margin-bottom:10px; }

  /* =========================================
     BRAINROT UPGRADE â€” glow, pop, interactivity
     ========================================= */
  #cursor-glow {
    position: fixed;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(232,194,90,0.14) 0%, rgba(184,134,11,0.06) 35%, transparent 70%);
    mix-blend-mode: screen;
    transition: opacity 0.3s;
    opacity: 0;
  }
  #cursor-glow.visible { opacity: 1; }

  .ambient-particle {
    position: fixed;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gold-hi);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    animation: ambientDrift linear infinite;
    box-shadow: 0 0 8px rgba(232,194,90,0.8);
  }
  @keyframes ambientDrift {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    8% { opacity: 0.7; }
    92% { opacity: 0.3; }
    100% { transform: translateY(-10vh) translateX(var(--dx, 20px)); opacity: 0; }
  }

  .reveal-ready {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
  }
  .reveal-ready.reveal-in {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .brainrot-card {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    transition: transform 0.15s ease-out, box-shadow 0.35s ease, border-color 0.35s ease;
  }
  .brainrot-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(232,194,90,0.5), transparent 40%, transparent 60%, rgba(184,134,11,0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
  }
  .brainrot-card:hover::before,
  .vip-card.featured::before { opacity: 1; }

  .featured-pop {
    animation: featuredPulse 3s ease-in-out infinite;
  }
  @keyframes featuredPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(232,194,90,0.2), 0 12px 35px rgba(92,64,20,0.3); }
    50% { box-shadow: 0 0 40px rgba(232,194,90,0.45), 0 0 80px rgba(184,134,11,0.15), 0 16px 45px rgba(92,64,20,0.4); }
  }

  .brainrot-card:hover {
    box-shadow: 0 0 30px rgba(232,194,90,0.25), 0 20px 50px rgba(0,0,0,0.5);
    border-color: rgba(232,194,90,0.6);
  }
  .brainrot-card:hover .dynamic-card-image img {
    transform: scale(1.08);
  }

  .btn-shimmer {
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }
  .btn-shimmer::after {
    content: '';
    position: absolute;
    inset: -50%;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.55) 50%, transparent 60%);
    transform: translateX(-120%) rotate(25deg);
    animation: shimmer 2.8s ease-in-out infinite;
    pointer-events: none;
  }
  @keyframes shimmer {
    0%, 70%, 100% { transform: translateX(-120%) rotate(25deg); }
    85% { transform: translateX(120%) rotate(25deg); }
  }

  .btn-gold:hover {
    animation: btnPop 0.4s cubic-bezier(.16,1,.3,1);
  }
  @keyframes btnPop {
    0% { transform: translateY(-2px) scale(1); }
    50% { transform: translateY(-4px) scale(1.04); }
    100% { transform: translateY(-2px) scale(1); }
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-bright), var(--gold-hi));
    box-shadow: 0 0 10px var(--gold-bright);
    transition: width 0.35s cubic-bezier(.16,1,.3,1);
  }
  .nav-links a:hover::after { width: 100%; }

  .hero-title {
    animation: titleGlow 4s ease-in-out infinite;
  }
  @keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(232,194,90,0.2)); }
    50% { filter: drop-shadow(0 0 22px rgba(232,194,90,0.45)); }
  }

  .server-status-card {
    animation: statusFloat 5s ease-in-out infinite;
  }
  @keyframes statusFloat {
    0%, 100% { transform: translateY(0); box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
    50% { transform: translateY(-6px); box-shadow: 0 18px 50px rgba(184,134,11,0.2); }
  }

  .section-title {
    text-shadow: 0 0 30px rgba(232,194,90,0.15);
  }

  .vip-badge, .static-badge {
    box-shadow: 0 0 15px rgba(232,194,90,0.4);
    animation: badgeBounce 2.5s ease-in-out infinite;
  }
  @keyframes badgeBounce {
    0%, 100% { transform: translateX(50%) translateY(0); }
    50% { transform: translateX(50%) translateY(-3px); }
  }
  .static-badge {
    animation: badgeBounceStatic 2.5s ease-in-out infinite;
  }
  @keyframes badgeBounceStatic {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
  }

  .card-icon {
    filter: drop-shadow(0 0 8px rgba(232,194,90,0.35));
    transition: transform 0.35s, filter 0.35s;
  }
  .card:hover .card-icon {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 0 16px rgba(232,194,90,0.6));
  }

  .tab-btn.active {
    box-shadow: 0 0 20px rgba(232,194,90,0.35);
  }

  .live-card {
    border-color: rgba(39,174,96,0.3);
  }
  .live-card:hover {
    box-shadow: 0 0 25px rgba(39,174,96,0.2);
  }

  #main-portal.active-portal {
    animation: portalReveal 1s cubic-bezier(.16,1,.3,1);
  }
  @keyframes portalReveal {
    from { opacity: 0; filter: blur(8px); }
    to { opacity: 1; filter: blur(0); }
  }

  @media (prefers-reduced-motion: reduce) {
    .featured-pop, .btn-shimmer::after, .hero-title, .server-status-card, .vip-badge, .static-badge, .ambient-particle { animation: none !important; }
    .brainrot-card, .reveal-ready { transform: none !important; transition: none !important; opacity: 1 !important; }
    #cursor-glow { display: none; }
  }

/* Multi-page layout extras */
.page-shell { min-height: 100vh; }
.nav-links a.active-nav { color: var(--gold-hi); }
.rules-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 24px;
  align-items: start;
}
.rules-sidebar {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 12px;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.rules-cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-main);
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 6px;
  transition: .25s;
}
.rules-cat-btn:hover, .rules-cat-btn.active {
  border-color: rgba(232,194,90,.35);
  background: rgba(184,134,11,.12);
}
.rules-cat-icon { font-size: 1.25rem; flex: 0 0 auto; }
.rules-cat-labels { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rules-cat-title { font-weight: 700; font-size: .95rem; }
.rules-cat-sub { color: var(--text-muted); font-size: .75rem; font-family: Cinzel, serif; }
.rules-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px;
  min-height: 420px;
}
.rules-content-head { margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid rgba(232,194,90,.15); }
.rules-content-head h2 { font-family: Tajawal, sans-serif; color: var(--gold-hi); font-size: 1.55rem; margin-bottom: 6px; }
.rules-content-head p { color: var(--text-muted); font-size: .9rem; }
.rule-card {
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(232,194,90,.12);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.rule-card h3 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--gold-bright);
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 1.45;
}
.rule-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(184,134,11,.2);
  border: 1px solid rgba(232,194,90,.35);
  font-size: .8rem;
  font-weight: 700;
  flex: 0 0 auto;
}
.rule-card p {
  color: var(--text-muted);
  line-height: 1.75;
  white-space: pre-line;
  font-size: .95rem;
}
.page-hero-compact { padding-top: 140px; padding-bottom: 40px; }
.page-hero-compact .hero-title { font-size: clamp(2rem, 5vw, 3.2rem); }

.status-connect { min-width: 160px; }
.status-connect .btn { width: 100%; justify-content: center; font-size: 0.9rem; padding: 10px 16px; }

.live-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.live-feed-card { min-height: 260px; }
.live-capacity { margin: 16px 0 12px; }
.live-capacity-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(232,194,90,.15);
  overflow: hidden;
  margin-bottom: 8px;
}
.live-capacity-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-mid), var(--gold-bright));
  box-shadow: 0 0 12px rgba(232,194,90,.45);
  transition: width .6s cubic-bezier(.16,1,.3,1);
}
.live-player-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.live-player-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(232,194,90,.1);
  color: var(--text-main);
  font-size: 0.92rem;
}
.live-player-list .ping {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: Cinzel, serif;
}
.live-stream-mini {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.live-stream-mini a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-main);
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(39,174,96,.25);
  transition: .25s;
}
.live-stream-mini a:hover {
  border-color: rgba(39,174,96,.55);
  box-shadow: 0 0 16px rgba(39,174,96,.15);
}
.live-updated { font-size: 0.8rem !important; color: var(--text-muted) !important; margin-top: 10px; }
code { color: var(--gold-hi); background: rgba(0,0,0,.25); padding: 2px 8px; border-radius: 6px; }

@media (max-width: 900px) {
  .rules-layout { grid-template-columns: 1fr; }
  .rules-sidebar { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 6px; }
  .rules-cat-btn { width: auto; flex: 1 1 45%; }
  .live-feed-grid { grid-template-columns: 1fr; }
}
