/**
 * Zivora Jewels — Global Responsive Overrides
 * Public store + Member portal + Office admin
 */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
body {
    overflow-x: hidden;
}
img, video, iframe, svg {
    max-width: 100%;
    height: auto;
}
/* Keep brand logos at explicit CSS heights (global img rule must not shrink them) */
.brand-logo-img,
.brand-logo-sidebar,
.brand-logo-auth,
.brand-logo-footer,
.navbar-brand img {
    max-width: 384px;
    width: auto;
    height: 77px !important;
    object-fit: contain;
}
.brand-logo-sidebar {
    height: 46px !important;
    max-width: 205px;
}
.brand-logo-auth {
    height: 56px !important;
    max-width: 250px;
}
.brand-logo-footer {
    height: 52px !important;
    max-width: 230px;
}
@media (max-width: 991.98px) {
    .brand-logo-img,
    .navbar-brand img {
        height: 62px !important;
        max-width: 312px;
    }
}
@media (max-width: 576px) {
    .brand-logo-img,
    .navbar-brand img {
        height: 55px !important;
        max-width: 264px;
    }
}
.table-responsive,
.ms-scroll-x {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-responsive > .table {
    margin-bottom: 0;
    min-width: 640px;
}

/* ---------- Public store ---------- */
/* Desktop: never clip navbar dropdowns (overflow:auto hid Company / Collections menus) */
.ms-navbar,
.ms-navbar .container,
.ms-navbar .navbar-collapse,
.ms-navbar .navbar-nav,
.ms-navbar .nav-item.dropdown {
    overflow: visible !important;
}
.ms-navbar .navbar-collapse {
    max-height: none;
}
.ms-navbar .dropdown-menu {
    z-index: 1050;
}
@media (max-width: 991.98px) {
    .ms-navbar .navbar-collapse {
        max-height: calc(100vh - 70px);
        overflow-x: hidden !important;
        overflow-y: auto !important;
        background: #0f0d12;
        border: 1px solid rgba(212, 175, 55, 0.35);
        border-radius: 12px;
        margin-top: 0.75rem;
        padding: 0.75rem 1rem 1rem;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    }
    .ms-navbar .navbar-collapse .nav-link {
        color: #f3e9d0 !important;
    }
    .ms-navbar .navbar-collapse .dropdown-menu {
        background: transparent !important;
    }
    .ms-navbar .navbar-collapse .dropdown-item {
        color: #e8dfc8 !important;
    }
    .ms-navbar .navbar-nav {
        width: 100%;
    }
    .ms-navbar .nav-link {
        padding: 0.65rem 0.25rem !important;
    }
    .ms-navbar .dropdown-menu {
        border: 0;
        box-shadow: none;
        padding-left: 0.5rem;
        position: static !important;
        float: none;
        width: 100%;
        transform: none !important;
        animation: none !important;
    }
    .ms-navbar .d-flex.gap-2 {
        width: 100%;
        margin-top: 0.75rem;
        flex-wrap: wrap;
    }
    .ms-navbar .d-flex.gap-2 .btn {
        flex: 1 1 calc(50% - 0.35rem);
    }
    .top-utility-bar .container {
        justify-content: center !important;
    }
    .display-4 {
        font-size: clamp(1.75rem, 7vw, 2.4rem) !important;
    }
    .display-6 {
        font-size: clamp(1.35rem, 5vw, 1.85rem) !important;
    }
    .lead {
        font-size: 1rem !important;
    }
    .jb-story-item {
        flex: 0 0 72px !important;
        width: 72px !important;
    }
    .jb-story-ring {
        width: 64px !important;
        height: 64px !important;
        min-width: 64px !important;
        min-height: 64px !important;
    }
    .jb-cat-card {
        height: 260px !important;
    }
    .jb-cat-title {
        font-size: 1.35rem !important;
    }
    .auth-card,
    .plan-card,
    .stat-card {
        padding: 1.25rem !important;
    }
    footer .row > [class*="col-"] {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .container,
    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }
    .btn-lg {
        padding: 0.55rem 1rem;
        font-size: 0.95rem;
    }
    .product-card .thumb {
        height: 170px !important;
    }
    .product-card h5,
    .product-card .fw-semibold {
        font-size: 0.85rem !important;
        min-height: 2.4em !important;
    }
    .carousel-item .badge {
        font-size: 0.68rem;
    }
    .min-vh-50 {
        min-height: auto !important;
    }
}

/* ---------- Member + Office shells ---------- */
.member-wrapper {
    width: 100%;
    max-width: 100vw;
}
.member-sidebar {
    flex-shrink: 0;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}
.member-sidebar .flex-grow-1.overflow-y-auto,
.member-sidebar > .flex-grow-1 {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.member-content {
    flex: 1;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-width: 0;
}
.member-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: nowrap;
    min-height: 56px;
}
.member-topbar > div {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
    min-width: 0;
}
.stat-box,
.stat-card {
    margin-bottom: 0;
}
.stat-box .fs-4,
.stat-box .fs-5,
.stat-card .fs-4,
.stat-card .fs-5,
.stat-card .display-6 {
    word-break: break-word;
}

/* ============================================================
   MOBILE OFF-CANVAS SIDEBAR (< 992px)
   ============================================================ */
@media (max-width: 991.98px) {
    /* Layout: block stacking, sidebar fixed off-screen */
    .member-wrapper {
        display: block;
        position: relative;
    }
    .member-sidebar {
        width: min(300px, 86vw);
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-105%);
        transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s ease;
        z-index: 1055;
        box-shadow: none;
    }
    .member-sidebar.show {
        transform: translateX(0);
        box-shadow: 16px 0 40px rgba(15, 23, 42, 0.28);
    }
    .member-content {
        width: 100%;
        min-height: 100vh;
        min-width: 0;
    }
    /* Topbar: no-wrap, menu button always on left, actions on right */
    .member-topbar {
        padding: 8px 14px;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    .member-topbar > div:first-child {
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
    }
    .member-topbar > div:last-child {
        flex-shrink: 0;
    }
    .member-content > .container-fluid {
        padding: 12px !important;
    }
    /* Backdrop overlay — never intercept clicks while hidden */
    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        z-index: 1050;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }
    .sidebar-backdrop.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    /* Hamburger must stay above content and receive taps */
    #sidebarToggleBtn {
        position: relative;
        z-index: 1060;
        pointer-events: auto !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    .member-topbar > div:first-child {
        overflow: visible;
    }
    /* Cards */
    .card,
    .plan-card,
    .auth-card {
        border-radius: 12px;
    }
    .row.g-4,
    .row.g-3 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }
    /* Binary tree nodes */
    .tree-node,
    .tree-node-card {
        min-width: 110px;
        max-width: 100%;
    }
    /* Dashboard metric card amounts */
    .ms-card h4,
    .ms-card h4.fw-bold,
    .ms-card h4.font-monospace {
        font-size: 1.05rem;
        word-break: break-all;
    }
}

/* ============================================================
   SMALL PHONES (< 576px)
   ============================================================ */
@media (max-width: 575.98px) {
    /* Topbar tighter */
    .member-topbar {
        padding: 6px 10px;
        gap: 0.3rem;
    }
    .member-topbar .btn,
    .member-topbar .topbar-btn {
        height: 34px;
        min-height: 34px;
        padding: 0 8px;
        font-size: 0.8rem;
    }
    /* Stat boxes */
    .stat-box,
    .stat-card {
        padding: 14px !important;
    }
    /* Dashboard metric card amounts */
    .ms-card h4,
    .ms-card h4.fw-bold,
    .ms-card h4.font-monospace {
        font-size: 0.9rem;
        word-break: break-all;
        line-height: 1.25;
    }
    /* Referral link inputs: smaller monospace */
    #leftRefLink,
    #rightRefLink {
        font-size: 0.7rem;
    }
    /* Welcome banner on mobile: stack vertically */
    .ms-card .d-flex.flex-wrap.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }
    .ms-card .d-flex.flex-wrap.justify-content-between > div.d-flex.flex-wrap.gap-2 {
        width: 100%;
    }
    .ms-card .d-flex.flex-wrap.justify-content-between .btn {
        flex: 1 1 auto;
        text-align: center;
    }
    .display-6 {
        font-size: 1.6rem !important;
    }
    h1.section-title,
    h1.h3,
    .section-title.h3 {
        font-size: 1.25rem !important;
    }
    .dropdown-menu {
        max-width: calc(100vw - 24px);
    }
}

/* ============================================================
   VERY SMALL PHONES (< 400px)
   ============================================================ */
@media (max-width: 400px) {
    .member-topbar {
        padding: 5px 8px;
        gap: 0.25rem;
    }
    .member-topbar img[alt="Logo"] {
        height: 26px !important;
    }
    .ms-card h4,
    .ms-card h4.fw-bold {
        font-size: 0.82rem;
    }
    .ms-card .small.fw-bold.text-dark {
        font-size: 0.72rem;
    }
}

/* DataTables mobile */
@media (max-width: 767.98px) {
    div.dataTables_wrapper div.dataTables_length,
    div.dataTables_wrapper div.dataTables_filter,
    div.dataTables_wrapper div.dataTables_info,
    div.dataTables_wrapper div.dataTables_paginate {
        float: none !important;
        text-align: left !important;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    div.dataTables_wrapper .dt-buttons {
        float: none !important;
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
        margin-bottom: 0.75rem;
    }
}

/* Prevent horizontal page jump from 100vw scrollbars */
.member-wrapper,
.ms-navbar,
footer {
    max-width: 100%;
}

/* ---------- Total Team Left / Right cards ---------- */
.team-total-banner {
    background: linear-gradient(135deg, #FFFDF5 0%, #FFF8E7 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-left: 4px solid #D4AF37;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.team-leg-card {
    background: #FFFDF8;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-top: 3px solid #D4AF37;
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}
.team-leg-card--left {
    border-top-color: #0D6EFD;
}
.team-leg-card--right {
    border-top-color: #0DCAF0;
}
.team-leg-label {
    color: #64748B;
    font-size: 0.85rem;
    font-weight: 500;
}
@media (max-width: 575.98px) {
    .team-leg-card h4 {
        font-size: 1.15rem;
    }
}



/* ==========================================================================
   ZIVORA EXECUTIVE PARTNER PORTAL — MOBILE APP & LUXURY DASHBOARD UPGRADE
   ========================================================================== */

/* Topbar Refinement */
.zv-exec-topbar {
    background: #ffffff;
    border-bottom: 1px solid rgba(212, 175, 55, 0.28) !important;
    padding: 10px 18px;
}

.zv-mobile-topbar-logo {
    height: 36px !important;
    width: auto;
    object-fit: contain;
}

.zv-topbar-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.12);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zv-topbar-action-btn {
    height: 36px;
    padding: 0 11px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: #faf8f2;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zv-topbar-store-btn {
    background: linear-gradient(135deg, rgba(243, 222, 138, 0.28) 0%, rgba(212, 175, 55, 0.18) 100%);
    color: #7c5800;
}

.zv-topbar-profile-btn {
    height: 36px;
    padding: 0 10px 0 5px;
    border-radius: 999px;
    border: 1px solid #d4af37;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f3de8a;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.zv-profile-initial {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F3DE8A 0%, #D4AF37 55%, #AA7C11 100%);
    color: #090d16;
    font-weight: 800;
    font-size: 0.76rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991.98px) {
    .zv-exec-topbar {
        background: linear-gradient(180deg, #0d1527 0%, #111c35 100%) !important;
        border-bottom: 1.5px solid rgba(212, 175, 55, 0.45) !important;
        box-shadow: 0 6px 20px rgba(7, 11, 20, 0.25);
        padding: 9px 12px !important;
    }
    .zv-topbar-icon-btn {
        background: rgba(212, 175, 55, 0.16);
        border-color: rgba(212, 175, 55, 0.55);
        color: #f3de8a;
    }
    .zv-topbar-action-btn {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(212, 175, 55, 0.45);
        color: #f8fafc;
        padding: 0 10px;
    }
    .zv-topbar-store-btn {
        background: linear-gradient(135deg, #F3DE8A 0%, #D4AF37 55%, #AA7C11 100%);
        color: #090d16 !important;
        border: none;
        font-weight: 700;
    }
    .zv-topbar-profile-btn {
        background: rgba(255, 255, 255, 0.09);
    }
    .zv-member-body {
        padding-bottom: 76px !important;
        background-color: #f3f4f8 !important;
        overflow-x: hidden;
    }
    .member-content {
        overflow-x: clip;
    }
    .zv-member-footer {
        margin-bottom: 12px;
    }
}

/* 1. VIP Royal Obsidian Hero Card */
.zv-hero-vip-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 20px;
    background: linear-gradient(140deg, #090e1c 0%, #121d38 55%, #1b2a4e 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.55);
    box-shadow: 0 16px 36px rgba(9, 14, 28, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.zv-hero-vip-glow {
    position: absolute;
    top: -60px;
    right: -50px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.28) 0%, rgba(212, 175, 55, 0) 70%);
    pointer-events: none;
}

.zv-vip-avatar {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: linear-gradient(135deg, #F3DE8A 0%, #D4AF37 50%, #996B00 100%);
    color: #090d16;
    font-family: var(--ms-font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
}

.zv-vip-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #f3de8a;
    opacity: 0.9;
}

.zv-vip-name {
    font-family: var(--ms-font-body) !important;
    font-size: clamp(1.12rem, 4.4vw, 1.45rem) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: 0.2px !important;
    word-break: normal !important;
}

.zv-vip-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.7rem;
    font-family: monospace;
}

.zv-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.zv-status-pill--active {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(52, 211, 153, 0.55);
    color: #6ee7b7;
}

.zv-status-pill--inactive {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: #fde68a;
}

.zv-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
}

.zv-vip-balances-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.24);
    border-radius: 14px;
    padding: 10px 8px;
}

.zv-vip-bal-box {
    text-align: center;
    padding: 2px 4px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.zv-vip-bal-box:last-child {
    border-right: none;
}

.zv-vip-bal-label {
    display: block;
    font-size: 0.65rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zv-vip-bal-val {
    display: block;
    font-family: monospace;
    font-size: clamp(0.88rem, 3.5vw, 1.08rem);
    color: #ffffff;
    margin-top: 2px;
}

.text-emerald {
    color: #6ee7b7 !important;
}

.text-gold-bright {
    color: #f3de8a !important;
}

/* 4 App-Style Quick Action Tiles */
.zv-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.zv-quick-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 6px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: #f8fafc;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.zv-quick-tile:hover {
    transform: translateY(-2px);
    background: rgba(212, 175, 55, 0.18);
    color: #f3de8a;
}

.zv-quick-tile--primary {
    background: linear-gradient(135deg, #F3DE8A 0%, #D4AF37 55%, #AA7C11 100%);
    color: #090d16 !important;
    border: none;
    font-weight: 700;
}

.zv-quick-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    color: #f3de8a;
}

.zv-quick-tile--primary .zv-quick-icon {
    background: rgba(9, 13, 22, 0.14);
    color: #090d16;
}

/* Modern Cards & Referral Pills */
.zv-card-modern {
    background: #ffffff;
    border: 1px solid rgba(197, 154, 39, 0.24);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.zv-section-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4AF37, #996B00);
}

.zv-ref-pill-card {
    border-radius: 12px;
    padding: 10px 12px;
    background: #faf9f5;
    border: 1px solid #e6e0ce;
}

.zv-ref-copy-btn {
    background: #0f172a;
    color: #f3de8a;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 6px 10px;
}

.zv-ref-copy-btn:hover {
    background: #1e293b;
    color: #ffffff;
}

.zv-ref-wa-btn {
    background: #16a34a;
    color: #ffffff;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.zv-ref-wa-btn:hover {
    background: #15803d;
    color: #ffffff;
}

/* Cashback Spotlight Card */
.zv-cashback-spotlight {
    background: linear-gradient(145deg, #ffffff 0%, #fdfaf0 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.42);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.zv-cb-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.zv-cb-badge--ok {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.zv-cb-badge--wait {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.zv-cb-chip {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    background: #f1f5f9;
    color: #334155;
}

.zv-cb-chip--gold {
    background: linear-gradient(135deg, #F3DE8A 0%, #D4AF37 100%);
    color: #090d16;
    font-weight: 700;
}

.zv-cb-progress-wrap {
    height: 8px;
    border-radius: 999px;
    background: #ebe5d1;
    overflow: hidden;
}

.zv-cb-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #10b981 0%, #d4af37 100%);
}

.zv-payout-highlight-box {
    background: linear-gradient(135deg, #0f172a 0%, #1b2848 100%);
    border: 1px solid #d4af37;
    border-radius: 14px;
    padding: 14px 16px;
    color: #ffffff;
}

.zv-payout-label {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #f3de8a;
}

.zv-payout-amount {
    font-family: monospace;
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
}

/* 2x2 KPI Tiles */
.zv-kpi-tile {
    display: block;
    height: 100%;
    background: #ffffff;
    border: 1px solid rgba(197, 154, 39, 0.25);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.zv-kpi-tile:hover {
    transform: translateY(-3px);
    border-color: #d4af37;
}

.zv-kpi-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.zv-kpi-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.zv-kpi-icon--gold { background: #fef7e0; color: #996b00; }
.zv-kpi-icon--green { background: #dcfce7; color: #15803d; }
.zv-kpi-icon--amber { background: #fef3c7; color: #b45309; }
.zv-kpi-icon--blue { background: #dbeafe; color: #1d4ed8; }

.zv-kpi-value {
    font-family: monospace;
    font-size: clamp(1.08rem, 4.3vw, 1.38rem);
    font-weight: 800;
    line-height: 1.2;
}

.zv-kpi-foot {
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 6px;
}

/* Side-by-Side Left / Right Binary Split Cards */
.zv-team-header-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 14px;
    padding: 12px 16px;
}

.zv-team-header-eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.3px;
    color: #f3de8a;
}

.zv-leg-split-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 13px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease;
}

.zv-leg-split-card:hover {
    transform: translateY(-2px);
}

.zv-leg-split-card--left {
    border-top: 3.5px solid #2563eb;
}

.zv-leg-split-card--right {
    border-top: 3.5px solid #0891b2;
}

.zv-leg-tag {
    font-size: 0.66rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
}

.zv-leg-tag--left { background: #dbeafe; color: #1d4ed8; }
.zv-leg-tag--right { background: #cffafe; color: #0e7490; }

.zv-leg-bv {
    font-size: 0.73rem;
    font-weight: 700;
    color: #996b00;
}

.zv-leg-count {
    font-size: clamp(1.18rem, 4.6vw, 1.5rem);
    font-weight: 800;
    margin-top: 4px;
    line-height: 1.1;
}

.zv-leg-sub {
    font-size: 0.72rem;
}

.zv-mini-stat {
    font-size: 0.66rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 5px;
}

.zv-mini-stat--ok { background: #dcfce7; color: #166534; }
.zv-mini-stat--dim { background: #f1f5f9; color: #64748b; }

/* Mobile Transaction Feed */
.zv-tx-feed-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.zv-tx-feed-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.zv-tx-feed-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fef7e0;
    color: #996b00;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.88rem;
}

/* Sticky App-Style Bottom Navigation Bar (< 992px) */
.zv-mobile-app-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 66px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: linear-gradient(180deg, #0d1527 0%, #070b14 100%);
    border-top: 1.5px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 -8px 26px rgba(7, 11, 20, 0.35);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    z-index: 1045;
}

.zv-app-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.66rem;
    font-weight: 600;
    height: 100%;
    transition: color 0.2s ease;
}

.zv-app-nav-item i {
    font-size: 1.05rem;
}

.zv-app-nav-item.active,
.zv-app-nav-item:hover {
    color: #f3de8a;
}

.zv-app-nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #f3de8a;
    font-size: 0.66rem;
    font-weight: 700;
    margin-top: -18px;
}

.zv-app-nav-orb {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F3DE8A 0%, #D4AF37 55%, #AA7C11 100%);
    color: #090d16;
    border: 3px solid #0d1527;
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 2px;
}
