/* =====================================================
   HYIPLAB — Unified Dark #333 Theme + Realistic 3D Depth
   USER (PUBLIC) DASHBOARD
   Loaded after hyiplab_public.css. Re-themes the
   previously-light user dashboard to match the Admin
   dashboard's dark #333 palette, and adds raised/glossy
   depth to match.
   Brand accents kept: Gold #ffcf01 | Blue #008fe6
   ===================================================== */

.vl-public {
    --dl-bg: #333333;          /* page background */
    --dl-bg-recessed: #2a2a2a; /* sidebar / top header - sits behind the page */
    --dl-bg-surface: #3d3d3d;  /* cards, widgets, panels - raised */
    --dl-bg-surface-2: #454545;/* hover state on raised panels */
    --dl-bg-overlay: #2c2c2c;  /* dropdowns / modals - float above everything */
    --dl-bg-inset: #262626;    /* inputs, search - pressed in */
    --dl-border: rgba(255, 255, 255, 0.09);
    --dl-border-strong: rgba(255, 255, 255, 0.16);
}

/* ============ 1. BASE SURFACE + TEXT COLORS (re-theme) ============ */

.vl-public {
    /* flips every h1-h6 / body-text rule that reads these vars to light-on-dark */
    --heading: 0 0% 96%;
    --body: 0 0% 78%;
    --border: 0 0% 100% / 0.09;
}

body.vl-public {
    background-color: var(--dl-bg) !important;
}

.vl-public .text--body { color: hsl(var(--body)) !important; }

/* top site header + in-dashboard sticky bar + sidebar: recessed frame */
.vl-public .header,
.vl-public .dashboard-sidebar,
.vl-public .dashboard-nav {
    background-color: var(--dl-bg-recessed) !important;
    border-color: var(--dl-border) !important;
}

/* raised surfaces: cards, tables, dropdowns, dashboard content panel */
.vl-public .table,
.vl-public .table thead tr,
.vl-public .dashboard-fluid-inner .table thead tr th,
.vl-public .dashboard-fluid-inner .table tbody tr td,
.vl-public .custom--card .card-header,
.vl-public .custom--card .card-footer,
.vl-public .custom--card .card-body,
.vl-public .dashboard-content,
.vl-public .dashboard-widget,
.vl-public .investment-card .card-header,
.vl-public .plan-item,
.vl-public .plan-item-two,
.vl-public .faq-item,
.vl-public .table--acordion,
.vl-public .custom-input-box,
.vl-public .work-process-card,
.vl-public .card,
.vl-public .modal-content {
    background-color: var(--dl-bg-surface) !important;
}

.vl-public .preloader {
    background-color: var(--dl-bg) !important;
}

.vl-public .account-section {
    background-color: var(--dl-bg-recessed) !important;
}

/* overlay surfaces: dropdown menus / search flyout - float above the rest */
.vl-public .nav-header-link .dropdown-wrapper,
.vl-public .search-form,
.vl-public .dropdown-menu {
    background-color: var(--dl-bg-overlay) !important;
    border: 1px solid var(--dl-border) !important;
}

/* header trigger (hamburger) bars are drawn with background-color: white - keep visible */
.vl-public .header-trigger span::before,
.vl-public .header-trigger span::after,
.vl-public .header-trigger.active span::before,
.vl-public .header-trigger.active span::after {
    background-color: #f2f2f2 !important;
}

/* form fields: pressed-in inset look */
.vl-public .form-control,
.vl-public .form-select,
.vl-public select,
.vl-public textarea,
.vl-public .custom-input-box input {
    background-color: var(--dl-bg-inset) !important;
    border-color: var(--dl-border-strong) !important;
    color: #d7ecff !important;
}

.vl-public .form-control::placeholder,
.vl-public textarea::placeholder {
    color: #8f8f8f !important;
}

/* generic borders that were tuned for a white page */
.vl-public .faq-item,
.vl-public .table td,
.vl-public .table th,
.vl-public .noti-item:not(:last-child) {
    border-color: var(--dl-border) !important;
}

.vl-public .dashboard-inner .plan-item {
    border-color: var(--dl-border) !important;
}

/* table zebra striping tuned for dark surface */
.vl-public .table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.025) !important;
}

/* footer, if present, follows the recessed frame */
.vl-public footer {
    background-color: var(--dl-bg-recessed) !important;
}

/* ============ 2. REALISTIC 3D DEPTH LAYER ============ */

.vl-public .card,
.vl-public .custom--card,
.vl-public .dashboard-widget,
.vl-public .dashboard-content,
.vl-public .plan-item,
.vl-public .plan-item-two,
.vl-public .faq-item,
.vl-public .investment-card {
    border-radius: 14px !important;
    border: 1px solid var(--dl-border);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0) 18%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 10px -4px rgba(0, 0, 0, 0.45),
        0 18px 34px -16px rgba(0, 0, 0, 0.6) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vl-public .card:hover,
.vl-public .dashboard-widget:hover {
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 6px 14px -4px rgba(0, 0, 0, 0.5),
        0 24px 38px -18px rgba(0, 0, 0, 0.7) !important;
}

/* stat widget icon tiles: glossy embossed circles/squares */
.vl-public .widget-icon,
.vl-public .dashboard-widget i,
.vl-public .widget-two__icon {
    border-radius: 16px !important;
    position: relative;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -8px 14px rgba(0, 0, 0, 0.25),
        0 10px 18px -6px rgba(0, 0, 0, 0.5) !important;
    background-image: linear-gradient(155deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 42%, rgba(0, 0, 0, 0.18) 100%);
}

/* buttons: beveled 3D press effect */
.vl-public .btn,
.vl-public .cmn--btn {
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25), 0 5px 12px rgba(0, 0, 0, 0.3) !important;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.vl-public .btn:hover,
.vl-public .cmn--btn:hover {
    transform: translateY(-1px);
}

.vl-public .btn:active,
.vl-public .cmn--btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.25) !important;
}

.vl-public .btn--primary {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(0, 0, 0, 0.08)), linear-gradient(0deg, hsl(var(--primary)), hsl(var(--primary))) !important;
}

.vl-public .btn--secondary {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.1)), linear-gradient(0deg, hsl(var(--secondary)), hsl(var(--secondary))) !important;
}

/* sidebar + top bar: recessed with soft shadow separating from page */
.vl-public .dashboard-sidebar {
    box-shadow: 6px 0 24px rgba(0, 0, 0, 0.45) !important;
    border-right: 1px solid var(--dl-border) !important;
}

.vl-public .header,
.vl-public .dashboard-nav {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4) !important;
}

/* sidebar active menu item: raised gold pill */
.vl-public .dashboard-sidebar .menu-item.active > a,
.vl-public .dashboard-sidebar a.active {
    border-radius: 8px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 8px 16px -4px rgba(255, 207, 1, 0.5) !important;
}

/* profile avatar ring */
.vl-public .profile-info img,
.vl-public .thumb img {
    box-shadow: 0 0 0 2px rgba(255, 207, 1, 0.55), 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* dropdown flyouts and modals: floating elevation */
.vl-public .nav-header-link .dropdown-wrapper,
.vl-public .dropdown-menu {
    box-shadow: 0 16px 34px -10px rgba(0, 0, 0, 0.65) !important;
    border-radius: 10px !important;
}

.vl-public .modal-content {
    border-radius: 12px !important;
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7) !important;
}

/* table wrapper: rounded raised panel */
.vl-public .table-responsive,
.vl-public .table--acordion {
    border-radius: 10px;
    overflow: hidden;
}

/* scrollbar to match dark theme */
.vl-public ::-webkit-scrollbar { width: 10px; height: 10px; }
.vl-public ::-webkit-scrollbar-track { background: var(--dl-bg); }
.vl-public ::-webkit-scrollbar-thumb {
    background: var(--dl-bg-surface-2);
    border-radius: 10px;
    border: 2px solid var(--dl-bg);
}
