/* ==========================================
   MafiaMC Network — Premium Red Identity
   Modern, Formal, Eye-Comfortable
   ========================================== */

/* === CSS Variables / Design Tokens === */
:root {
    /* Core Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(18, 18, 26, 0.7);
    --bg-card-hover: rgba(25, 25, 35, 0.85);

    /* Red Palette — Eye-comfortable, not harsh */
    --red-300: #ffa3a3;
    --red-400: #ff6b6b;
    --red-700: #b91c1c;
    --red-800: #991b1b;
    --red-900: #7f1d1d;

    /* Primary Accent */
    --accent: #dc2626;
    --accent-light: #ef4444;
    --accent-glow: rgba(220, 38, 38, 0.4);
    --accent-subtle: rgba(220, 38, 38, 0.08);
    --accent-border: rgba(220, 38, 38, 0.2);

    /* Secondary Accent */
    --gold: #f59e0b;
    --gold-glow: rgba(245, 158, 11, 0.4);

    /* Text */
    --text-primary: #f1f1f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* Misc */
    --success: #22c55e;
    --discord: #5865F2;
    --border: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Spacing */
    --nav-height: 72px;
    --section-gap: 120px;
    --container-max: 1200px;

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent);
    color: white;
}

img {
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    -webkit-user-select: none;
    user-select: none;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--red-800);
    border-radius: 4px;
}

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

/* === Ambient Background === */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-primary);
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: orbFloat 8s ease-in-out infinite;
    transition: animation-play-state 0.5s;
}

.ambient-bg.orbs-paused .ambient-orb {
    animation-play-state: paused;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--red-800);
    bottom: -200px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--red-900);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 30px) scale(1.03);
    }
}

/* === Glass Card Utility === */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.4s var(--ease-out);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--accent-border);
}

/* ========================================
   NAVIGATION BAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.4s var(--ease-out);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 100%;
    margin: 0;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0;
}

/* Logo — pushed to the left edge */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.3s var(--ease-out);
    flex-shrink: 0;
    margin-right: auto;
}

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

.logo-img {
    width: 34px;
    height: 34px;
    pointer-events: auto;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--red-400), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

/* Nav Center — holds the links, centered */
.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

/* Nav IP Badge — pushed to the right */
.nav-ip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
    border-radius: 100px;
    padding: 6px 6px 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--red-300);
    transition: all 0.3s var(--ease-out);
    flex-shrink: 0;
    margin-left: auto;
}

.nav-ip:hover {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.35);
}

.nav-ip i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.ip-copy-btn {
    background: var(--accent);
    border: none;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out);
}

.ip-copy-btn:hover {
    background: var(--accent-light);
    transform: scale(1.1);
}

.ip-copy-btn.copied {
    background: var(--success);
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 4px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 10px;
    transition: all 0.3s var(--ease-out);
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    white-space: nowrap;
}

.nav-link i {
    font-size: 0.75rem;
}

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

.nav-link.active {
    color: var(--accent-light);
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
}

.nav-link.store-link {
    background: linear-gradient(135deg, var(--accent), var(--red-700));
    color: white;
    font-weight: 600;
    border: none;
}

.nav-link.store-link:hover {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.nav-link.discord-link-nav {
    color: var(--discord);
}

.nav-link.discord-link-nav:hover {
    background: rgba(88, 101, 242, 0.1);
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 0 24px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: heroPulse 4s ease-in-out infinite;
}

@keyframes heroPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-content {
    animation: heroFadeIn 1s var(--ease-out) both;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent-light);
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
    padding: 6px 20px;
    border-radius: 100px;
    margin-bottom: 24px;
    animation: heroFadeIn 1s var(--ease-out) 0.1s both;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    animation: heroFadeIn 1s var(--ease-out) 0.2s both;
}

.title-mafia {
    color: var(--text-primary);
}

.title-mc {
    background: linear-gradient(135deg, var(--red-400), var(--accent), var(--red-700));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
    animation: heroFadeIn 1s var(--ease-out) 0.3s both;
}

/* Hero IP Box */
.hero-ip-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 8px 8px 8px 24px;
    margin-bottom: 48px;
    animation: heroFadeIn 1s var(--ease-out) 0.4s both;
    transition: all 0.3s var(--ease-out);
}

.hero-ip-box:hover {
    border-color: var(--accent-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.ip-display {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.ip-display i {
    color: var(--accent-light);
    font-size: 0.9rem;
}

.ip-value {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    letter-spacing: 0.02em;
}

.hero-copy-btn {
    background: linear-gradient(135deg, var(--accent), var(--red-700));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
}

.hero-copy-btn:hover {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-glow);
}

.hero-copy-btn.copied {
    background: var(--success);
}

/* Maintenance Progress Bar */
.maintenance-bar {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 40px;
    animation: heroFadeIn 1s var(--ease-out) 0.45s both;
}

.maintenance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.maintenance-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.maintenance-label i {
    color: #f59e0b;
    font-size: 0.75rem;
}

.maintenance-percent {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--success);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.progress-track {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 100px;
    background: linear-gradient(90deg, #22c55e, #4ade80, #22c55e);
    background-size: 200% 100%;
    animation: progressGradient 2s ease-in-out infinite;
    transition: width 2s var(--ease-out);
    position: relative;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.progress-fill.animated {
    width: var(--progress-width, 60%);
}

@keyframes progressGradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    border-radius: 100px;
    background: linear-gradient(90deg, transparent 80%, rgba(255, 255, 255, 0.25));
    transition: width 2s var(--ease-out);
}

.progress-glow.animated {
    width: var(--progress-width, 60%);
}

.maintenance-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 10px;
    font-style: italic;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    animation: heroFadeIn 1s var(--ease-out) 0.5s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    animation: fadeInUp 1s var(--ease-out) 1s both;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--accent-light);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(12px);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   SECTIONS — SHARED STYLES
   ======================================== */
.section {
    padding: var(--section-gap) 0;
    position: relative;
}

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent-light);
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
    padding: 4px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    background: none;
    -webkit-text-fill-color: unset;
}

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

/* ========================================
   INFO CARDS GRID
   ======================================== */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.info-card {
    padding: 32px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

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

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.3rem;
    transition: all 0.3s var(--ease-out);
}

.info-card:hover .card-icon {
    transform: scale(1.1) rotate(-3deg);
}

.status-icon {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
}

.maintenance-icon {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.version-icon {
    background: var(--accent-subtle);
    color: var(--accent-light);
}

.players-icon {
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
}

.rating-icon {
    background: rgba(245, 158, 11, 0.12);
    color: var(--gold);
}

.release-icon {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
}

.ip-icon {
    background: var(--accent-subtle);
    color: var(--accent-light);
}

.info-card h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.card-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ip-mono {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    color: var(--accent-light);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 100px;
}

.status-indicator.online {
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
}

.status-indicator.maintenance {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: statusPulse 2s ease-in-out infinite;
}

.maintenance-dot {
    background: #f59e0b;
    animation: maintenancePulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
}

@keyframes maintenancePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
    }
}

/* ========================================
   STAFF SECTION
   ======================================== */
.staff-section {
    text-align: center;
}

.staff-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.staff-cards {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.staff-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    width: 220px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
}

.staff-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.staff-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--gold), #d97706);
    color: #000;
}

.hadmin-badge {
    background: linear-gradient(135deg, #374151, #1f2937);
    color: #d1d5db;
}

.admin-badge {
    background: linear-gradient(135deg, var(--accent), var(--red-800));
    color: white;
}

.staff-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
    width: 72px;
    height: 72px;
}

.staff-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    image-rendering: pixelated;
    position: relative;
    z-index: 1;
}

.avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.hadmin-ring {
    border-color: #6b7280;
}

.admin-ring {
    border-color: var(--accent);
}

.staff-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.owner-name {
    background: linear-gradient(90deg, var(--gold), #f59e0b, var(--gold));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 3s linear infinite;
}

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

    100% {
        background-position: 200% center;
    }
}

.hadmin-name {
    color: #9ca3af;
}

.admin-name {
    background: linear-gradient(90deg, var(--red-400), var(--accent), var(--red-400));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 3s linear infinite;
}

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

/* ========================================
   DISCORD SECTION
   ======================================== */
.discord-section {
    padding: 80px 0;
}

.discord-banner {
    padding: 48px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(88, 101, 242, 0.03)) !important;
    border: 1px solid rgba(88, 101, 242, 0.15) !important;
}

.discord-banner:hover {
    border-color: rgba(88, 101, 242, 0.3) !important;
    box-shadow: 0 8px 32px rgba(88, 101, 242, 0.1) !important;
}

.discord-content {
    display: flex;
    align-items: center;
    gap: 32px;
}

.discord-icon-large {
    font-size: 3rem;
    color: var(--discord);
    flex-shrink: 0;
}

.discord-text {
    flex: 1;
}

.discord-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.discord-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--discord);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease-out);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.discord-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.discord-btn:hover::before {
    transform: translateX(100%);
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.35);
}

/* ========================================
   STORE SECTION
   ======================================== */
.store-section {
    padding: 0 0 80px;
}

.store-banner {
    padding: 48px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(220, 38, 38, 0.02)) !important;
    border: 1px solid var(--accent-border) !important;
    position: relative;
    overflow: hidden;
}

.store-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.store-banner:hover {
    border-color: rgba(220, 38, 38, 0.35) !important;
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.1) !important;
}

.store-banner-content {
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.store-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--red-700));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 20px var(--accent-glow);
    transition: transform 0.3s var(--ease-out);
}

.store-banner:hover .store-icon-wrapper {
    transform: scale(1.08) rotate(-3deg);
}

.store-banner-text {
    flex: 1;
}

.store-banner-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.store-banner-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.store-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent), var(--red-700));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease-out);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.store-banner-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.store-banner-btn:hover::before {
    transform: translateX(100%);
}

.store-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

/* ========================================
   RATINGS SECTION
   ======================================== */
.ratings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.rating-card {
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.rating-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--red-800));
    border-radius: 0 2px 2px 0;
}

.rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.rating-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-border);
    object-fit: cover;
    pointer-events: auto;
    transition: all 0.3s var(--ease-out);
}

.rating-card:hover .rating-avatar {
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.rating-username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.rating-stars {
    display: flex;
    gap: 3px;
}

.rating-stars i {
    color: var(--gold);
    font-size: 0.85rem;
    text-shadow: 0 0 8px var(--gold-glow);
    transition: transform 0.3s var(--ease-bounce);
}

.rating-card:hover .rating-stars i {
    animation: starPop 0.5s var(--ease-bounce) both;
}

.rating-card:hover .rating-stars i:nth-child(1) {
    animation-delay: 0s;
}

.rating-card:hover .rating-stars i:nth-child(2) {
    animation-delay: 0.05s;
}

.rating-card:hover .rating-stars i:nth-child(3) {
    animation-delay: 0.1s;
}

.rating-card:hover .rating-stars i:nth-child(4) {
    animation-delay: 0.15s;
}

.rating-card:hover .rating-stars i:nth-child(5) {
    animation-delay: 0.2s;
}

@keyframes starPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.rating-text-content {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.6;
    position: relative;
    padding-left: 16px;
}

.rating-text-content::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -4px;
    font-size: 2rem;
    color: var(--accent-border);
    font-family: serif;
    line-height: 1;
}

.rate-us-cta {
    text-align: center;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent), var(--red-700));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
    font-family: var(--font);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

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

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    font-family: var(--font);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* ========================================
   RATING MODAL
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.open {
    display: flex;
    animation: modalFadeIn 0.3s var(--ease-out);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-card {
    max-width: 480px;
    width: 100%;
    padding: 32px;
    animation: modalSlideIn 0.4s var(--ease-bounce);
    border-color: var(--accent-border) !important;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(20px) scale(0.96);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.modal-top h3 {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-top h3 i {
    color: var(--gold);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.star-select {
    text-align: center;
    margin-bottom: 24px;
}

.star-select p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.star-rating-input {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 2rem;
    margin-bottom: 8px;
}

.star-rating-input i {
    color: #3f3f46;
    cursor: pointer;
    transition: all 0.2s var(--ease-bounce);
}

.star-rating-input i:hover,
.star-rating-input i.active {
    color: var(--gold);
    transform: scale(1.15);
    text-shadow: 0 0 12px var(--gold-glow);
}

.rating-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.3s;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--accent-light);
    font-size: 0.8rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
    transition: all 0.3s var(--ease-out);
    resize: none;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

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

/* Cloudflare Turnstile CAPTCHA */
.turnstile-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0 8px;
    min-height: 65px;
    align-items: center;
}

.turnstile-wrapper .cf-turnstile {
    transform-origin: center;
}

.turnstile-wrapper .cf-turnstile iframe {
    border-radius: 10px !important;
}

.modal-success {
    display: none;
    text-align: center;
    padding: 32px 0;
}

.modal-success.show {
    display: block;
    animation: modalFadeIn 0.4s var(--ease-out);
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 16px;
    animation: successPop 0.5s var(--ease-bounce);
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.modal-success h3 {
    color: var(--success);
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.modal-success p {
    color: var(--text-muted);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ========================================
   SUPPORT SECTION
   ======================================== */
.support-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 48px;
    text-align: center;
}

.support-icon {
    font-size: 3rem;
    color: var(--accent-light);
    margin-bottom: 20px;
}

.support-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.support-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 40px 24px;
    text-align: center;
    position: relative;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    pointer-events: auto;
}

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

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
    user-select: none;
}

.footer-dev {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    user-select: none;
}

.dev-symbol a {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}

.dev-tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.dev-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--accent-border);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-light);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s var(--ease-bounce);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.dev-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--accent-border);
}

.dev-tooltip-wrapper:hover .dev-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.signature-link {
    position: absolute;
    right: 40px;
    bottom: 20px;
}

.signature-img {
    height: 70px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: all 0.3s var(--ease-out);
}

.signature-link:hover .signature-img {
    opacity: 1;
    transform: translateY(-2px) scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(220, 38, 38, 0.25));
}

/* ========================================
   CLOUDFLARE SECURITY OVERLAY
   ======================================== */
#cf-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#cf-overlay.verified {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.cf-container {
    max-width: 600px;
    width: 90%;
    margin-bottom: 120px;
}

.cf-logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.of-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.cf-logo-box span {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

#cf-overlay h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

#cf-overlay p {
    font-size: 15px;
    line-height: 1.6;
    color: #a1a1aa;
    margin-bottom: 24px;
}

.cf-captcha-box {
    margin: 0;
    justify-content: flex-start;
}

.cf-footer {
    position: absolute;
    bottom: 40px;
    width: 100%;
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 16px;
    max-width: 800px;
}

.cf-footer p {
    font-size: 12px;
    color: #71717a;
    margin-bottom: 4px;
}

.cf-footer a {
    color: #fff;
    text-decoration: underline;
}

.cf-footer a:hover {
    text-decoration: none;
}

/* ========================================
   NOTIFICATIONS
   ======================================== */
#notification-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification {
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(16px);
    transform: translateX(120%);
    transition: transform 0.5s var(--ease-bounce);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.notification.warning {
    background: rgba(245, 158, 11, 0.9);
    color: #000;
}

.notification.error {
    background: rgba(220, 38, 38, 0.9);
    color: white;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s var(--ease-out);
}

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

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

    .discord-content,
    .store-banner-content {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --section-gap: 80px;
        --nav-height: 64px;
    }

    .nav-center {
        position: static;
        transform: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 100px 24px 24px;
        gap: 8px;
        transition: right 0.4s var(--ease-out);
        border: none;
        border-left: 1px solid var(--glass-border);
        border-radius: 0;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-link {
        padding: 14px 16px;
        font-size: 1rem;
        width: 100%;
        border-radius: 12px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-ip {
        font-size: 0.75rem;
        padding: 4px 4px 4px 10px;
        margin-left: 0;
    }

    .ip-text {
        display: none;
    }

    .info-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .info-card {
        padding: 20px 16px;
    }

    .card-value {
        font-size: 1.2rem;
    }

    .staff-cards {
        flex-direction: column;
        align-items: center;
    }

    .staff-card {
        width: 100%;
        max-width: 280px;
    }

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

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .signature-link {
        position: static;
        display: block;
        margin-top: 16px;
    }

    .support-card,
    .store-banner,
    .discord-banner {
        padding: 32px 20px;
    }
}

@media screen and (max-width: 480px) {
    .info-cards-grid {
        grid-template-columns: 1fr;
    }

    .hero-ip-box {
        flex-direction: column;
        gap: 8px;
        padding: 16px;
    }

    .hero-copy-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .stat-divider {
        display: none;
    }

    .modal-card {
        padding: 24px 20px;
    }
}
