/* ==========================================================================
   1. DASHBOARD LAYOUT & SIDEBAR
   ========================================================================== */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #020a12;
}

.sidebar-menu {
    width: 260px;
    background: #0b1d33;
    border-right: 1px solid rgba(197, 160, 89, 0.3);
    display: flex;
    flex-direction: column;
    padding: 30px 0;
    position: fixed;
    height: 100vh;
    z-index: 1000;
}

.sidebar-menu nav a {
    padding: 15px 25px;
    color: #ccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
}

.sidebar-menu nav a.active, .sidebar-menu nav a:hover {
    background: rgba(197, 160, 89, 0.1);
    color: #c5a059;
    border-left: 4px solid #c5a059;
}

.main-content-area {
    flex: 1;
    margin-left: 260px;
    padding: 40px;
}

/* ==========================================================================
   2. INVESTOR MODE: PLAN CARDS
   ========================================================================== */
.modern-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
}

.tier-badge {
    float: right;
    background: #c5a059;
    color: #0b1d33;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.amount-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #aaa;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    font-weight: bold;
    color: #c5a059;
}

/* ==========================================================================
   3. PARTNER MODE: PROGRESS METERS
   ========================================================================== */
.progress-bar-container {
    background: #000;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 20px;
    height: 12px;
    margin: 15px 0 5px;
    overflow: hidden;
}

.progress-bar-container.large {
    height: 25px;
}

.progress-fill {
    background: linear-gradient(90deg, #8a6d3b, #c5a059);
    height: 100%;
    transition: width 1.2s ease-in-out;
}

.progress-fill.gold-glow {
    box-shadow: 0 0 15px #c5a059;
}

.status-msg {
    margin-top: 15px;
    background: rgba(197, 160, 89, 0.1);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px dashed rgba(197, 160, 89, 0.3);
}
/* Referral Network Table */
.network-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9rem;
}

.network-table th {
    text-align: left;
    color: var(--gold);
    border-bottom: 2px solid var(--gold-dim);
    padding: 15px 10px;
    font-family: 'Cinzel', serif;
}

.network-table td {
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Status Pilled Labels */
.status-pill {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.status-pill.active {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.status-pill.pending {
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold);
    border: 1px solid var(--gold);
}
/* Profile Page Extras */
.referral-box {
    transition: transform 0.3s ease;
}

.referral-box:hover {
    transform: scale(1.02);
    background: rgba(197, 160, 89, 0.05) !important;
}

.modern-card strong {
    color: var(--gold);
}
/* Sidebar Section Labels */
.menu-section-label {
    padding: 20px 25px 5px;
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--gold);
    opacity: 0.6;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Sidebar Navigation Items */
.sidebar-menu nav a {
    padding: 12px 25px;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.sidebar-menu nav a:hover, .sidebar-menu nav a.active {
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold);
    border-left: 4px solid var(--gold);
}
/* --- Fix for Invisible Text --- */

body, .main-content-area {
    color: #ffffff !important; /* Forces text to white */
}

.modern-card p, .modern-card span {
    color: #cccccc !important; /* Soft grey for secondary text */
}

.modern-card strong, h2, h3 {
    color: #c5a059 !important; /* Gold for highlights and names */
}

/* Ensure names like "girsh kumar" stand out */
.modern-card strong {
    font-size: 1.1rem;
    text-transform: capitalize;
}
/* Specifically targeting the referral code visibility */
.referral-box h2 {
    color: #c5a059 !important; /* Forces Gold color */
    font-size: 2.2rem !important;
    text-align: center;
    display: block !important;
    visibility: visible !important;
}
/* --- Mobile Menu Refinement --- */
.bottom-nav {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0b1d33;
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    justify-content: space-around;
    padding: 10px 0;
    z-index: 2000;
}

.bottom-nav a {
    text-align: center;
    color: #ccc;
    text-decoration: none;
    font-size: 1.2rem;
    flex: 1;
}

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

.bottom-nav small {
    font-size: 0.65rem;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}
/* Premium Button Styling */
.premium-submit-btn {
    position: relative;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #8a6d3b 0%, #c5a059 50%, #8a6d3b 100%);
    border: none;
    border-radius: 8px;
    color: #0b1d33;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.premium-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(197, 160, 89, 0.6);
    background: linear-gradient(135deg, #c5a059 0%, #ecd391 50%, #c5a059 100%);
}

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

/* Texture for the textarea to match inputs */
textarea:focus {
    border-color: #c5a059 !important;
    outline: none;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.2);
}
.mobile-only-logo {
    display: none; /* Hides it on Desktop */
}

@media (max-width: 768px) {
    .mobile-only-logo {
        display: block; /* Shows it on Mobile */
    }
}

@media (max-width: 768px) {
    .sidebar-menu { display: none; } /* Hide sidebar on mobile */
    .bottom-nav { display: flex; }    /* Show bottom bar instead */
    .main-content-area { 
        margin-left: 0 !important; 
        padding: 20px; 
        padding-bottom: 80px; /* Space for bottom nav */
    }
	
}

/* --- Add at the bottom of the file --- */

/* Smooth Page Entry */
body {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-color: #020a12; /* Matches your premium navy */
}

body.page-loaded {
    opacity: 1;
}

/* Luxury Spinner for the "Smooth" effect */
#loader-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #020a12;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.gold-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(197, 160, 89, 0.1);
    border-top: 3px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}