/* ==========================================================================
   HealAura.live - Luxury Ayurvedic Wellness & 2x3 Board MLM Custom Theme
   ========================================================================== */

:root {
    --ha-primary-dark: #041f11;
    --ha-primary: #062b18;
    --ha-primary-light: #0b4d2c;
    --ha-emerald: #10b981;
    --ha-emerald-glow: rgba(16, 185, 129, 0.35);
    --ha-gold: #d4af37;
    --ha-gold-light: #f7d070;
    --ha-gold-glow: rgba(212, 175, 55, 0.4);
    --ha-surface: #0a331e;
    --ha-card-bg: rgba(6, 43, 24, 0.85);
    --ha-card-border: rgba(212, 175, 55, 0.25);
    --ha-text-light: #f8fafc;
    --ha-text-muted: #94a3b8;
    --ha-font: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    font-family: var(--ha-font);
    background-color: #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
}

/* Luxury Glowing Header & Navbar */

.ha-navbar {
    background: linear-gradient(135deg, var(--ha-primary-dark) 0%, var(--ha-primary) 100%) !important;
    border-bottom: 2px solid var(--ha-gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

.ha-navbar .navbar-brand {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.ha-navbar .navbar-brand img {
    height: 48px;
    width: auto;
    max-height: 52px;
    object-fit: contain;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.45));
    transition: transform 0.25s ease;
}

.ha-navbar .navbar-brand:hover img {
    transform: scale(1.02);
}

@media (max-width: 1399.98px) {
    .ha-navbar .navbar-brand img {
        height: 44px;
        max-height: 48px;
    }
}

@media (max-width: 991.98px) {
    .ha-navbar .navbar-brand img {
        height: 38px;
        max-height: 42px;
    }
}

.ha-nav-link {
    color: #f1f5f9 !important;
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.45rem 0.75rem !important;
    transition: all 0.25s ease;
    border-radius: 6px;
    white-space: nowrap;
}

@media (max-width: 1399.98px) {
    .ha-nav-link {
        font-size: 0.82rem;
        padding: 0.4rem 0.6rem !important;
    }
}

.ha-nav-link:hover,
.ha-nav-link.active {
    color: var(--ha-gold-light) !important;
    background: rgba(212, 175, 55, 0.12);
}

.dropdown-menu.ha-dropdown {
    background: var(--ha-primary);
    border: 1px solid var(--ha-gold);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.dropdown-menu.ha-dropdown .dropdown-item {
    color: #f8fafc;
    transition: all 0.2s ease;
}

.dropdown-menu.ha-dropdown .dropdown-item:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--ha-gold-light);
}

/* AI Animated Glowing Background */

.ha-hero {
    background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.15) 0%, transparent 40%), radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.12) 0%, transparent 40%), linear-gradient(135deg, var(--ha-primary-dark) 0%, #06381e 50%, var(--ha-primary-dark) 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 90px 0 100px;
}

.ha-hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
    filter: blur(50px);
    animation: haPulse 8s infinite alternate ease-in-out;
}

@keyframes haPulse {
    0% {
        transform: scale(0.9) translate(0, 0);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.15) translate(-30px, 30px);
        opacity: 0.75;
    }
}

.ha-badge-gold {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.1) 100%);
    border: 1px solid var(--ha-gold);
    color: var(--ha-gold-light);
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ha-btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #aa8214 100%);
    color: #041f11 !important;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.75rem;
    box-shadow: 0 4px 15px var(--ha-gold-glow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ha-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(212, 175, 55, 0.6);
    color: #000 !important;
}

.ha-btn-emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.75rem;
    box-shadow: 0 4px 15px var(--ha-emerald-glow);
    transition: all 0.3s ease;
}

.ha-btn-emerald:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.55);
}

/* Glassmorphism Cards */

.ha-card-glass {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.ha-card-glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(6, 43, 24, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
}

.ha-card-dark {
    background: linear-gradient(145deg, var(--ha-card-bg) 0%, #041b0e 100%);
    border: 1px solid var(--ha-card-border);
    border-radius: 16px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Interactive 2x3 Board Tree Styling */

.ha-board-tree {
    background: linear-gradient(135deg, #02140a 0%, #042112 50%, #02140a 100%);
    border: 2px solid var(--ha-gold);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow-x: auto;
}

.ha-tree-node {
    background: rgba(6, 43, 24, 0.95);
    border: 2px solid var(--ha-gold);
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    position: relative;
}

.ha-tree-node:hover {
    transform: scale(1.05);
    border-color: var(--ha-gold-light);
    box-shadow: 0 10px 25px var(--ha-gold-glow);
    z-index: 10;
}

.ha-tree-node.vacant {
    background: rgba(2, 20, 10, 0.6);
    border: 2px dashed rgba(212, 175, 55, 0.4);
    color: rgba(255, 255, 255, 0.6);
}

.ha-tree-node.vacant:hover {
    border-color: var(--ha-emerald);
    color: #ffffff;
}

.ha-tree-node.leader-node {
    background: linear-gradient(135deg, #1f472f 0%, #0a331e 100%);
    border: 3px solid #ffd700;
    box-shadow: 0 0 25px var(--ha-gold-glow);
}

.ha-avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--ha-gold) 0%, #8c6e15 100%);
    color: #041f11;
    border: 2px solid #ffffff;
}

.ha-avatar-circle.leader {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
    font-size: 1.5rem;
}

.ha-avatar-circle.vacant {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

/* Connecting Tree Lines */

.ha-tree-connector {
    position: relative;
    width: 2px;
    height: 25px;
    background: var(--ha-gold);
    margin: 0 auto;
    opacity: 0.65;
}

/* DataTables Modern Dropdown Styling */

.dt-buttons-center {
    display: flex;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.dt-export-dropdown-btn {
    background: linear-gradient(135deg, var(--ha-primary) 0%, var(--ha-primary-light) 100%) !important;
    color: var(--ha-gold-light) !important;
    border: 1px solid var(--ha-gold) !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.5rem 1.4rem;
}

/* Footer Styling */

.ha-footer {
    background: linear-gradient(180deg, var(--ha-primary-dark) 0%, #021209 100%);
    color: #e2e8f0;
    border-top: 3px solid var(--ha-gold);
    padding: 70px 0 25px;
}

.ha-footer h5 {
    color: var(--ha-gold-light);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
}

.ha-footer h5::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--ha-gold);
    margin-top: 8px;
    border-radius: 2px;
}

.ha-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ha-footer a:hover {
    color: var(--ha-gold-light);
    padding-left: 5px;
}

.ha-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 50px;
    font-size: 0.88rem;
}

/* Mobile Responsiveness */

@media (max-width: 768px) {
    .ha-hero {
        padding: 60px 0 70px;
    }
    .ha-tree-node {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
    .ha-avatar-circle {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   Admin Area: Corporate Two-Tier Header Suite (Top Controls + Full Width Nav)
   ========================================================================== */

.ha-admin-header {
    background: #081711 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.45) !important;
    z-index: 1030;
}

/* Top Utility & Brand Bar: Logo on left, Controls on right */

.ha-admin-topbar {
    background: linear-gradient(180deg, #0e271d 0%, #081a12 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.ha-admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none !important;
    padding: 0 !important;
}

.ha-admin-brand img {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
}

.ha-admin-brand:hover img {
    transform: scale(1.02);
}

.ha-corp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.28);
    line-height: 1;
}

/* Full Width Navigation Bar (Row 2) */

.ha-admin-nav-bar {
    background: #091a13 !important;
    background: linear-gradient(180deg, #0a1f16 0%, #06150e 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    min-height: 48px;
}

.ha-admin-nav-bar .ha-admin-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
}

.ha-admin-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.72rem !important;
    font-size: 0.84rem;
    font-weight: 500;
    color: #cbd5e1 !important;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-decoration: none;
}

@media (max-width: 1400px) {
    .ha-admin-nav-link {
        font-size: 0.78rem;
        padding: 0.38rem 0.52rem !important;
        gap: 0.35rem;
    }
    .ha-admin-nav-link i.ha-nav-icon {
        font-size: 0.78rem;
    }
}

.ha-admin-nav-link i.ha-nav-icon {
    font-size: 0.85rem;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.ha-admin-nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.ha-admin-nav-link:hover i.ha-nav-icon {
    color: #34d399;
}

.ha-admin-nav-link.active {
    color: #ffffff !important;
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.32) !important;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ha-admin-nav-link.active i.ha-nav-icon {
    color: #34d399 !important;
}

/* Suppress Bootstrap 5 default ::after caret to eliminate duplicate arrow */

.ha-admin-header .dropdown-toggle::after,
.dt-export-dropdown-btn.dropdown-toggle::after,
.buttons-collection.dropdown-toggle::after,
.dt-buttons .dropdown-toggle::after {
    display: none !important;
}

.ha-nav-caret {
    font-size: 0.65rem;
    opacity: 0.6;
    margin-left: 4px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.dropdown.show .ha-nav-caret,
.nav-item.dropdown:hover .ha-nav-caret {
    transform: rotate(180deg);
    opacity: 1;
}

/* Corporate Dropdown Menus */

.dropdown-menu.ha-admin-dropdown {
    background: #0d2119 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.06) !important;
    padding: 0.5rem !important;
    min-width: 250px;
    margin-top: 0.45rem !important;
    animation: haDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes haDropdownFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu.ha-admin-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.52rem 0.75rem;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.83rem;
    font-weight: 500;
    transition: all 0.15s ease;
    text-decoration: none;
}

.dropdown-menu.ha-admin-dropdown .dropdown-item .ha-dd-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #34d399;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.dropdown-menu.ha-admin-dropdown .dropdown-item:hover {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #ffffff !important;
    transform: translateX(2px);
}

.dropdown-menu.ha-admin-dropdown .dropdown-item:hover .ha-dd-icon {
    background: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.dropdown-menu.ha-admin-dropdown hr.dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0.35rem 0.5rem;
}

/* User Profile Head in Dropdown */

.ha-user-head {
    padding: 0.55rem 0.75rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.35rem;
}

.ha-user-head-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.ha-user-head-role {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 2px;
}

.dropdown-menu.ha-admin-dropdown .ha-item-danger:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #fca5a5 !important;
}

.dropdown-menu.ha-admin-dropdown .ha-item-danger:hover .ha-dd-icon {
    background: rgba(239, 68, 68, 0.25) !important;
    color: #ef4444 !important;
}

/* Right Controls: IST Capsule */

.ha-clock-capsule {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.ha-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: haPulseDot 2s infinite;
}

@keyframes haPulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.ha-clock-tz {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    line-height: 1;
}

.ha-clock-val {
    font-size: 0.78rem;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

/* Front Site Ghost Button */

.ha-btn-ghost-site {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    transition: all 0.2s ease;
}

.ha-btn-ghost-site:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Corporate User Menu Trigger */

.ha-corp-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.32rem 0.7rem 0.32rem 0.4rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ha-corp-user-btn:hover,
.dropdown.show .ha-corp-user-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
}

.ha-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
    flex-shrink: 0;
}

.ha-user-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f8fafc;
    line-height: 1.1;
}

.ha-user-role {
    font-size: 0.64rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1;
    margin-top: 2px;
}

/* ==========================================================================
   Member Dashboard: Attractive Action Buttons Suite
   ========================================================================== */

.ha-btn-add-fund {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 10px;
    background: #ffffff;
    color: #064e3b !important;
    border: 1.5px solid #10b981;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.15);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    vertical-align: middle;
}

.ha-btn-add-fund i {
    font-size: 0.95rem;
    color: #10b981;
    transition: all 0.2s ease;
}

.ha-btn-add-fund:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    border-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.ha-btn-add-fund:hover i {
    color: #ffffff !important;
    transform: scale(1.1);
}

.ha-btn-action-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    border: 1.5px solid #059669;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    vertical-align: middle;
}

.ha-btn-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.5);
    color: #ffffff !important;
}

.ha-btn-pill-xs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* ==========================================================================
   Member Referral Social Sharer & AI Content Card Suite
   ========================================================================== */

.ha-social-sharer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.ha-social-sharer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
    color: #ffffff !important;
}

.ha-social-wa {
    background: #25D366;
}

.ha-social-wa:hover {
    background: #1ebd5a;
}

.ha-social-tg {
    background: #0088cc;
}

.ha-social-tg:hover {
    background: #0077b5;
}

.ha-social-fb {
    background: #1877F2;
}

.ha-social-fb:hover {
    background: #1464cc;
}

.ha-social-x {
    background: #000000;
}

.ha-social-x:hover {
    background: #222222;
}

.ha-social-li {
    background: #0A66C2;
}

.ha-social-li:hover {
    background: #08529c;
}

.ha-social-mail {
    background: #475569;
}

.ha-social-mail:hover {
    background: #334155;
}

.ha-ai-pitch-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--ha-emerald);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    position: relative;
}

.ha-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    background: rgba(16, 185, 129, 0.12);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.ha-ai-pitch-text {
    font-family: inherit;
    font-size: 0.83rem;
    line-height: 1.6;
    color: #334155;
    white-space: pre-line;
    margin-bottom: 0;
}

/* ==========================================================
   RESPONSIVE VIEWPORT & COMPACT TYPOGRAPHY TUNING
   ========================================================== */

/* Fluid Viewport Base Scale */

@media (max-width: 1400px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 1200px) {
    html {
        font-size: 14.5px;
    }
}

@media (max-width: 991.98px) {
    html {
        font-size: 14px;
    }
}

/* KPI Numbers & Currency Display Protection */

.ha-kpi-amount {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1400px) {
    .ha-kpi-amount {
        font-size: 1.18rem;
    }
}

@media (max-width: 1200px) {
    .ha-kpi-amount {
        font-size: 1.08rem;
    }
}

/* Card Padding Tuning on Laptop Resolutions */

@media (max-width: 1400px) {
    .ha-card-glass {
        padding: 0.9rem !important;
        border-radius: 14px;
    }
    .ha-card-dark {
        padding: 1.25rem !important;
        border-radius: 14px;
    }
}

/* Micro Action Buttons */

.ha-btn-pill-xs {
    padding: 0.22rem 0.55rem !important;
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
    border-radius: 6px !important;
    white-space: nowrap;
}

/* Tree Canvas Viewport Scaling & Custom Thin Scrollbar */

.ha-board-canvas,
.ha-genealogy-container {
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: #d4af37 rgba(5, 30, 16, 0.8);
}

.ha-board-canvas::-webkit-scrollbar,
.ha-genealogy-container::-webkit-scrollbar {
    height: 6px;
}

.ha-board-canvas::-webkit-scrollbar-thumb,
.ha-genealogy-container::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 3px;
}

.ha-board-canvas::-webkit-scrollbar-track,
.ha-genealogy-container::-webkit-scrollbar-track {
    background: rgba(4, 25, 14, 0.6);
}