/* ============================================================
   ULTIMATE2 MMORPG — NEW DESIGN SYSTEM
   Dark Fantasy Theme with Gold & Ice Accents
   ============================================================ */

/* === CSS Reset === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === Custom Properties === */
:root {
    /* Core Colors */
    --bg-primary: #080b14;
    --bg-secondary: #0d1117;
    --bg-card: #111827;
    --bg-card-hover: #1a2332;
    --bg-glass: rgba(17, 24, 39, 0.65);
    --bg-glass-strong: rgba(17, 24, 39, 0.85);

    /* Accent Colors */
    --gold: #d4a843;
    --gold-light: #f0d078;
    --gold-dark: #a07830;
    --ice: #64b5f6;
    --ice-light: #90caf9;
    --ice-dark: #1e88e5;
    --crimson: #e53935;
    --emerald: #43a047;
    --purple: #7c4dff;

    /* Text Colors */
    --text-primary: #e8eaed;
    --text-secondary: #9aa0a6;
    --text-muted: #5f6368;
    --text-gold: #d4a843;

    /* Borders & Shadows */
    --border: rgba(212, 168, 67, 0.15);
    --border-hover: rgba(212, 168, 67, 0.4);
    --glow-gold: 0 0 20px rgba(212, 168, 67, 0.3);
    --glow-ice: 0 0 20px rgba(100, 181, 246, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-elevated: 0 16px 48px rgba(0, 0, 0, 0.7);

    /* Spacing & Sizing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --nav-height: 72px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.3s;
}

/* === Typography === */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', 'Georgia', serif;
    font-weight: 700;
    line-height: 1.2;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-dark), var(--gold));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

/* === Background Ambience === */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(212, 168, 67, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 80%, rgba(100, 181, 246, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(124, 77, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* Particle Canvas */
#particles-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* === Layout === */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.main-content {
    min-height: calc(100vh - var(--nav-height));
    padding: 2rem 0 4rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(8, 11, 20, 0.75);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border-bottom: 1px solid var(--border);
    transition: transform var(--duration) var(--ease), background var(--duration) var(--ease);
}

.main-header.scrolled {
    background: rgba(8, 11, 20, 0.95);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.main-header.hidden {
    transform: translateY(-100%);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    gap: 2rem;
}

/* Logo */
.nav-brand a {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(212, 168, 67, 0.5);
    transition: text-shadow var(--duration) var(--ease);
    position: relative;
}

.nav-brand a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    transform: scaleX(0);
    transition: transform var(--duration) var(--ease);
}

.nav-brand a:hover {
    text-shadow: 0 0 40px rgba(212, 168, 67, 0.8), 0 0 80px rgba(212, 168, 67, 0.3);
}

.nav-brand a:hover::after {
    transform: scaleX(1);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
    position: relative;
    letter-spacing: 0.5px;
}

.nav-menu li a:hover {
    color: var(--gold-light);
    background: rgba(212, 168, 67, 0.08);
}

/* Nav Buttons */
.btn-login {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold)) !important;
    color: var(--bg-primary) !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: var(--radius-xl) !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--gold);
    box-shadow: 0 2px 12px rgba(212, 168, 67, 0.25);
    transition: all var(--duration) var(--ease) !important;
}

.btn-login:hover {
    box-shadow: var(--glow-gold), 0 4px 20px rgba(212, 168, 67, 0.4) !important;
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
}

.btn-logout {
    background: rgba(229, 57, 53, 0.15) !important;
    color: var(--crimson) !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: var(--radius-xl) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    border: 1px solid rgba(229, 57, 53, 0.3);
    transition: all var(--duration) var(--ease) !important;
}

.btn-logout:hover {
    background: rgba(229, 57, 53, 0.25) !important;
    border-color: var(--crimson) !important;
}

.btn-payment {
    background: linear-gradient(135deg, var(--purple), var(--ice-dark)) !important;
    color: #fff !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: var(--radius-xl) !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(124, 77, 255, 0.5);
    box-shadow: 0 2px 12px rgba(124, 77, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all var(--duration) var(--ease) !important;
    animation: payment-glow 3s ease-in-out infinite;
}

.btn-payment::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine-sweep 4s linear infinite;
}

.btn-payment:hover {
    box-shadow: 0 0 30px rgba(124, 77, 255, 0.5), 0 4px 20px rgba(100, 181, 246, 0.3) !important;
    transform: translateY(-1px);
}

@keyframes payment-glow {
    0%, 100% { box-shadow: 0 2px 12px rgba(124, 77, 255, 0.2); }
    50% { box-shadow: 0 2px 20px rgba(124, 77, 255, 0.4), 0 0 40px rgba(100, 181, 246, 0.15); }
}

@keyframes shine-sweep {
    0% { left: -200%; }
    100% { left: 200%; }
}

/* Username Display */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.username {
    color: var(--gold-light);
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 0 10px rgba(212, 168, 67, 0.3);
}

/* Language Selector */
.language-selector {
    position: relative;
    z-index: 10000;
}

.flag-icon {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 6px;
}

.lang-btn {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-xl);
    cursor: pointer;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    transition: all var(--duration) var(--ease);
}

.lang-btn:hover {
    border-color: var(--border-hover);
    color: var(--gold-light);
    background: var(--bg-card-hover);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-elevated);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--duration) var(--ease);
    z-index: 99999;
    overflow: hidden;
}

.language-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-item {
    display: block;
    padding: 0.65rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all var(--duration) var(--ease);
}

.lang-item:hover {
    background: rgba(212, 168, 67, 0.1);
    color: var(--gold-light);
}

.lang-item.active {
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.2), rgba(212, 168, 67, 0.1));
    color: var(--gold);
    font-weight: 600;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gold);
    transition: all var(--duration) var(--ease);
    border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    padding: 10rem 0 6rem;
    text-align: center;
    overflow: hidden;
    margin-top: var(--nav-height);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(212, 168, 67, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 70%, rgba(100, 181, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(124, 77, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    pointer-events: none;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--gold);
    text-shadow:
        0 0 40px rgba(212, 168, 67, 0.4),
        0 0 80px rgba(212, 168, 67, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    animation: hero-title-entrance 1s var(--ease) both;
}

@keyframes hero-title-entrance {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-section p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    position: relative;
    z-index: 2;
    animation: hero-text-entrance 1s var(--ease) 0.2s both;
}

@keyframes hero-text-entrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Decorative line under hero */
.hero-divider {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 3rem;
    position: relative;
    z-index: 2;
}

.hero-divider::before {
    content: '◆';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gold);
    font-size: 0.7rem;
    text-shadow: 0 0 10px var(--gold);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
}

.btn:hover::after {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--bg-primary);
    border-color: var(--gold);
    box-shadow: 0 4px 16px rgba(212, 168, 67, 0.25);
    font-weight: 700;
}

.btn-primary:hover {
    box-shadow: var(--glow-gold), 0 6px 24px rgba(212, 168, 67, 0.35);
    transform: translateY(-2px);
}

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

.btn-secondary {
    background: transparent;
    color: var(--ice);
    border-color: var(--ice);
    box-shadow: 0 2px 8px rgba(100, 181, 246, 0.1);
}

.btn-secondary:hover {
    background: rgba(100, 181, 246, 0.1);
    box-shadow: var(--glow-ice), 0 4px 16px rgba(100, 181, 246, 0.2);
    transform: translateY(-2px);
}

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

/* ============================================
   CARDS
   ============================================ */
.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0 4rem;
    position: relative;
    z-index: 1;
}

.download-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.download-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card), var(--glow-gold);
    background: var(--bg-glass-strong);
}

.download-card:hover::before {
    opacity: 1;
}

.download-card .card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.15), rgba(212, 168, 67, 0.05));
    border: 1px solid rgba(212, 168, 67, 0.2);
    color: var(--gold);
    font-size: 1.5rem;
}

.download-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--gold-light);
    margin-bottom: 0.75rem;
    text-shadow: 0 0 15px rgba(212, 168, 67, 0.3);
}

.download-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.download-card .btn {
    width: 100%;
    margin-top: auto;
}

/* ============================================
   FORMS
   ============================================ */
.form-container {
    max-width: 480px;
    margin: 2rem auto;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    position: relative;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1.2rem;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all var(--duration) var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1), var(--glow-gold);
    background: rgba(17, 24, 39, 0.95);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-submit {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--bg-primary);
    border: 1px solid var(--gold);
    border-radius: var(--radius-xl);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    box-shadow: 0 4px 16px rgba(212, 168, 67, 0.2);
}

.form-submit:hover {
    box-shadow: var(--glow-gold), 0 6px 24px rgba(212, 168, 67, 0.4);
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

.form-submit:active {
    transform: translateY(0);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    animation: alert-slide-in 0.4s var(--ease) both;
}

@keyframes alert-slide-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.alert-success {
    background: rgba(67, 160, 71, 0.12);
    color: var(--emerald);
    border: 1px solid rgba(67, 160, 71, 0.25);
}

.alert-success::before {
    background: var(--emerald);
}

.alert-error {
    background: rgba(229, 57, 53, 0.12);
    color: var(--crimson);
    border: 1px solid rgba(229, 57, 53, 0.25);
}

.alert-error::before {
    background: var(--crimson);
}

/* ============================================
   HERO BUTTONS CONTAINER
   ============================================ */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    animation: hero-text-entrance 1s var(--ease) 0.4s both;
}

/* ============================================
   FEATURE SECTIONS (Index page)
   ============================================ */
.features-section {
    padding: 4rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--gold);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(212, 168, 67, 0.2);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1rem;
}

.section-title .divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1rem auto 0;
    position: relative;
}

.section-title .divider::before {
    content: '◆';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gold);
    font-size: 0.5rem;
}

/* ============================================
   DOWNLOAD PAGE SPECIFICS
   ============================================ */
.download-card svg {
    color: var(--gold);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px rgba(212, 168, 67, 0.3));
    transition: all 0.4s var(--ease);
}

.download-card:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(212, 168, 67, 0.5));
}

.requirements-box {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 3rem;
}

.requirements-box h3 {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.requirements-box ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.requirements-box li {
    color: var(--text-secondary);
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.requirements-box li::before {
    content: '▸';
    color: var(--gold);
    font-size: 0.75rem;
}

.requirements-box li strong {
    color: var(--text-primary);
    min-width: 90px;
}

/* ============================================
   PAYMENT PAGE
   ============================================ */
.balance-display {
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.12), rgba(100, 181, 246, 0.08));
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.balance-item h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.balance-item .balance-value {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-light);
    text-shadow: 0 0 20px rgba(212, 168, 67, 0.3);
}

/* Package Cards */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.package-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.package-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card), var(--glow-gold);
}

.package-card:hover::before {
    opacity: 1;
}

.package-featured {
    border-color: var(--gold-dark);
    background: linear-gradient(135deg, var(--bg-glass), rgba(212, 168, 67, 0.06));
}

.package-badge {
    position: absolute;
    top: 14px;
    right: -32px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--bg-primary);
    padding: 4px 40px;
    font-size: 0.7rem;
    font-weight: 700;
    transform: rotate(45deg);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.package-title {
    font-family: 'Cinzel', serif;
    color: var(--gold-light);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.package-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1.5rem;
}

.package-details {
    flex: 1;
    margin-bottom: 1.5rem;
}

.package-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.package-icon {
    font-size: 1.3rem;
}

.bonus-text {
    color: var(--emerald);
    font-size: 0.8rem;
    display: block;
    margin-top: 0.2rem;
}

.btn-package {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--bg-primary);
    border: 1px solid var(--gold);
    border-radius: var(--radius-xl);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    box-shadow: 0 2px 12px rgba(212, 168, 67, 0.2);
}

.btn-package:hover {
    box-shadow: var(--glow-gold), 0 4px 20px rgba(212, 168, 67, 0.4);
    transform: translateY(-2px);
}

/* Secure Payment Box */
.secure-payment-box {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-top: 3rem;
    text-align: center;
}

.secure-payment-box h3 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.secure-payment-box p {
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.9rem;
}

/* ============================================
   PANEL PAGE
   ============================================ */
.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.panel-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
}

.panel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.panel-card h3 {
    color: var(--gold);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
}

.info-value.gold {
    color: var(--gold-light);
    text-shadow: 0 0 8px rgba(212, 168, 67, 0.2);
}

/* ============================================
   PAYMENT RESULT PAGE
   ============================================ */
.payment-result {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 2rem;
}

.payment-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
}

.payment-result.success .payment-icon {
    background: linear-gradient(135deg, rgba(67, 160, 71, 0.2), rgba(67, 160, 71, 0.05));
    color: var(--emerald);
    border: 2px solid rgba(67, 160, 71, 0.3);
    box-shadow: 0 0 30px rgba(67, 160, 71, 0.15);
}

.payment-result.failed .payment-icon {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.2), rgba(229, 57, 53, 0.05));
    color: var(--crimson);
    border: 2px solid rgba(229, 57, 53, 0.3);
    box-shadow: 0 0 30px rgba(229, 57, 53, 0.15);
}

.payment-result.pending .payment-icon {
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.2), rgba(212, 168, 67, 0.05));
    color: var(--gold);
    border: 2px solid rgba(212, 168, 67, 0.3);
    box-shadow: 0 0 30px rgba(212, 168, 67, 0.15);
    animation: pending-pulse 2s ease-in-out infinite;
}

@keyframes pending-pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(212, 168, 67, 0.15); }
    50% { box-shadow: 0 0 50px rgba(212, 168, 67, 0.3); }
}

.payment-result h1 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.payment-result p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.payment-details {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.payment-details h3 {
    color: var(--gold);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1rem;
}

.payment-details table {
    width: 100%;
    border-collapse: collapse;
}

.payment-details td {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
}

.payment-details td:first-child {
    color: var(--text-secondary);
    width: 45%;
}

.payment-details td:last-child {
    text-align: right;
    color: var(--text-primary);
}

.payment-details tr:last-child td {
    border-bottom: none;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: rgba(8, 11, 20, 0.95);
    border-top: 1px solid var(--border);
    padding: 4rem 0 1.5rem;
    margin-top: 6rem;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(212, 168, 67, 0.2);
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--duration) var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-links a::before {
    content: '›';
    color: var(--gold-dark);
    transition: transform var(--duration) var(--ease);
}

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

.footer-links a:hover::before {
    transform: translateX(3px);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    transition: all var(--duration) var(--ease);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    color: var(--gold-light);
    border-color: var(--border-hover);
    box-shadow: var(--glow-gold);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-toggle {
        display: flex;
    }

    .navbar {
        flex-wrap: wrap;
    }

    .nav-menu {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg-glass-strong);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 1rem;
        display: none;
        border-bottom: 1px solid var(--border);
        gap: 0.25rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li a {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }

    .hero-section {
        padding: 7rem 0 4rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .download-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .panel-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        margin: 2rem 1rem;
        padding: 2rem 1.5rem;
    }

    .container {
        padding: 0 16px;
    }

    .balance-display {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .balance-item .balance-value {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }

    .hero-section p {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Nav spacing util for hero since header is fixed */
.nav-spacer {
    height: var(--nav-height);
}
