/* 
   HALALKAMAO — GLOBAL STYLESHEET
   Primary CSS file for all user-facing pages
   Background, theme, layout — single source of truth
*/

:root {
    --primary-orange: #139CDE; /* Updated to new brand blue */
    --secondary-orange: #139CDE;
    --primary-blue: #139CDE;
    --dark-blue: #0e7db3;
    
    /* Dark Theme Colors */
    --bg-light: #0b0f19;
    --white: #161e2e;
    --text-dark: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --light-blue-bg: #1f2937;
    
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Poppins', sans-serif;
}

body, html {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Background Image — Applied to all pages */
body {
    background-image: url('../images/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.85);
    z-index: 0;
    pointer-events: none;
}

/* Ensure all content sits above the overlay */
body > * {
    position: relative;
    z-index: 1;
}

/* Base Classes */
.dashboard-layout {
    background-color: transparent;
    padding-bottom: 90px; /* Space for bottom nav */
}

/* Auth Layout */
body.auth-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

/* Preloader */
.preloader {
    background-color: var(--white);
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 10000;
    display: none; /* Changed from flex to prevent blocking on PHP errors */
    align-items: center; justify-content: center;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 60px; height: 60px;
    border: 6px solid var(--light-blue-bg);
    border-top: 6px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Dashboard Header */
.dashboard-header {
    height: 70px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #139CDE !important; /* UPDATED TO NEW BLUE */
    color: #fff !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-header .site-name, .dashboard-header h5 {
    font-weight: 700;
    font-size: 22px;
    color: #fff !important;
}

.toggle-sidebar, .dashboard-header .btn-link {
    background: transparent;
    border: none;
    color: #fff !important;
    width: 40px; height: 40px;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-header i {
    color: #fff !important;
}

/* Vertical Chat Button */
.chat-live-vertical {
    display: none; /* Hide for cleaner look as per concept */
}

/* Custom Sidebar */
.custom-sidebar {
    position: fixed; left: -250px; top: 0; width: 250px; height: 100vh;
    background: var(--white);
    z-index: 1049; padding-top: 20px; transition: left 0.3s ease;
    box-shadow: 5px 0 15px rgba(0,0,0,0.05);
    border-right: 1px solid var(--border-color);
}
.custom-sidebar.active { left: 0; }

.sidebar-top-icon { text-align: center; margin-bottom: 20px; }
.sidebar-top-icon img { max-width: 80px; border-radius: 50%; }

.user-nav ul { list-style: none; }
.user-nav ul li a {
    display: flex; align-items: center; padding: 14px 20px;
    color: var(--text-muted); font-weight: 600;
}
.user-nav ul li a i { margin-right: 14px; font-size: 18px; color: var(--primary-blue); }
.user-nav ul li a:hover { background: var(--light-blue-bg); color: var(--primary-blue); }

/* Premium User Card (MAPPED TO CONCEPT TOP WHITE CARD) */
.user-card-premium {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    margin-top: 10px;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.username-text {
    font-size: 18px; font-weight: 700; color: var(--text-dark);
}

.ref-text {
    font-size: 11px; opacity: 0.8; color: var(--text-muted); padding-top: 4px;
}

.user-avatar-header {
    width: 40px; height: 40px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}
.user-avatar-header a { display: block; width: 100%; height: 100%; }
.user-avatar-header img { width: 100%; height: 100%; object-fit: cover; }

.user-avatar {
    width: 60px; height: 60px; border-radius: 12px;
    overflow: hidden; border: 1px solid var(--border-color);
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.balance-title {
    font-size: 24px; font-weight: 700; color: var(--text-dark);
}

.balance-subtitle {
    font-size: 12px; color: var(--text-muted); margin-top: 2px;
}

/* -------------------------------------------------------------------------- */
/*                            GLASSMORPHISM & THEME                           */
/* -------------------------------------------------------------------------- */

/* Responsive Enhancements */
@media (min-width: 992px) {
    .dashboard-wrapper, .auth-layout .container {
        max-width: 800px;
        margin: 0 auto;
        box-shadow: 0 0 50px rgba(0,0,0,0.5);
        min-height: 100vh;
        background: rgba(11, 15, 25, 0.4);
        backdrop-filter: blur(5px);
    }
    .bottom-nav {
        max-width: 800px;
        left: 50% !important;
        transform: translateX(-50%);
    }
    .dashboard-header {
        max-width: 800px;
        margin: 0 auto;
        left: 50% !important;
        transform: translateX(-50%);
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .dashboard-wrapper, .auth-layout .container {
        max-width: 900px;
    }
    .bottom-nav, .dashboard-header {
        max-width: 900px;
    }
}

.glass-card {
    background: rgba(11, 15, 25, 0.85); /* Slightly darker for better contrast */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(19, 156, 222, 0.25);
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    color: #fff;
    max-width: 400px; /* Even narrower width */
    margin: auto;
}

.form-control-glass {
    background: transparent !important;
    border: none !important; /* Remove border from input, it's on group now */
    color: #fff !important;
    border-radius: 12px;
    padding: 10px 10px 10px 5px; /* Adjust padding to make room for icon spacing */
    font-size: 0.9rem;
    transition: 0.3s;
    box-shadow: none !important;
}

.form-control-glass option {
    background-color: #139CDE !important; /* UPDATED TO NEW BLUE */
    color: #fff !important;
}

/* Handle Browser Autofill White Background */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0b0f19 inset !important; /* Match card background */
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

.input-group-glass {
    background: transparent !important;
    border: 1px solid rgba(19, 156, 222, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    transition: 0.3s;
    overflow: hidden; /* Ensure nothing spills out */
    padding-left: 5px; /* Add some space at the beginning */
}


.input-group-text-glass {
    background: transparent;
    border: none;
    color: #139CDE; /* UPDATED TO NEW BLUE */
    padding: 0 15px 0 10px; /* Add space on both sides of icon */
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-brand {
    background: #139CDE; /* UPDATED TO NEW BLUE */
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(19, 156, 222, 0.3);
}

.btn-brand:hover {
    background: #0e7db3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(19, 156, 222, 0.5);
    color: #fff;
}

.text-white-muted {
    color: rgba(255, 255, 255, 0.7);
}

.brand-link {
    color: #139CDE; /* UPDATED TO NEW BLUE */
    text-decoration: none;
    transition: 0.3s;
}

.brand-link:hover {
    color: #0e7db3;
    text-shadow: 0 0 10px rgba(19, 156, 222, 0.3);
}


/* -------------------------------------------------------------------------- */
/*                               DASHBOARD STYLES                             */
/* -------------------------------------------------------------------------- */

.dashboard-wrapper {
    min-height: 100vh;
    background-image: url('../images/bg.png'); /* Use your background image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-bottom: 70px; /* Space for bottom nav */
}

.dashboard-wrapper::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 15, 25, 0.85); /* Dark overlay */
    z-index: -1;
}

.dashboard-header {
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(19, 156, 222, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.dashboard-content {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* User Info Card (Main Blue Card on Dashboard) */
.user-info-card {
    background: #0E7DB3; /* UPDATED BLUE */
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(14, 125, 179, 0.3);
    padding: 25px;
    color: #fff !important;
}

.user-info-card h4, .user-info-card h2, .user-info-card p, .user-info-card span, .user-info-card i {
    color: #fff !important;
}

.user-info-card .btn-dashboard-action {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff !important;
}

.user-info-card .btn-dashboard-action i {
    color: #fff !important;
}

.user-info-card .btn-dashboard-action:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #139CDE !important; /* UPDATED TO NEW BLUE */
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item, .nav-item-bottom {
    color: rgba(255, 255, 255, 0.7) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    text-decoration: none !important;
}

.nav-item i, .nav-item-bottom i {
    font-size: 20px;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.7) !important;
}

.nav-item.active, .nav-item-bottom.active {
    color: #fff !important;
}

.nav-item.active i, .nav-item-bottom.active i {
    color: #fff !important;
}

/* Premium User Card (MATCHING IMAGE) */
.user-info-card-premium {
    background: #139CDE; /* UPDATED TO NEW BLUE */
    border-radius: 30px;
    padding: 25px;
    color: #fff !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(19, 156, 222, 0.4);
}

.user-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.user-card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-card-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
    margin-bottom: 10px;
    position: relative;
}

.user-card-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

.user-card-name {
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 5px;
}

.user-card-right {
    text-align: right;
}

.user-card-balance {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0;
    line-height: 1;
}

.user-card-label {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 5px;
}

.user-card-ref {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 3px;
}

.user-card-actions {
    display: flex;
    gap: 15px;
}

.btn-user-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff !important;
    border-radius: 25px;
    padding: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-size: 0.9rem;
    text-decoration: none !important;
}

.btn-user-card:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-user-card i {
    margin-right: 8px;
}

.referral-card {
    background: rgba(11, 15, 25, 0.7);
    border: 1px solid rgba(19, 156, 222, 0.2);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.referral-card .input-group .form-control-glass {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.referral-card .input-group .btn-brand {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 10px 15px;
    font-size: 0.9rem;
}

.action-grid, .whatsapp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.action-item, .whatsapp-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    border-radius: 15px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(11, 15, 25, 0.7);
    border: 1px solid rgba(19, 156, 222, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.action-item:hover, .whatsapp-item:hover {
    background: rgba(19, 156, 222, 0.2);
    border-color: #139CDE;
    color: #fff;
    transform: translateY(-3px);
}

.action-item i, .whatsapp-item i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #139CDE;
}

.action-item span, .whatsapp-item span {
    font-size: 0.8rem;
    font-weight: 500;
}

.summary-card {
    background: rgba(11, 15, 25, 0.7);
    border: 1px solid rgba(19, 156, 222, 0.2);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
/* Withdraw Gateway Grid */
.withdraw-gateway-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.gateway-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.gateway-option:hover {
    background: rgba(19, 156, 222, 0.1);
    border-color: rgba(19, 156, 222, 0.3);
}

.gateway-option.selected {
    background: rgba(19, 156, 222, 0.2);
    border-color: #139CDE;
    box-shadow: 0 0 15px rgba(19, 156, 222, 0.3);
}

.gateway-option i {
    font-size: 2rem;
    color: #139CDE;
    margin-bottom: 10px;
}

.gateway-option span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

/* Withdraw Amount Input Group */
.withdraw-amount-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.withdraw-amount-container input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 20px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

.withdraw-amount-container .currency-label {
    background: #139CDE;
    color: #fff;
    padding: 15px 20px;
    font-weight: 900;
    font-size: 1.1rem;
}

.withdraw-section-label {
    display: flex;
    align-items: center;
    color: #139CDE;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.withdraw-section-label::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 18px;
    background: #139CDE;
    margin-right: 10px;
    border-radius: 2px;
}

.btn-confirm-withdraw {
    background: linear-gradient(135deg, #139CDE, #0e7db3);
    color: #fff;
    border: none;
    border-radius: 15px;
    padding: 15px;
    width: 100%;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(19, 156, 222, 0.3);
    transition: 0.3s;
}

.btn-confirm-withdraw:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(19, 156, 222, 0.4);
}

/* Investment Node Cards */
.investment-node-card {
    background: #139CDE;
    border-radius: 25px;
    padding: 20px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(19, 156, 222, 0.3);
}

.node-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.node-name {
    font-size: 1.2rem;
    font-weight: 800;
}

.node-amount {
    font-size: 1.5rem;
    font-weight: 900;
}

.node-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.node-detail-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 12px;
    text-align: center;
}

.node-detail-label {
    font-size: 0.7rem;
    opacity: 0.8;
    display: block;
}

.node-detail-value {
    font-size: 0.9rem;
    font-weight: 700;
    display: block;
}

.btn-invest-now {
    background: #fff;
    color: #139CDE !important;
    border: none;
    border-radius: 20px;
    padding: 10px;
    width: 100%;
    font-weight: 800;
    text-transform: uppercase;
    transition: 0.3s;
    text-decoration: none !important;
    display: block;
    text-align: center;
}

.btn-invest-now:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}   padding: 10px 0;
    border-bottom: 1px dashed rgba(19, 156, 222, 0.1);
}

.node-card-dashboard {
    background: rgba(11, 15, 25, 0.7);
    border: 1px solid rgba(19, 156, 222, 0.2);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.grid-item-dashboard {
    background: rgba(19, 156, 222, 0.1);
    border: 1px solid rgba(19, 156, 222, 0.2);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.grid-label-dashboard {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.grid-value-dashboard {
    display: block;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.grid-value-dashboard.referral {
    color: #00bfa5;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid rgba(19, 156, 222, 0.2);
    z-index: 1000;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.7rem;
    transition: color 0.3s ease;
}

.bottom-nav .nav-item.active,
.bottom-nav .nav-item:hover {
    color: #139CDE;
}

.bottom-nav .nav-item i {
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.action-list-item {
    display: flex !important;
    align-items: center !important;
    background: transparent;
    transition: 0.2s;
    border-radius: 12px;
}
.action-list-item:hover { background: rgba(59, 89, 152, 0.05); }

.icon-square-box {
    width: 40px; height: 40px;
    background: #f1f5f9; /* Soft gray */
    border-radius: 10px;
    display: flex !important; align-items: center !important; justify-content: center !important;
    color: var(--primary-blue);
    font-size: 16px;
}
.action-list-label {
    flex: 1; /* Pushes the chevron to the right */
    color: #1e293b;
    font-size: 14px;
    text-align: left;
    margin-left: 12px;
}

/* -------------------------------------------------------------------------- */
/*                                LANDING PAGE STYLES                         */
/* -------------------------------------------------------------------------- */

.hero-section {
    padding: 60px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.logo-card {
    background: #0b0f19;
    border: 2px solid #139CDE;
    border-radius: 15px;
    padding: 20px;
    display: inline-block;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(19, 156, 222, 0.3);
}

.logo-card img {
    max-width: 180px;
    height: auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-btns .btn {
    padding: 12px 35px;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 10px;
}

.btn-register {
    background: linear-gradient(135deg, #139CDE, #0e7db3);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(19, 156, 222, 0.4);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(19, 156, 222, 0.6);
    color: #fff;
}

.btn-login {
    background: linear-gradient(135deg, #00bfa5, #00897b);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 191, 165, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 191, 165, 0.6);
    color: #fff;
}

.section-divider-title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 60px 0 40px;
    position: relative;
    display: inline-block;
}

/* Investment Plan Card Styling */
.node-card {
    background: #0f172a;
    border-radius: 20px;
    padding: 30px 20px;
    position: relative;
    border: 1px solid #1e293b;
    transition: 0.3s;
    overflow: hidden;
}

.node-card:hover {
    border-color: #139CDE;
    transform: translateY(-5px);
}

.node-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #139CDE;
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.node-amount-label {
    display: block;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.node-amount-value {
    display: block;
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 25px;
}

.node-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
}

.grid-item {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 10px;
    padding: 12px 5px;
    text-align: center;
}

.grid-label {
    display: block;
    color: #64748b;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.grid-value {
    display: block;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.grid-value.referral {
    color: #00bfa5;
    font-size: 0.75rem;
}

.btn-invest {
    background: #139CDE;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-weight: 800;
    width: 100%;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-invest:hover {
    background: #0e7db3;
    color: #fff;
}

.btn-invest i {
    font-size: 1.1rem;
}

/* Footer Section */
.footer-section {
    background: #020617;
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-logo-card {
    background: #0b0f19;
    border: 1px solid #139CDE;
    border-radius: 10px;
    padding: 15px;
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo-card img {
    max-width: 120px;
}

.copyright-text {
    color: #64748b;
    font-size: 0.85rem;
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    margin-top: 20px;
}

    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}
.stat-item:last-child { border-bottom: none; }

.stat-label {
    font-weight: 600; color: var(--text-dark);
    display: flex; align-items: center; gap: 12px;
}
.stat-label i {
    color: var(--primary-blue); font-size: 18px;
    background: var(--light-blue-bg);
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
}

.stat-value {
    font-weight: 700; color: var(--text-dark); font-size: 15px;
}

/* Referral Box */
.ref-box {
    background: var(--white);
    border-radius: 12px;
    padding: 20px; margin: 10px auto 25px;
    box-shadow: var(--card-shadow);
}

.ref-header {
    display: flex; gap: 10px; font-weight: 700; font-size: 16px; color: var(--text-dark);
}

.ref-subtitle { color: var(--text-muted); }

.ref-input-wrap {
    display: flex; gap: 10px; margin-top: 15px;
}

.ref-input-wrap input {
    flex: 1; padding: 12px 16px; border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-light); color: var(--text-dark); font-weight: 600; font-size: 13px;
}

.copy-btn {
    padding: 10px; display: flex; align-items: center; justify-content: center;
    background: transparent; color: var(--primary-blue);
    font-size: 20px; border-radius: 8px; border: none; cursor: pointer; transition: 0.2s;
}
.copy-btn:hover { background: rgba(59, 89, 152, 0.1); }

/* Bottom Footer Navigation */
.bottom-footer {
    position: fixed; bottom: 0; width: 100%;
    background: var(--white);
    padding: 12px 0; z-index: 9999;
    border-top: 1px solid var(--border-color);
}

.footer-nav { display: flex; justify-content: space-around; }

.footer-btn {
    display: flex; flex-direction: column; align-items: center;
    color: var(--text-muted); font-size: 10px; font-weight: 600; gap: 4px;
}

.footer-btn i { font-size: 20px; }
.footer-btn:hover, .footer-btn.active { color: var(--primary-blue); }

/* Authentication Styling Mapping */
.site-name-top {
    font-weight: 800; font-size: 28px; color: var(--primary-blue);
    margin-bottom: 20px; text-align: center;
}

.login-card, .register-card {
    background: var(--white);
    padding: 35px; border-radius: 16px; width: 100%; max-width: 400px;
    box-shadow: var(--card-shadow); border: 1px solid var(--border-color);
}

.login-card h3 {
    text-align: center; margin-bottom: 30px; font-weight: 700; color: var(--text-dark);
}

.input-field { position: relative; margin-bottom: 20px; }
.input-field input {
    width: 100%; padding: 14px 45px 14px 20px;
    background: var(--bg-light); border: 1px solid var(--border-color);
    border-radius: 8px; color: var(--text-dark); font-weight: 500;
}
.input-field .icon {
    position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted);
}

.bottom-content p { color: var(--text-muted); font-size: 14px; text-align: center; margin-top: 15px; }
.bottom-content p a { color: var(--primary-blue); font-weight: 600; }

/* Glassmorphism Cards */
.glass-card {
    background: rgba(22, 30, 46, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 16px;
}

/* System Status Modal */
.modal-content.glass-card {
    background: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(19, 156, 222, 0.3);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.modal-header .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Team Page Specific Styles */
.btn-level {
    background: rgba(11, 15, 25, 0.7);
    border: 1px solid rgba(19, 156, 222, 0.2);
    color: #fff;
    padding: 10px 20px;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-level:hover {
    background: rgba(19, 156, 222, 0.2);
    border-color: #139CDE;
    color: #fff;
}

.btn-level.active {
    background: #139CDE;
    border-color: #139CDE;
    color: #fff;
    box-shadow: 0 5px 15px rgba(19, 156, 222, 0.3);
}

.table-dark th, .table-dark td {
    border-color: rgba(19, 156, 222, 0.1);
}