/* Asian Glob - Emerald/Teal Modern CSS */

:root {
    /* Emerald & Deep Teal Palette */
    --primary: #0F766E;      /* Deep Teal */
    --primary-dark: #0D5F58;
    --primary-light: #14B8A6; /* Teal */
    --accent: #34D399;       /* Mint */
    
    /* Text & Backgrounds */
    --bg-white: #FFFFFF;
    --bg-offwhite: #F8FAFC;  /* Very light blue-gray */
    --bg-dark: #0F172A;      /* Very dark slate */
    
    --text-main: #334155;    /* Charcoal for body */
    --text-dark: #0F172A;    /* Dark Slate for headings */
    --text-light: #64748B;   /* Muted slate */
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* System */
    --radius: 8px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(15, 118, 110, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(15, 118, 110, 0.1);
    --transition: all 0.3s ease-in-out;
}

/* Global Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-dark); font-weight: 700; line-height: 1.2; word-wrap: break-word; hyphens: auto; }
h1 span, h2 span { color: var(--primary); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* Utilities */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: clamp(60px, 8vw, 100px) 0; } /* Fluid vertical padding */
.bg-light { background-color: var(--bg-offwhite); }
.bg-white { background-color: var(--bg-white); }
.bg-dark { background-color: var(--bg-dark); }
.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; } .mt-5 { margin-top: 2.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.section-heading h2 { font-size: clamp(2rem, 4vw, 2.5rem); letter-spacing: -0.5px; }
.divider { width: 50px; height: 4px; background: var(--primary); border-radius: 2px; }
.subtitle { font-size: clamp(1rem, 2vw, 1.1rem); color: var(--text-light); }
.body-text { font-size: 1.05rem; color: var(--text-main); }

/* Buttons */
.btn {
    display: inline-flex; justify-content: center; align-items: center;
    padding: 12px 24px; border-radius: var(--radius);
    font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
    transition: var(--transition); cursor: pointer; border: 2px solid transparent;
}
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-xl { padding: 16px 36px; font-size: 1.1rem; }

.btn-primary { background-color: var(--primary); color: var(--bg-white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-secondary { background-color: var(--bg-white); color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background-color: var(--primary); color: var(--bg-white); }

.btn-outline { background-color: transparent; color: var(--text-dark); border-color: var(--text-light); }
.btn-outline:hover { background-color: var(--bg-offwhite); color: var(--primary); border-color: var(--primary); }

/* Header */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 20px 0; background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}
.header.scrolled { padding: 15px 0; box-shadow: var(--shadow-sm); }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo h1 { font-size: 1.5rem; letter-spacing: 0.5px; }
.nav-list { display: flex; gap: 32px; }
.nav-list li a { font-size: 0.95rem; font-weight: 500; color: var(--text-main); position: relative; }
.nav-list li a i { display: none; } /* Hidden on desktop by default */
.nav-list li a:hover { color: var(--primary); }
.nav-list li a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: var(--transition);
}
.nav-list li a:hover::after { width: 100%; }
.nav-buttons { display: flex; gap: 12px; }
.mobile-toggle { display: none; font-size: 1.5rem; color: var(--text-dark); cursor: pointer; }

/* Hero Section Redesign */
.hero {
    min-height: 90vh; display: flex; align-items: center;
    background-color: var(--bg-offwhite); padding-top: 100px; padding-bottom: 60px;
    position: relative; overflow: hidden;
}

/* Abstract Premium Glow */
.hero-glow {
    position: absolute; top: -10%; left: -5%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%; z-index: 0; filter: blur(40px);
}

.hero-container {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
    position: relative; z-index: 1;
}

.badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; 
    background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--primary); font-size: 0.75rem; font-weight: 700; letter-spacing: 1px;
    border-radius: 50px; margin-bottom: 20px; text-transform: uppercase;
}

.hero-title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 16px; line-height: 1.1; }
.hero-desc { font-size: clamp(1rem, 2vw, 1.1rem); color: var(--text-main); margin-bottom: 24px; max-width: 550px; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn { padding: 12px 24px; font-size: 0.95rem; border-radius: 8px; }

/* Stat Cards */
.hero-stats {
    display: flex; gap: 20px; border-top: 1px solid rgba(0,0,0,0.05); padding-top: 24px;
}
.stat-item { display: flex; align-items: center; gap: 12px; }
.stat-item i { font-size: 1.5rem; color: var(--primary-light); background: rgba(16,185,129,0.1); padding: 12px; border-radius: 12px; }
.stat-info { display: flex; flex-direction: column; }
.stat-info strong { font-family: var(--font-heading); color: var(--text-dark); font-size: 1rem; }
.stat-info span { font-size: 0.8rem; color: var(--text-light); }

/* Premium Visual Card */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.visual-card {
    background: var(--bg-white); border-radius: 20px; width: 100%; max-width: 400px;
    box-shadow: 0 20px 40px -10px rgba(15, 118, 110, 0.15); border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden; transform: perspective(1000px) rotateY(-5deg); transition: var(--transition);
}
.visual-card:hover { transform: perspective(1000px) rotateY(0deg) translateY(-5px); box-shadow: 0 30px 50px -15px rgba(15, 118, 110, 0.2); }
.vc-header { background: var(--bg-offwhite); padding: 12px 20px; display: flex; gap: 6px; border-bottom: 1px solid rgba(0,0,0,0.03); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.d1 { background: #FF5F56; } .d2 { background: #FFBD2E; } .d3 { background: #27C93F; }
.vc-body { padding: 40px 30px; text-align: center; }
.vc-body i { font-size: 4rem; color: var(--primary); margin-bottom: 20px; }
.vc-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.vc-body p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 24px; }
.vc-bar { height: 8px; background: rgba(15, 118, 110, 0.1); border-radius: 4px; margin-bottom: 10px; width: 100%; }
.vc-bar.short { width: 70%; margin: 0 auto; }

/* Corporate Intro */
.corp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.corp-card {
    background: var(--bg-white); padding: 40px; border-radius: var(--radius);
    box-shadow: var(--shadow-sm); transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}
.corp-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.icon-box {
    width: 60px; height: 60px; background: rgba(15, 118, 110, 0.1);
    color: var(--primary); font-size: 1.8rem; border-radius: 12px;
    display: flex; justify-content: center; align-items: center; margin-bottom: 24px;
}
.corp-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.corp-card p { font-size: 0.95rem; color: var(--text-light); }

/* Sectors Grid */
.sector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.sector-card {
    background: var(--bg-offwhite); border-radius: var(--radius);
    transition: var(--transition); border-left: 3px solid transparent;
    overflow: hidden; display: flex; flex-direction: column;
}
.sector-card:hover { background: var(--bg-white); box-shadow: var(--shadow-md); border-left-color: var(--primary); transform: translateY(-5px); }
.s-image { width: 100%; height: 200px; overflow: hidden; }
.s-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.sector-card:hover .s-image img { transform: scale(1.05); }
.sector-card-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.sector-card h4 { font-size: 1.2rem; margin-bottom: 8px; }
.sector-card p { font-size: 0.95rem; color: var(--text-light); margin: 0; }

/* Solutions Layout */
.sol-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature-list li {
    display: flex; align-items: center; gap: 12px;
    font-size: 1.05rem; font-weight: 500; margin-bottom: 16px; color: var(--text-dark);
}
.feature-list i { color: var(--accent); font-size: 1.2rem; }
.image-placeholder {
    width: 100%; aspect-ratio: 4/3; background: var(--primary);
    border-radius: var(--radius); display: flex; justify-content: center; align-items: center;
    color: var(--bg-white); font-size: 5rem; opacity: 0.9;
    box-shadow: var(--shadow-lg);
}

/* Partnership */
.part-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.part-card { text-align: center; padding: 30px; }
.p-icon {
    width: 70px; height: 70px; margin: 0 auto 20px;
    background: var(--bg-offwhite); color: var(--primary);
    font-size: 2rem; border-radius: 50%; display: flex; justify-content: center; align-items: center;
    transition: var(--transition);
}
.part-card:hover .p-icon { background: var(--primary); color: var(--bg-white); }
.part-card h4 { font-size: 1.2rem; margin-bottom: 12px; }
.part-card p { font-size: 0.95rem; color: var(--text-light); }

.compliance-box {
    display: flex; gap: 20px; background: rgba(15, 118, 110, 0.05);
    padding: 24px; border-radius: var(--radius); border: 1px solid rgba(15, 118, 110, 0.2);
}
.c-icon { font-size: 1.8rem; color: var(--primary); }
.c-text strong { display: block; font-family: var(--font-heading); font-size: 1.1rem; color: var(--text-dark); margin-bottom: 6px; }
.c-text p { font-size: 0.95rem; margin: 0; color: var(--text-main); }

/* Footer */
.footer { padding: 80px 0 30px; color: var(--text-light); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.f-brand h2 { color: var(--bg-white); font-size: 1.5rem; }
.f-brand h2 span { color: var(--accent); }
.f-brand p { font-size: 0.95rem; line-height: 1.5; }
.socials a {
    display: inline-flex; width: 40px; height: 40px; background: rgba(255,255,255,0.05);
    color: var(--bg-white); border-radius: 50%; justify-content: center; align-items: center;
    margin-right: 10px; transition: var(--transition);
}
.socials a:hover { background: var(--primary); }
.f-links h4, .f-contact h4 { color: var(--bg-white); font-size: 1.1rem; margin-bottom: 20px; }
.f-links ul li { margin-bottom: 12px; }
.f-links ul li a { font-size: 0.95rem; color: rgba(255,255,255,0.85); }
.f-links ul li a:hover { color: var(--accent); }
.f-contact ul li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 0.95rem; color: rgba(255,255,255,0.85); }
.f-contact i { color: var(--accent); }
.f-bottom { text-align: center; font-size: 0.9rem; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }

/* Animations */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
/* Safety fallback: if JS fails to add .active, content will still show on mobile */
@media (max-width: 768px) {
    .reveal { opacity: 1; transform: translateY(0); transition: none; }
}
.stagger-1 { transition-delay: 0.1s; } .stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; } .stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; } .stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; } .stagger-8 { transition-delay: 0.8s; }
.stagger-9 { transition-delay: 0.9s; }

/* Responsive Media Queries (Mobile-First Constraints) */
@media (max-width: 1024px) {
    .hero-container, .sol-layout { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-desc { margin: 0 auto 32px; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; flex-wrap: wrap; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .feature-list li { justify-content: center; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero { padding-top: 100px; padding-bottom: 40px; min-height: auto; }
    .hero-cta { flex-direction: column; width: 100%; max-width: 320px; }
    .hero-cta .btn { width: 100%; }
    .visual-card { max-width: 320px; }
    
    .nav-list, .nav-buttons { display: none; }
    .mobile-toggle { display: block; }
    
    /* Clean Flexbox Mobile Menu - Premium Card Style */
    body.menu-open { overflow: hidden; }
    
    /* Dim background overlay */
    body.menu-open::before {
        content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(15, 23, 42, 0.6) !important; backdrop-filter: blur(4px); z-index: 998;
    }
    
    body.menu-open .header { background: transparent !important; padding: 20px !important; box-shadow: none !important; border: none !important; height: auto !important; min-height: 10vh !important; }
    body.menu-open .header-container { 
        background: var(--bg-dark) !important; 
        border-radius: 24px !important; 
        padding: 24px !important; 
        box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5) !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
        flex-direction: column !important; align-items: stretch !important; justify-content: flex-start !important;
        max-height: calc(100vh - 40px) !important; overflow-y: auto !important;
        position: relative !important; z-index: 999 !important;
    }
    
    body.menu-open .logo { order: 1; align-self: flex-start; margin-bottom: 20px; }
    body.menu-open .logo h1 { color: #ffffff; }
    
    body.menu-open .mobile-toggle { 
        order: 1; position: absolute; top: 20px; right: 20px; 
        color: #ffffff; background: rgba(255,255,255,0.05); 
        width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; 
        border-radius: 50%; font-size: 1.2rem; border: 1px solid rgba(255,255,255,0.1); 
    }
    
    body.menu-open .nav-menu { display: block; width: 100%; order: 3; margin-top: 5px; }
    body.menu-open .nav-list { display: flex; flex-direction: column; width: 100%; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px; }
    body.menu-open .nav-list li { margin-bottom: 2px; }
    body.menu-open .nav-list li a { 
        display: flex; align-items: center; padding: 12px 16px; 
        font-size: 1.05rem; color: #CBD5E1; font-weight: 500; 
        border-radius: 12px; transition: var(--transition);
    }
    body.menu-open .nav-list li a::after { display: none; }
    body.menu-open .nav-list li a i { display: inline-flex; justify-content: center; width: 28px; font-size: 1.15rem; color: var(--primary-light); margin-right: 12px; transition: var(--transition); }
    body.menu-open .nav-list li a:hover, body.menu-open .nav-list li a:active { background: rgba(16, 185, 129, 0.1); color: #ffffff; }
    body.menu-open .nav-list li a:hover i, body.menu-open .nav-list li a:active i { color: var(--accent); transform: scale(1.1); }
    
    body.menu-open .nav-buttons { display: flex; flex-direction: column; width: 100%; order: 4; gap: 12px; margin-top: 15px; position: relative; z-index: 100; pointer-events: auto; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; }
    body.menu-open .nav-buttons a { pointer-events: auto; width: 100%; text-align: center; }
    body.menu-open .nav-buttons .btn-outline { border-color: rgba(255,255,255,0.2); color: #ffffff; background: rgba(255,255,255,0.03); }
    body.menu-open .nav-buttons .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #ffffff; }
    body.menu-open .nav-buttons .btn-primary { background: linear-gradient(135deg, #10B981, #059669); border: none; box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.4); color: #fff; }
    
    .corp-grid, .sector-grid, .part-grid { grid-template-columns: 1fr; gap: 20px; }
    
    .compliance-box { flex-direction: column; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 480px) {
    /* Strict 360px-430px optimization */
    .container { padding: 0 16px; }
    .section-padding { padding: 40px 0; } /* Reduced excessive vertical spacing */
    .hero { padding-top: 80px; }
    .hero-title { font-size: 2rem; }
    .section-heading h2 { font-size: 1.8rem; }
    .corp-card, .part-card { padding: 16px 16px; } /* Compact cards */
    .sector-card-body { padding: 16px; }
    .s-image { height: 180px; }
    .footer { padding: 40px 0 20px; } /* Compact footer spacing */
}

/* ==========================================================================
   USER DASHBOARD STYLES (Mobile-First)
   ========================================================================== */

/* Hide global header/footer specifically on dashboard page */
body.dashboard-page .header, 
body.dashboard-page .footer,
body.dashboard-page .ref-notice-bar {
    display: none !important;
}

body.dashboard-page {
    background-color: var(--bg-offwhite);
    padding-bottom: 80px; /* Space for bottom nav */
    padding-top: 70px; /* Space for top header */
}

/* Dashboard Top Header */
.dash-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: var(--bg-dark);
    color: var(--bg-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.dash-header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}
.dash-header-logo span {
    color: var(--primary-light);
}
.dash-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.dash-icon-btn {
    position: relative;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    background: none;
    border: none;
}
.dash-icon-btn:hover {
    color: var(--bg-white);
}
.dash-badge {
    position: absolute;
    top: -5px; right: -5px;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    border: 2px solid var(--bg-dark);
}
.dash-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    border: 2px solid var(--primary-light);
}

/* Dashboard Container */
.dash-container {
    width: 100%;
    max-width: 430px; /* Mobile strict max width */
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Desktop override to spread out slightly */
@media (min-width: 768px) {
    .dash-container {
        max-width: 1000px;
        padding: 30px;
    }
}

/* Dashboard Cards */
.dash-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
}

.dash-card-dark {
    background: linear-gradient(135deg, var(--bg-dark), #1e293b);
    color: var(--bg-white);
    border: 1px solid rgba(255,255,255,0.05);
}

.dash-card-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-white);
    box-shadow: 0 10px 20px -5px rgba(15, 118, 110, 0.3);
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.dash-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: inherit;
    margin: 0;
}

/* Welcome Section */
.welcome-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.welcome-card h2 {
    font-size: 1.5rem;
    color: var(--bg-white);
    margin: 0;
}
.welcome-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}
.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(52, 211, 153, 0.15);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
    margin-top: 10px;
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.overview-item {
    background: var(--bg-offwhite);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.overview-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}
.overview-val {
    font-size: 1.3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-dark);
}
.overview-val.emerald { color: var(--primary); }
.overview-val.navy { color: var(--bg-dark); }

/* Quick Actions Grid */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    text-align: center;
}
.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--bg-offwhite);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    color: var(--primary);
    transition: var(--transition);
}
.action-btn:hover .action-icon {
    background: var(--primary);
    color: white;
}
.action-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-main);
}

/* List Items (Network & Activity) */
.list-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-offwhite);
    border-radius: 12px;
}
.list-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.list-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
}
.list-text h4 {
    font-size: 0.95rem;
    margin: 0 0 2px;
}
.list-text p {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
}
.list-val {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
}
.list-val.success { color: var(--primary); }

/* Opportunity Card Override for Dashboard */
.dash-opp-card {
    background-image: url('../images/business_opportunity.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 30px 20px;
    border-radius: 16px;
    color: white;
    overflow: hidden;
}
.dash-opp-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(15,23,42,0.9), rgba(15,23,42,0.5));
    z-index: 1;
}
.dash-opp-content {
    position: relative;
    z-index: 2;
}
.dash-opp-content h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.dash-opp-content p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 15px;
    max-width: 250px;
}
.dash-btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    border: none;
    font-weight: 600;
}

/* Bottom Navigation */
.dash-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background: var(--bg-white);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 10px;
    border-top: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 15px rgba(0,0,0,0.03);
}

/* Desktop constrain for bottom nav */
@media (min-width: 768px) {
    .dash-bottom-nav {
        max-width: 430px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 20px 20px 0 0;
        border-left: 1px solid rgba(0,0,0,0.05);
        border-right: 1px solid rgba(0,0,0,0.05);
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #94a3b8;
    cursor: pointer;
    flex: 1;
    padding: 8px 0;
    -webkit-tap-highlight-color: transparent;
}
.nav-item i {
    font-size: 1.4rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.nav-item.active {
    color: var(--primary);
}
.nav-item.active i {
    transform: translateY(-3px) scale(1.1);
    color: var(--primary);
    text-shadow: 0 4px 10px rgba(15, 118, 110, 0.4);
}

/* ==========================================================================
   MLM DASHBOARD EXTENDED STYLES
   ========================================================================== */

/* Welcome Card MLM Premium */
.premium-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 22px 20px;
    color: white;
    box-shadow: 0 12px 25px -5px rgba(15, 118, 110, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 5px;
}
.welcome-wave {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 0% 100%, rgba(52, 211, 153, 0.1) 0%, transparent 50%);
    opacity: 0.8;
    z-index: 1;
}
.welcome-left, .welcome-right {
    position: relative;
    z-index: 2;
}
.welcome-greeting {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 2px;
    font-weight: 500;
}
.welcome-name {
    font-size: 1.45rem;
    margin: 0 0 10px 0;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    word-break: break-word;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.user-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-family: monospace;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.05);
}
.premium-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(15, 118, 110, 0.4));
    color: #34d399;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(52, 211, 153, 0.3);
    box-shadow: 0 4px 15px rgba(52, 211, 153, 0.2);
    min-width: 70px;
}
.premium-badge i {
    font-size: 1.6rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.premium-badge span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Titles */
.section-title { font-size: 1.1rem; font-weight: 700; color: var(--bg-dark); margin: 5px 0 -5px; padding-left: 5px; border-left: 4px solid var(--primary); }

/* Income Grid */
.mlm-income-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.income-card { position: relative; padding: 16px 14px; border-radius: 16px; display: flex; flex-direction: column; justify-content: center; gap: 6px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.06); min-height: 95px; }
.income-card .bg-icon { position: absolute; right: -10px; bottom: -10px; font-size: 4rem; opacity: 0.1; }
.income-card.primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; }
.income-card.total { background: linear-gradient(135deg, var(--bg-dark), #1e293b); color: white; }
.income-card.daily, .income-card.monthly { background: white; border: 1px solid rgba(0,0,0,0.05); }
.inc-label { font-size: 0.8rem; opacity: 0.9; font-weight: 500; }
.income-card.daily .inc-label, .income-card.monthly .inc-label { color: var(--text-light); }
.inc-val { font-size: 1.4rem; font-weight: 800; font-family: var(--font-heading); }
.income-card.daily .inc-val, .income-card.monthly .inc-val { color: var(--text-dark); }
.income-card.daily .bg-icon, .income-card.monthly .bg-icon { color: var(--primary); opacity: 0.05; }

/* Business Overview Grid */
.mlm-biz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.biz-item { padding: 14px 12px; border-radius: 12px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; background: white; border: 1px solid rgba(0,0,0,0.03); box-shadow: 0 4px 10px rgba(0,0,0,0.04); min-height: 85px; }
.biz-item.left-leg { border-left: 4px solid #10B981; }
.biz-item.right-leg { border-left: 4px solid #3B82F6; }
.biz-item.neutral { border-left: 4px solid var(--primary); }
.biz-label { font-size: 0.75rem; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.2; }
.biz-val { font-size: 1.15rem; font-weight: 800; color: var(--bg-dark); line-height: 1.1; word-break: break-word; }

/* Binary Visual Mockup */
.binary-visual-mockup { text-align: center; padding: 20px 0; background: var(--bg-offwhite); border-radius: 12px; margin-top: 15px; }
.node { display: inline-block; padding: 10px; background: white; border-radius: 10px; box-shadow: var(--shadow-sm); font-size: 0.8rem; font-weight: 600; min-width: 80px; position: relative; border: 2px solid transparent; }
.node.root { border-color: var(--primary); color: var(--primary); margin-bottom: 20px; }
.node.root::after { content: ''; position: absolute; bottom: -20px; left: 50%; width: 2px; height: 20px; background: #cbd5e1; }
.branches { display: flex; justify-content: space-around; position: relative; }
.branches::before { content: ''; position: absolute; top: -2px; left: 25%; right: 25%; height: 2px; background: #cbd5e1; }
.node-leg { position: relative; padding-top: 15px; }
.node-leg::before { content: ''; position: absolute; top: 0; left: 50%; width: 2px; height: 15px; background: #cbd5e1; }
.node.left { border-color: #10B981; color: #10B981; }
.node.right { border-color: #3B82F6; color: #3B82F6; }
.node i { font-size: 1.5rem; margin-bottom: 5px; }
.node small { display: block; margin-top: 4px; color: var(--text-light); font-size: 0.7rem; }
.dash-btn-outline-sm { padding: 5px 10px; font-size: 0.75rem; border: 1px solid var(--primary); color: var(--primary); border-radius: 6px; text-decoration: none; font-weight: 600; }

/* Referral Section */
.ref-input-group { display: flex; gap: 8px; margin-top: 10px; }
.ref-input { flex: 1; padding: 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: var(--bg-offwhite); color: var(--text-dark); font-family: monospace; font-size: 0.85rem; }
.ref-copy-btn, .ref-share-btn { width: 42px; height: 42px; border: none; border-radius: 10px; display: flex; justify-content: center; align-items: center; color: white; cursor: pointer; transition: 0.3s; }
.ref-copy-btn { background: var(--primary); }
.ref-share-btn { background: var(--bg-dark); }
.ref-copy-btn:active { transform: scale(0.95); }

/* Actions Grid (8 items) */
.mlm-actions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px 10px; }

/* MLM Sidebar Offcanvas */
.mlm-sidebar-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}
.mlm-sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mlm-sidebar {
    position: fixed;
    top: 0; left: -300px;
    width: 280px; height: 100vh;
    background: var(--bg-white);
    z-index: 1002;
    transition: 0.3s ease;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.mlm-sidebar.open {
    left: 0;
}

.mlm-sidebar-header {
    background: var(--bg-dark);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mlm-sidebar-menu {
    display: flex;
    flex-direction: column;
    padding: 15px 0;
}
.mlm-sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
    font-size: 0.95rem;
}
.mlm-sidebar-menu a i {
    width: 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
}
.mlm-sidebar-menu a:hover, .mlm-sidebar-menu a.active {
    background: rgba(15, 118, 110, 0.05);
    color: var(--primary);
    border-left: 4px solid var(--primary);
    padding-left: 21px; /* compensate for border */
}
.mlm-sidebar-menu a:hover i, .mlm-sidebar-menu a.active i {
    color: var(--primary);
}
.mlm-sidebar-menu a.logout-link {
    color: #ef4444;
    margin-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
}

/* Packages Page Styling */
.mlm-packages-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px 0;
}
.mlm-package-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 118, 110, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mlm-package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(15, 118, 110, 0.15);
}
.mlm-package-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(15,118,110,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}
.pkg-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.pkg-icon {
    width: 45px; height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.3);
}
.pkg-title {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 700;
    margin: 0;
}
.pkg-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
}
.pkg-price .currency {
    font-size: 1.2rem;
    margin-top: 5px;
    margin-right: 2px;
}
.pkg-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}
.pkg-features li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}
.pkg-features li:last-child {
    border-bottom: none;
}
.feat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}
.feat-val {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.95rem;
}
.pkg-buy-btn {
    width: 100%;
    padding: 15px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(15, 118, 110, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.pkg-buy-btn:hover {
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.4);
    transform: translateY(-2px);
}

/* Activation Modal */
.activation-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 25, 47, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}
.activation-modal-overlay.show {
    opacity: 1; visibility: visible;
}
.activation-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -40%);
    background: var(--bg-white);
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}
.activation-modal.show {
    opacity: 1; visibility: visible;
    transform: translate(-50%, -50%);
}
.act-modal-header {
    background: linear-gradient(135deg, var(--bg-dark), #1e293b);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.act-modal-header h3 { margin: 0; font-size: 1.1rem; }
.act-modal-header button { color: white; opacity: 0.7; }
.act-modal-header button:hover { opacity: 1; }
.act-modal-body { padding: 20px; }
.act-detail { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 0.95rem; }
.act-detail span { color: var(--text-light); }
.act-detail strong { color: var(--text-dark); font-weight: 700; }
.act-divider { height: 1px; background: rgba(0,0,0,0.05); margin: 15px 0; }
.act-error { color: #ef4444; background: rgba(239, 68, 68, 0.1); padding: 10px; border-radius: 8px; font-size: 0.85rem; margin-top: 15px; text-align: center; }
.act-modal-footer { padding: 15px 20px 20px; display: flex; gap: 10px; }
.act-cancel-btn, .act-confirm-btn { flex: 1; padding: 12px; border-radius: 12px; font-weight: 600; cursor: pointer; border: none; transition: 0.2s; }
.act-cancel-btn { background: var(--bg-offwhite); color: var(--text-dark); }
.act-confirm-btn { background: var(--primary); color: white; }
.act-cancel-btn:hover { background: #e2e8f0; }
.act-confirm-btn:hover { background: var(--primary-dark); }

/* ==========================================================================
   BINARY TREE & PV TRACKING STYLES
   ========================================================================== */

/* PV Summary Grid */
.pv-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}
.pv-card {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 12px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.pv-card.left-pv-card { border-left: 3px solid var(--primary); }
.pv-card.right-pv-card { border-right: 3px solid var(--primary); align-items: flex-end;}
.pv-card.matched-pv-card { border-bottom: 3px solid #34d399; align-items: center; text-align: center; background: #0f172a; }

.pv-icon {
    position: absolute;
    opacity: 0.05;
    font-size: 3.5rem;
    top: 50%;
    transform: translateY(-50%);
}
.left-pv-card .pv-icon { right: -5px; color: var(--primary); }
.right-pv-card .pv-icon { left: -5px; color: var(--primary); }
.matched-pv-card .pv-icon { color: #34d399; font-size: 2.5rem; }

.pv-info span {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pv-info strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 4px 0;
}
.pv-unmatched {
    font-size: 0.65rem;
    background: rgba(255,255,255,0.08);
    padding: 3px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
    color: #cbd5e1;
}

/* Binary Tree Visual (Flex based) */
.binary-tree-container {
    width: 100%;
    overflow-x: auto;
}
.tree-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
    min-width: 100%;
    padding: 10px;
}
.tree-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 10px;
}
.tree-children > .tree-node {
    flex: 1 0 auto;
}
.tree-children {
    display: flex;
    justify-content: center;
    position: relative;
    padding-top: 25px;
    width: 100%;
}
/* Connecting Lines */
.tree-children::before {
    content: '';
    position: absolute;
    top: 0; left: 25%; right: 25%;
    height: 1px;
    background: #cbd5e1;
}
.tree-node > .tree-children > .tree-node::before {
    content: '';
    position: absolute;
    top: -25px; left: 50%;
    width: 1px; height: 25px;
    background: #cbd5e1;
    transform: translateX(-50%);
}
/* Line from parent down to the horizontal bar */
.tree-node > .node-content::after {
    content: '';
    position: absolute;
    bottom: -10px; left: 50%;
    width: 1px; height: 10px;
    background: #cbd5e1;
    transform: translateX(-50%);
}
.tree-node:not(:has(.tree-children)) > .node-content::after {
    display: none;
}

/* Node Styling */
.node-content {
    background: var(--bg-white);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    position: relative;
    z-index: 2;
    transition: 0.2s;
}
.node-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(15, 118, 110, 0.15);
    border-color: var(--primary-light);
}
.node-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: white;
}
.active-node .node-icon { background: linear-gradient(135deg, #10b981, #059669); }
.inactive-node .node-icon { background: linear-gradient(135deg, #94a3b8, #64748b); }
.active-node { border-color: #10b981; }
.inactive-node { opacity: 0.8; }

.node-details { display: flex; flex-direction: column; align-items: center; }
.node-code { font-size: 0.8rem; color: var(--bg-dark); font-weight: 700; }
.node-name { font-size: 0.7rem; color: var(--text-light); margin: 2px 0; }
.node-pkg { font-size: 0.65rem; font-weight: 600; padding: 2px 5px; border-radius: 4px; }
.active-node .node-pkg { background: rgba(16, 185, 129, 0.1); color: #059669; }
.inactive-node .node-pkg { background: rgba(148, 163, 184, 0.1); color: #64748b; }

.empty-node .node-content {
    background: transparent;
    border: 1px dashed #cbd5e1;
    box-shadow: none;
    opacity: 0.5;
    color: #94a3b8;
    justify-content: center;
}
.empty-node .node-content i { font-size: 1.2rem; margin-bottom: 4px; }

/* COMPACT MOBILE UI OVERRIDES */
@media (max-width: 768px) {
    /* Premium Stacked Fintech Cards */
    .pv-summary-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; }
    .pv-card { 
        padding: 12px 16px; 
        border-radius: 12px; 
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center; 
        text-align: left; 
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
        background: linear-gradient(135deg, #1e293b, #111827);
    }
    .pv-card.right-pv-card { flex-direction: row-reverse; text-align: right; }
    .pv-card.matched-pv-card { 
        flex-direction: column; 
        text-align: center; 
        justify-content: center; 
        padding: 16px; 
        background: linear-gradient(135deg, #0f172a, #020617); 
        border-bottom: 3px solid #34d399; 
    }
    
    .pv-icon { font-size: 2.2rem; position: relative; transform: none; opacity: 0.15; }
    .matched-pv-card .pv-icon { font-size: 2.5rem; opacity: 0.2; margin-bottom: 8px; }
    
    .pv-info { display: flex; flex-direction: column; }
    .pv-info span { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.5px; color: #94a3b8; }
    .pv-info strong { font-size: 1.3rem; font-weight: 800; margin: 2px 0; color: #fff; }
    
    .pv-unmatched { 
        font-size: 0.6rem; 
        padding: 3px 8px; 
        margin-top: 4px; 
        background: rgba(255,255,255,0.08); 
        border-radius: 12px; 
        align-self: flex-start;
    }
    .right-pv-card .pv-unmatched { align-self: flex-end; }
    .matched-pv-card .pv-unmatched { margin: 8px auto 0; align-self: center; }

    /* Dashboard Global Padding Override for Binary Tree */
    .dashboard-page .dash-container { padding-left: 5px; padding-right: 5px; }
    
    /* Binary Tree Ultra-Compact Setup */
    .binary-tree-container { padding-bottom: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .tree-wrapper { padding: 15px 5px; width: max-content; margin: 0 auto; }
    
    .tree-node { padding: 0 4px; }
    .tree-children { padding-top: 18px; }
    .tree-children::before { height: 1px; }
    .tree-node > .tree-children > .tree-node::before { top: -18px; height: 18px; width: 1px; }
    .tree-node > .node-content::after { bottom: -10px; height: 10px; width: 1px; }
    
    .node-content { 
        min-width: 72px; 
        max-width: 80px; 
        padding: 8px 4px; 
        border-radius: 8px; 
        border: 1px solid #cbd5e1; 
        box-shadow: 0 2px 6px rgba(0,0,0,0.06); 
    }
    .node-icon { width: 28px; height: 28px; font-size: 0.85rem; margin-bottom: 4px; }
    .node-code { font-size: 0.65rem; font-weight: 700; color: #1e293b; }
    .node-name { font-size: 0.55rem; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 68px; font-weight: 500; }
    .node-pkg { font-size: 0.5rem; padding: 2px 4px; border-radius: 4px; font-weight: 600; }
    
    .empty-node .node-content { min-width: 72px; max-width: 80px; padding: 12px 2px; }
    .empty-node .node-content i { font-size: 1.1rem; margin-bottom: 4px; }
}

/* Hide Free Hostinger Overlay */
img[alt="www.000webhost.com"], div[style*="z-index:9999999"], div[style*="z-index: 9999999"], .disclaimer { display: none !important; }
