/* ========================================
   NextVoidMc - Premium Design + Full Animations
======================================== */

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

:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #c4b5fd;
    --secondary: #22d3ee;
    --secondary-dark: #06b6d4;
    --accent: #f472b6;
    --bg-dark: #05050a;
    --bg-card: rgba(16, 16, 28, 0.78);
    --bg-card-solid: #10101c;
    --bg-hover: rgba(28, 28, 44, 0.95);
    --bg-input: rgba(8, 8, 16, 0.95);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --success: #34d399;
    --danger: #f87171;
    --warning: #fbbf24;
    --border: rgba(139, 92, 246, 0.18);
    --border-light: rgba(139, 92, 246, 0.35);
    --glow: rgba(139, 92, 246, 0.45);
    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    --transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Vazirmatn', Tahoma, system-ui, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.75;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    animation: pageFadeIn 0.6s ease both;
}

@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== BACKGROUND LAYERS ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(ellipse 110% 90% at 50% -25%, rgba(139, 92, 246, 0.22), transparent 55%),
        radial-gradient(ellipse 70% 55% at 100% 40%, rgba(34, 211, 238, 0.08), transparent 50%),
        radial-gradient(ellipse 55% 45% at 0% 85%, rgba(244, 114, 182, 0.07), transparent 45%),
        radial-gradient(ellipse 50% 35% at 75% 100%, rgba(124, 58, 237, 0.10), transparent 40%),
        linear-gradient(180deg, rgba(5, 5, 10, 0.55) 0%, rgba(10, 10, 20, 0.65) 45%, rgba(7, 7, 18, 0.75) 100%),
        url('/assets/images/bg-void.jpg') center / cover no-repeat;
    animation: bgPulse 12s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    from { filter: brightness(1); }
    to { filter: brightness(1.08); }
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.035) 1px, transparent 1px);
    background-size: 55px 55px;
    mask-image: radial-gradient(ellipse 85% 70% at 50% 25%, black 15%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 25%, black 15%, transparent 72%);
    pointer-events: none;
    animation: gridDrift 40s linear infinite;
}

@keyframes gridDrift {
    from { background-position: 0 0; }
    to { background-position: 55px 55px; }
}

.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    transition: transform 0.4s ease-out;
}

.bg-orbs span {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.4;
    animation: floatOrb 18s ease-in-out infinite;
}

.bg-orbs span:nth-child(1) {
    width: 420px; height: 420px;
    background: var(--primary);
    top: -12%; left: -6%;
}
.bg-orbs span:nth-child(2) {
    width: 320px; height: 320px;
    background: var(--secondary);
    top: 45%; right: -10%;
    animation-delay: -6s;
    opacity: 0.25;
}
.bg-orbs span:nth-child(3) {
    width: 280px; height: 280px;
    background: var(--accent);
    bottom: 0%; left: 25%;
    animation-delay: -12s;
    opacity: 0.18;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -50px) scale(1.08); }
    66% { transform: translate(-30px, 25px) scale(0.94); }
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* ========== NAVBAR ========== */
.navbar {
    background: rgba(5, 5, 10, 0.72);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    animation: navSlideDown 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 10, 0.92);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.08);
}

@keyframes navSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.logo:hover { transform: scale(1.03); }

.logo-icon {
    font-size: 1.7rem;
    display: inline-block;
    animation: pulseGlow 3s ease-in-out infinite, floatSoft 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0 0 8px var(--glow)); }
    50% { filter: drop-shadow(0 0 20px var(--glow)) drop-shadow(0 0 35px rgba(139, 92, 246, 0.35)); }
}

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

.logo-text {
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: white;
    background: rgba(139, 92, 246, 0.14);
    transform: translateY(-1px);
}

.nav-links a:not(.btn-register):not(.btn-logout)::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 14px;
    left: 14px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:not(.btn-register):not(.btn-logout):hover::after {
    transform: scaleX(1);
}

.btn-register {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: white !important;
    padding: 9px 20px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4) !important;
}

.btn-register:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.55) !important;
}

.btn-logout { color: var(--danger) !important; }

/* ========== MAIN ========== */
.main-content {
    min-height: calc(100vh - 240px);
    padding: 40px 0 60px;
}

/* ========== HERO ========== */
.hero {
    text-align: center;
    padding: 70px 24px 60px;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.14), rgba(34, 211, 238, 0.05));
    border: 1px solid var(--border-light);
    border-radius: 24px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset, 0 30px 60px rgba(0,0,0,0.4), 0 0 80px rgba(139, 92, 246, 0.1);
    animation: fadeInUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both, borderBreathe 5s ease-in-out 1s infinite;
}

@keyframes borderBreathe {
    0%, 100% { border-color: rgba(139, 92, 246, 0.3); }
    50% { border-color: rgba(34, 211, 238, 0.4); }
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 130%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.18) 0%, transparent 60%);
    pointer-events: none;
    animation: heroGlow 6s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    from { opacity: 0.6; transform: translateX(-50%) scale(1); }
    to { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    opacity: 0.6;
    animation: lineShine 3s ease-in-out infinite;
}

@keyframes lineShine {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.9; }
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 14px;
    background: linear-gradient(120deg, #fff 0%, var(--primary-light) 35%, var(--secondary) 65%, var(--primary-light) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: -1.5px;
    animation: shimmerText 5s linear infinite;
    position: relative;
    z-index: 1;
}

@keyframes shimmerText {
    to { background-position: 200% center; }
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s 0.15s both;
}

.server-ips {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s 0.25s both;
}

.ip-box {
    background: rgba(8, 8, 16, 0.85);
    border: 1px solid var(--border-light);
    padding: 12px 24px;
    border-radius: 12px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    user-select: all;
    backdrop-filter: blur(8px);
}

.ip-box:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.18);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.ip-box.copied {
    border-color: #34d399 !important;
    color: #34d399 !important;
    background: rgba(52, 211, 153, 0.14) !important;
    transform: scale(1.04);
    box-shadow: 0 0 24px rgba(52, 211, 153, 0.3) !important;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(139, 92, 246, 0.55);
}

.btn-primary:hover::after {
    animation: shine 0.7s ease forwards;
}

@keyframes shine {
    to { left: 200%; }
}

.btn-secondary {
    background: rgba(139, 92, 246, 0.08);
    border: 1.5px solid var(--border-light);
    color: var(--primary-light);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.22);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* ========== CARDS ========== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    will-change: transform;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    opacity: 0;
    transition: var(--transition);
    background-size: 200% 100%;
}

.card:hover {
    border-color: var(--border-light);
    transform: translateY(-10px);
    box-shadow: 0 28px 55px rgba(0,0,0,0.45), 0 0 45px rgba(139, 92, 246, 0.12);
}

.card:hover::before {
    opacity: 1;
    animation: gradientMove 2s linear infinite;
}

@keyframes gradientMove {
    to { background-position: 200% 0; }
}

.card h3 { font-size: 1.35rem; margin-bottom: 12px; font-weight: 700; }
.card p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.95rem; }

/* ========== FORMS ========== */
.form-container {
    max-width: 460px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 40px 34px;
    box-shadow: var(--shadow), 0 0 60px rgba(139, 92, 246, 0.07);
    backdrop-filter: blur(18px);
    animation: fadeInScale 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 28px;
    font-size: 1.7rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
    transform: translateY(-1px);
}

.form-group small {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

/* ========== RANK CARDS ========== */
.rank-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(12px);
}

.rank-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 28px 55px rgba(0,0,0,0.45), 0 0 40px rgba(139, 92, 246, 0.14);
}

.rank-header {
    padding: 24px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.rank-header h3 { font-size: 1.4rem; margin-bottom: 4px; font-weight: 800; }
.rank-body { padding: 24px 20px; }
.rank-features { list-style: none; margin-bottom: 18px; }
.rank-features li {
    padding: 6px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    gap: 6px;
}

.rank-price { text-align: center; margin: 16px 0 18px; }
.rank-price .price {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--secondary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.rank-price small { display: block; color: var(--text-dim); margin-top: 4px; font-size: 0.85rem; }

/* ========== FOOTER ========== */
.footer {
    background: rgba(6, 6, 12, 0.92);
    border-top: 1px solid var(--border);
    padding: 55px 0 0;
    margin-top: 70px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    animation: lineShine 4s ease-in-out infinite;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 36px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 16px;
    font-size: 1.05rem;
    font-weight: 700;
}

.footer-section p,
.footer-section a {
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-light);
    transform: translateX(-4px);
    text-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0 24px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.85rem;
    position: relative;
}

.footer-bottom::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 12px var(--glow);
    animation: footerDot 2.5s ease-in-out infinite;
}

@keyframes footerDot {
    0%, 100% { width: 40px; opacity: 0.7; }
    50% { width: 70px; opacity: 1; }
}

/* ========== ALERTS ========== */
.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 18px;
    text-align: center;
    font-size: 0.92rem;
    animation: alertPop 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes alertPop {
    from { opacity: 0; transform: translateY(-10px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.alert-success {
    background: rgba(52, 211, 153, 0.12);
    color: #6ee7b7;
    border: 1px solid rgba(52, 211, 153, 0.3);
}
.alert-error {
    background: rgba(248, 113, 113, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(248, 113, 113, 0.3);
}
.alert-warning {
    background: rgba(251, 191, 36, 0.12);
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* ========== SECTION TITLES ========== */
.section-title {
    text-align: center;
    margin-bottom: 32px;
    font-size: 1.6rem;
    font-weight: 800;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 12px auto 0;
    border-radius: 3px;
    box-shadow: 0 0 14px var(--glow);
    animation: footerDot 3s ease-in-out infinite;
}

/* ========== STATS ========== */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0 0 50px;
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    animation: fadeInUp 0.65s 0.2s both;
}

.stat-item {
    text-align: center;
    min-width: 100px;
    padding: 8px 16px;
    transition: var(--transition);
}

.stat-item:hover { transform: translateY(-4px); }

.stat-item .num {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.stat-item:hover .num { transform: scale(1.15); }

.stat-item .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ========== ROBOT CAPTCHA ========== */
.robot-check {
    background: rgba(8, 8, 16, 0.9);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 16px 18px;
    transition: var(--transition);
}
.robot-check.verifying {
    border-color: var(--primary);
    box-shadow: 0 0 22px rgba(139, 92, 246, 0.25);
}
.robot-check.verified {
    border-color: #34d399;
    box-shadow: 0 0 22px rgba(52, 211, 153, 0.25);
    background: rgba(52, 211, 153, 0.08);
}
.robot-label {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    user-select: none;
}
.robot-label input[type="checkbox"] { display: none; }
.robot-box {
    width: 28px; height: 28px;
    border: 2.5px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-dark);
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}
.robot-spinner {
    display: none;
    width: 16px; height: 16px;
    border: 2.5px solid rgba(139, 92, 246, 0.25);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spinRobot 0.65s linear infinite;
}
.robot-check-icon { display: none; color: white; font-size: 16px; font-weight: bold; }
.robot-check.verifying .robot-box { border-color: var(--primary); }
.robot-check.verifying .robot-spinner { display: block; }
.robot-check.verified .robot-box {
    background: linear-gradient(135deg, #34d399, #10b981);
    border-color: #34d399;
    box-shadow: 0 0 14px rgba(52, 211, 153, 0.45);
}
.robot-check.verified .robot-check-icon { display: block; animation: checkPop 0.35s cubic-bezier(0.22,1,0.36,1); }
.robot-check.verified .robot-spinner { display: none; }
.robot-text { color: var(--text); font-size: 1rem; font-weight: 600; }
.robot-check.verified .robot-text { color: #6ee7b7; }

@keyframes spinRobot { to { transform: rotate(360deg); } }
@keyframes checkPop {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ========== BADGES ========== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}
.badge-open { background: rgba(52, 211, 153, 0.15); color: #6ee7b7; }
.badge-closed { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }

.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 0.9rem; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--border); }
.admin-table th { color: var(--text-muted); font-weight: 600; background: rgba(139, 92, 246, 0.08); }
.admin-table tr { transition: background 0.2s; }
.admin-table tr:hover td { background: rgba(255, 255, 255, 0.03); }

.ticket-msg {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    white-space: pre-wrap;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ========== REVEAL / LOAD ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.card, .rank-card {
    animation: fadeInUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.cards-grid .card:nth-child(1), .cards-grid .rank-card:nth-child(1) { animation-delay: 0.05s; }
.cards-grid .card:nth-child(2), .cards-grid .rank-card:nth-child(2) { animation-delay: 0.12s; }
.cards-grid .card:nth-child(3), .cards-grid .rank-card:nth-child(3) { animation-delay: 0.2s; }
.cards-grid .card:nth-child(4), .cards-grid .rank-card:nth-child(4) { animation-delay: 0.28s; }
.cards-grid .card:nth-child(5), .cards-grid .rank-card:nth-child(5) { animation-delay: 0.36s; }
.cards-grid .card:nth-child(6), .cards-grid .rank-card:nth-child(6) { animation-delay: 0.44s; }

/* ========== SCROLL TOP BTN ========== */
.scroll-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: rgba(139, 92, 246, 0.85);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}
.scroll-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.scroll-top:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.55);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 12px; }
    .nav-links { justify-content: center; gap: 4px; }
    .nav-links a { padding: 7px 11px; font-size: 0.82rem; }
    .hero { padding: 40px 16px 35px; border-radius: 16px; }
    .hero h1 { font-size: 2.1rem; }
    .hero p { font-size: 0.95rem; }
    .server-ips { flex-direction: column; align-items: center; }
    .ip-box { width: 100%; max-width: 280px; text-align: center; font-size: 0.9rem; }
    .cards-grid { grid-template-columns: 1fr; gap: 16px; }
    .form-container { padding: 28px 20px; margin: 0 8px; border-radius: 16px; }
    .footer-content { grid-template-columns: 1fr; text-align: center; gap: 24px; }
    .footer-section a:hover { transform: none; }
    .stats-bar { gap: 12px; padding: 20px 12px; }
    .stat-item { min-width: 70px; }
    .stat-item .num { font-size: 1.4rem; }
    .scroll-top { left: 16px; bottom: 16px; width: 42px; height: 42px; }
}

@media (max-width: 400px) {
    .hero h1 { font-size: 1.7rem; }
    .btn { padding: 11px 18px; font-size: 0.88rem; }
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

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

/* ========== USER PANEL ========== */
.panel-page { padding-bottom: 50px; }
.panel-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.panel-welcome-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.panel-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}
.panel-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 16px;
    text-align: center;
    backdrop-filter: blur(12px);
}
.panel-stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 6px;
}
.panel-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
}
.panel-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}
.panel-tab {
    padding: 10px 18px;
    border-radius: 999px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid transparent;
    transition: var(--transition);
}
.panel-tab:hover {
    color: var(--text);
    background: rgba(139, 92, 246, 0.1);
}
.panel-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
}
.ip-code {
    background: rgba(139, 92, 246, 0.15);
    padding: 3px 10px;
    border-radius: 6px;
    font-family: ui-monospace, monospace;
    color: var(--primary-light);
    direction: ltr;
    display: inline-block;
}
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 800px; margin: 0 auto; }
.faq-item h3 { margin-bottom: 8px; font-size: 1.1rem; }
.faq-item p { color: var(--text-muted); margin: 0; line-height: 1.7; }
.faq-item a { color: var(--secondary); }
.alert-warning {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fcd34d;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
}
@media (max-width: 900px) {
    .panel-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .panel-stats { grid-template-columns: 1fr 1fr; }
    .panel-stat-value { font-size: 1.05rem; }
}

/* ========== RECORD BANNER ========== */
.record-banner {
    margin: 8px 0 40px;
}
.record-banner-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 22px;
    border-radius: var(--radius);
    border: 1px solid rgba(251, 191, 36, 0.35);
    background:
        linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(139, 92, 246, 0.12)),
        var(--bg-card);
    backdrop-filter: blur(14px);
}
.record-icon {
    font-size: 1.8rem;
    line-height: 1;
}
.record-banner-inner strong {
    display: block;
    font-size: 1.05rem;
    color: #fde68a;
    margin-bottom: 2px;
}
.record-banner-inner span {
    display: block;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.record-cta {
    margin-right: auto;
    padding: 10px 18px;
    font-size: 0.9rem;
}
@media (max-width: 640px) {
    .record-cta { width: 100%; text-align: center; margin-right: 0; }
    .record-banner-inner { justify-content: center; text-align: center; }
}


/* ========== SHOP / TRUST ========== */
.trust-strip {
    margin-bottom: 28px;
}
.trust-strip-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: center;
    align-items: center;
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 1px solid rgba(34, 197, 94, 0.25);
    background: rgba(34, 197, 94, 0.08);
    font-size: 0.9rem;
    color: var(--text-muted);
}
.trust-strip-inner a {
    color: #86efac;
    font-weight: 600;
}
.shop-checkout-box {
    text-align: center;
    margin-top: 50px;
    padding: 30px 22px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.25);
}
.shop-checkout-box h3 { margin-bottom: 8px; }
.shop-checkout-box p { color: var(--text-muted); }
.payping-trust-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
}
.footer-trust {
    text-align: center;
    padding: 24px 0 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 10px;
}
.after-purchase {
    max-width: 720px;
    margin: 0 auto 40px;
    padding: 28px 22px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}
.after-purchase h1 { text-align: center; margin-bottom: 10px; }
.after-purchase .lead {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 28px;
}
.after-purchase .steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 0 0 28px;
}
.after-purchase .steps li {
    counter-increment: step;
    position: relative;
    padding: 16px 16px 16px 56px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.06);
}
.after-purchase .steps li::before {
    content: counter(step);
    position: absolute;
    right: 16px;
    top: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.after-purchase .steps strong {
    display: block;
    margin-bottom: 4px;
    color: #e9d5ff;
}
.after-purchase .steps span {
    color: var(--text-muted);
    font-size: 0.92rem;
}
.after-purchase .action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}
.after-purchase .note-box {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}
