/* ── Investment Sol — Custom Styles ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --gold-dark: #d97706;
    --dark-900: #0f172a;
    --dark-800: #1e293b;
    --dark-700: #334155;
    --dark-600: #475569;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
}

* {
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--dark-900);
    min-height: 100vh;
}

/* ── Glassmorphism Cards ──────────────────────────────────────────── */
.glass-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(245, 158, 11, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(245, 158, 11, 0.25);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.08);
}

.glass-card-static {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(245, 158, 11, 0.1);
    border-radius: 16px;
}

/* ── Gold Gradient Button ─────────────────────────────────────────── */
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0f172a;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-gold:hover::before {
    left: 100%;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.btn-gold:active {
    transform: translateY(0);
}

.btn-gold:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ── Outline Button ───────────────────────────────────────────────── */
.btn-outline {
    background: transparent;
    color: var(--gold);
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 12px;
    border: 2px solid var(--gold);
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-outline:hover {
    background: rgba(245, 158, 11, 0.1);
    transform: translateY(-2px);
}

/* ── Danger Button ────────────────────────────────────────────────── */
.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

/* ── Input Styles ─────────────────────────────────────────────────── */
.input-field {
    width: 100%;
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 12px;
    color: var(--slate-200);
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.input-field:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.input-field::placeholder {
    color: var(--dark-600);
}

/* ── Code input ───────────────────────────────────────────────────── */
.code-input {
    width: 56px;
    height: 64px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(100, 116, 139, 0.3);
    border-radius: 12px;
    color: var(--gold);
    transition: all 0.3s ease;
    outline: none;
}

.code-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* ── Package Cards ────────────────────────────────────────────────── */
.package-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.package-card:hover::before {
    transform: scaleX(1);
}

.package-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.1);
}

.package-card.selected {
    border-color: var(--gold);
    background: rgba(245, 158, 11, 0.05);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.12);
}

.package-card.selected::before {
    transform: scaleX(1);
}

/* ── Network Cards ────────────────────────────────────────────────── */
.network-card {
    background: rgba(30, 41, 59, 0.6);
    border: 2px solid rgba(100, 116, 139, 0.2);
    border-radius: 12px;
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.network-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.05);
}

.network-card.selected {
    border-color: var(--gold);
    background: rgba(245, 158, 11, 0.08);
}

/* ── Sidebar / Navigation ─────────────────────────────────────────── */
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--slate-400);
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}

.nav-item:hover {
    background: rgba(245, 158, 11, 0.08);
    color: var(--gold-light);
}

.nav-item.active {
    background: rgba(245, 158, 11, 0.12);
    color: var(--gold);
    font-weight: 600;
}

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

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

@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(245, 158, 11, 0);
    }
}

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

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

@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.5s ease forwards;
}

.animate-pulse-gold {
    animation: pulse-gold 2s infinite;
}

.stagger-1 { animation-delay: 0.1s; opacity: 0; }
.stagger-2 { animation-delay: 0.2s; opacity: 0; }
.stagger-3 { animation-delay: 0.3s; opacity: 0; }
.stagger-4 { animation-delay: 0.4s; opacity: 0; }
.stagger-5 { animation-delay: 0.5s; opacity: 0; }
.stagger-6 { animation-delay: 0.6s; opacity: 0; }

/* ── Wallet Address Copy ──────────────────────────────────────────── */
.wallet-address {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--gold-light);
    word-break: break-all;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.wallet-address:hover {
    border-color: var(--gold);
    background: rgba(245, 158, 11, 0.05);
}

/* ── Balance Badge ────────────────────────────────────────────────── */
.balance-display {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.05));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 16px;
    padding: 24px;
}

/* ── Status Badges ────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
}

.badge-pending {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.badge-paid {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-failed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ── Toast notification ───────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    z-index: 9999;
    animation: slideInRight 0.3s ease, fadeIn 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.toast-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.toast-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* ── Loading spinner ──────────────────────────────────────────────── */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(245, 158, 11, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ── Leaderboard ──────────────────────────────────────────────────── */
.leaderboard-row {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    transition: all 0.3s;
}

.leaderboard-row:hover {
    background: rgba(245, 158, 11, 0.05);
}

.rank-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
}

.rank-1 { background: linear-gradient(135deg, #f59e0b, #d97706); color: #0f172a; }
.rank-2 { background: linear-gradient(135deg, #94a3b8, #64748b); color: #0f172a; }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #a0522d); color: #0f172a; }

/* ── Mobile menu ──────────────────────────────────────────────────── */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(245, 158, 11, 0.1);
    z-index: 100;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

.mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--slate-400);
    text-decoration: none;
    transition: color 0.3s;
    padding: 4px 8px;
}

.mobile-nav a.active {
    color: var(--gold);
}

.mobile-nav a:hover {
    color: var(--gold-light);
}

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

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

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

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

/* ── Responsive fixes ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .code-input {
        width: 46px;
        height: 56px;
        font-size: 24px;
    }
    
    main {
        padding-bottom: 80px !important;
    }
}
