/* ============== RESET & GLOBAL ============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #4338ca;
    --secondary: #7c3aed;
    --background: #0f172a;
    --surface: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --border: #334155;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============== NAVBAR ============== */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    padding: 1.25rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.25rem;
}

.server-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-light);
    background: rgba(79, 70, 229, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 24px;
    height: 20px;
    justify-content: space-between;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============== MOBILE MENU ============== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    padding: 2rem;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.close-menu {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid transparent;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--primary-light);
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
}

/* ============== RANKS SECTION ============== */
.ranks-section {
    padding: 4rem 1rem;
    background: var(--surface);
}

.ranks-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
    padding: 0 1rem;
}

.rank-card {
    background: var(--background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rank-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(79, 70, 229, 0.4);
}

.rank-card.featured {
    border: 2px solid #fbbf24;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.2);
    position: relative;
}

.rank-card.featured::before {
    content: 'POPULER';
    position: absolute;
    top: 12px;
    right: -28px;
    background: #fbbf24;
    color: #0f172a;
    font-weight: 800;
    padding: 4px 20px;
    transform: rotate(45deg);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    z-index: 2;
}

.rank-header {
    padding: 1.25rem 1.5rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rank-header h3 {
    font-size: 1.4rem;
    margin: 0;
    font-weight: 700;
}

.price {
    font-size: 1.4rem;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    min-width: 90px;
    text-align: center;
}

/* Rank Colors */
.vip         { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.vip-plus    { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.mvp         { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.mvp-plus    { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.mvp-plus-plus { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.legend      { background: linear-gradient(135deg, #f97316, #ea580c); }
.hero        { background: linear-gradient(135deg, #ef4444, #dc2626); }
.master      { background: linear-gradient(135deg, #ec4899, #db2777); }
.titan       { background: linear-gradient(135deg, #f59e0b, #d97706); }

.rank-features {
    padding: 1.5rem;
    flex: 1;
}

.rank-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.8rem;
}

.rank-features li {
    color: var(--text-tertiary);
    font-size: 0.92rem;
    line-height: 1.4;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
}

.rank-features li::before {
    content: "✓";
    color: var(--success);
    margin-right: 6px;
    font-weight: bold;
    font-size: 0.9rem;
}

.more-features {
    color: var(--warning);
    font-size: 0.9rem;
    margin-top: 1rem;
    font-weight: 600;
    display: block;
    text-align: center;
}

.btn-buy {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    border-top: 1px solid var(--border);
    font-size: 1rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.btn-buy:hover {
    background: var(--primary-dark);
    transform: translateY(0);
}

.btn-featured {
    background: #f59e0b !important;
    color: #0f172a !important;
    font-weight: 700;
}

.btn-featured:hover {
    background: #d97706 !important;
}

/* ============== PURCHASE MODAL ============== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    background: rgba(79, 70, 229, 0.2);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.75rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-text {
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.purchase-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.purchase-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    min-width: 120px;
    gap: 0.5rem;
}

.purchase-btn i {
    font-size: 2rem;
}

.purchase-btn span {
    font-size: 0.95rem;
}

.purchase-btn.discord {
    background: linear-gradient(135deg, #5865F2, #4752C4);
}

.purchase-btn.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.purchase-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.modal-note {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    line-height: 1.5;
    font-style: italic;
}

/* ============== FOOTER ============== */
.footer {
    padding: 2rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.footer-server-name {
    color: var(--primary-light);
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .ranks-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }

    .rank-features ul {
        grid-template-columns: 1fr;
    }

    .rank-card.featured::before {
        display: none;
    }

    .price {
        font-size: 1.2rem;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }

    .purchase-options {
        flex-direction: column;
        gap: 0.75rem;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .server-name {
        font-size: 1.1rem;
    }

    .rank-header {
        padding: 1rem 1.25rem;
    }

    .rank-header h3 {
        font-size: 1.25rem;
    }

    .btn-buy {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .mobile-menu {
        width: 100%;
        padding: 1.5rem;
    }

    .mobile-nav-link {
        padding: 0.75rem;
        font-size: 1rem;
    }

    .modal-header {
        padding: 1.25rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .purchase-btn {
        padding: 0.75rem;
    }

    .purchase-btn i {
        font-size: 1.5rem;
    }
}