/* ============================================
   QuantumBlox - Design System
   Single CSS file for the entire site
   Purple/Dark Tech Theme
   ============================================ */


/* ===========================================
   1. CSS VARIABLES
   =========================================== */

:root {
    /* Backgrounds */
    --bg: #050505;
    --bg-surface: #0a0a0f;
    --bg-card: #111116;
    --bg-card-hover: #1a1a24;
    --border: #3a3a5a;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(168, 85, 247, 0.3);

    /* Purple palette */
    --purple: #a855f7;
    --purple-dark: #7c3aed;
    --purple-light: #c084fc;
    --purple-dim: rgba(168, 85, 247, 0.12);
    --purple-glow: rgba(168, 85, 247, 0.25);

    /* Status colors */
    --green: #22c55e;
    --green-dim: rgba(34, 197, 94, 0.12);
    --red: #ef4444;
    --red-dim: rgba(239, 68, 68, 0.12);
    --yellow: #f59e0b;
    --yellow-dim: rgba(245, 158, 11, 0.12);
    --blue: #3b82f6;

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

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(168, 85, 247, 0.2);
    --glass-blur: blur(20px) saturate(1.4);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Layout */
    --nav-height: 72px;

    /* Easing */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


/* ===========================================
   2. RESET + BASE
   =========================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: 16px; /* prevents iOS zoom on focus */
}

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--purple-dim);
    border-radius: 3px;
}

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

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--purple-dim) var(--bg);
}

/* Selection */
::selection {
    background: var(--purple);
    color: var(--text);
}

::-moz-selection {
    background: var(--purple);
    color: var(--text);
}


/* ===========================================
   3. NAVIGATION (.site-nav)
   =========================================== */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    background: rgba(5, 5, 5, 0.85);
    border-bottom: 1px solid var(--border);
    transition: height 0.3s var(--ease), background 0.3s var(--ease);
}

.site-nav.scrolled {
    height: 56px;
    background: rgba(5, 5, 5, 0.95);
}

/* Nav inner container */
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 100%;
}

/* Brand / Logo */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
}

.nav-brand-text {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text);
}

.nav-brand-text .accent {
    color: var(--purple);
}

/* Nav links */
.nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav-link {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.25s var(--ease);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

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

.nav-link.active {
    color: var(--purple);
    background: var(--purple-dim);
}

.nav-link i {
    font-size: 13px;
}

/* Nav auth buttons */
.nav-auth {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-nav {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    transition: all 0.25s var(--ease);
    cursor: pointer;
    white-space: nowrap;
}

.btn-nav-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-nav-outline:hover {
    border-color: var(--purple);
    color: var(--purple);
}

.btn-nav-fill {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: var(--text);
    border: none;
}

.btn-nav-fill:hover {
    box-shadow: 0 4px 20px var(--purple-glow);
    transform: translateY(-1px);
}

/* Nav user info (logged in state) */
.nav-user-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    border: 1px solid var(--purple-dim);
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.06);
    text-decoration: none;
    max-width: 200px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.nav-user-info:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--purple);
    transform: translateY(-1px);
}

.nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--purple-dim);
    object-fit: cover;
    flex-shrink: 0;
}

.nav-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hamburger (mobile) */
.hamburger {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
    display: block;
}

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

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

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

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    padding: 20px;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.mobile-menu.open {
    display: flex;
}

.mobile-link {
    padding: 14px 18px;
    font-size: 16px;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s var(--ease);
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--text);
    background: var(--purple-dim);
}

.mobile-link i {
    width: 20px;
    text-align: center;
}

.mobile-auth {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* ===========================================
   4. FOOTER (.site-footer)
   =========================================== */

.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 40px;
}

/* Footer brand column */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.footer-brand-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text);
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Discord link in footer */
.footer-discord {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(88, 101, 242, 0.12);
    border: 1px solid rgba(88, 101, 242, 0.25);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: #5865F2;
    transition: all 0.25s var(--ease);
    margin-top: 8px;
}

.footer-discord:hover {
    background: rgba(88, 101, 242, 0.2);
}

/* Footer columns */
.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-col a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.2s var(--ease);
}

.footer-col a:hover {
    color: var(--purple);
}

.footer-col a i {
    width: 16px;
    text-align: center;
    font-size: 13px;
}

/* Footer bottom bar */
.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-payments {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.payment-logo {
    height: 20px;
    object-fit: contain;
    filter: brightness(0.8);
}


/* ===========================================
   5. GLASS COMPONENTS
   =========================================== */

/* Glass card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Glass button */
.glass-btn {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 12px 24px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s var(--ease);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.glass-btn:hover {
    border-color: var(--purple);
    color: var(--purple);
    background: var(--purple-dim);
}

/* Glass badge */
.glass-badge {
    background: var(--purple-dim);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--purple);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Glass stat */
.glass-stat {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all 0.3s var(--ease);
}

.glass-stat:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.glass-stat .stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.glass-stat .stat-label {
    font-size: 13px;
    color: var(--text-muted);
}


/* ===========================================
   6. BUTTONS
   =========================================== */

/* Primary button */
.btn-primary {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: var(--text);
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

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

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

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Outline button */
.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-outline:hover {
    border-color: var(--purple);
    color: var(--purple);
}

.btn-outline:active {
    transform: scale(0.98);
}

.btn-outline:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Button sizes */
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* Icon-only button */
.btn-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s var(--ease);
    padding: 0;
}

.btn-icon:hover {
    border-color: var(--purple);
    color: var(--purple);
    background: var(--purple-dim);
}

/* Danger button */
.btn-danger {
    background: linear-gradient(135deg, var(--red), #dc2626);
    color: var(--text);
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    box-shadow: 0 6px 24px var(--red-dim);
    transform: translateY(-2px);
}

/* Success button */
.btn-success {
    background: linear-gradient(135deg, var(--green), #16a34a);
    color: var(--text);
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-success:hover {
    box-shadow: 0 6px 24px var(--green-dim);
    transform: translateY(-2px);
}

/* Button group */
.btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}


/* ===========================================
   7. ANIMATIONS + KEYFRAMES
   =========================================== */

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Keyframes */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 15px var(--purple-glow);
    }
    50% {
        box-shadow: 0 0 30px var(--purple-glow);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

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

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

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

/* Animation utility classes */
.float {
    animation: float 4s ease-in-out infinite;
}

.glow-pulse {
    animation: glow 2s ease-in-out infinite;
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.fade-in {
    animation: fadeIn 0.5s var(--ease) forwards;
}

.scale-in {
    animation: scaleIn 0.3s var(--spring) forwards;
}


/* ===========================================
   8. TILT CARD
   =========================================== */

.tilt-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
    transform-style: preserve-3d;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.tilt-card:hover {
    border-color: rgba(168,85,247,0.4);
    box-shadow: 0 12px 40px rgba(168,85,247,0.15);
    transform: translateY(-4px);
}


/* ===========================================
   9. TOAST NOTIFICATIONS
   =========================================== */

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(17, 17, 22, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    font-size: 14px;
    color: var(--text);
    animation: slideInRight 0.4s var(--spring);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
}

.toast.success {
    border-left: 3px solid var(--green);
}

.toast.success i {
    color: var(--green);
}

.toast.error {
    border-left: 3px solid var(--red);
}

.toast.error i {
    color: var(--red);
}

.toast.info {
    border-left: 3px solid var(--blue);
}

.toast.info i {
    color: var(--blue);
}

.toast.warning {
    border-left: 3px solid var(--yellow);
}

.toast.warning i {
    color: var(--yellow);
}

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--text);
}


/* ===========================================
   10. MODAL
   =========================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.open {
    display: flex;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    animation: scaleIn 0.3s var(--spring);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
}

.modal-close:hover {
    color: var(--text);
    border-color: var(--border);
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}


/* ===========================================
   11. FORMS
   =========================================== */

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

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 16px;
    outline: none;
    transition: all 0.25s var(--ease);
}

.form-input:focus,
.form-select:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px var(--purple-dim);
}

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

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2371717a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-select option {
    background: var(--bg-card);
    color: var(--text);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-error {
    font-size: 12px;
    color: var(--red);
    margin-top: 6px;
}

.form-input.error,
.form-select.error {
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-dim);
}

.form-input.success,
.form-select.success {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-dim);
}

/* Checkbox and radio */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--purple);
    cursor: pointer;
}

/* Search input */
.form-search {
    position: relative;
}

.form-search .form-input {
    padding-left: 40px;
}

.form-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}


/* ===========================================
   12. TABLES
   =========================================== */

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    background: var(--bg-surface);
}

td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(168, 85, 247, 0.03);
}

td.text-right,
th.text-right {
    text-align: right;
}


/* ===========================================
   13. BADGES
   =========================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-green {
    background: var(--green-dim);
    color: var(--green);
}

.badge-red {
    background: var(--red-dim);
    color: var(--red);
}

.badge-yellow {
    background: var(--yellow-dim);
    color: var(--yellow);
}

.badge-purple {
    background: var(--purple-dim);
    color: var(--purple);
}

.badge-blue {
    background: rgba(59, 130, 246, 0.12);
    color: var(--blue);
}

.badge-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}


/* ===========================================
   14. TABS
   =========================================== */

.tabs {
    display: flex;
    gap: 4px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 4px;
    overflow-x: auto;
}

.tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s var(--ease);
    border: none;
    background: none;
    white-space: nowrap;
}

.tab.active {
    color: var(--text);
    background: var(--purple);
    box-shadow: 0 2px 12px var(--purple-glow);
}

.tab:hover:not(.active) {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s var(--ease);
}


/* ===========================================
   15. STAR RATING
   =========================================== */

.stars {
    display: flex;
    gap: 4px;
}

.star {
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.star.active,
.star:hover {
    color: #fbbf24;
}

.star:hover {
    transform: scale(1.15);
}


/* ===========================================
   16. CURRENCY BUTTONS
   =========================================== */

.currency-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s var(--ease);
}

.currency-btn:hover {
    border-color: var(--border);
    color: var(--text);
}

.currency-btn.active {
    border-color: var(--purple);
    color: var(--purple);
    background: var(--purple-dim);
}

.currency-btn img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

.currency-selector {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}


/* ===========================================
   17. SECTION / CONTAINER / HERO
   =========================================== */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section headings */
.section-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.section-badge {
    /* Reuses .glass-badge styling */
    background: var(--purple-dim);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--purple);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

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

/* Hero */
.hero {
    min-height: calc(100vh - var(--nav-height));
    padding-top: var(--nav-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

/* Main content offset for fixed nav */
.main-content {
    padding-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
}

/* Page section spacing */
.page-section {
    padding: 80px 0;
}


/* ===========================================
   18. PACKAGE CARD
   =========================================== */

.pkg-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.pkg-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.pkg-badge {
    position: absolute;
    top: -1px;
    right: 16px;
    background: var(--purple);
    color: var(--text);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 0 0 8px 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pkg-card .pkg-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--purple-dim);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 24px;
    color: var(--purple);
}

.pkg-card .pkg-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.pkg-card .pkg-amount {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.pkg-card .pkg-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--purple);
}

.pkg-card .pkg-price-sub {
    font-size: 13px;
    color: var(--text-muted);
}

/* Package grid */
.pkg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}


/* ===========================================
   19. LOADING SKELETON
   =========================================== */

.skeleton {
    background: linear-gradient(90deg, var(--bg-card), rgba(255, 255, 255, 0.06), var(--bg-card));
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-title {
    height: 24px;
    margin-bottom: 12px;
    width: 80%;
    border-radius: 4px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-card {
    height: 200px;
    border-radius: var(--radius-lg);
}

/* Spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-lg {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 10;
}


/* ===========================================
   20. TOOLTIP
   =========================================== */

.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 100;
}

.tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* ===========================================
   21. PROGRESS BAR
   =========================================== */

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--glass-bg);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple), var(--purple-light));
    border-radius: 3px;
    transition: width 0.5s var(--ease);
}

.progress-bar.success .progress-fill {
    background: linear-gradient(90deg, var(--green), #34d399);
}


/* ===========================================
   22. DIVIDERS
   =========================================== */

.divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
}

.divider-text {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}


/* ===========================================
   23. DROPDOWN
   =========================================== */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s var(--ease);
    z-index: 100;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    background: none;
    width: 100%;
}

.dropdown-item:hover {
    color: var(--text);
    background: var(--purple-dim);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 13px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}


/* ===========================================
   24. ALERT / NOTICE
   =========================================== */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.5;
}

.alert-info {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--blue);
}

.alert-success {
    background: var(--green-dim);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: var(--green);
}

.alert-warning {
    background: var(--yellow-dim);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--yellow);
}

.alert-error {
    background: var(--red-dim);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--red);
}

.alert i {
    font-size: 16px;
    margin-top: 2px;
}


/* ===========================================
   25. AVATAR
   =========================================== */

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.avatar-sm {
    width: 28px;
    height: 28px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
}

.avatar-xl {
    width: 80px;
    height: 80px;
}

.avatar-group {
    display: flex;
}

.avatar-group .avatar {
    margin-left: -8px;
    border: 2px solid var(--bg);
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}


/* ===========================================
   26. TOGGLE SWITCH
   =========================================== */

.toggle {
    position: relative;
    width: 44px;
    height: 24px;
    display: inline-block;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.toggle-slider::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-secondary);
    top: 2px;
    left: 2px;
    transition: all 0.3s var(--ease);
}

.toggle input:checked + .toggle-slider {
    background: var(--purple-dim);
    border-color: var(--purple);
}

.toggle input:checked + .toggle-slider::after {
    background: var(--purple);
    transform: translateX(20px);
}


/* ===========================================
   27. TAG / CHIP
   =========================================== */

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.tag-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    line-height: 1;
    transition: color 0.2s;
}

.tag-remove:hover {
    color: var(--red);
}

.tag-purple {
    background: var(--purple-dim);
    border-color: rgba(168, 85, 247, 0.2);
    color: var(--purple);
}


/* ===========================================
   28. ACCORDION
   =========================================== */

.accordion-item {
    border-bottom: 1px solid var(--border);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    transition: color 0.2s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.accordion-header:hover {
    color: var(--purple);
}

.accordion-icon {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.3s var(--ease);
}

.accordion-item.open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
}

.accordion-body-inner {
    padding: 0 0 16px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}


/* ===========================================
   29. EMPTY STATE
   =========================================== */

.empty-state {
    text-align: center;
    padding: 60px 24px;
}

.empty-state-icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-state-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}


/* ===========================================
   30. MARQUEE (Scrolling Banner)
   =========================================== */

.marquee {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-inner {
    display: inline-flex;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.marquee:hover .marquee-inner {
    animation-play-state: paused;
}


/* ===========================================
   31. COUNTDOWN TIMER
   =========================================== */

.countdown {
    display: flex;
    gap: 12px;
}

.countdown-unit {
    text-align: center;
}

.countdown-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    min-width: 56px;
    display: block;
}

.countdown-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}


/* ===========================================
   32. STEP INDICATOR
   =========================================== */

.steps {
    display: flex;
    align-items: center;
    gap: 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    flex-shrink: 0;
}

.step-label {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

.step-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    margin: 0 12px;
    min-width: 24px;
}

.step.active .step-number {
    background: var(--purple);
    border-color: var(--purple);
    color: var(--text);
}

.step.active .step-label {
    color: var(--text);
}

.step.completed .step-number {
    background: var(--green-dim);
    border-color: var(--green);
    color: var(--green);
}

.step-line.completed {
    background: var(--green);
}


/* ===========================================
   33. PRICING TABLE
   =========================================== */

.pricing-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    transition: all 0.3s var(--ease);
    position: relative;
}

.pricing-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: var(--purple);
    box-shadow: 0 0 40px var(--purple-glow);
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--purple-light));
}

.pricing-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 40px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 4px;
}

.pricing-price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-features {
    margin: 24px 0;
    text-align: left;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-feature i {
    color: var(--green);
    font-size: 13px;
    width: 16px;
    text-align: center;
}

.pricing-feature.disabled {
    color: var(--text-muted);
    opacity: 0.5;
}

.pricing-feature.disabled i {
    color: var(--text-muted);
}


/* ===========================================
   34. CARD VARIANTS
   =========================================== */

/* Solid card */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s var(--ease);
}

.card:hover {
    border-color: var(--border-glow);
}

/* Clickable card */
.card-link {
    display: block;
    cursor: pointer;
}

.card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

.card-title {
    font-size: 16px;
    font-weight: 700;
}

/* Card body padding */
.card-body {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Card footer */
.card-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ===========================================
   35. NOTIFICATION DOT
   =========================================== */

.notification-dot {
    position: relative;
}

.notification-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    border: 2px solid var(--bg);
}

.notification-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    background: var(--red);
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg);
}


/* ===========================================
   36. SCROLLBAR TRACK (for custom scrollable areas)
   =========================================== */

.custom-scroll {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--purple-dim) transparent;
}

.custom-scroll::-webkit-scrollbar {
    width: 4px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: var(--purple-dim);
    border-radius: 2px;
}


/* ===========================================
   37. CODE BLOCK
   =========================================== */

.code-block {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    overflow-x: auto;
    line-height: 1.7;
}

code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 2px 6px;
    color: var(--purple-light);
}


/* ===========================================
   38. RESPONSIVE
   =========================================== */

@media (max-width: 1024px) {
    .nav-links {
        gap: 2px;
    }

    .nav-link {
        font-size: 13px;
        padding: 6px 10px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .hero-title {
        font-size: 36px;
    }

    .pkg-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-auth {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 22px;
    }

    .glass-card {
        padding: 24px;
    }

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

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .modal-card {
        padding: 28px;
    }

    .page-section {
        padding: 48px 0;
    }

    .steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .step-line {
        display: none;
    }

    .countdown-value {
        font-size: 22px;
        padding: 8px 12px;
        min-width: 44px;
    }

    .pricing-card {
        padding: 24px;
    }

    .tabs {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .nav-brand-text {
        font-size: 14px;
    }

    .nav-logo-img {
        width: 30px;
        height: 30px;
    }

    .container {
        padding: 0 16px;
    }

    .glass-card {
        padding: 20px;
        border-radius: var(--radius-lg);
    }

    .btn-primary,
    .btn-outline {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    .btn-group {
        flex-direction: column;
    }

    .section-title {
        font-size: 20px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .toast {
        min-width: auto;
        margin: 0 16px;
    }

    .toast-container {
        right: 0;
        left: 0;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .modal-card {
        padding: 20px;
        width: 95%;
    }

    .countdown {
        gap: 8px;
    }

    .alert {
        padding: 12px 16px;
        font-size: 13px;
    }

    table {
        font-size: 13px;
    }

    th, td {
        padding: 10px 12px;
    }
}

/* ── Extra-narrow phones (≤420px) ── */
@media (max-width: 420px) {
    :root {
        --nav-height: 60px;
    }

    .container {
        padding: 0 12px;
    }

    .nav-brand-text {
        font-size: 13px;
    }

    .nav-logo-img {
        width: 26px;
        height: 26px;
    }

    .nav-user-info {
        max-width: 150px;
        padding: 3px 10px 3px 3px;
    }

    .nav-user-name {
        max-width: 90px;
        font-size: 12px;
    }

    .hero-title {
        font-size: 20px;
        line-height: 1.25;
    }

    .hero-subtitle,
    .hero-description {
        font-size: 13px;
    }

    .hero {
        padding: 40px 0 28px;
    }

    .section-title {
        font-size: 18px;
    }

    .section-subtitle {
        font-size: 13px;
    }

    .glass-card {
        padding: 16px;
        border-radius: var(--radius-md);
    }

    .btn-primary,
    .btn-outline {
        padding: 11px 16px;
        font-size: 13px;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* Paquetes: una sola columna a <420 */
    .packages-grid,
    .package-grid,
    .pkg-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    /* Stats apilados */
    .stats-grid,
    .stat-grid,
    .profile-stats {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .modal-card {
        padding: 16px;
        width: 96%;
        max-height: 92vh;
    }

    .modal-header h2,
    .modal-header h3 {
        font-size: 17px;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 8px 10px;
    }

    .toast {
        font-size: 13px;
        padding: 10px 14px;
    }
}


/* ===========================================
   39. UTILITY CLASSES
   =========================================== */

/* Text colors */
.text-purple { color: var(--purple); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-yellow { color: var(--yellow); }
.text-blue { color: var(--blue); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Font weight */
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }

/* Font size */
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 24px; }
.text-2xl { font-size: 32px; }

/* Margin top */
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 24px; }
.mt-6 { margin-top: 32px; }
.mt-7 { margin-top: 48px; }
.mt-8 { margin-top: 64px; }

/* Margin bottom */
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 24px; }
.mb-6 { margin-bottom: 32px; }
.mb-7 { margin-bottom: 48px; }
.mb-8 { margin-bottom: 64px; }

/* Padding */
.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 24px; }
.p-6 { padding: 32px; }

/* Flexbox */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; }

/* Gap */
.gap-xs { gap: 4px; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.gap-xl { gap: 32px; }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-sm { max-width: 400px; }
.max-w-md { max-width: 600px; }
.max-w-lg { max-width: 800px; }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; top: 0; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }

/* Border */
.border { border: 1px solid var(--border); }
.border-top { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: 9999px; }

/* Opacity */
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* Truncate text */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Whitespace */
.nowrap { white-space: nowrap; }

/* Visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Transition helper */
.transition {
    transition: all 0.25s var(--ease);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* No select */
.no-select {
    -webkit-user-select: none;
    user-select: none;
}


/* ===========================================
   40. PRINT STYLES
   =========================================== */

@media print {
    .site-nav,
    .site-footer,
    .hamburger,
    .mobile-menu,
    .toast-container,
    .modal-overlay {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .main-content {
        padding-top: 0;
    }

    .glass-card,
    .card {
        border: 1px solid #ccc;
        background: white;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}
