/* ==========================================================================
   CrossPlayMC Style Sheets - Premium Dark Theme
   ========================================================================== */

/* Design System & Variables */
:root {
    --bg-dark: #07070f;
    --bg-card: rgba(18, 18, 35, 0.6);
    --bg-card-hover: rgba(26, 26, 50, 0.85);
    
    --primary: #9d4edd;
    --primary-glow: rgba(157, 78, 221, 0.4);
    --secondary: #00f5d4;
    --secondary-glow: rgba(0, 245, 212, 0.3);
    
    --accent: #3a86c8;

    /* Brand Colors — PulseChat & CrossPulse */
    --brand-pink: #f72585;
    --brand-pink-deep: #b5179e;
    --brand-purple: #7209b7;
    --brand-teal: #00f5d4;
    --brand-teal-deep: #00c4a7;
    
    --text-main: #f8f9fa;
    --text-muted: #a5a5b5;
    
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    
    /* Unified Radius System */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 50px;

    /* Unified Shadow System */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
    --shadow-glow-primary: 0 0 30px rgba(157, 78, 221, 0.15);
    --shadow-glow-secondary: 0 0 30px rgba(0, 245, 212, 0.08);
    --shadow-glow-pink: 0 0 30px rgba(181, 23, 158, 0.1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.text-center {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Common Typography & Titles */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--brand-purple) 100%);
    color: var(--text-main);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px var(--primary-glow);
    filter: brightness(1.1);
}

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

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

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

.btn-nav {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.5rem;
    font-size: 0.95rem;
}

.btn-nav:hover {
    background: var(--text-main);
    color: var(--bg-dark);
    transform: scale(1.05);
}

.btn-dashboard {
    background: linear-gradient(135deg, #b5179e, #7209b7) !important;
    border: 1px solid rgba(181, 23, 158, 0.4) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(181, 23, 158, 0.3);
}

.btn-dashboard:hover {
    background: linear-gradient(135deg, #d63ce6, #9b30ff) !important;
    color: #fff !important;
    box-shadow: 0 6px 22px rgba(181, 23, 158, 0.55);
    transform: scale(1.05);
}

/* Main Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 0.85rem 0;
    background: rgba(7, 7, 15, 0.78);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.main-header.scrolled {
    background: rgba(5, 5, 12, 0.94);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    padding: 0.65rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-bottom-color: rgba(157, 78, 221, 0.25);
}

.nav-container, .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 1750px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
    user-select: none;
}

.logo-img {
    height: 38px;
    width: 38px;
    object-fit: contain;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.06) rotate(-3deg);
}

.logo-text {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.color-blue {
    color: #3b82f6;
    text-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.color-white {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.color-red {
    color: #ef4444;
    text-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.primary-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    flex-wrap: nowrap;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: rgba(248, 249, 250, 0.78);
    font-size: 0.88rem;
    position: relative;
    padding: 0.35rem 0.6rem;
    white-space: nowrap;
    border-radius: 8px;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: #ffffff;
    background: rgba(157, 78, 221, 0.12);
    font-weight: 700;
}

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

/* Header Action Buttons */
.btn-nav {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    transition: all 0.25s ease;
}

.btn-dashboard {
    background: linear-gradient(135deg, #b5179e 0%, #7209b7 100%) !important;
    border: 1px solid rgba(181, 23, 158, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(181, 23, 158, 0.35);
}

.btn-dashboard:hover {
    background: linear-gradient(135deg, #d63ce6, #9b30ff) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 22px rgba(181, 23, 158, 0.65);
    transform: translateY(-2px);
}

.btn-join {
    background: rgba(88, 101, 242, 0.18) !important;
    border: 1px solid rgba(88, 101, 242, 0.45) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.2);
}

.btn-join:hover {
    background: #5865f2 !important;
    border-color: #5865f2 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(88, 101, 242, 0.5);
}

.btn-online-players {
    background: rgba(0, 245, 212, 0.12) !important;
    border: 1px solid rgba(0, 245, 212, 0.35) !important;
    color: #00f5d4 !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(0, 245, 212, 0.15);
}

.btn-online-players:hover {
    background: rgba(0, 245, 212, 0.22) !important;
    border-color: #00f5d4 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 245, 212, 0.35);
}

.online-player-card {
    background: rgba(16, 16, 32, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.online-player-card:hover {
    background: rgba(24, 24, 48, 0.85);
    border-color: rgba(0, 245, 212, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Medium Desktop Responsive Scaling (1081px to 1250px) */
@media (min-width: 1081px) and (max-width: 1250px) {
    .nav-list {
        gap: 0.65rem;
    }
    .nav-link {
        font-size: 0.86rem;
        padding: 0.35rem 0.5rem;
    }
    .btn-nav {
        padding: 0.4rem 0.85rem;
        font-size: 0.8rem;
    }
}

/* Hamburger Menu Toggle */
.mobile-nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    padding: 0.6rem;
    z-index: 1001;
    transition: all 0.2s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('assets/7b73d807-d16b-4bac-ac01-0a9afc5884c8.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 100px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(7, 7, 15, 0.4) 0%, #07070f 95%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    background: rgba(157, 78, 221, 0.15);
    border: 1px solid rgba(157, 78, 221, 0.3);
    color: var(--secondary);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.icon-discord {
    width: 20px;
    height: 20px;
}

/* Animations for Hero Section */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.fade-in-delay-1 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.2s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.4s forwards;
}

.fade-in-delay-3 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.6s forwards;
}

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

/* Mouse Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse-scroll {
    width: 28px;
    height: 48px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    display: block;
    position: relative;
}

.mouse-scroll::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--text-main);
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
    0% {
        top: 8px;
        opacity: 1;
    }
    100% {
        top: 28px;
        opacity: 0;
    }
}

/* About / Features Section */
.about-section {
    padding: 8rem 0;
    position: relative;
    background: linear-gradient(180deg, #07070f 0%, #0d0d1e 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(255,255,255,0.06), transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.2) 0%, rgba(0, 245, 212, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(157, 78, 221, 0.3);
}

.feature-icon {
    width: 28px;
    height: 28px;
    color: var(--secondary);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Rules Section */
.rules-section {
    padding: 8rem 0;
    position: relative;
    background: linear-gradient(180deg, #0d0d1e 0%, #080813 100%);
}

.rules-badge {
    display: inline-block;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.rule-card {
    background: rgba(16, 16, 32, 0.4);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.rule-card:hover {
    transform: translateY(-5px);
    background: rgba(22, 22, 45, 0.7);
    border-color: rgba(157, 78, 221, 0.3);
    box-shadow: 0 15px 30px rgba(157, 78, 221, 0.1);
}

.rule-card.highlight {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.15) 0%, rgba(16, 16, 32, 0.4) 100%);
    border-color: rgba(157, 78, 221, 0.4);
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.15);
}

.rule-card.highlight:hover {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.25) 0%, rgba(22, 22, 45, 0.7) 100%);
    border-color: rgba(157, 78, 221, 0.6);
    box-shadow: 0 20px 40px rgba(157, 78, 221, 0.25);
}

.rule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.rule-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    transition: var(--transition-smooth);
}

.rule-card:hover .rule-num {
    color: var(--primary);
    transform: scale(1.1);
}

.rule-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.rule-icon-box svg {
    width: 22px;
    height: 22px;
}

.rule-card:hover .rule-icon-box {
    background: rgba(157, 78, 221, 0.15);
    border-color: var(--primary);
    color: var(--secondary);
}

.rule-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.rule-card p {
    color: var(--text-muted);
    font-size: 0.975rem;
    line-height: 1.7;
}

.rule-card ul {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.rule-card li {
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.25rem;
}

.rule-card li::before {
    content: '•';
    color: var(--primary);
    font-size: 1.25rem;
    position: absolute;
    left: 0;
    top: -2px;
}

.rules-footer {
    background: rgba(0, 245, 212, 0.05);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.rules-footer p {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--secondary);
    font-size: 1.1rem;
}

/* Discord CTA Section */
.discord-cta {
    padding: 8rem 0;
    position: relative;
    background: #080813;
}

.discord-box {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, rgba(13, 13, 30, 0.8) 100%);
    border: 1px solid rgba(88, 101, 242, 0.25);
    border-radius: var(--radius-xl);
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.discord-logo-glow {
    width: 100px;
    height: 100px;
    background: rgba(88, 101, 242, 0.2);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2.5rem;
    position: relative;
    box-shadow: 0 0 40px rgba(88, 101, 242, 0.4);
    border: 1px solid rgba(88, 101, 242, 0.4);
}

.discord-big-logo {
    width: 50px;
    height: 50px;
    color: #5865F2;
}

.discord-box h2 {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.discord-box p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* Footer Section */
.main-footer {
    background: #04040a;
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    max-width: 300px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1rem;
}

.footer-links h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.mojang-notice {
    font-style: italic;
}

/* Scroll Animation Class */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* Projects Section */
.projects-section {
    padding: 8rem 0;
    position: relative;
    background: linear-gradient(180deg, #0d0d1e 0%, #080816 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    background: rgba(16, 16, 32, 0.4);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2.5rem;
}

.project-card:hover {
    transform: translateY(-8px);
    background: rgba(22, 22, 45, 0.7);
    border-color: rgba(0, 245, 212, 0.3);
    box-shadow: 0 20px 40px rgba(0, 245, 212, 0.08);
}

.project-img-container {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.project-card:hover .project-logo {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 12px 32px rgba(0, 245, 212, 0.2);
}

.project-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.project-card-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.project-card-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.project-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: auto;
}

.project-actions .btn {
    justify-content: center;
    text-align: center;
}

.btn-project {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    font-size: 0.95rem;
    white-space: nowrap;
}


/* Shop Promo Section (Main Page) */
.shop-promo-section {
    padding: 8rem 0;
    position: relative;
    background: linear-gradient(180deg, #080816 0%, #07070f 100%);
}

.shop-promo-box {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1) 0%, rgba(8, 8, 22, 0.8) 100%);
    border: 1px solid rgba(157, 78, 221, 0.25);
    border-radius: var(--radius-xl);
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.shop-icon-glow {
    width: 90px;
    height: 90px;
    background: rgba(157, 78, 221, 0.15);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.3);
    border: 1px solid rgba(157, 78, 221, 0.3);
    color: var(--primary);
}

.shop-big-icon {
    width: 44px;
    height: 44px;
}

.shop-promo-box h2 {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.shop-promo-box p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}

.shop-promo-box .warning-text {
    color: #ef4444;
    font-weight: 600;
    font-size: 1.05rem;
}

/* Shop Page Specifics */
.shop-page {
    background-color: #06060e;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(157, 78, 221, 0.14) 0%, transparent 55%),
        radial-gradient(circle at 85% 30%, rgba(0, 245, 212, 0.06) 0%, transparent 40%);
}

.shop-main {
    padding-top: 130px;
    padding-bottom: 5rem;
}

.shop-hero {
    padding: 2.5rem 0 3rem;
    text-align: center;
}

.shop-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 850;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.shop-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* Warning Banner */
.warning-banner {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-md);
    padding: 1.25rem 2rem;
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-align: left;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.08);
}

.warning-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.warning-content h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: #ef4444;
    margin-bottom: 0.25rem;
}

.warning-content p {
    color: rgba(248, 249, 250, 0.75);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

/* Steps Section */
.steps-section {
    padding: 2.5rem 0;
}

.steps-box {
    background: rgba(14, 14, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.steps-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.step-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(157, 78, 221, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(157, 78, 221, 0.15);
}

.step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #7b2cbf 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.step-card h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Grades Grid & Cards */
.grades-section {
    padding: 3rem 0 5rem;
}

.grades-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.grade-card {
    background: rgba(14, 14, 28, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 2.25rem 1.4rem 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.grade-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.popular-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #b5179e, #7209b7);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.7rem;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(181, 23, 158, 0.5);
    white-space: nowrap;
}

.grade-badge {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    margin: 0 auto 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-align: center;
}

.grade-price {
    text-align: center;
    margin-bottom: 1.25rem;
}

.price-val {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    display: block;
    margin-bottom: 0.25rem;
}

.price-period {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.grade-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    margin-bottom: 1.5rem;
}

.grade-features {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
    width: 100%;
    flex-grow: 1;
    padding: 0;
    list-style: none;
    text-align: left;
}

.grade-features li {
    font-size: 0.86rem;
    color: rgba(248, 249, 250, 0.78);
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.grade-features strong {
    color: #ffffff;
    font-weight: 700;
}

.btn-grade {
    width: 100%;
    border-radius: 50px;
    font-size: 0.88rem;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.75rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

/* Custom Theme Accents for Grade Cards */

/* 1. Petit Joueur (Yellow theme) */
#grade-petit {
    border-color: rgba(241, 196, 15, 0.2);
}
#grade-petit:hover {
    border-color: rgba(241, 196, 15, 0.5);
    box-shadow: 0 15px 40px rgba(241, 196, 15, 0.15);
}
#grade-petit .grade-badge {
    background: rgba(241, 196, 15, 0.12);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}
#grade-petit .price-val {
    color: #f1c40f;
}
#grade-petit .btn-grade {
    background: rgba(241, 196, 15, 0.12);
    border: 1px solid rgba(241, 196, 15, 0.4);
    color: #ffffff;
}
#grade-petit .btn-grade:hover {
    background: #f1c40f;
    color: #000000;
    border-color: #f1c40f;
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.4);
    transform: translateY(-2px);
}

/* 2. Moyen Joueur (Mint theme) */
#grade-moyen {
    border-color: rgba(0, 245, 212, 0.2);
}
#grade-moyen:hover {
    border-color: rgba(0, 245, 212, 0.5);
    box-shadow: 0 15px 40px rgba(0, 245, 212, 0.15);
}
#grade-moyen .grade-badge {
    background: rgba(0, 245, 212, 0.12);
    color: #00f5d4;
    border: 1px solid rgba(0, 245, 212, 0.3);
}
#grade-moyen .price-val {
    color: #00f5d4;
}
#grade-moyen .btn-grade {
    background: rgba(0, 245, 212, 0.12);
    border: 1px solid rgba(0, 245, 212, 0.4);
    color: #ffffff;
}
#grade-moyen .btn-grade:hover {
    background: #00f5d4;
    color: #000000;
    border-color: #00f5d4;
    box-shadow: 0 6px 20px rgba(0, 245, 212, 0.4);
    transform: translateY(-2px);
}

/* 3. Grand Joueur (Blue theme) */
#grade-grand {
    border-color: rgba(59, 130, 246, 0.25);
}
#grade-grand:hover {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
}
#grade-grand .grade-badge {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
#grade-grand .price-val {
    color: #3b82f6;
}
#grade-grand .btn-grade {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.45);
    color: #ffffff;
}
#grade-grand .btn-grade:hover {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

/* 4. Grand Joueur Plus (Magenta/Purple theme) */
#grade-plus {
    background: linear-gradient(135deg, rgba(181, 23, 158, 0.15) 0%, rgba(14, 14, 28, 0.75) 100%);
    border-color: rgba(181, 23, 158, 0.5);
}
#grade-plus:hover {
    background: linear-gradient(135deg, rgba(181, 23, 158, 0.25) 0%, rgba(20, 20, 40, 0.85) 100%);
    border-color: rgba(181, 23, 158, 0.85);
    box-shadow: 0 20px 50px rgba(181, 23, 158, 0.35);
}
#grade-plus .grade-badge {
    background: rgba(181, 23, 158, 0.2);
    color: #f06292;
    border: 1px solid rgba(181, 23, 158, 0.4);
}
#grade-plus .price-val {
    color: #f06292;
    text-shadow: 0 0 15px rgba(240, 98, 146, 0.4);
}
#grade-plus .btn-grade {
    background: linear-gradient(135deg, #b5179e 0%, #7209b7 100%);
    border: 1px solid rgba(181, 23, 158, 0.6);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(181, 23, 158, 0.4);
}
#grade-plus .btn-grade:hover {
    background: linear-gradient(135deg, #d63ce6 0%, #9b30ff 100%);
    box-shadow: 0 6px 25px rgba(181, 23, 158, 0.7);
    transform: translateY(-2px);
}

/* Shop Help section */
.shop-help {
    padding: 4rem 0 6rem;
}

.shop-help-box {
    background: rgba(14, 14, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3.5rem 2rem;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.shop-help-box h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 850;
    margin-bottom: 1rem;
    color: #ffffff;
    text-align: center;
}

.shop-help-box p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 2.25rem;
    text-align: center;
}

.shop-help-box .btn-discord {
    margin: 0 auto;
}


/* Details Button Trigger */
.btn-details-trigger {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--secondary);
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    margin-left: 0.5rem;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.btn-details-trigger:hover {
    background: var(--secondary);
    color: #05050b;
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.3);
}

/* Modal Layout */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(5, 5, 11, 0.85); 
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal.open {
    display: flex;
    animation: fadeInModal 0.25s ease forwards;
}

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

.modal-content {
    background: linear-gradient(135deg, #101026 0%, #0d0d1e 100%);
    border: 1px solid var(--glass-border-hover);
    padding: 2.5rem;
    border-radius: 28px;
    width: 90%;
    max-width: 780px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideInModal 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

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

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    color: #ffffff;
    font-size: 1.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
    z-index: 100;
}

.close-modal:hover {
    color: #ff4a75;
    transform: scale(1.15);
}

.tab-panel {
    display: block;
}

.tab-panel.active {
    display: block;
    animation: fadeInTab 0.4s ease forwards;
}

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

.panel-header {
    margin-bottom: 2.5rem;
    text-align: left;
}

.panel-header h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge-tab {
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(0, 245, 212, 0.15);
    color: var(--secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 245, 212, 0.3);
}

.perm-node {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.perm-node code {
    background: rgba(255, 255, 255, 0.05);
    color: var(--secondary);
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    font-family: monospace;
}

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

.panel-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: left;
}

.panel-card h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sub-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.chance-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.chance-list li {
    font-size: 0.95rem;
    color: var(--text-muted);
    padding-left: 1.5rem;
    position: relative;
    list-style: none;
}

.chance-list li::before {
    content: '→';
    color: var(--secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.chance-list strong {
    color: var(--text-main);
}

.danger-card {
    border-color: rgba(239, 68, 68, 0.15);
    background: rgba(239, 68, 68, 0.02);
}

.danger-card h4 {
    color: #ef4444;
}

.danger-card .chance-list li::before {
    color: #ef4444;
}

.highlight-card {
    border-color: rgba(0, 245, 212, 0.25);
    background: rgba(0, 245, 212, 0.03);
}

.highlight-card h4 {
    color: var(--secondary);
}

.elite-block {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 1rem;
}

.elite-icon {
    font-size: 3rem;
    line-height: 1;
}

.elite-block h5 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.elite-block p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.guaranteed-tag {
    color: #ef4444;
    font-weight: 600;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .panel-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tabs-container {
        padding: 1.5rem;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
    }
}


/* Commands Help Section */
.commands-help-section {
    padding: 6rem 0;
    background-color: #05050b;
    border-top: 1px solid var(--glass-border);
}

.commands-help-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.command-help-card {
    text-align: center;
}

.highlight-smp-card:hover {
    border-color: rgba(157, 78, 221, 0.6) !important;
    box-shadow: 0 15px 40px rgba(157, 78, 221, 0.15) !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .discord-box {
        padding: 4rem 2rem;
    }
    
    .shop-title {
        font-size: 2.75rem;
    }
}

@media (max-width: 1080px) {
    /* Mobile Navigation */
    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .primary-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: rgba(8, 8, 18, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        padding: 6rem 2rem 2.5rem;
        z-index: 1000;
        transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.8);
        overflow-y: auto;
    }
    
    .primary-navigation.open {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        width: 100%;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.75rem 1rem;
        border-radius: 10px;
        width: 100%;
        display: block;
    }

    .nav-link::after {
        display: none;
    }
    
    .btn-nav {
        width: 100%;
        margin-top: 0.4rem;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        border-radius: 12px;
    }
    
    /* Hamburger Animation */
    .hamburger {
        display: block;
        position: relative;
        width: 22px;
        height: 2px;
        background: var(--text-main);
        transition: var(--transition-fast);
    }
    
    .hamburger::before, .hamburger::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--text-main);
        transition: var(--transition-fast);
    }
    
    .hamburger::before { top: -7px; }
    .hamburger::after { bottom: -7px; }
    
    .mobile-nav-toggle[aria-expanded="true"] .hamburger {
        background: transparent;
    }
    
    .mobile-nav-toggle[aria-expanded="true"] .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .mobile-nav-toggle[aria-expanded="true"] .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
    
    /* Hero & Sections */
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .about-section, .projects-section, .rules-section, .discord-cta {
        padding: 5rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .warning-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .shop-promo-box {
        padding: 4rem 1.5rem;
    }
    
    .shop-promo-box h2 {
        font-size: 2.25rem;
    }
    
    .grades-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .btn {
        width: 100%;
    }
}

/* ==========================================
   Player Ticket Chat System Integration
   ========================================== */
.player-ticket-sidebar-item {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.player-ticket-sidebar-item:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.15);
}
.player-ticket-sidebar-item.active {
    background: rgba(0, 245, 212, 0.08);
    border-color: rgba(0, 245, 212, 0.4);
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.1);
}

#player-chat-box::-webkit-scrollbar,
#player-tickets-sidebar-list::-webkit-scrollbar {
    width: 6px;
}
#player-chat-box::-webkit-scrollbar-track,
#player-tickets-sidebar-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}
#player-chat-box::-webkit-scrollbar-thumb,
#player-tickets-sidebar-list::-webkit-scrollbar-thumb {
    background: rgba(157, 78, 221, 0.4);
    border-radius: 10px;
}
#player-chat-box::-webkit-scrollbar-thumb:hover,
#player-tickets-sidebar-list::-webkit-scrollbar-thumb:hover {
    background: #00f5d4;
}

.slash-cmd-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 12px;
}
.slash-cmd-item:hover {
    background: rgba(157, 78, 221, 0.2);
    transform: translateX(4px);
}

.chat-message-row {
    display: flex;
    width: 100%;
    margin-bottom: 4px;
}
.chat-message-row.sent {
    justify-content: flex-end;
}
.chat-message-row.received {
    justify-content: flex-start;
}

.chat-message-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.chat-message-row.sent .chat-message-bubble {
    background: #00f5d4;
    color: #000;
    border-bottom-right-radius: 4px;
}
.chat-message-row.received .chat-message-bubble {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255,255,255,0.08);
}

.chat-message-author {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.chat-message-row.sent .chat-message-author {
    color: rgba(0, 0, 0, 0.6);
}
.chat-message-row.received .chat-message-author {
    color: #9d4edd;
}

.chat-message-meta {
    display: block;
    font-size: 0.65rem;
    margin-top: 6px;
    text-align: right;
    opacity: 0.7;
}
.chat-message-row.sent .chat-message-meta {
    color: rgba(0, 0, 0, 0.5);
}
.chat-message-row.received .chat-message-meta {
    color: var(--text-muted);
}

/* ==========================================
   Modern Ticket System Styling
   ========================================== */
.ticket-section {
    padding: 6rem 0;
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(157, 78, 221, 0.08) 0%, transparent 70%);
    border-top: 1px solid var(--glass-border);
}

.ticket-tabs-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: rgba(14, 14, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 6px;
    max-width: fit-content;
    margin: 0 auto 2.5rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ticket-tab-btn {
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(248, 249, 250, 0.65);
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
}

.ticket-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.ticket-tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, #7b2cbf 100%) !important;
    border-color: rgba(157, 78, 221, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 18px var(--primary-glow) !important;
}

.ticket-card-box {
    max-width: 780px;
    margin: 0 auto;
    background: rgba(14, 14, 28, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 2.5rem;
    border-radius: 28px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.ticket-field-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.ticket-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.ticket-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: rgba(248, 249, 250, 0.8);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.08em;
}

.ticket-label-link {
    font-size: 0.75rem;
    color: var(--secondary);
    text-transform: none;
    text-decoration: underline;
    font-weight: 600;
}

.ticket-input, .ticket-select, .ticket-textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: rgba(6, 6, 14, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s ease;
}

.ticket-select {
    cursor: pointer;
}

.ticket-select option {
    background: #0d0d1e;
    color: #ffffff;
}

.ticket-input:focus, .ticket-select:focus, .ticket-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.35);
    background: rgba(8, 8, 18, 0.9);
}

.ticket-textarea {
    height: 120px;
    resize: vertical;
}

.btn-ticket-submit {
    width: 100%;
    padding: 1rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, #7b2cbf 100%);
    border: 1px solid rgba(157, 78, 221, 0.5);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px var(--primary-glow);
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-ticket-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--primary-glow);
    filter: brightness(1.15);
}

@media (max-width: 768px) {
    .ticket-field-grid {
        grid-template-columns: 1fr;
    }
    .ticket-card-box {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================
   Header Auth Button & Auth Popups (2FA Email)
   ========================================== */
.btn-auth {
    background: rgba(157, 78, 221, 0.15) !important;
    border: 1px solid rgba(157, 78, 221, 0.4) !important;
    color: #ffffff !important;
}
.btn-auth:hover {
    background: var(--primary) !important;
    box-shadow: 0 0 15px var(--primary-glow) !important;
    border-color: var(--primary) !important;
}

.pwd-rules-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-top: 0.6rem;
    font-size: 0.78rem;
}

.pwd-rule-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    margin-bottom: 4px;
    transition: all 0.2s ease;
}
.pwd-rule-item:last-child {
    margin-bottom: 0;
}

.pwd-rule-item.valid {
    color: #00f5d4;
    font-weight: 700;
}

.pwd-rule-item.valid .pwd-rule-icon::before {
    content: "✓";
}

.pwd-rule-icon {
    display: inline-block;
    width: 14px;
    text-align: center;
    font-weight: 800;
}

.code-2fa-input {
    letter-spacing: 8px;
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    text-align: center !important;
    font-family: monospace, sans-serif !important;
    background: rgba(157, 78, 221, 0.1) !important;
    border-color: rgba(157, 78, 221, 0.4) !important;
    color: #ffffff !important;
    padding: 1rem !important;
}

.code-2fa-input:focus {
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.5) !important;
    border-color: #9d4edd !important;
}

.spam-warning-box {
    background: rgba(255, 183, 3, 0.08);
    border: 1px solid rgba(255, 183, 3, 0.25);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.spam-warning-box p {
    color: #ffb703;
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   AAA-Grade UI & UX Enhancements
   ========================================================================== */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #07070f;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9d4edd 0%, #00f5d4 100%);
    border-radius: 10px;
    border: 2px solid #07070f;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #b5179e 0%, #00f5d4 100%);
}

/* Selection */
::selection {
    background: rgba(0, 245, 212, 0.25);
    color: #ffffff;
}

/* Ambient Glow Orbs Background */
.ambient-glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

.ambient-orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.4) 0%, rgba(7, 7, 15, 0) 70%);
}

.ambient-orb-2 {
    bottom: -15%;
    right: -10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.3) 0%, rgba(7, 7, 15, 0) 70%);
}

.ambient-orb-3 {
    top: 40%;
    left: 30%;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, rgba(255, 42, 133, 0.25) 0%, rgba(7, 7, 15, 0) 70%);
    opacity: 0.08;
}

/* Multi-Stop Glowing Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #00f5d4 0%, #9d4edd 50%, #ff2a85 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite alternate;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Copy Server IP Hero Box */
.server-ip-box {
    background: rgba(16, 16, 35, 0.75);
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 20px;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 245, 212, 0.1);
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    user-select: none;
}

.server-ip-box:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: #00f5d4;
    box-shadow: 0 15px 40px rgba(0, 245, 212, 0.25);
}

.server-ip-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.copy-ip-btn {
    background: rgba(0, 245, 212, 0.12);
    border: 1px solid rgba(0, 245, 212, 0.35);
    color: #00f5d4;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.server-ip-box:hover .copy-ip-btn {
    background: #00f5d4;
    color: #07070f;
}

/* Card Top Accent Lines & Micro-Interactions */
.feature-card, .rule-card, .project-card, .grade-card, .command-card-item {
    position: relative;
    overflow: hidden;
}

.feature-card::after, .rule-card::after, .project-card::after, .grade-card::after, .command-card-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #00f5d4, #9d4edd);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 3px 3px 0 0;
}

.feature-card:hover::after, .rule-card:hover::after, .project-card:hover::after, .grade-card:hover::after, .command-card-item:hover::after {
    width: 100%;
}

/* Toast Notifications Container */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast-message {
    background: rgba(16, 16, 35, 0.92);
    border: 1px solid rgba(0, 245, 212, 0.4);
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 245, 212, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: toastIn 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    pointer-events: auto;
}

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

/* ==========================================================================
   Showcase Sections — PulseChat & CrossPulse (index.html)
   Reusable component classes replacing inline styles
   ========================================================================== */

/* Showcase Section Wrapper */
.showcase-section {
    position: relative;
}
.showcase-section--first {
    padding: 4rem 0 2rem;
}
.showcase-section--last {
    padding: 2rem 0 4rem;
}

/* Showcase Card (Glassmorphic container) */
.showcase-card,
.showcase-box {
    border-radius: 24px;
    padding: 3rem 2.5rem;
    background: rgba(18, 12, 32, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.showcase-card--teal {
    background: rgba(16, 16, 36, 0.85) !important;
    border: 1px solid rgba(0, 245, 212, 0.3) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 245, 212, 0.12) !important;
}

.showcase-card--pink {
    background: rgba(22, 12, 36, 0.85) !important;
    border: 1px solid rgba(181, 23, 158, 0.35) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(181, 23, 158, 0.15) !important;
}

/* Showcase Content Area */
.showcase-content {
    position: relative;
    z-index: 2;
}

/* Showcase Badge (Tag at top) */
.showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 850;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.showcase-badge--teal {
    background: rgba(0, 245, 212, 0.12);
    border: 1px solid rgba(0, 245, 212, 0.3);
    color: #00f5d4;
}

.showcase-badge--pink {
    background: rgba(181, 23, 158, 0.15);
    border: 1px solid rgba(181, 23, 158, 0.35);
    color: #f72585;
}

/* Showcase Title */
.showcase-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.showcase-title .gradient-teal {
    background: linear-gradient(135deg, #00f5d4, #7b2cbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.showcase-title .gradient-pink {
    background: linear-gradient(135deg, #f72585, #7209b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Showcase Description */
.showcase-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Showcase Feature Pills */
.showcase-pills {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.showcase-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #e0e0ee;
    background: rgba(255, 255, 255, 0.04);
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-fast);
}

.showcase-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Showcase Preview Card (visual mockup on the side) */
.showcase-preview {
    position: relative;
    z-index: 1;
    text-align: center;
}

.showcase-preview-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.showcase-preview-card--teal {
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.15), rgba(123, 44, 191, 0.15));
}

.showcase-preview-card--pink {
    background: linear-gradient(135deg, rgba(181, 23, 158, 0.2), rgba(63, 55, 201, 0.2));
}

.showcase-preview-icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.showcase-preview-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
}

.showcase-preview-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 8px;
}

.showcase-preview-subtitle--teal {
    color: #00f5d4;
}

.showcase-preview-subtitle--pink {
    color: #ff4a75;
}

/* Gradient Button Variants */
.btn-gradient-teal {
    background: linear-gradient(135deg, #00c4a7, #9d4edd);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 850;
    border-radius: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(0, 245, 212, 0.25);
}

.btn-gradient-teal:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 245, 212, 0.4);
    filter: brightness(1.1);
}

.btn-gradient-pink {
    background: linear-gradient(135deg, #b5179e, #7209b7);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 850;
    border-radius: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(181, 23, 158, 0.4);
}

.btn-gradient-pink:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(181, 23, 158, 0.55);
    filter: brightness(1.1);
}

/* ==========================================================================
   ULTRA-PREMIUM MOBILE & TABLET DESIGN SYSTEM
   Native App-Feeling UI/UX for iOS & Android
   ========================================================================== */

/* === TABLET & MOBILE NAVIGATION DRAWER (< 1080px) === */
@media (max-width: 1080px) {
    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        padding: 8px 12px;
        color: #ffffff;
        font-weight: 800;
        cursor: pointer;
        transition: var(--transition-fast);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        z-index: 100000;
        position: relative;
    }

    .mobile-nav-toggle:active {
        transform: scale(0.95);
    }

    .primary-navigation {
        position: fixed;
        top: 60px;
        right: 0;
        left: auto;
        width: 85vw;
        max-width: 380px;
        height: calc(100vh - 60px);
        background: linear-gradient(180deg, rgba(8, 8, 20, 0.98) 0%, rgba(18, 12, 34, 0.99) 100%);
        backdrop-filter: blur(30px) saturate(180%);
        -webkit-backdrop-filter: blur(30px) saturate(180%);
        flex-direction: column;
        justify-content: flex-start;
        padding: 1.5rem 1.25rem 2.5rem;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease, visibility 0.3s ease;
        overflow-y: auto;
        z-index: 99999;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: -10px 10px 40px rgba(0, 0, 0, 0.8);
    }

    .primary-navigation.active,
    .primary-navigation.open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0.65rem;
        align-items: stretch;
        margin-bottom: 1.5rem;
    }

    .nav-link {
        font-size: 1rem;
        font-weight: 700;
        padding: 0.9rem 1.25rem;
        border-radius: 14px;
        text-align: left;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06);
        color: #e0e0ee;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: all 0.25s ease;
    }

    .nav-link::after {
        content: '›';
        font-size: 1.3rem;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.3);
        width: auto;
        height: auto;
        background: none;
        position: static;
        transform: none;
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: auto;
        color: var(--brand-teal);
        transform: translateX(3px);
    }

    .nav-link.active {
        background: linear-gradient(135deg, rgba(157, 78, 221, 0.2), rgba(0, 245, 212, 0.1));
        border-color: rgba(0, 245, 212, 0.35);
        color: #ffffff;
        box-shadow: 0 4px 15px rgba(0, 245, 212, 0.1);
    }

    .nav-list li:has(.btn-nav) {
        width: 100%;
    }

    .btn-nav {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
        font-weight: 800;
        border-radius: 14px;
        margin-top: 0.35rem;
    }
}

/* === TABLET OPTIMIZATIONS (< 992px) === */
@media (max-width: 992px) {
    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 2.1rem;
    }

    .section-desc {
        font-size: 1rem;
    }

    .features-grid,
    .rules-grid,
    .projects-grid,
    .grades-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card,
    .rule-card,
    .project-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .shop-promo-box,
    .discord-box {
        padding: 3rem 1.75rem;
        border-radius: 22px;
    }

    .shop-promo-box h2,
    .discord-box h2 {
        font-size: 2rem;
    }
}

/* === MOBILE PHONES (< 768px) === */
@media (max-width: 768px) {
    /* Prevent horizontal body overflow & smooth touch scroll */
    html, body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .container {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    /* Header Bar */
    .main-header {
        padding: 0.6rem 0;
    }

    .logo {
        font-size: 1.25rem;
        gap: 0.5rem;
    }

    .logo-img {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    /* Hero Section */
    .hero-section {
        padding-top: 95px;
        padding-bottom: 3.5rem;
        min-height: auto;
    }

    .badge {
        font-size: 0.75rem;
        padding: 5px 14px;
        margin-bottom: 1.25rem;
        letter-spacing: 0.08em;
    }

    .hero-title {
        font-size: 2.15rem;
        line-height: 1.2;
        letter-spacing: -0.03em;
        margin-bottom: 1.15rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.65;
        margin-bottom: 1.75rem;
        padding: 0 0.5rem;
    }

    /* Copy Server IP Box */
    .server-ip-box {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        max-width: 340px;
        padding: 1rem 1.25rem;
        border-radius: 18px;
        margin-bottom: 1.75rem;
    }

    .server-ip-text {
        font-size: 1rem;
    }

    .copy-ip-btn {
        width: 100%;
        justify-content: center;
        padding: 8px 16px;
        font-size: 0.82rem;
    }

    /* Hero CTA Buttons */
    .hero-content > div:last-child {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.85rem;
    }

    .hero-content > div:last-child .btn {
        width: 100%;
        min-height: 52px;
        justify-content: center;
        font-size: 1rem;
        font-weight: 800;
        border-radius: 14px;
    }

    /* Showcase Cards (PulseChat & CrossPulse) */
    .showcase-card,
    .showcase-box {
        grid-template-columns: 1fr !important;
        padding: 1.85rem 1.25rem !important;
        gap: 1.75rem !important;
        border-radius: 22px !important;
    }

    .showcase-title {
        font-size: 1.65rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.85rem !important;
    }

    .showcase-desc {
        font-size: 0.92rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.25rem !important;
    }

    .showcase-pills {
        flex-direction: column !important;
        gap: 0.6rem !important;
        margin-bottom: 1.5rem !important;
    }

    .showcase-pill {
        width: 100% !important;
        justify-content: flex-start !important;
        padding: 10px 14px !important;
        font-size: 0.85rem !important;
        border-radius: 12px !important;
    }

    .btn-gradient-pink,
    .btn-gradient-teal {
        width: 100% !important;
        min-height: 50px !important;
        justify-content: center !important;
        font-size: 0.98rem !important;
        border-radius: 14px !important;
    }

    .showcase-preview-card {
        padding: 1.75rem 1.25rem !important;
        border-radius: 18px !important;
    }

    .showcase-preview-icon {
        font-size: 3.2rem !important;
    }

    .showcase-preview-title {
        font-size: 1.3rem !important;
    }

    .showcase-section--first,
    .showcase-section--last {
        padding: 1.5rem 0 !important;
    }

    /* Features / Rules / Projects Cards */
    .feature-card,
    .rule-card,
    .project-card {
        padding: 1.65rem 1.25rem;
        border-radius: 18px;
    }

    .feature-icon-wrapper {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        margin-bottom: 1.25rem;
    }

    .feature-card h3,
    .rule-card h3,
    .project-card-title {
        font-size: 1.3rem;
        margin-bottom: 0.65rem;
    }

    .feature-card p,
    .rule-card p,
    .project-card-desc {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .project-img-container {
        width: 90px;
        height: 90px;
        margin-bottom: 1.5rem;
    }

    .project-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.65rem;
    }

    .project-actions .btn {
        width: 100%;
    }

    /* Discord & Shop Boxes */
    .discord-box,
    .shop-promo-box {
        padding: 2.5rem 1.25rem;
        border-radius: 22px;
    }

    .discord-logo-glow,
    .shop-icon-glow {
        width: 72px;
        height: 72px;
        border-radius: 20px;
        margin-bottom: 1.5rem;
    }

    .discord-box h2,
    .shop-promo-box h2 {
        font-size: 1.75rem;
    }

    .discord-box p,
    .shop-promo-box p {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
    }

    /* Ticket Support Form */
    .ticket-card {
        padding: 1.5rem 1.15rem !important;
        border-radius: 22px !important;
    }

    .ticket-field-grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    /* CRITICAL iOS INPUT FIX: Prevent safari auto-zoom on text focus */
    .ticket-input,
    .ticket-select,
    .ticket-textarea,
    input[type="text"],
    input[type="password"],
    input[type="email"],
    select,
    textarea {
        font-size: 16px !important;
        padding: 0.85rem 1rem !important;
        border-radius: 12px !important;
    }

    .btn-ticket-submit {
        width: 100% !important;
        min-height: 52px !important;
        font-size: 1rem !important;
        border-radius: 14px !important;
    }

    /* Footer */
    .main-footer {
        padding: 3.5rem 0 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-logo {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.65rem;
    }

    /* Modals Responsive */
    .modal-content {
        padding: 1.5rem 1.15rem !important;
        width: 95% !important;
        max-height: 88vh !important;
        overflow-y: auto !important;
        border-radius: 22px !important;
        margin: auto !important;
    }
}

/* === COMPACT MOBILE SCREENS (< 420px) === */
@media (max-width: 420px) {
    .hero-title {
        font-size: 1.85rem;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.8rem 1.25rem;
        font-size: 0.92rem;
    }

    #toast-container {
        bottom: 1rem;
        right: 0.75rem;
        left: 0.75rem;
    }

    .toast-message {
        font-size: 0.82rem;
        padding: 0.75rem 0.9rem;
    }
}


