/* ========================================
   CSS Variables & Theme Management
======================================== */
:root {
    /* Light Mode Colors */
    --primary-color: #00d4ff;
    --secondary-color: #7b2cbf;
    --accent-color: #ff006e;
    --success-color: #06ffa5;
    --warning-color: #ffbe0b;
    
    /* Backgrounds */
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1f3a;
    --bg-tertiary: #252b48;
    --bg-card: rgba(26, 31, 58, 0.8);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b8c1ec;
    --text-muted: #8892b6;
    
    /* Borders & Shadows */
    --border-color: rgba(0, 212, 255, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    
    /* Spacing */
    --nav-height: 80px;
    --container-width: 1200px;
    --section-padding: 80px 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

[data-theme="light"] {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    
    --bg-primary: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
    --bg-secondary: #ffffff;
    --bg-tertiary: #f5f3ff;
    --bg-card: rgba(255, 255, 255, 0.95);
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --border-color: rgba(139, 92, 246, 0.25);
    --shadow-sm: 0 2px 8px rgba(99, 102, 241, 0.08);
    --shadow-md: 0 4px 16px rgba(99, 102, 241, 0.12);
    --shadow-lg: 0 8px 32px rgba(99, 102, 241, 0.15);
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.25);
}

/* ========================================
   Global Styles & Reset
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 90%;
    zoom: 0.99;
}

@media (max-width: 768px) {
    html {
        font-size: 95%;
        zoom: 1;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 90%;
        zoom: 1;
    }
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal);
}

[data-theme="light"] body {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
}

body.menu-open {
    overflow: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

/* ========================================
   Navigation Bar
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all var(--transition-normal);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 16px rgba(139, 92, 246, 0.1);
}

.navbar.scrolled {
    height: 70px;
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    font-family: 'Orbitron', sans-serif;
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    box-shadow: var(--shadow-glow);
    transition: transform var(--transition-normal);
}

.logo-img:hover {
    transform: scale(1.1) rotate(5deg);
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.discord-btn {
    background: linear-gradient(135deg, #5865F2, #7289da);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-normal);
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(20deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    padding: 8px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   Hero Section
======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: calc(var(--nav-height) + 40px) 20px 40px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(123, 44, 191, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    z-index: -1;
}

[data-theme="light"] .hero-bg {
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 50%, #fef3ff 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 212, 255, 0.03) 2px, rgba(0, 212, 255, 0.03) 4px);
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translateY(0); }
    100% { transform: translateY(40px); }
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fade-in-up 1s ease;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
    margin-bottom: 30px;
}

.hero-logo img {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    box-shadow: var(--shadow-glow);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.btn {
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
}

.btn .btn-text {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.btn i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover i {
    transform: scale(1.1);
}

#copyIP:hover .btn-text {
    animation: textSwap 0.25s ease;
}

@keyframes textSwap {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes textSwapReverse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#copyIP::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

#copyIP:hover::before {
    width: 300px;
    height: 300px;
}

#copyIP.copied {
    animation: pulse-success 0.6s ease;
}

@keyframes pulse-success {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

#copyIP {
    border: 2px solid transparent;
    background: linear-gradient(135deg, #06ffa5, #00d4ff);
    color: white;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    isolation: isolate;
    min-width: 200px;
    width: auto;
}

#copyIP .btn-text {
    font-family: 'Orbitron', monospace;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
    white-space: nowrap;
}

#copyIP:hover {
    background: var(--bg-card);
    border: 2px solid #00d4ff;
    color: var(--text-primary);
    transform: translateY(-3px);
    min-width: 250px;
}

#copyIP:hover::before {
    width: 0;
    height: 0;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.server-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

[data-theme="light"] .stat {
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.08);
}

[data-theme="light"] .stat:hover {
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.stat i {
    font-size: 2rem;
    color: var(--primary-color);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========================================
   Store Section
======================================== */
.store {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

[data-theme="light"] .store {
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    font-family: 'Orbitron', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title i {
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.store-category {
    margin-bottom: 80px;
}

.category-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title i {
    color: var(--secondary-color);
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.store-item {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .store-item {
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.08);
}

[data-theme="light"] .store-item:hover {
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.store-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s;
}

.store-item:hover::before {
    left: 100%;
}

.store-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.item-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.item-badge.premium {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.item-badge.legendary {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
}

.item-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.item-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.item-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
    min-height: 60px;
}

.item-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 20px;
}

.btn-purchase {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-normal);
}

[data-theme="light"] .btn-purchase {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

[data-theme="light"] .btn-purchase:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.btn-purchase:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

/* ========================================
   Rules Section
======================================== */
.rules {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.rules-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 35px;
    transition: all var(--transition-normal);
}

[data-theme="light"] .rules-card {
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.08);
}

[data-theme="light"] .rules-card:hover {
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.rules-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.rules-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.rules-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.rules-list {
    list-style: none;
}

.rules-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.rules-list i {
    color: var(--success-color);
    margin-top: 4px;
    flex-shrink: 0;
}

.rules-footer {
    background: var(--bg-card);
    border: 2px solid var(--warning-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    color: var(--text-secondary);
}

.rules-footer p {
    margin-bottom: 10px;
}

.rules-footer i {
    color: var(--warning-color);
    margin-right: 8px;
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--bg-secondary);
    padding: 60px 20px 20px;
    border-top: 2px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-section p,
.footer-section li {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.footer-section ul li a {
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* ========================================
   Modal
======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fade-in 0.3s ease;
}

.modal.active {
    display: flex;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: scale-in 0.3s ease;
    box-shadow: var(--shadow-lg);
}

@keyframes scale-in {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 1.5rem;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--accent-color);
    color: white;
    transform: rotate(90deg);
}

.modal-icon {
    font-size: 4rem;
    color: #5865F2;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.modal-text {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.modal-discord {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.modal-discord i {
    font-size: 2rem;
    color: #5865F2;
}

.discord-username {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
}

.modal-subtext {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.modal-subtext strong {
    color: var(--primary-color);
}

.modal-btn {
    width: 100%;
}

/* ========================================
   Scroll to Top Button
======================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-card);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-lg);
        backdrop-filter: blur(20px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-controls {
        gap: 10px;
    }
    
    .discord-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .discord-btn .discord-text {
        display: none;
    }
    
    .hero {
        padding: calc(var(--nav-height) + 20px) 15px 20px;
        min-height: calc(100vh - 60px);
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        padding: 0 20px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .server-stats {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }
    
    .stat {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
    }
    
    .store-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .store-item {
        padding: 25px 20px;
    }
    
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .rules-card {
        padding: 25px 20px;
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 50px 15px;
        --nav-height: 70px;
    }
    
    .navbar {
        height: 70px;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .discord-btn {
        padding: 8px 12px;
    }
    
    .hero {
        padding: calc(var(--nav-height) + 15px) 10px 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }
    
    .hero-logo img {
        width: 90px;
        height: 90px;
    }
    
    .hero-buttons {
        padding: 0 10px;
        gap: 12px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .server-stats {
        padding: 0 10px;
        gap: 12px;
    }
    
    .stat {
        padding: 12px 15px;
    }
    
    .stat i {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 40px;
        padding: 0 10px;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
    
    .store-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .store-item {
        padding: 20px 15px;
    }
    
    .item-icon {
        font-size: 2.5rem;
    }
    
    .item-name {
        font-size: 1.2rem;
    }
    
    .item-price {
        font-size: 1.6rem;
    }
    
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .rules-card {
        padding: 20px 15px;
    }
    
    .rules-icon {
        font-size: 2.5rem;
    }
    
    .rules-card-title {
        font-size: 1.3rem;
    }
    
    .rules-list li {
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .modal-content {
        padding: 25px 15px;
        width: 95%;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-text {
        font-size: 0.95rem;
    }
    
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.1rem;
    }
}

@media (max-width: 400px) {
    :root {
        --section-padding: 40px 10px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-logo img {
        width: 75px;
        height: 75px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .store-item,
    .rules-card {
        padding: 15px 10px;
    }
}

/* Mobile-First Touch Improvements */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .btn-purchase,
    .discord-btn,
    .theme-toggle {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .store-item:active,
    .rules-card:active {
        transform: scale(0.98);
    }
    
    .btn:active,
    .btn-purchase:active {
        transform: scale(0.96);
    }
}

/* ========================================
   Utility Classes
======================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow {
    box-shadow: var(--shadow-glow);
}

/* ========================================
   Custom Scrollbar
======================================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}
