@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Root Variables — 100% Bright Light Mode & High Contrast Design Tokens */
:root {
    --bg-app: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-subtle: #f1f5f9;
    --border-subtle: #cbd5e1;
    --border-subtle-light: #e2e8f0;
    
    --text-primary: #0f172a;
    --text-secondary: #1e293b;
    --text-tertiary: #475569;
    --text-muted: #64748b;
    
    --navy-primary: #0f172a;
    --navy-secondary: #1e293b;
    
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --accent-blue-light: #eff6ff;
    --accent-blue-border: #bfdbfe;
    
    --accent-purple: #7c3aed;
    --accent-purple-light: #f5f3ff;
    --accent-purple-border: #ddd6fe;
    
    --accent-green: #059669;
    --accent-green-light: #ecfdf5;
    --accent-green-border: #a7f3d0;
    
    --accent-rose: #e11d48;
    --accent-rose-light: #fff1f2;
    --accent-rose-border: #fecdd3;
    
    --accent-amber: #d97706;
    --accent-amber-light: #fffbeb;
    --accent-amber-border: #fde68a;
    
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    
    --shadow-sm: 0 2px 5px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 6px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 35px rgba(15, 23, 42, 0.09);
}

/* Reset & Global Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-app);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Main Layout Container */
.app-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.content-wrapper {
    padding: 85px 16px 110px 16px;
    max-width: 540px;
    margin: 0 auto;
}

.section-spacing {
    margin-bottom: 22px;
}

/* Responsive Desktop Layout */
.desktop-only {
    display: none;
}

@media (min-width: 992px) {
    .app-container {
        margin-left: 280px;
        width: calc(100% - 280px);
    }
    
    .content-wrapper {
        padding: 40px 50px 60px 50px;
        max-width: 1450px;
        margin: 0;
    }
    
    .mobile-only {
        display: none !important;
    }
    
    .desktop-only {
        display: flex !important;
    }
    
    /* Desktop Sidebar (Crisp White High Contrast) */
    .sidebar {
        width: 280px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        background: #ffffff;
        border-right: 1.5px solid var(--border-subtle-light);
        padding: 32px 22px;
        flex-direction: column;
        justify-content: space-between;
        z-index: 100;
        box-shadow: 4px 0 25px rgba(15, 23, 42, 0.04);
    }
    
    .sidebar-logo {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 40px;
        padding-left: 8px;
    }
    
    .sidebar-logo-icon {
        width: 44px;
        height: 44px;
        background: var(--accent-blue);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    }
    
    .sidebar-brand-text {
        color: var(--navy-primary);
        font-size: 26px;
        font-weight: 800;
        letter-spacing: -0.5px;
    }
    .sidebar-brand-text span {
        color: var(--accent-blue);
    }
    
    .sidebar-menu {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 6px;
        flex: 1;
        overflow-y: auto;
    }
    
    .sidebar-menu::-webkit-scrollbar {
        width: 4px;
    }
    .sidebar-menu::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }
    
    .sidebar-menu a {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 13px 18px;
        color: var(--text-secondary);
        font-weight: 700;
        font-size: 14px;
        border-radius: var(--radius-md);
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid transparent;
    }
    
    .sidebar-menu a:hover {
        background: var(--accent-blue-light);
        color: var(--accent-blue);
        transform: translateX(4px);
    }
    
    .sidebar-menu a.active {
        background: var(--accent-blue);
        color: #ffffff;
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
        font-weight: 800;
    }
    
    .sidebar-menu a i {
        font-size: 17px;
        width: 22px;
        text-align: center;
    }
    
    .sidebar-footer-user {
        margin-top: auto;
        padding-top: 20px;
        border-top: 1.5px solid var(--border-subtle-light);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    /* Dashboard Desktop Grid */
    .dashboard-grid {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 24px;
    }
    
    .dashboard-grid > * {
        grid-column: span 12;
    }
    
    .header-area { grid-column: span 12; margin: 0 !important; }
    .marquee-area { grid-column: span 12; }
    .welcome-area { grid-column: span 12; }
    .balances-area { grid-column: span 8; }
    .total-area { grid-column: span 4; }
    .quick-links-area { grid-column: span 12; }
    .refer-area { grid-column: span 12; }
    .chart-area { grid-column: span 7; }
    .stats-area { grid-column: span 5; }
    .activities-area { grid-column: span 12; }
}

/* Base Card Styling (Pure White Porcelain High Contrast) */
.card-wrap {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border-subtle-light);
    box-shadow: var(--shadow-md);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* High Contrast Financial Cards */
.balances-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    height: 100%;
}

@media (min-width: 992px) {
    .balances-grid {
        gap: 24px;
    }
}

.clean-card {
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1.5px solid var(--border-subtle-light);
    box-shadow: var(--shadow-sm);
}

.clean-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Current Balance Card (Blue Tint) */
.card-current {
    background: linear-gradient(135deg, #ffffff 40%, var(--accent-blue-light) 100%);
    border: 1.5px solid var(--accent-blue-border);
}
.card-current:hover {
    border-color: var(--accent-blue);
}

/* Ads Earnings Card (Purple Tint) */
.card-reward {
    background: linear-gradient(135deg, #ffffff 40%, var(--accent-purple-light) 100%);
    border: 1.5px solid var(--accent-purple-border);
}
.card-reward:hover {
    border-color: var(--accent-purple);
}

/* Total Withdrawals Card (Green Tint) */
.card-total {
    background: linear-gradient(135deg, #ffffff 40%, var(--accent-green-light) 100%);
    border: 1.5px solid var(--accent-green-border);
}
.card-total:hover {
    border-color: var(--accent-green);
}

.card-bg-shape {
    position: absolute;
    right: -15px;
    bottom: -10px;
    font-size: 100px;
    opacity: 0.04;
    z-index: 0;
    pointer-events: none;
    transform: rotate(-10deg);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.card-bottom {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.card-label {
    font-size: 10.5px;
    color: var(--text-tertiary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    margin-bottom: 4px;
}

.card-amount {
    font-size: clamp(20px, 4.5vw, 30px);
    font-weight: 800;
    color: var(--navy-primary);
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.card-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.25s ease;
}

.box-blue {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
.box-purple {
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
}
.box-green {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.card-arrow-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.link-blue { color: #2563eb; border: 1px solid #e2e8f0; }
.clean-card:hover .link-blue { background: #2563eb; color: #ffffff; border-color: #2563eb; transform: scale(1.08); }

.link-purple { color: #7c3aed; border: 1px solid #e2e8f0; }
.clean-card:hover .link-purple { background: #7c3aed; color: #ffffff; border-color: #7c3aed; transform: scale(1.08); }

.link-green { color: #059669; border: 1px solid #e2e8f0; }
.clean-card:hover .link-green { background: #059669; color: #ffffff; border-color: #059669; transform: scale(1.08); }

/* Glowing History Button Link inside Financial Cards */
.history-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.5), 0 4px 12px rgba(5, 150, 105, 0.3);
    animation: btnPulseGlow 2.5s infinite ease-in-out;
}
.history-btn-link:hover, .clean-card:hover .history-btn-link {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    color: #ffffff;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.8), 0 6px 18px rgba(5, 150, 105, 0.4);
}
.history-btn-link i {
    font-size: 11px;
    transition: transform 0.25s ease;
}
.history-btn-link:hover i, .clean-card:hover .history-btn-link i {
    transform: translateX(3px);
}

@keyframes btnPulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.4), 0 3px 10px rgba(5, 150, 105, 0.25);
    }
    50% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.75), 0 4px 16px rgba(5, 150, 105, 0.4);
    }
    100% {
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.4), 0 3px 10px rgba(5, 150, 105, 0.25);
    }
}

/* Bright Mobile Header */
.header-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1.5px solid var(--border-subtle-light);
    z-index: 1000;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.app-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy-primary);
    letter-spacing: -0.5px;
}
.app-title span {
    color: var(--accent-blue);
}
.menu-btn {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--border-subtle-light);
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--navy-primary);
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.menu-btn:hover {
    background: var(--accent-blue-light);
    color: var(--accent-blue);
    border-color: var(--accent-blue-border);
}

/* Ticker Marquee Bar */
.marquee-box {
    background: #ffffff;
    border: 1.5px solid var(--border-subtle-light);
    color: var(--navy-primary);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}
@keyframes scrollText {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-150%); }
}
.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: scrollText 24s linear infinite;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Vibrant Executive Sapphire Blue Hero Banner */
.welcome-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 35%, #2563eb 80%, #3b82f6 100%);
    color: white;
    padding: 22px 24px;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.25);
    border: 1.5px solid rgba(255, 255, 255, 0.16);
}

.welcome-card-btn-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 6px;
}

@media (min-width: 992px) {
    .welcome-card-btn-wrap {
        width: auto;
        margin-top: 0;
        justify-content: flex-end;
    }
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
    100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    display: inline-block;
    animation: pulseGlow 2s infinite ease-in-out;
}

.welcome-stat-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
}

.welcome-stat-pill:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

/* Quick Control Center Grid */
.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    width: 100%;
}
@media (min-width: 992px) {
    .quick-links {
        grid-template-columns: repeat(8, 1fr);
        gap: 18px;
    }
}
.q-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: 0.3s ease;
}
.q-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--border-subtle-light);
}
.q-link:hover {
    color: var(--navy-primary);
}
.q-link:hover .q-icon {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Refer & Earn Box */
.refer-box {
    background: #ffffff;
    border: 1.5px solid var(--border-subtle-light);
    border-radius: var(--radius-lg);
    padding: 24px;
}

/* Bar Chart Styling */
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.chart-container {
    display: flex;
    height: 180px;
}
.y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 10.5px;
    color: var(--text-tertiary);
    padding-right: 12px;
    text-align: right;
    width: 48px;
    padding-bottom: 24px;
}
.bars-container {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    border-bottom: 1.5px solid var(--border-subtle-light);
    padding-bottom: 24px;
    height: 100%;
}
.bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 13%;
    position: relative;
    height: 100%;
    justify-content: flex-end;
    cursor: pointer;
}
.bar-val {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 6px;
    transition: 0.3s ease;
}
.bar-rect {
    width: 22px;
    background: linear-gradient(to top, var(--accent-blue), #3b82f6);
    border-radius: 6px 6px 0 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.bar-col:hover .bar-rect {
    background: linear-gradient(to top, #1d4ed8, #2563eb);
    transform: scaleY(1.05);
    transform-origin: bottom;
}
.bar-col:hover .bar-val {
    color: var(--accent-blue);
    transform: translateY(-2px);
}
.bar-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-tertiary);
    position: absolute;
    bottom: -24px;
}

/* Executive High Contrast Table Styling */
.table-wrap {
    width: 100%;
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: center;
    table-layout: fixed;
}
th {
    background: #e2e8f0;
    color: var(--navy-primary);
    padding: 13px 8px;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1.5px solid var(--border-subtle);
}
th:first-child { border-radius: 10px 0 0 10px; }
th:last-child { border-radius: 0 10px 10px 0; }

td {
    padding: 14px 8px;
    font-size: 12.5px;
    color: var(--text-secondary);
    border-bottom: 1.5px solid var(--border-subtle-light);
    font-weight: 700;
}
tr:hover td {
    background: var(--accent-blue-light);
    color: var(--navy-primary);
}

/* Activity Stream Items */
.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1.5px solid var(--border-subtle-light);
    transition: 0.2s ease;
}
.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.act-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.act-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}
.act-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy-primary);
}
.act-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}
.act-amount {
    color: var(--accent-green);
    font-weight: 800;
    font-size: 14.5px;
}
.act-time {
    color: var(--text-tertiary);
    font-size: 11px;
}

/* Mobile Floating White Bottom Dock Nav */
.bottom-nav {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 500px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    padding: 8px 12px;
    border: 1.5px solid var(--border-subtle-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-tertiary);
    font-size: 11px;
    gap: 4px;
    font-weight: 700;
    transition: 0.25s ease;
}
.nav-item i {
    font-size: 20px;
    transition: 0.25s ease;
    padding: 6px 14px;
    border-radius: 14px;
}
.nav-item.active {
    color: var(--accent-blue);
}
.nav-item.active i {
    background: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* High-Contrast Inputs & Forms */
.form-control, .form-input, input[type="text"], input[type="email"], input[type="password"], input[type="number"], select {
    width: 100%;
    padding: 13px 16px;
    background: #f8fafc;
    border: 1.5px solid var(--border-subtle-light);
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy-primary);
    outline: none;
    transition: all 0.2s ease;
}
.form-control:focus, .form-input:focus, input:focus, select:focus {
    border-color: var(--accent-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Primary Button Styling */
.btn-primary, button[type="submit"] {
    background: var(--accent-blue);
    color: #ffffff;
    border: none;
    padding: 14px 22px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary:hover, button[type="submit"]:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Responsive Upload & Earn Video Featured Banner Card */
.upload-box-card {
    margin-top: 18px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-xl);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}
.upload-box-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.upload-box-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 14px rgba(244, 63, 94, 0.5), 0 4px 12px rgba(225, 29, 72, 0.3);
    animation: rosePulseGlow 2.5s infinite ease-in-out;
}
.upload-box-btn:hover, .upload-box-card:hover .upload-box-btn {
    background: linear-gradient(135deg, #be123c 0%, #e11d48 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.8), 0 6px 18px rgba(225, 29, 72, 0.4);
}
.upload-box-btn i {
    font-size: 11px;
    transition: transform 0.25s ease;
}
.upload-box-btn:hover i, .upload-box-card:hover .upload-box-btn i {
    transform: translateX(3px);
}

@keyframes rosePulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(244, 63, 94, 0.4), 0 3px 10px rgba(225, 29, 72, 0.25);
    }
    50% {
        box-shadow: 0 0 20px rgba(244, 63, 94, 0.75), 0 4px 16px rgba(225, 29, 72, 0.4);
    }
    100% {
        box-shadow: 0 0 10px rgba(244, 63, 94, 0.4), 0 3px 10px rgba(225, 29, 72, 0.25);
    }
}

/* ==========================================================================
   Responsive Breakpoints & Fine-Tuned Layout Optimizations
   ========================================================================== */

/* Mobile Dock Navigation Styles (Mobile Only) */
@media (max-width: 991px) {
    .bottom-nav {
        position: fixed;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 32px);
        max-width: 440px;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1.5px solid rgba(226, 232, 240, 0.8);
        border-radius: 24px;
        padding: 8px 12px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 999;
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    }

    .bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        font-size: 11px;
        font-weight: 700;
        color: #64748b;
        padding: 6px 14px;
        border-radius: 14px;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        text-decoration: none;
    }

    .bottom-nav .nav-item i {
        font-size: 18px;
    }

    .bottom-nav .nav-item.active {
        color: #2563eb;
        background: #eff6ff;
    }

    .header-area {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 99;
        background: rgba(248, 250, 252, 0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 12px 16px;
        border-bottom: 1px solid #e2e8f0;
    }

    .header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: 540px;
        margin: 0 auto;
    }

    .logo-wrap {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .app-title {
        font-size: 20px;
        font-weight: 800;
        color: #0f172a;
        margin: 0;
    }
    .app-title span {
        color: #2563eb;
    }

    .menu-btn {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        background: #ffffff;
        border: 1.5px solid #e2e8f0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #0f172a;
        font-size: 15px;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    }
    .menu-btn:hover {
        border-color: #2563eb;
        color: #2563eb;
    }
}

/* Screen size adaptations (< 640px) */
@media (max-width: 639px) {
    .content-wrapper {
        padding: 76px 12px 105px 12px;
    }

    .card-wrap, .referral-card, .captcha-card, .settings-card, .req-card-wrap, .team-table-wrap, .history-hero, .level-hero, .referral-hero, .withdraw-balance-hero, .video-hero {
        padding: 18px 16px !important;
        border-radius: 20px !important;
    }

    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    th, td {
        white-space: nowrap;
        padding: 12px 14px !important;
    }

    .history-item-card {
        padding: 16px 14px !important;
    }

    .captcha-code-char {
        font-size: 32px !important;
    }
}

/* Extra small mobile Adaptation (< 420px) */
@media (max-width: 419px) {
    .bottom-nav {
        width: calc(100% - 20px);
        padding: 6px 8px;
    }
    .bottom-nav .nav-item {
        padding: 5px 8px;
        font-size: 10px;
    }
    .bottom-nav .nav-item i {
        font-size: 16px;
    }
}