/* ==========================================
   RustyRev - Premium Rust Server Network
   Modern Gaming Aesthetic
   ========================================== */

:root {
    --primary: #c0392b;
    --primary-dark: #96281b;
    --primary-glow: rgba(192, 57, 43, 0.4);
    --gold: #f1c40f;
    --gold-dark: #d4ac0d;
    --gold-glow: rgba(241, 196, 15, 0.3);
    --discord: #5865f2;
    --discord-dark: #4752c4;
    --online: #2ecc71;
    --offline: #e74c3c;
    --bg-darkest: #0a0a0a;
    --bg-dark: #111111;
    --bg-card: #161616;
    --bg-card-hover: #1c1c1c;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: "Inter", sans-serif;
    background-color: var(--bg-darkest);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}
body.menu-open {
    overflow: hidden;
}
a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
    height: auto;
}
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
.text-accent {
    color: var(--primary);
}
.text-gold {
    color: var(--gold);
}

/* ==========================================
   Header
   ========================================== */
header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1002;
    border-bottom: 1px solid var(--border-subtle);
}

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

.logo {
    display: flex;
    align-items: center;
}
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-img {
    height: 38px;
    width: auto;
}
.logo-name {
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 67px;
    z-index: 1003;
    background: transparent;
    padding: 0 max(24px, calc((100vw - 1200px) / 2 + 24px));
    pointer-events: none;
}
nav ul {
    display: flex;
    gap: 8px;
    pointer-events: auto;
}
nav ul li a {
    padding: 8px 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
    font-family: "Rajdhani", sans-serif;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
nav ul li a:hover,
nav ul li a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}
nav ul li a.store-link {
    color: var(--gold);
}
nav ul li a.store-link:hover {
    color: var(--gold);
    background: rgba(241, 196, 15, 0.1);
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    border-radius: var(--radius-sm);
}
.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
}
.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}
.btn-store {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-store:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--gold-glow);
    color: #000;
}
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    color: var(--text-primary);
}
.btn-discord {
    background: var(--discord);
    color: #fff;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
}
.btn-discord:hover {
    background: var(--discord-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(88, 101, 242, 0.4);
    color: #fff;
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold), #e67e22);
    color: #000;
    font-size: 18px;
    box-shadow: 0 4px 25px var(--gold-glow);
}
.btn-gold:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px var(--gold-glow);
    color: #000;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: #fff;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("assets/images/background-rustyrev.png");
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.6) 0%,
        rgba(10, 10, 10, 0.75) 50%,
        rgba(10, 10, 10, 0.98) 100%
    );
    z-index: 1;
}
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 80px 0 60px;
}
.hero-badge {
    display: inline-block;
    background: rgba(192, 57, 43, 0.15);
    border: 1px solid rgba(192, 57, 43, 0.3);
    color: var(--primary);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    font-family: "Rajdhani", sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fadeInDown 0.6s ease-out;
}
.hero h1 {
    font-family: "Rajdhani", sans-serif;
    font-size: clamp(42px, 7vw, 80px);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -1px;
    animation: fadeInUp 0.6s ease-out 0.15s both;
}
.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease-out 0.45s both;
}
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}
.hero-stat {
    text-align: center;
}
.hero-stat-value {
    display: block;
    font-family: "Rajdhani", sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
}
.hero-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

/* ==========================================
   Store Promo Banner
   ========================================== */
.store-promo {
    background: linear-gradient(
        135deg,
        rgba(241, 196, 15, 0.1),
        rgba(230, 126, 34, 0.08)
    );
    border-top: 1px solid rgba(241, 196, 15, 0.15);
    border-bottom: 1px solid rgba(241, 196, 15, 0.15);
    padding: 32px 48px;
    overflow: visible;
}
.store-promo-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}
.store-promo-text {
    display: flex;
    align-items: center;
    gap: 18px;
}
.store-promo-text > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.store-promo-icon {
    font-size: 32px;
    color: var(--gold);
    flex-shrink: 0;
}
.store-promo-text strong {
    display: block;
    color: var(--gold);
    font-family: "Rajdhani", sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}
.store-promo-text span {
    display: block;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.4;
}

/* ==========================================
   Section Headers
   ========================================== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-title {
    font-family: "Rajdhani", sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}
.section-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

/* ==========================================
   Servers Section
   ========================================== */
.servers-section {
    padding: 80px 0;
    background: var(--bg-darkest);
}
.servers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

/* Server Card */
.server-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
}
.server-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}
/* Make cards visible immediately when JS adds them */
.servers-grid .server-card {
    opacity: 1;
    transform: none;
}
.server-card:hover {
    border-color: rgba(192, 57, 43, 0.3);
    box-shadow: 0 8px 40px rgba(192, 57, 43, 0.1);
    transform: translateY(-4px);
}
.server-card-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
}
.banner-logo {
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.server-region-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(160, 160, 160, 0.5);
}

/* US server - red theme */
.server-card[data-region="us"] .server-card-banner {
    background: linear-gradient(135deg, #c0392b, #96281b);
}
.server-card[data-region="us"]:hover {
    border-color: rgba(192, 57, 43, 0.4);
    box-shadow: 0 8px 40px rgba(192, 57, 43, 0.15);
}
.server-card[data-region="us"] .join-now {
    background: #c0392b;
}
.server-card[data-region="us"] .join-now:hover {
    background: #96281b;
}

/* EU server - navy blue theme */
.server-card[data-region="eu"] .server-card-banner {
    background: linear-gradient(135deg, #1a3a6b, #0f2347);
}
.server-card[data-region="eu"]:hover {
    border-color: rgba(26, 58, 107, 0.6);
    box-shadow: 0 8px 40px rgba(26, 58, 107, 0.25);
}
.server-card[data-region="eu"] .join-now {
    background: #1a3a6b;
}
.server-card[data-region="eu"] .join-now:hover {
    background: #0f2347;
}
.server-card-main-image {
    width: 100%;
    height: 160px;
    background-color: #1a1a1a;
    background-image: url("assets/images/banner-bg.png");
    background-size: cover;
    background-position: center;
}
.server-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.server-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.server-info-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.server-info-row span:last-child {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.server-status-online,
.server-status-offline {
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.server-status-online {
    background: rgba(46, 204, 113, 0.3);
    color: #3ae07a;
}
.server-status-offline {
    background: rgba(231, 76, 60, 0.15);
    color: var(--offline);
}

/* Server Buttons */
.server-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 20px 20px;
}
.copy-ip,
.join-now {
    font-family: "Rajdhani", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    border: none;
    display: block;
    text-decoration: none;
}
.copy-ip {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}
.copy-ip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}
.join-now {
    background: var(--primary);
    color: #fff;
}
.join-now:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    color: #fff;
}
.server-buttons .disabled {
    opacity: 0.4;
    pointer-events: none;
}

.loading {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.loading-card {
    opacity: 0.7;
}
.loading-text {
    color: var(--text-muted) !important;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%,
    100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* ==========================================
   Features Section
   ========================================== */
.features-section {
    padding: 80px 0;
    background: var(--bg-dark);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(20px);
}
.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}
.feature-card:nth-child(2).visible {
    transition-delay: 0.1s;
}
.feature-card:nth-child(3).visible {
    transition-delay: 0.2s;
}
.feature-card:nth-child(4).visible {
    transition-delay: 0.3s;
}
.feature-card:hover {
    border-color: rgba(192, 57, 43, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(192, 57, 43, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
}
.feature-card h3 {
    font-family: "Rajdhani", sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================
   Store CTA Section
   ========================================== */
.store-cta-section {
    padding: 80px 0;
    background: var(--bg-darkest);
}
.store-cta-card {
    position: relative;
    background: linear-gradient(135deg, #1a1200, #1a0f00);
    border: 1px solid rgba(241, 196, 15, 0.15);
    border-radius: var(--radius-xl);
    padding: 80px 40px;
    text-align: center;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}
.store-cta-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}
.store-cta-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(241, 196, 15, 0.12) 0%,
        transparent 70%
    );
    pointer-events: none;
}
.store-cta-content {
    position: relative;
    z-index: 1;
}
.store-cta-content h2 {
    font-family: "Rajdhani", sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
}
.store-cta-content p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

/* ==========================================
   Discord Section
   ========================================== */
.discord-section {
    padding: 80px 0;
    background: var(--bg-dark);
}
.discord-container {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
}
.discord-container.visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}
.discord-left {
    flex: 1;
    min-width: 300px;
}
.discord-icon-large {
    font-size: 48px;
    color: var(--discord);
    margin-bottom: 16px;
}
.discord-heading {
    font-family: "Rajdhani", sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}
.discord-desc {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
}
.discord-member-counts {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
}
.discord-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}
.online-dot {
    width: 10px;
    height: 10px;
    background: var(--online);
    border-radius: 50%;
    display: inline-block;
    animation: onlinePulse 2s infinite;
}
@keyframes onlinePulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(46, 204, 113, 0);
    }
}

.discord-widget {
    flex: 1;
    min-width: 350px;
    max-width: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.discord-widget iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* ==========================================
   Footer
   ========================================== */
footer {
    background: var(--bg-darkest);
    padding: 32px 0;
    border-top: 1px solid var(--border-subtle);
}
.copyright {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

/* ==========================================
   Toast Notifications
   ========================================== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-subtle);
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastIn 0.3s ease-out;
}
.toast.toast-success {
    border-left: 3px solid var(--online);
}
.toast.toast-error {
    border-left: 3px solid var(--offline);
}
.toast.toast-info {
    border-left: 3px solid var(--primary);
}
.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}
.toast.toast-success .toast-icon {
    color: var(--online);
}
.toast.toast-error .toast-icon {
    color: var(--offline);
}
.toast.toast-info .toast-icon {
    color: var(--primary);
}
.toast-message {
    flex-grow: 1;
    font-size: 14px;
    font-weight: 500;
}
.toast.hiding {
    opacity: 0;
    transform: translateX(400px);
}
@keyframes toastIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating ember particles */
.ember {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: float-ember linear infinite;
    pointer-events: none;
}
@keyframes float-ember {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    10% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(-400px) scale(1);
    }
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    position: relative;
    z-index: 1002;
    background: transparent;
    border: none;
    padding: 0;
}
.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}
.mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ==========================================
   Responsive - Tablet
   ========================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-stats {
        gap: 24px;
    }
    .hero-stat-value {
        font-size: 28px;
    }
}

/* ==========================================
   Responsive - Mobile
   ========================================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    nav {
        position: fixed;
        top: 66px;
        left: auto;
        right: -100%;
        width: 55%;
        max-width: 220px;
        height: calc(100vh - 66px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        z-index: 1001;
        transition: right 0.3s ease;
        padding: 24px 0 0 0;
        border-left: 1px solid var(--border-subtle);
        border-top: 1px solid var(--border-subtle);
        pointer-events: auto;
        justify-content: flex-start;
        align-items: flex-start;
    }
    nav.active {
        right: 0;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: 100%;
    }
    nav ul li {
        width: 100%;
        text-align: center;
    }
    nav ul li a {
        display: flex;
        justify-content: center;
        padding: 16px 0;
        font-size: 16px;
        border-radius: 0;
    }
    .join-now {
        display: none;
    }
    .server-buttons {
        grid-template-columns: 1fr;
    }
    .hero {
        min-height: 70vh;
    }
    .hero h1 {
        font-size: 36px;
    }
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    .servers-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
    .discord-container {
        flex-direction: column;
        align-items: center;
    }
    .discord-left {
        text-align: center;
    }
    .discord-member-counts {
        justify-content: center;
    }
    .discord-widget {
        min-width: 100%;
        max-width: 100%;
    }
    .store-cta-card {
        padding: 60px 24px;
    }
    .store-promo-inner {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
    .store-promo-text {
        flex-direction: column;
        text-align: center;
    }
    .toast-container {
        right: 12px;
        left: 12px;
    }
    .toast {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    .hero-subtitle {
        font-size: 15px;
    }
    .section-title {
        font-size: 28px;
    }
    .server-card-main-image {
        height: 130px;
    }
    .server-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .discord-widget iframe {
        height: 350px;
    }
    .store-cta-content h2 {
        font-size: 28px;
    }
}
