﻿:root {
    --bg-dark: #080a0f;
    --card-bg: rgba(15, 18, 25, 0.95);
    --gold-primary: #d4af37;
    --gold-gradient: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
    --silver-text: #d1d5db;
}

body {
    background-color: var(--bg-dark);
    color: var(--silver-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* =========================================================
   1. AUTHENTICATION PAGES (LOGIN, REGISTER, FORGOT PASSWORD)
   ========================================================= */

.auth-card {
    background: var(--card-bg);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(212, 175, 55, 0.15);
    width: 100% !important;
    max-width: 500px;
    margin: 0 auto;
}

.auth-logo {
    max-width: 160px;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
}

/* Form Inputs & Controls */
.form-control {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: #ffffff !important;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
}

    .form-control:focus {
        border-color: var(--gold-primary);
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    }

.btn-gold {
    background: var(--gold-gradient);
    color: #000000;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

    .btn-gold:hover {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
        transform: translateY(-2px);
    }

/* Mobile Responsive for Auth */
@media (max-width: 576px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .auth-card {
        padding: 20px 15px !important;
    }
}


/* =========================================================
   2. MASTER PAGE & SIDEBAR LAYOUT (EFFECTIVE 3D MENU)
   ========================================================= */

.sidebar-wrapper {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, #0e1118 0%, #05070a 100%);
    border-right: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-wrapper {
    margin-left: 260px;
    min-height: 100vh;
    background-color: #080a0f;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-header {
    background: rgba(14, 17, 24, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

/* Premium 3D Menu Items */
.sidebar-menu {
    list-style: none;
    padding: 15px 12px;
    margin: 0;
}

    .sidebar-menu .nav-item {
        margin-bottom: 8px;
    }

    .sidebar-menu .nav-link {
        display: flex;
        align-items: center;
        padding: 12px 16px;
        color: #c5c9d3 !important;
        font-size: 14px;
        font-weight: 600;
        border-radius: 12px;
        border: 1px solid transparent;
        background: rgba(255, 255, 255, 0.02);
        transition: all 0.3s ease;
        position: relative;
    }

    /* Icon Box inside Menu */
    .sidebar-menu .menu-icon {
        width: 34px;
        height: 34px;
        border-radius: 8px;
        background: rgba(212, 175, 55, 0.1);
        color: #d4af37;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 12px;
        font-size: 15px;
        transition: all 0.3s ease;
    }

    /* Hover State (Desktop) */
    .sidebar-menu .nav-link:hover {
        color: #ffffff !important;
        background: rgba(212, 175, 55, 0.12);
        border-color: rgba(212, 175, 55, 0.4);
        transform: translateX(5px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }

        .sidebar-menu .nav-link:hover .menu-icon {
            background: linear-gradient(135deg, #bf953f, #b38728);
            color: #000;
            box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
        }

    /* Active Selected Page Link */
    .sidebar-menu .nav-link.active-link {
        color: #ffd700 !important;
        background: linear-gradient(90deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.05) 100%);
        border: 1px solid rgba(212, 175, 55, 0.6);
        box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.15), 0 4px 15px rgba(0, 0, 0, 0.5);
    }

        .sidebar-menu .nav-link.active-link .menu-icon {
            background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728);
            color: #000;
            box-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
        }

/* Sidebar Responsive Toggle for Mobile */
@media (max-width: 991px) {
    .sidebar-wrapper {
        margin-left: -260px;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .sidebar-wrapper.active {
        margin-left: 0;
    }

    .main-wrapper.active {
        margin-left: 260px;
    }
}


/* =========================================================
   3. MODERN DASHBOARD CARDS (EXP1 + EXP2 HYBRID DESIGN)
   ========================================================= */

/* Mobile-First 3D Flip Keyframe */
@keyframes card3DFlipIn {
    0% {
        opacity: 0;
        transform: perspective(800px) rotateX(-80deg) translateY(30px) scale(0.88);
    }

    70% {
        transform: perspective(800px) rotateX(10deg) translateY(-3px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: perspective(800px) rotateX(0deg) translateY(0) scale(1);
    }
}

/* Base Card Style */
.card-3d-gold {
    background: rgba(15, 18, 26, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    animation: card3DFlipIn 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards !important;
    opacity: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

    /* Exp1 Style: Bottom Curved Wave Accent Layer */
    .card-3d-gold::after {
        content: '';
        position: absolute;
        bottom: -20px;
        left: -10%;
        width: 120%;
        height: 45px;
        border-radius: 50%;
        opacity: 0.15;
        filter: blur(10px);
        pointer-events: none;
        transition: all 0.4s ease;
    }

/* Staggered Delay for Mobile Grid */
.row > div:nth-child(1) .card-3d-gold {
    animation-delay: 0.05s !important;
}

.row > div:nth-child(2) .card-3d-gold {
    animation-delay: 0.12s !important;
}

.row > div:nth-child(3) .card-3d-gold {
    animation-delay: 0.19s !important;
}

.row > div:nth-child(4) .card-3d-gold {
    animation-delay: 0.26s !important;
}

.row > div:nth-child(5) .card-3d-gold {
    animation-delay: 0.33s !important;
}

.row > div:nth-child(6) .card-3d-gold {
    animation-delay: 0.40s !important;
}

.row > div:nth-child(7) .card-3d-gold {
    animation-delay: 0.47s !important;
}

.row > div:nth-child(8) .card-3d-gold {
    animation-delay: 0.54s !important;
}

/* =========================================================
   EXP2 STYLE: CATEGORY COLOR VARIATIONS (ADD CLASS IN HTML)
   ========================================================= */

/* 1. Green Theme (Active Package, Daily Income) */
.card-theme-green {
    border-color: rgba(34, 197, 94, 0.3);
    background: linear-gradient(145deg, rgba(20, 30, 25, 0.9), rgba(10, 15, 12, 0.95));
}

    .card-theme-green::after {
        background: #22c55e;
    }

    .card-theme-green .gold-icon-box {
        background: linear-gradient(135deg, #22c55e, #15803d);
        color: #ffffff;
        box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
    }

/* 2. Blue/Cyan Theme (Day Count, Joining Date) */
.card-theme-blue {
    border-color: rgba(56, 189, 248, 0.3);
    background: linear-gradient(145deg, rgba(15, 25, 35, 0.9), rgba(8, 12, 20, 0.95));
}

    .card-theme-blue::after {
        background: #38bdf8;
    }

    .card-theme-blue .gold-icon-box {
        background: linear-gradient(135deg, #38bdf8, #0369a1);
        color: #ffffff;
        box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
    }

/* 3. Gold/Amber Theme (Total Income, Direct Referrals) */
.card-theme-gold {
    border-color: rgba(212, 175, 55, 0.35);
    background: linear-gradient(145deg, rgba(30, 26, 18, 0.9), rgba(15, 12, 8, 0.95));
}

    .card-theme-gold::after {
        background: #d4af37;
    }

    .card-theme-gold .gold-icon-box {
        background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728);
        color: #000000;
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    }

/* 4. Purple/Pink Theme (Total Payout, Downline Team) */
.card-theme-purple {
    border-color: rgba(168, 85, 247, 0.3);
    background: linear-gradient(145deg, rgba(28, 18, 35, 0.9), rgba(14, 8, 20, 0.95));
}

    .card-theme-purple::after {
        background: #a855f7;
    }

    .card-theme-purple .gold-icon-box {
        background: linear-gradient(135deg, #a855f7, #6b21a8);
        color: #ffffff;
        box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    }

/* Desktop Hover & Mobile Touch Feedback */
@media (min-width: 992px) {
    .card-3d-gold:hover {
        transform: translateY(-6px) scale(1.02);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    }

        .card-3d-gold:hover::after {
            opacity: 0.4;
            height: 60px;
        }
}

@media (max-width: 991px) {
    .card-3d-gold:active {
        transform: scale(0.96);
        transition: all 0.1s ease;
    }
}

/* Icon Box Base Style */
.gold-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

/* =========================================================
   4. USER PROFILE PAGE STYLES
   ========================================================= */

/* Profile Header Card */
.profile-header-card {
    background: linear-gradient(135deg, rgba(20, 24, 33, 0.95), rgba(10, 12, 16, 0.98));
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.profile-avatar-box {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

/* Nav Tabs Styling */
.nav-pills-custom .nav-link {
    color: #a0aec0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .nav-pills-custom .nav-link.active {
        color: #000;
        background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728);
        border-color: #ffd700;
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    }

/* Read-Only Form Controls */
.form-control-readonly {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
    cursor: not-allowed;
}

/* ==========================================
   KYC & FORM CONTRAST STYLES
   ========================================== */

/* Header Status Text */
.profile-header-card p {
    color: #cbd5e1 !important;
}

/* Form Labels - Clear Light Color */
.card-theme-purple label,
.card-3d-gold label {
    color: #e2e8f0 !important;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
}

/* Input Textbox Styling */
.card-theme-purple .form-control,
.card-3d-gold .form-control {
    background-color: rgba(255, 255, 255, 0.07) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 6px;
}

    .card-theme-purple .form-control:focus,
    .card-3d-gold .form-control:focus {
        background-color: rgba(255, 255, 255, 0.12) !important;
        border-color: #a855f7 !important;
        box-shadow: 0 0 8px rgba(168, 85, 247, 0.4) !important;
        color: #ffffff !important;
    }

/* Placeholder Color Fix */
.form-control::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

.form-control::-webkit-input-placeholder {
    color: #94a3b8 !important;
}

/* File Upload Button Styling */
input[type="file"]::file-selector-button {
    background: #38bdf8 !important;
    color: #0f172a !important;
    font-weight: bold;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

    input[type="file"]::file-selector-button:hover {
        background: #0284c7 !important;
        color: #ffffff !important;
    }

/* Helper Text */
.card-theme-purple small,
.card-3d-gold small {
    color: #94a3b8 !important;
}

/* ==========================================
   CHANGE PASSWORD PAGE STYLES
   ========================================== */

/* Card Styling for Password Box */
.card-3d-gold {
    background: linear-gradient(135deg, rgba(20, 24, 33, 0.95), rgba(15, 18, 25, 0.98)) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

    /* Password Form Labels */
    .card-3d-gold label {
        color: #e2e8f0 !important;
        font-weight: 500;
        margin-bottom: 6px;
    }

/* Gold Button Styling */
.btn-gold {
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728) !important;
    color: #000000 !important;
    border: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

    .btn-gold:hover {
        background: linear-gradient(135deg, #aa771c, #fbf5b7, #a17411) !important;
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.5) !important;
        color: #000000 !important;
    }