/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #8A2BE2;
    /* Blue Violet */
    --secondary: #4169E1;
    /* Royal Blue */
    --accent: #FF007F;
    /* Neon Pink */
    --bg-dark: #0A0E17;
    --bg-card: rgba(20, 25, 40, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-main: #FFFFFF;
    --text-muted: #A0AEC0;
    --success: #00E676;
    --danger: #FF3D00;
}

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 0%, rgba(65, 105, 225, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(138, 43, 226, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    padding-bottom: 80px;
    /* Space for bottom nav */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Lightweight "lighting" polish (no heavy filters to avoid lag) */
.btn, .glass-card, .nav-item i {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover {
    box-shadow: 0 10px 26px rgba(138, 43, 226, 0.18);
}
.btn-outline-info:hover, .btn-outline-primary:hover, .btn-outline-glow:hover {
    box-shadow: 0 10px 26px rgba(65, 105, 225, 0.18);
}
.glass-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
.nav-item.active i {
    filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.55));
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Gradients and Text */
.text-gradient {
    background: linear-gradient(90deg, #00C9FF 0%, #92FE9D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-gradient-purple {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Buttons */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-gradient:hover,
.btn-gradient:focus {
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.5);
}

.btn-outline-glow {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-glow:hover {
    background: rgba(138, 43, 226, 0.1);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
    color: white;
}

/* Top Navbar */
.top-navbar {
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.wallet-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wallet-badge-link {
    display: inline-block;
    border-radius: 999px;
}
.wallet-badge-premium {
    position: relative;
    overflow: hidden;
    padding: 8px 16px 8px 14px;
    border: 1px solid transparent;
    background:
        linear-gradient(145deg, rgba(18, 22, 38, 0.95), rgba(30, 20, 50, 0.9)) padding-box,
        linear-gradient(135deg, rgba(168, 85, 247, 0.65), rgba(59, 130, 246, 0.45), rgba(168, 85, 247, 0.35)) border-box;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 4px 18px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(139, 92, 246, 0.22);
    isolation: isolate;
}
.wallet-badge-glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 30% 40%, rgba(168, 85, 247, 0.18), transparent 55%);
    pointer-events: none;
    z-index: 0;
}
.wallet-badge-premium .wallet-badge-icon {
    position: relative;
    z-index: 1;
    color: #c4b5fd;
    filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.5));
    font-size: 1rem;
}
.wallet-badge-amount {
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    color: #f8fafc;
    text-shadow: 0 0 12px rgba(167, 139, 250, 0.35);
}
.wallet-badge-link:hover .wallet-badge-premium {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 6px 24px rgba(0, 0, 0, 0.5),
        0 0 28px rgba(139, 92, 246, 0.35);
    transform: translateY(-1px);
}
.wallet-badge-link:active .wallet-badge-premium {
    transform: translateY(0);
}

/* Profile menu rows (wallet + links) */
.profile-menu-card .profile-menu-item {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}
.profile-menu-card .profile-menu-item:last-child {
    border-bottom: none !important;
}
.profile-menu-card .profile-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.9), rgba(59, 130, 246, 0.5));
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 0 4px 4px 0;
}
.profile-menu-card .profile-menu-item:hover,
.profile-menu-card .profile-menu-item:focus {
    background: rgba(138, 43, 226, 0.08) !important;
    box-shadow: inset 0 0 24px rgba(138, 43, 226, 0.06);
}
.profile-menu-card .profile-menu-item:hover::before,
.profile-menu-card .profile-menu-item:focus::before {
    opacity: 1;
}
.profile-menu-card .profile-menu-item.profile-menu-wallet {
    background: linear-gradient(90deg, rgba(30, 27, 60, 0.5), rgba(20, 24, 40, 0.3)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.profile-menu-card .profile-menu-item.profile-menu-wallet i.fa-wallet {
    color: #c4b5fd !important;
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.45));
}

/* Bottom Mobile Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 20, 31, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-glass);
    z-index: 1030;
    display: flex;
    justify-content: space-around;
    padding: 12px 10px 18px 10px;
    /* Extra bottom padding for iOS home indicator */
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 4px;
    width: 25%;
}

.nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active i {
    color: var(--secondary);
    filter: drop-shadow(0 0 8px rgba(65, 105, 225, 0.6));
    transform: translateY(-3px);
}

.nav-item:hover {
    color: white;
}

/* Forms & Inputs */
.form-control,
.form-select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    color: white;
    border-radius: 12px;
    padding: 12px 15px;
}

.form-control:focus,
.form-select:focus {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(138, 43, 226, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.input-group-text {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    border-right: none;
}

.form-control-with-icon {
    border-left: none;
}

/* SweetAlert Dark Theme Override */
.swal2-popup {
    background: #141928 !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: 20px !important;
    color: white !important;
}

.swal2-title,
.swal2-html-container {
    color: white !important;
}

/* Utilities */
.text-muted {
    color: var(--text-muted) !important;
}

.b-radius-xl {
    border-radius: 24px;
}

.b-radius-lg {
    border-radius: 16px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Animation Classes */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: inherit;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    z-index: -1;
    background-size: 400% 400%;
    animation: gradientBorder 5s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-border:hover::before {
    opacity: 1;
}

@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Custom Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255, 255, 255, 0.1) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Modal */
.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
}

.modal-header {
    border-bottom: 1px solid var(--border-glass);
}

.modal-footer {
    border-top: 1px solid var(--border-glass);
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}