

:root {
    --bg-primary: #050a14;
    --bg-secondary: #0a1020;
    --bg-tertiary: #0f1830;

    --glass-bg: rgba(12, 20, 45, 0.55);
    --glass-bg-light: rgba(18, 30, 60, 0.4);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-border-hover: rgba(255, 255, 255, 0.12);
    --glass-highlight: rgba(255, 255, 255, 0.04);
    --glass-blur: 24px;
    --glass-blur-heavy: 40px;

    --liquid-shine: rgba(255, 255, 255, 0.035);
    --liquid-inner-glow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        inset 0 0 0 1px rgba(255, 255, 255, 0.02),
        inset 0 -12px 24px -18px rgba(255, 255, 255, 0.05);

    --text-primary: #eef2ff;
    --text-secondary: #8094b8;
    --text-muted: #4a5e80;
    --text-accent: #22d3ee;

    --border-color: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.10);

    --accent-cyan: #22d3ee;
    --accent-cyan-dark: #0891b2;
    --accent-cyan-light: #67e8f9;
    --accent-emerald: #34d399;
    --accent-emerald-dark: #10b981;
    --accent-gold: #fbbf24;
    --accent-gold-dark: #d97706;
    --accent-blue: #3b82f6;
    --accent-purple: #a78bfa;
    --accent-purple-dark: #7c3aed;
    --accent-red: #f87171;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5), 0 8px 16px rgba(0, 0, 0, 0.3);
    --shadow-glow-cyan: 0 0 20px rgba(34, 211, 238, 0.12);
    --shadow-glow-emerald: 0 0 20px rgba(52, 211, 153, 0.12);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url('/images/bg-minecraft.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: multiply;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.page-wrapper {
    animation: pageFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

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

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow:
        var(--shadow-md),
        var(--liquid-inner-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.glass-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(0.5px);
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
}

.liquid-glass {
    background: rgba(15, 25, 55, 0.45);
    backdrop-filter: blur(var(--glass-blur-heavy)) saturate(1.6) brightness(1.05);
    -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(1.6) brightness(1.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.liquid-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.045);
    border-radius: inherit;
    pointer-events: none;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xs), var(--liquid-inner-glow);
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.section-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    border-radius: inherit;
    pointer-events: none;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

.text-cyan { color: var(--accent-cyan); }
.text-glow { text-shadow: 0 0 20px rgba(34, 211, 238, 0.25); }
.text-emerald { color: var(--accent-emerald); }
.text-gold { color: var(--accent-gold); }

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(5, 10, 20, 0.72);
    backdrop-filter: blur(36px) saturate(1.6) brightness(1.02);
    -webkit-backdrop-filter: blur(36px) saturate(1.6) brightness(1.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        var(--liquid-inner-glow),
        0 4px 32px rgba(0,0,0,0.35);
    position: relative;
    overflow: hidden;
}

.navbar.scrolled::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    pointer-events: none;
}

.navbar.scrolled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.navbar-logo img {
    height: 34px;
    width: 34px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.logo-text { color: var(--text-primary); }
.logo-accent { color: var(--accent-cyan); }

.navbar-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
    color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.06);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 50%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 3px;
}

.lang-btn {
    padding: 5px 12px;
    border: none;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    transition: all var(--transition);
    letter-spacing: 0.06em;
}

.lang-btn.active {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.25);
}

.user-avatar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(34, 211, 238, 0.3);
    image-rendering: pixelated;
}

.user-avatar-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-logout {
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(248, 113, 113, 0.2);
    background: rgba(248, 113, 113, 0.06);
    color: var(--accent-red);
    font-size: 0.78rem;
    font-weight: 600;
    transition: all var(--transition);
}

.btn-logout:hover {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.4);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
}

.navbar-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all var(--transition);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn:active { transform: translateY(1px) scale(0.98); }

.btn svg, .btn img { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 2px 12px rgba(34, 211, 238, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: rgba(255, 255, 255, 0.16);
    border-radius: inherit;
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.3);
    background: var(--accent-cyan-light);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xs);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    border-radius: inherit;
    pointer-events: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-gold {
    background: var(--accent-gold);
    color: var(--bg-primary);
    box-shadow: 0 2px 12px rgba(251, 191, 36, 0.2);
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: inherit;
    pointer-events: none;
}

.btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.btn-sm { padding: 10px 18px; font-size: 0.82rem; }

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 15%;
    right: 15%;
    bottom: 30%;
    background: rgba(34, 211, 238, 0.05);
    filter: blur(80px);
    border-radius: 50%;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-color: transparent;
    opacity: 0.5;
}

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

.hero-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

.hero-particle:nth-child(1) { left: 10%; width: 3px; height: 3px; background: var(--accent-cyan); animation-duration: 8s; animation-delay: 0s; }
.hero-particle:nth-child(2) { left: 22%; width: 4px; height: 4px; background: var(--accent-emerald); animation-duration: 10s; animation-delay: 1s; }
.hero-particle:nth-child(3) { left: 38%; width: 2px; height: 2px; background: var(--accent-cyan); animation-duration: 7s; animation-delay: 2s; }
.hero-particle:nth-child(4) { left: 52%; width: 5px; height: 5px; background: var(--accent-gold); animation-duration: 12s; animation-delay: 0.5s; }
.hero-particle:nth-child(5) { left: 66%; width: 3px; height: 3px; background: var(--accent-cyan); animation-duration: 9s; animation-delay: 3s; }
.hero-particle:nth-child(6) { left: 78%; width: 4px; height: 4px; background: var(--accent-emerald); animation-duration: 11s; animation-delay: 1.5s; }
.hero-particle:nth-child(7) { left: 88%; width: 2px; height: 2px; background: var(--accent-gold); animation-duration: 8s; animation-delay: 4s; }
.hero-particle:nth-child(8) { left: 95%; width: 3px; height: 3px; background: var(--accent-cyan); animation-duration: 10s; animation-delay: 2.5s; }

@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xs), var(--liquid-inner-glow);
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.hero-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    border-radius: inherit;
    pointer-events: none;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-emerald);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.75); }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    animation: fadeInUp 0.7s ease 0.15s both;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
    animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 36px;
    line-height: 1.7;
    animation: fadeInUp 0.7s ease 0.4s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: fadeInUp 0.7s ease 0.5s both;
}

.server-ip-bar {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm), var(--liquid-inner-glow);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.7s ease 0.6s both;
}

.server-ip-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    pointer-events: none;
}

.ip-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ip-address {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.ip-copy {
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(34, 211, 238, 0.2);
    background: rgba(34, 211, 238, 0.06);
    color: var(--accent-cyan);
    font-size: 0.78rem;
    font-weight: 600;
    transition: all var(--transition);
}

.ip-copy:hover {
    background: rgba(34, 211, 238, 0.12);
    border-color: rgba(34, 211, 238, 0.35);
}

.ip-copy:active { transform: scale(0.95); }

.server-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 100px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 16px;
    animation: fadeInUp 0.7s ease 0.7s both;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #555;
    transition: all 0.3s;
}

.status-dot.online {
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
}

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

.economy-card {
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm), var(--liquid-inner-glow);
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.economy-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity var(--transition-slow);
}

.economy-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.economy-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(34, 211, 238, 0.06);
}

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

.economy-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: rgba(34, 211, 238, 0.06);
    border: 1px solid rgba(34, 211, 238, 0.12);
    color: var(--accent-cyan);
}

.economy-icon.emerald { background: rgba(52, 211, 153, 0.06); border-color: rgba(52, 211, 153, 0.12); color: var(--accent-emerald); }
.economy-icon.gold { background: rgba(251, 191, 36, 0.06); border-color: rgba(251, 191, 36, 0.12); color: var(--accent-gold); }
.economy-icon.cyan { background: rgba(34, 211, 238, 0.06); border-color: rgba(34, 211, 238, 0.12); color: var(--accent-cyan); }
.economy-icon.purple { background: rgba(167, 139, 250, 0.06); border-color: rgba(167, 139, 250, 0.12); color: var(--accent-purple); }
.economy-icon.blue { background: rgba(59, 130, 246, 0.06); border-color: rgba(59, 130, 246, 0.12); color: var(--accent-blue); }

.economy-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    position: relative;
    z-index: 3;
}

.economy-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 3;
}

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

.feature-card {
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm), var(--liquid-inner-glow);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    border-radius: inherit;
    pointer-events: none;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.feature-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 0 24px rgba(34, 211, 238, 0.06);
}

.feature-emoji {
    font-size: 2.2rem;
    margin-bottom: 14px;
    display: block;
    line-height: 1;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    position: relative;
    z-index: 3;
}

.feature-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    position: relative;
    z-index: 3;
}

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

.world-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
}

.world-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-lg);
}

.world-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.world-card:hover img {
    transform: scale(1.06);
}

.world-card-overlay {
    position: absolute;
    inset: 0;
    top: 45%;
    background: rgba(5, 10, 20, 0.45);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.world-card-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    pointer-events: none;
}

.world-card-label {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.world-card-placeholder {
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-muted);
    opacity: 0.4;
}

.steps-container {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(34, 211, 238, 0.18);
}

.step-item {
    display: flex;
    gap: 28px;
    padding: 20px 0;
    position: relative;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-item:hover { transform: translateX(6px); }

.step-number {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm), var(--liquid-inner-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-cyan);
    z-index: 1;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.step-number::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    border-radius: inherit;
    pointer-events: none;
}

.step-item:hover .step-number {
    background: rgba(34, 211, 238, 0.08);
    border-color: rgba(34, 211, 238, 0.25);
    box-shadow: var(--shadow-md), 0 0 20px rgba(34, 211, 238, 0.1);
    transform: scale(1.08);
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.staff-section { padding: 100px 0; position: relative; z-index: 1; }

.staff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.staff-card {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm), var(--liquid-inner-glow);
    text-align: center;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.staff-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    border-radius: inherit;
    pointer-events: none;
}

.staff-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.staff-avatar {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
}

.staff-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    object-fit: cover;
}

.staff-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
    position: relative;
    z-index: 3;
}

.staff-role {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.staff-rank-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-top: 8px;
}

.owner-badge { background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.2); color: var(--accent-gold); }
.admin-badge { background: rgba(34, 211, 238, 0.06); border: 1px solid rgba(34, 211, 238, 0.15); color: var(--accent-cyan); }
.unknown-badge { background: rgba(255,255,255,0.03); color: var(--text-muted) !important; border: 1px solid rgba(255,255,255,0.05) !important; }

.owner-card {
    animation: cardFloat 5s ease-in-out infinite;
    animation-delay: 0.7s;
}

.owner-card .staff-avatar img {
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    animation: avatarGlowPulse 3s ease-in-out infinite;
}

.owner-card .owner-badge {
    position: relative;
    overflow: hidden;
}

.owner-card .owner-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.25), transparent);
    animation: badgeShimmer 3s ease-in-out infinite;
}

.owner-card:hover {
    border-color: rgba(251, 191, 36, 0.35);
    box-shadow: var(--shadow-md), 0 0 30px rgba(251, 191, 36, 0.08), 0 0 60px rgba(251, 191, 36, 0.04);
    animation-play-state: paused;
}

.admin-card {
    animation: cardBreathe 4s ease-in-out infinite;
}

.admin-card .staff-avatar img {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
    animation: avatarGlowPulseAdmin 3.5s ease-in-out infinite 0.5s;
}

.admin-card .admin-badge {
    position: relative;
    overflow: hidden;
}

.admin-card .admin-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.2), transparent);
    animation: badgeShimmer 4s ease-in-out infinite 0.5s;
}

.admin-card:hover {
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: var(--shadow-md), 0 0 30px rgba(34, 211, 238, 0.06), 0 0 60px rgba(34, 211, 238, 0.03);
    animation-play-state: paused;
}

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

@keyframes cardBreathe {
    0%, 100% { border-color: rgba(34, 211, 238, 0.15); }
    50% { border-color: rgba(34, 211, 238, 0.35); }
}

@keyframes avatarGlowPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
    50% { box-shadow: 0 0 0 12px rgba(251, 191, 36, 0); }
}

@keyframes avatarGlowPulseAdmin {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
    50% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
}

@keyframes badgeShimmer {
    0% { left: -100%; }
    50% { left: 120%; }
    100% { left: 120%; }
}

.staff-category-title {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    margin-bottom: 28px;
}

.category-line {
    flex: 1;
    max-width: 80px;
    height: 1px;
    background: var(--border-light);
}

.category-text {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.community-banner {
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    max-height: 360px;
}

.community-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.community-card {
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm), var(--liquid-inner-glow);
    text-align: center;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.community-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    border-radius: inherit;
    pointer-events: none;
}

.community-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.community-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.community-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    position: relative;
    z-index: 3;
}

.community-icon.discord {
    background: rgba(88, 101, 242, 0.08);
    border: 1px solid rgba(88, 101, 242, 0.15);
}

.community-icon.players {
    background: rgba(52, 211, 153, 0.06);
    border: 1px solid rgba(52, 211, 153, 0.12);
}

.community-icon.status {
    background: rgba(34, 211, 238, 0.06);
    border: 1px solid rgba(34, 211, 238, 0.12);
}

.community-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    position: relative;
    z-index: 3;
}

.community-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.5;
    position: relative;
    z-index: 3;
}

.cta-section {
    padding: 100px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-box {
    padding: 72px 48px;
    border-radius: var(--radius-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur-heavy)) saturate(1.5);
    -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(1.5);
    border: 1px solid var(--glass-border);
    box-shadow:
        var(--shadow-lg),
        var(--liquid-inner-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    border-radius: inherit;
    pointer-events: none;
}

.cta-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 3;
}

.cta-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    position: relative;
    z-index: 3;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

.footer {
    padding: 56px 0 28px;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 10px;
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 3px 0;
    transition: color var(--transition);
}

.footer-col a:hover { color: var(--accent-cyan); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.footer-socials a:hover {
    border-color: rgba(34, 211, 238, 0.3);
    color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.06);
}

.avatar-glitch-wrapper {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
}

.avatar-glitch-img {
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: pixelated;
    filter: grayscale(100%) contrast(1.1);
    animation: avatarIdleHum 8s ease-in-out infinite;
}

@keyframes avatarIdleHum {
    0%, 100% { filter: grayscale(100%) contrast(1.1) brightness(1); }
    50% { filter: grayscale(100%) contrast(1.15) brightness(1.01); }
}

@keyframes avatarShake {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    3% { transform: translate(-10px, 5px) rotate(-6deg) scale(1.04); }
    6% { transform: translate(14px, -8px) rotate(8deg) scale(0.96); }
    9% { transform: translate(-16px, 10px) rotate(-10deg) scale(1.06); }
    12% { transform: translate(18px, -10px) rotate(11deg) scale(0.94); }
    15% { transform: translate(-20px, 8px) rotate(-12deg) scale(1.07); }
    18% { transform: translate(16px, -6px) rotate(10deg) scale(0.95); }
    21% { transform: translate(-12px, 4px) rotate(-8deg) scale(1.04); }
    24% { transform: translate(10px, -3px) rotate(6deg) scale(0.97); }
    30% { transform: translate(6px, -1px) rotate(3deg) scale(0.98); }
    40% { transform: translate(-1px, 0) rotate(0) scale(1); }
    100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

.avatar-glitch-img.glitching {
    animation:
        avatarGlitchSlice1 var(--slice1-dur, 0.18s) steps(1) forwards,
        avatarGlitchSlice2 var(--slice2-dur, 0.14s) steps(1) forwards,
        avatarRGBShift var(--rgb-dur, 0.22s) steps(1) forwards,
        avatarTear var(--tear-dur, 0.1s) steps(1) forwards,
        avatarNoiseBurst var(--noise-dur, 0.16s) steps(1) forwards,
        avatarFreeze var(--freeze-dur, 0.06s) steps(1) forwards,
        avatarRecovery var(--recovery-dur, 0.35s) var(--recovery-delay, 0s) ease-out forwards,
        avatarShake var(--shake-dur, 0.35s) steps(1) forwards;
}

@keyframes avatarGlitchSlice1 {
    0% { clip-path: inset(0 0 0 0); transform: translateX(0); filter: grayscale(100%) contrast(1.1); }
    8% { clip-path: inset(5% 0 75% 0); transform: translateX(-24px); filter: grayscale(100%) contrast(5) brightness(2) invert(1); }
    16% { clip-path: inset(18% 0 62% 0); transform: translateX(30px); filter: grayscale(100%) contrast(0.08) brightness(0.15); }
    24% { clip-path: inset(32% 0 48% 0); transform: translateX(-34px); filter: grayscale(100%) contrast(6) brightness(3) hue-rotate(180deg); }
    40% { clip-path: inset(58% 0 22% 0); transform: translateX(-42px); filter: grayscale(100%) contrast(7) brightness(3.5) invert(0.8); }
    100% { clip-path: inset(0 0 0 0); transform: translateX(0); filter: grayscale(100%) contrast(1.1); }
}

@keyframes avatarGlitchSlice2 {
    0% { clip-path: inset(0 0 0 0); transform: translateX(0); filter: grayscale(100%) contrast(1.1); }
    10% { clip-path: inset(8% 0 72% 0); transform: translateX(26px); filter: grayscale(100%) contrast(0.06) brightness(0.12); }
    20% { clip-path: inset(30% 0 50% 0); transform: translateX(-32px); filter: grayscale(100%) contrast(8) brightness(4) invert(0.5); }
    30% { clip-path: inset(50% 0 30% 0); transform: translateX(28px); filter: grayscale(100%) contrast(0.1) brightness(0.2); }
    55% { clip-path: inset(82% 0 3% 0); transform: translateX(20px); filter: grayscale(100%) contrast(0.15) brightness(0.25); }
    100% { clip-path: inset(0 0 0 0); transform: translateX(0); filter: grayscale(100%) contrast(1.1); }
}

@keyframes avatarRGBShift {
    0% { filter: grayscale(100%) contrast(1.1); }
    10% { filter: grayscale(100%) contrast(3) brightness(1.5) drop-shadow(-12px 4px 0 #ff0020) drop-shadow(12px -4px 0 #00ffff); }
    20% { filter: grayscale(100%) contrast(3.5) brightness(2.5) drop-shadow(-14px 6px 0 #ff0020) drop-shadow(14px -6px 0 #00ffff); }
    30% { filter: grayscale(100%) contrast(5) brightness(3) drop-shadow(18px -5px 0 #ff0020) drop-shadow(-18px 5px 0 #00ffff); }
    100% { filter: grayscale(100%) contrast(1.1); }
}

@keyframes avatarTear {
    0% { transform: translateX(0) skewX(0); clip-path: inset(0 0 0 0); }
    10% { transform: translateX(-14px) skewX(-10deg); clip-path: inset(10% 0 75% 0); }
    30% { transform: translateX(-18px) skewX(-7deg); clip-path: inset(45% 0 35% 0); }
    100% { transform: translateX(0) skewX(0); clip-path: inset(0 0 0 0); }
}

@keyframes avatarNoiseBurst {
    0% { opacity: 1; filter: grayscale(100%) contrast(1.1); }
    8% { filter: grayscale(100%) contrast(8) brightness(3); }
    16% { filter: grayscale(100%) contrast(0.03) brightness(0.08); }
    24% { filter: grayscale(100%) contrast(10) brightness(4); }
    40% { filter: grayscale(100%) contrast(9) brightness(3.5); }
    100% { filter: grayscale(100%) contrast(1.1); }
}

@keyframes avatarFreeze {
    0% { filter: grayscale(100%) contrast(1.1); }
    100% { filter: grayscale(100%) contrast(1.1); }
}

@keyframes avatarRecovery {
    0% { filter: grayscale(100%) contrast(1.1); transform: translate(0, 0); }
    100% { filter: grayscale(100%) contrast(1.1); transform: translate(0, 0); }
}

.avatar-glitch-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='3'%3E%3Crect width='4' height='2' fill='transparent'/%3E%3Crect y='2' width='4' height='1' fill='rgba(0,0,0,0.35)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
    opacity: 0.15;
}

.avatar-glitch-overlay.glitching {
    animation: scanlineGlitch var(--scan-glitch-dur, 0.25s) steps(1) forwards;
}

@keyframes scanlineGlitch {
    0% { opacity: 0.12; }
    5% { opacity: 1; filter: hue-rotate(0deg) saturate(3); }
    25% { opacity: 0.9; filter: hue-rotate(90deg) saturate(2); }
    45% { opacity: 1; filter: hue-rotate(-90deg) saturate(2.5); }
    100% { opacity: 0.12; filter: none; }
}

.avatar-glitch-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid transparent;
    pointer-events: none;
    opacity: 0;
    z-index: 10;
}

.avatar-glitch-wrapper.glitching::before {
    opacity: 1;
    animation: borderCorrupt 0.4s steps(4) forwards;
}

@keyframes borderCorrupt {
    0% { border-color: rgba(255,255,255,0.05); box-shadow: none; }
    15% { border-color: #ff0020; box-shadow: 0 0 24px #ff0020, 0 0 48px #00ffff; }
    30% { border-color: #00ffff; box-shadow: 0 0 40px #00ffff, 0 0 80px #ff0020; }
    50% { border-color: #ff0020; box-shadow: 0 0 32px #ff0020, 0 0 64px #00ffff; }
    100% { border-color: rgba(255,255,255,0.05); box-shadow: none; }
}

.unknown-grid {
    grid-template-columns: minmax(0, 280px);
    justify-content: center;
    max-width: 280px;
}

.unknown-category-title {
    margin-top: 56px;
}

.staff-card.unknown-card {
    isolation: isolate;
    border-color: rgba(148, 163, 184, 0.18);
}

.staff-card.unknown-card:hover {
    border-color: rgba(34, 211, 238, 0.3);
}

.unknown-card .staff-avatar {
    margin-bottom: 6px;
}

.unknown-card .avatar-glitch-wrapper {
    margin: 0 auto;
}

.unknown-card .avatar-glitch-img {
    object-fit: cover;
    border-color: rgba(148, 163, 184, 0.22);
}

.unknown-card .staff-name {
    margin-bottom: 1px;
}

.unknown-card .staff-role {
    margin-top: 0;
}

.unknown-grid.glitch-active {
    animation: gridShake 0.35s steps(1) forwards;
}

@keyframes gridShake {
    0% { transform: translate(0, 0); }
    4% { transform: translate(-5px, 3px); }
    8% { transform: translate(7px, -4px); }
    12% { transform: translate(-9px, 2px); }
    16% { transform: translate(10px, -5px); }
    20% { transform: translate(-7px, 4px); }
    28% { transform: translate(-3px, 1px); }
    40% { transform: translate(0, 0); }
    100% { transform: translate(0, 0); }
}

.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
}

.glitch-text::before { color: #ff0020; clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%); }
.glitch-text::after { color: #00ffff; clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%); }

.glitch-text.glitch-burst { animation: textGlitchBurst 0.35s steps(1) forwards; }
.glitch-text.glitch-burst::before { animation: textBeforeBurst 0.35s steps(1) forwards; }
.glitch-text.glitch-burst::after { animation: textAfterBurst 0.35s steps(1) forwards; }

@keyframes textGlitchBurst {
    0% { transform: none; filter: none; }
    5% { transform: skewX(-35deg) translateX(25px) translateY(4px); filter: blur(3px) contrast(4) brightness(2); }
    15% { transform: skewX(-28deg) translateX(20px) translateY(2px); filter: blur(1px) contrast(5) invert(1); }
    25% { transform: skewX(-18deg) translateX(14px) translateY(3px); filter: blur(2px) contrast(0.3) brightness(0.4); }
    40% { transform: skewX(6deg) translateX(-5px); filter: contrast(3) invert(0.8); }
    60% { transform: skewX(1px) translateX(-1px); filter: none; }
    100% { transform: none; filter: none; }
}

@keyframes textBeforeBurst {
    0% { opacity: 0; }
    5% { opacity: 1; transform: translate(30px, -10px) scaleX(1.3); }
    20% { opacity: 1; transform: translate(-20px, 6px) scaleX(0.8); }
    50% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes textAfterBurst {
    0% { opacity: 0; }
    5% { opacity: 1; transform: translate(-28px, 10px) scaleX(0.7); }
    20% { opacity: 1; transform: translate(18px, -4px) scaleX(1.2); }
    50% { opacity: 0; }
    100% { opacity: 0; }
}

.username-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.username-modal[hidden] {
    display: none !important;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.modal-container {
    position: relative;
    width: 420px;
    max-width: 92vw;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur-heavy)) saturate(1.5);
    -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(1.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow:
        var(--shadow-xl),
        var(--liquid-inner-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: modalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    border-radius: inherit;
    pointer-events: none;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 5;
    cursor: pointer;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--glass-border);
    color: var(--text-primary);
}

.modal-header {
    text-align: center;
    padding: 32px 28px 8px;
    position: relative;
    z-index: 3;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.modal-header p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.modal-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-mono);
    outline: none;
    transition: all var(--transition);
}

.modal-input:focus {
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.06);
}

.modal-input.valid {
    border-color: rgba(52, 211, 153, 0.4);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.06);
}

.modal-input.invalid {
    border-color: rgba(248, 113, 113, 0.4);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.06);
}

.modal-input-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.modal-badge svg { color: var(--accent-cyan); }

#usernameModalForm {
    padding: 0 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 3;
}

.modal-platform-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.modal-platform-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
    font-family: inherit;
}

.modal-platform-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.5;
}

.modal-platform-btn:hover {
    border-color: rgba(255,255,255,0.1);
    background: rgba(255, 255, 255, 0.04);
}

.modal-platform-btn.active {
    border-color: rgba(34, 211, 238, 0.3);
    background: rgba(34, 211, 238, 0.04);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.1);
}

.platform-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: auto;
}

.platform-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    position: relative;
    z-index: 2;
}

.platform-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.platform-desc {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.modal-bedrock-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(251, 191, 36, 0.04);
    border: 1px solid rgba(251, 191, 36, 0.12);
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    position: relative;
    z-index: 3;
}

.modal-bedrock-note svg { flex-shrink: 0; margin-top: 1px; color: var(--accent-gold); }
.modal-bedrock-note strong { color: var(--accent-gold); }

.modal-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.modal-input-wrapper .modal-input {
    padding-right: 70px;
}

.modal-input-suffix {
    position: absolute;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.modal-char-count {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.modal-validation-icon {
    width: 16px;
    height: 16px;
    opacity: 0;
    transition: opacity 0.2s;
}

.modal-validation-icon.visible { opacity: 1; }
.modal-validation-icon.valid { color: var(--accent-emerald); }
.modal-validation-icon.invalid { color: #ef4444; }

.modal-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.modal-hint svg { flex-shrink: 0; color: var(--text-muted); }

.modal-skin-preview {
    text-align: center;
    min-height: 70px;
    position: relative;
    z-index: 3;
}

.modal-skin-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.modal-skin-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.modal-skin-model {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-skin-canvas {
    image-rendering: pixelated;
    border-radius: 0;
    width: 64px;
    height: 64px;
}

.modal-skin-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    image-rendering: pixelated;
    border: 1px solid rgba(255,255,255,0.06);
    display: block;
}

.modal-skin-info {
    text-align: left;
}

.modal-skin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(34, 211, 238, 0.06);
    border: 1px solid rgba(34, 211, 238, 0.15);
    color: var(--accent-cyan);
}

.modal-submit-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--accent-cyan);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: rgba(255, 255, 255, 0.13);
    pointer-events: none;
}

.modal-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(34, 211, 238, 0.25);
}

.modal-submit-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.btn-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0,0,0,0.2);
    border-top-color: var(--bg-primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.modal-submit-btn.loading .btn-text { display: none; }
.modal-submit-btn.loading .btn-loader { display: inline-block; }

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

.modal-footer-note {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    padding: 4px 28px 20px;
    position: relative;
    z-index: 3;
}

.modal-footer-note a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.modal-footer-note a:hover { color: #67e8f9; text-decoration: underline; }

.modal-error-toast {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    font-size: 0.82rem;
    font-weight: 600;
    z-index: 10000;
    animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-error-toast.visible {
    display: flex;
}

.modal-error-toast svg { flex-shrink: 0; color: #ef4444; }

.modal-rank-status {
    padding: 0 28px;
    position: relative;
    z-index: 3;
}

.modal-rank-loader {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(148, 163, 184, 0.06);
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.rank-loader-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

.modal-rank-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(52, 211, 153, 0.08);
    border-radius: 10px;
    font-size: 0.82rem;
    color: #6ee7b7;
    border: 1px solid rgba(52, 211, 153, 0.15);
}

.modal-rank-result-icon svg { color: #34d399; flex-shrink: 0; }

.modal-rank-result-text {
    font-weight: 600;
    line-height: 1.4;
}

.modal-rank-result-text .rank-label {
    color: #fbbf24;
    font-weight: 700;
}

.modal-rank-result-text .rank-label-staff {
    display: inline-block;
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 4px;
    margin-left: 4px;
    letter-spacing: 0.5px;
}

.modal-rank-result-text .rank-label-default {
    color: var(--text-muted);
    font-weight: 500;
}

.modal-rank-buyable {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 8px 14px;
    background: rgba(6, 182, 212, 0.06);
    border-radius: 8px;
    font-size: 0.78rem;
}

.modal-rank-buyable-label {
    color: var(--text-muted);
    font-weight: 500;
}

.modal-rank-buyable-list {
    color: #22d3ee;
    font-weight: 700;
}

.modal-rank-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.08);
    border-radius: 10px;
    font-size: 0.82rem;
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.modal-rank-error svg { color: #ef4444; flex-shrink: 0; }

.text-accent {
    color: var(--accent-cyan);
}

.modal-input::placeholder { color: var(--text-muted); opacity: 0.5; }

.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 18px;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease forwards;
}

.toast.success { border-color: rgba(52, 211, 153, 0.3); }
.toast.error { border-color: rgba(248, 113, 113, 0.3); }

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

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

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

@keyframes textShimmer {
    0%, 100% { text-shadow: 0 0 18px rgba(34, 211, 238, 0.35), 0 0 4px rgba(34, 211, 238, 0.2); }
    50% { text-shadow: 0 0 32px rgba(34, 211, 238, 0.6), 0 0 10px rgba(34, 211, 238, 0.4); }
}

.text-shimmer {
    color: var(--accent-cyan);
    animation: textShimmer 3s ease-in-out infinite;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

.animate-on-scroll-left {
    opacity: 0;
    transform: translateX(-35px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll-left.visible { opacity: 1; transform: translateX(0); }

.animate-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-scale.visible { opacity: 1; transform: scale(1); }

.stagger-children > * {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.04s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.12s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.16s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.20s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.24s; opacity: 1; transform: none; }

.store-hero {
    position: relative;
    padding: 120px 0 80px;
    text-align: center;
    overflow: hidden;
    background: var(--bg-primary);
}

.store-hero .hero-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }

.store-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.store-hero .hero-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    border-radius: inherit;
    pointer-events: none;
}

.store-hero .hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: pulse 2s ease-in-out infinite;
}

.store-hero .hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

.store-hero .hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
}

.ranks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.rank-card {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm), var(--liquid-inner-glow);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.rank-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.35s;
}

.rank-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

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

.rank-card.featured {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: var(--shadow-md), 0 0 24px rgba(168, 85, 247, 0.08);
}

.rank-card.featured:hover {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: var(--shadow-lg), 0 0 32px rgba(168, 85, 247, 0.12);
}

.rank-featured-badge {
    position: absolute;
    top: 12px;
    right: -28px;
    background: var(--accent-purple-dark);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 4px 32px;
    transform: rotate(45deg);
    z-index: 5;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

.rank-header {
    position: relative;
    z-index: 2;
    padding: 28px 20px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.rank-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--rank-color, var(--accent-cyan));
    transition: all 0.35s;
}

.rank-card:hover .rank-icon {
    background: rgba(255,255,255,0.06);
    transform: scale(1.05);
}

.rank-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.rank-name-en {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.rank-price {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--rank-color, var(--accent-cyan));
}

.rank-body {
    position: relative;
    z-index: 2;
    padding: 18px 20px;
    flex: 1;
}

.rank-section {
    margin-bottom: 16px;
}

.rank-section:last-child { margin-bottom: 0; }

.rank-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.rank-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rank-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.rank-features li svg {
    flex-shrink: 0;
    color: var(--accent-emerald);
}

.rank-features li code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.78rem;
    background: rgba(255,255,255,0.04);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent-cyan);
}

.rank-includes {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.rank-includes svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--accent-cyan);
}

.rank-footer {
    position: relative;
    z-index: 2;
    padding: 0 20px 20px;
}

.btn-rank {
    width: 100%;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid var(--rank-color, var(--accent-cyan));
    background: rgba(255,255,255,0.03);
    color: var(--rank-color, var(--accent-cyan));
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-rank::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-rank:hover {
    background: var(--rank-color, var(--accent-cyan));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.btn-rank:hover::before { opacity: 1; }

.btn-rank:disabled,
.btn-rank.server-offline {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    background: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.08);
    color: var(--text-muted);
}

.rank-status-banner {
    padding: 24px 0 0;
}

.rank-status-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
    border: 1px solid var(--glass-border);
}

.rank-status-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #34d399;
}

.rank-status-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rank-status-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.rank-status-value {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rank-staff-tag {
    display: inline-block;
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.rank-status-action {
    flex-shrink: 0;
}

.rank-owned-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 5;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.rank-owned-badge svg { width: 12px; height: 12px; }

.rank-card.rank-owned {
    border-color: rgba(52, 211, 153, 0.15);
    opacity: 0.75;
}

.rank-card.rank-owned:hover {
    border-color: rgba(52, 211, 153, 0.3);
    opacity: 0.85;
}

.rank-card.rank-owned .btn-owned {
    width: 100%;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(52, 211, 153, 0.2);
    background: rgba(52, 211, 153, 0.06);
    color: #34d399;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.rank-card.rank-buyable {
    border-color: rgba(34, 211, 238, 0.2);
}

.rank-card.rank-buyable:hover {
    border-color: rgba(34, 211, 238, 0.4);
}

.rank-card.rank-locked {
    opacity: 0.5;
}

.rank-card.rank-locked .btn-locked {
    width: 100%;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(148, 163, 184, 0.04);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.rank-note-staff {
    border-color: rgba(251, 191, 36, 0.2) !important;
    background: rgba(251, 191, 36, 0.03) !important;
}

.rank-note-staff svg { color: #fbbf24 !important; }

.rank-note-max {
    border-color: rgba(168, 85, 247, 0.2) !important;
    background: rgba(168, 85, 247, 0.03) !important;
}

.rank-note-max svg { color: #a855f7 !important; }

.rank-note-welcome {
    border-color: rgba(34, 211, 238, 0.2) !important;
    background: rgba(34, 211, 238, 0.03) !important;
}

.rank-note-welcome svg { color: #22d3ee !important; }

.rank-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm), var(--liquid-inner-glow);
    position: relative;
    overflow: hidden;
}

.rank-note::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.5;
}

.rank-note svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--accent-gold);
}

.note-text {
    position: relative;
    z-index: 2;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.note-text strong { color: var(--text-primary); }

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm), var(--liquid-inner-glow);
    position: relative;
    overflow: hidden;
}

.table-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.5;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    position: relative;
    z-index: 2;
}

.comparison-table thead tr {
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.comparison-table th {
    padding: 14px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
}

.comparison-table th:first-child {
    text-align: left;
    color: var(--text-muted);
}

.comparison-table th.col-featured {
    color: var(--accent-purple);
}

.th-rank-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.comparison-table td {
    padding: 10px 16px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.comparison-table td:first-child {
    text-align: left;
}

.comparison-table tbody tr {
    transition: background 0.2s;
}

.comparison-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

.feature-label {
    font-weight: 600;
    color: var(--text-primary);
}

.highlight {
    color: var(--accent-purple) !important;
    font-weight: 600;
}

.check-yes {
    position: relative;
}

.check-yes::before {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.12);
    border: 1.5px solid var(--accent-emerald);
    margin: 0 auto;
}

.check-yes::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 9px;
    border: solid var(--accent-emerald);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    top: 50%;
    left: 50%;
    margin-top: -6px;
    margin-left: -3px;
}

.check-no {
    position: relative;
}

.check-no::before {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    border: 1.5px solid rgba(239, 68, 68, 0.5);
    margin: 0 auto;
}

.check-no::after {
    content: '';
    position: absolute;
    width: 9px;
    height: 2px;
    background: rgba(239, 68, 68, 0.7);
    top: 50%;
    left: 50%;
    margin-top: -1px;
    margin-left: -4.5px;
    border-radius: 1px;
    box-shadow: 0 0 0 0 transparent;
    transform: rotate(45deg);
}

.page-header {
    position: relative;
    padding: 140px 0 60px;
    text-align: center;
    background: var(--bg-primary);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 25%;
    right: 25%;
    bottom: 30%;
    background: rgba(34, 211, 238, 0.03);
    filter: blur(80px);
    border-radius: 50%;
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}

.page-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    border-radius: inherit;
    pointer-events: none;
}

.page-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
}

.page-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xs), var(--liquid-inner-glow);
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 0 auto 28px;
    text-align: center;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.last-updated::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    border-radius: inherit;
    pointer-events: none;
}

.last-updated svg { flex-shrink: 0; color: var(--text-muted); }
.last-updated strong { color: var(--text-primary); }

.rules-nav {
    position: sticky;
    top: 64px;
    z-index: 50;
    background: rgba(5, 10, 20, 0.78);
    backdrop-filter: blur(32px) saturate(1.5) brightness(1.02);
    -webkit-backdrop-filter: blur(32px) saturate(1.5) brightness(1.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 0;
    box-shadow:
        var(--liquid-inner-glow),
        0 4px 24px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
}

.rules-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    pointer-events: none;
}

.rules-nav::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.rules-nav-inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 4px;
}

.rules-nav-inner::-webkit-scrollbar { display: none; }

.nav-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.nav-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.3;
}

.nav-tab:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
    color: var(--text-secondary);
}

.nav-tab.active {
    background: color-mix(in srgb, var(--tab-color, var(--accent-cyan)) 8%, transparent);
    border-color: color-mix(in srgb, var(--tab-color, var(--accent-cyan)) 25%, transparent);
    color: var(--tab-color, var(--accent-cyan));
    box-shadow: 0 0 12px color-mix(in srgb, var(--tab-color, var(--accent-cyan)) 8%, transparent);
}

.tab-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.tab-icon svg { width: 16px; height: 16px; }

.tab-label { position: relative; z-index: 2; }

.rules-main {
    padding: 40px 0 60px;
}

.rules-category {
    display: none;
}

.rules-category.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

.category-header {
    margin-bottom: 28px;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid color-mix(in srgb, var(--cat-color, var(--accent-cyan)) 25%, var(--glass-border));
    color: var(--cat-color, var(--accent-cyan));
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}

.category-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    border-radius: inherit;
    pointer-events: none;
}

.badge-icon {
    display: flex;
    align-items: center;
}

.badge-icon svg { width: 16px; height: 16px; }

.category-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 640px;
}

.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 14px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xs), var(--liquid-inner-glow);
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.rule-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.4;
    transition: opacity var(--transition);
}

.rule-item:hover {
    border-color: var(--glass-border-hover);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm), var(--liquid-inner-glow);
}

.rule-item:hover::before {
    opacity: 0.7;
}

.rule-bullet {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--item-color, var(--accent-cyan));
    box-shadow: 0 0 8px color-mix(in srgb, var(--item-color, var(--accent-cyan)) 40%, transparent);
    position: relative;
    z-index: 2;
}

.rule-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.category-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.04);
    border: 1px solid rgba(251, 191, 36, 0.12);
    margin-top: 24px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.category-note svg { flex-shrink: 0; margin-top: 2px; color: var(--accent-gold); }
.category-note strong { color: var(--accent-gold); }

.penalties-table-wrapper {
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm), var(--liquid-inner-glow);
    overflow: hidden;
    position: relative;
}

.penalties-table-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.4;
}

.penalties-table {
    width: 100%;
    border-collapse: collapse;
    position: relative;
    z-index: 2;
}

.penalties-table thead tr {
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.penalties-table th {
    padding: 14px 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    text-align: left;
    white-space: nowrap;
}

.penalties-table td {
    padding: 14px 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    vertical-align: middle;
}

.penalties-table tbody tr {
    transition: background 0.2s;
}

.penalties-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

.penalty-level {
    width: 80px;
}

.level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--penalty-color, var(--accent-cyan)) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--penalty-color, var(--accent-cyan)) 20%, transparent);
    color: var(--penalty-color, var(--accent-cyan));
    font-size: 0.82rem;
    font-weight: 800;
}

.penalty-name strong {
    color: var(--text-primary);
    font-weight: 700;
}

.penalty-desc {
    line-height: 1.5;
}

.authority-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 14px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    margin-top: 24px;
    position: relative;
    overflow: hidden;
}

.authority-note::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.3;
}

.authority-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(52, 211, 153, 0.06);
    border: 1px solid rgba(52, 211, 153, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-emerald);
}

.authority-content {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.authority-content strong { color: var(--text-primary); }

.important-notice {
    padding-bottom: 80px;
}

.notice-card {
    text-align: center;
    padding: 48px 32px;
    border-radius: var(--radius-xl);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur-heavy));
    -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg), var(--liquid-inner-glow);
    position: relative;
    overflow: hidden;
}

.notice-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--liquid-shine);
    border-radius: inherit;
    pointer-events: none;
}

.notice-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(251, 191, 36, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent-gold);
    position: relative;
    z-index: 2;
}

.notice-card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 28px;
    max-width: 520px;
    text-align: left;
}

.notice-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.notice-list li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-gold);
    margin-top: 7px;
}

.notice-list li strong { color: var(--text-primary); }

.notice-card .btn { position: relative; z-index: 2; }

@media (max-width: 1024px) {
    .economy-grid,
    .features-grid,
    .community-grid { grid-template-columns: repeat(2, 1fr); }
    .ranks-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .penalties-table th,
    .penalties-table td { padding: 12px 14px; }
}

@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .page-header { padding: 120px 0 40px; }
    .page-desc { font-size: 0.88rem; }
    .rules-nav { top: 56px; padding: 10px 0; }
    .nav-tab { padding: 8px 14px; font-size: 0.78rem; }
    .rule-item { padding: 14px 16px; }
    .rule-text { font-size: 0.82rem; }
    .penalties-table-wrapper { overflow-x: auto; }
    .penalties-table { min-width: 500px; }
    .authority-note { flex-direction: column; gap: 12px; }
    .notice-card { padding: 36px 20px; }
    .notice-card h2 { font-size: 1.2rem; }
    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 10, 20, 0.95);
        backdrop-filter: blur(32px);
        border-bottom: 1px solid var(--glass-border);
        padding: 14px;
        flex-direction: column;
    }
    .navbar-links.open { display: flex; }
    .navbar-toggle { display: flex; }
    .economy-grid,
    .features-grid,
    .community-grid { grid-template-columns: 1fr; }
    .ranks-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .world-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: clamp(2.5rem, 7vw, 4rem); }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .server-ip-bar { flex-direction: column; gap: 8px; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
    .cta-box { padding: 48px 20px; }
    .staff-grid { grid-template-columns: repeat(2, 1fr); }
    .staff-grid .staff-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 280px;
        justify-self: center;
    }
}

@media (max-width: 480px) {
    .staff-grid { grid-template-columns: 1fr; max-width: 280px; }
    .lang-toggle { display: none; }
    .rule-item { gap: 10px; padding: 12px 14px; }
    .category-badge { font-size: 0.7rem; padding: 5px 12px; }
    .penalty-level { width: 60px; }
    .level-badge { width: 28px; height: 28px; font-size: 0.75rem; }
}

@media print {
    .navbar, .footer, .hero-bg { display: none; }
    body { background: white; color: black; }
}

:root {
    --bg-primary: #070d18;
    --bg-secondary: #0b1322;
    --bg-tertiary: #111c30;
    --surface-primary: #0d1728;
    --surface-secondary: #111e32;
    --surface-elevated: #16243a;
    --text-primary: #f4f7fb;
    --text-secondary: #a4b2c8;
    --text-muted: #70819d;
    --border-color: #22324a;
    --border-light: #30425d;
    --accent-cyan: #28c6da;
    --accent-cyan-dark: #0e879a;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

body {
    background-color: #070d18;
    background-image: url('/images/bg-minecraft.jpg');
    background-blend-mode: soft-light;
}

body::before {
    background: #070d18;
    opacity: 0.76;
}

body.modal-open { overflow: hidden; }

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 5000;
    padding: 10px 14px;
    border-radius: 8px;
    color: #071019;
    background: #67e8f9;
    font-weight: 700;
    transform: translateY(-150%);
    transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
    outline: 3px solid #67e8f9;
    outline-offset: 3px;
}

#main-content:focus { outline: none; }
section[id], [id="ranks-grid"] { scroll-margin-top: 88px; }

.navbar.scrolled {
    position: fixed;
    overflow: visible;
    background: #080f1d;
    border-bottom-color: #22324a;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled::before,
.navbar.scrolled::after { display: none; }

.nav-link.active {
    color: #67e8f9;
    background: #11263a;
}

.btn-primary,
.modal-submit-btn,
.ip-copy {
    color: #041014;
    background: #28c6da;
    background-image: none;
    border-color: #28c6da;
    box-shadow: none;
}

.btn-primary:hover,
.modal-submit-btn:hover:not(:disabled),
.ip-copy:hover {
    color: #02090c;
    background: #67e8f9;
    box-shadow: 0 8px 20px rgba(40, 198, 218, 0.18);
}

.btn-secondary,
.btn-logout {
    background: #111e32;
    background-image: none;
    border: 1px solid #30425d;
}

.btn-secondary:hover,
.btn-logout:hover { background: #16243a; border-color: #47617f; }

.hero,
.store-hero { background-color: #091221; }

.hero-bg { opacity: 0.32; }
.hero-particles { display: none; }
.hero-title { text-shadow: none; }
.text-glow { text-shadow: none; }
.text-shimmer {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    animation: none;
}

.section-solid,
.staff-section { background: #0a1220; }

.section-badge,
.hero-badge,
.modal-badge {
    color: #67e8f9;
    background: #11263a;
    background-image: none;
    border-color: #25425a;
    box-shadow: none;
}

.feature-card,
.economy-card,
.staff-card,
.community-card,
.rank-card,
.rank-status-box,
.rank-note,
.table-wrapper,
.cta-box,
.modal-container,
.server-ip-bar {
    background: #0d1728;
    background-image: none;
    border-color: #22324a;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.feature-card::before,
.economy-card::before,
.staff-card::before,
.community-card::before,
.rank-card::before,
.cta-box::before,
.modal-container::before { display: none; }

.feature-card:hover,
.economy-card:hover,
.staff-card:hover,
.community-card:hover,
.rank-card:hover {
    transform: translateY(-4px);
    border-color: #304b68;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.rank-card.featured { border-color: #6d4bb5; }
.rank-card.rank-owned { border-color: #1d795e; }
.rank-card.rank-locked { opacity: 0.72; }

.rank-header {
    background: #111e32;
    background-image: none;
    border-bottom-color: #22324a;
}

.rank-price,
.community-metric { color: #67e8f9; }

.rank-status-value { color: #67e8f9; }
.rank-status-value.is-staff { color: #fbbf24; }

.buy-rank-btn {
    color: #071019;
    background: var(--rank-color, #28c6da);
    background-image: none;
    border: 0;
}

.comparison-table th { background: #111e32; }
.comparison-table td { background-color: #0d1728; }
.comparison-table .highlight { background: #151d35; }

.footer {
    background: #080f1d;
    background-image: none;
    border-top: 1px solid #22324a;
}

.footer-logo { margin-bottom: 8px; }
.footer-logo img { border-radius: 8px; }
.footer-col h2 { font-size: 0.86rem; }
.footer-link-button {
    display: block;
    padding: 0;
    color: var(--text-secondary);
    background: transparent;
    border: 0;
    font: inherit;
    text-align: left;
}
.footer-link-button:hover { color: #67e8f9; }
.footer-muted { color: var(--text-muted); font-size: 0.88rem; }
.footer-socials a { font-size: 0.78rem; }
.logout-form { display: inline-flex; }

.modal-platform-fieldset { border: 0; min-width: 0; }
.modal-platform-btn input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.modal-platform-btn:has(input:focus-visible) {
    outline: 3px solid #67e8f9;
    outline-offset: 3px;
}
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.server-validation-error { display: flex; margin-top: 10px; }

.modal-backdrop { background: rgba(2, 6, 12, 0.82); }
.modal-container { border-color: #30425d; }
.modal-platform-btn,
.modal-input-wrapper,
.modal-skin-preview,
.modal-rank-status {
    background: #0a1322;
    background-image: none;
    border-color: #22324a;
}
.modal-platform-btn.active { background: #11263a; border-color: #28c6da; }
.modal-input { background: transparent; }
.rank-label-staff { margin-left: 8px; }

.community-status,
.server-platforms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--text-secondary);
}
.server-platforms { font-size: 0.8rem; }
.community-metric { display: block; margin-top: 12px; font-size: 2rem; }
.staff-grid-owner { display: flex; justify-content: center; margin-bottom: 56px; }
.staff-grid-owner .staff-card { width: 100%; max-width: 280px; }

.toast-leaving {
    opacity: 0;
    transform: translateX(18px);
}

@media (max-width: 900px) {
    .navbar-links { background: #0b1322; border-color: #22324a; }
    .navbar-links.open { box-shadow: 0 18px 32px rgba(0, 0, 0, 0.36); }
    .user-avatar-name { display: none; }
}

@media (max-width: 640px) {
    .section { padding: 72px 0; }
    .section-header { margin-bottom: 40px; }
    .hero-actions, .cta-actions { width: 100%; }
    .hero-actions .btn, .cta-actions .btn { width: 100%; justify-content: center; }
    .server-ip-bar { width: min(100%, 420px); }
    .ip-address { overflow: hidden; text-overflow: ellipsis; }
    .lang-toggle { display: none; }
    .rank-status-box { align-items: flex-start; }
    .modal-container { max-height: calc(100dvh - 24px); overflow-y: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .page-wrapper,
    .hero-title,
    .hero-subtitle,
    .hero-desc,
    .hero-actions,
    .server-ip-bar,
    .server-status,
    .modal-container {
        animation-duration: 0.35s !important;
    }

    .animate-on-scroll,
    .animate-on-scroll-left,
    .animate-on-scroll-right,
    .animate-scale,
    .stagger-children > * {
        transition-duration: 0.35s !important;
    }

    .owner-card { animation-duration: 8s !important; }
    .admin-card { animation-duration: 7s !important; }
    .hero-badge-dot { animation-duration: 4s !important; }
    .text-shimmer { animation-duration: 6s !important; }
    .avatar-glitch-img:not(.glitching) { animation-duration: 12s !important; }
    .owner-card .owner-badge::after,
    .admin-card .admin-badge::after { animation-duration: 7s !important; }
}
