/* ==========================================================================
   Design tokens — re-theme a new project by editing THESE values only.
   ========================================================================== */
:root {
    --zvese-green:      #00C08D; /* Electric Emerald: fills, buttons */
    --zvese-green-text: #00805D; /* Deep emerald: text/links on light */
    --zvese-ink:        #0B1F1A; /* Deep forest ink / text on emerald */
    --zvese-green-dark: #063f2d; /* Deep emerald hero/gradient */
    --zvese-pearl:      #F8F7F3; /* Warm Zvese pearl canvas */
    --zvese-soft:       #F8F7F3;
    --zvese-amber:      #f7db69; /* Amber highlight */
    --zvese-coral:      #f26a44; /* Coral accent */
    --zvese-line:       #e2e8f0;

    --brand:        #00805D;   /* Zvese deep emerald primary accent    */
    --brand-hover:  #00664a;   /* primary hover                        */
    --brand-dark:   #0B1F1A;   /* Zvese deep forest headings / dark    */
    --brand-light:  #e6f9f3;   /* soft emerald tint                    */
    --accent:       #00C08D;   /* Zvese electric emerald               */
    --danger:       #ef4444;   /* destructive / error state            */
    --bg:           #f5f7f6;   /* clean light canvas                   */
    --surface:      #ffffff;   /* pure white card surface              */
    --text:         #0B1F1A;   /* primary text                         */
    --muted:        #64748b;   /* secondary text                       */
    --border-color: #e2e8f0;   /* crisp 1px hairline border            */

    --radius-sm: 8px;
    --radius:    12px;
    --radius-lg: 16px;

    --shadow-sm: none;
    --shadow:    0 1px 2px rgba(11, 31, 26, .05);
    --shadow-lg: 0 10px 30px rgba(11, 31, 26, .08);

    --transition: .18s ease;

    --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-brand:   'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-body:    var(--font-primary);
    --font-heading: var(--font-brand);
}

/* ==========================================================================
   Fonts — paths are relative to THIS file so they work at any URL depth.
   ========================================================================== */
@font-face {
    font-family: 'raleway-light-webfont';
    src: url('../fonts/raleway-light-webfont.woff2') format('woff2'),
         url('../fonts/raleway-light-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'raleway-medium-webfont';
    src: url('../fonts/raleway-medium-webfont.woff2') format('woff2'),
         url('../fonts/raleway-medium-webfont.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'caviardreams-webfont';
    src: url('../fonts/caviardreams-webfont.woff2') format('woff2'),
         url('../fonts/caviardreams-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'kingthings_exeter-webfont';
    src: url('../fonts/kingthings_exeter-webfont.woff2') format('woff2'),
         url('../fonts/kingthings_exeter-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'montserratalternates-extralight-webfont';
    src: url('../fonts/montserratalternates-extralight-webfont.woff2') format('woff2'),
         url('../fonts/montserratalternates-extralight-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'playfairdisplaysc-regular-webfont';
    src: url('../fonts/playfairdisplaysc-regular-webfont.woff2') format('woff2'),
         url('../fonts/playfairdisplaysc-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'lanenar_-webfont';
    src: url('../fonts/lanenar_-webfont.woff2') format('woff2'),
         url('../fonts/lanenar_-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   Base
   ========================================================================== */
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}
a {
    text-decoration: none;
}
.pointer { cursor: pointer; }
.fade-in {
    opacity: 0;
    transition: opacity .5s ease;
}
.fade-in.show { opacity: 1; }

/* Utility classes that replace repeated inline styles in views/templates. */
.show-form-iframe { width: 100%; height: 100vh; border: none; }
.hidden-template { display: none; }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 18px rgba(11, 31, 26, .04);
    border-radius: 0;
    padding-top: .65rem;
    padding-bottom: .65rem;
}
.navbar .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-color: var(--border-color) !important;
}
.nav-logo {
    height: 28px;
    max-height: 30px;
    width: auto;
    display: block;
}
.brand-degree,
.brand-degree-dot {
    color: var(--zvese-green-text);
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1;
}
.navbar-nav .nav-link {
    color: var(--text);
    font-weight: 500;
    border-radius: 999px;
    padding: .5rem 1rem !important;
    margin: 0 .15rem;
    transition: background-color var(--transition), color var(--transition);
}
.navbar-nav .nav-link:hover {
    background: var(--brand-light);
    color: var(--brand-dark);
}
.navbar-nav .nav-link.active {
    background: var(--brand);
    color: #fff;
}
.navbar-nav .dropdown-menu {
    z-index: 1035;
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: .5rem;
    margin-top: .5rem;
}
.navbar-nav .dropdown-item {
    border-radius: var(--radius-sm);
    padding: .55rem .9rem;
    transition: background-color var(--transition);
}
.navbar-nav .dropdown-item:hover {
    background: var(--brand-light);
}
#user_logged_in .user-pill-btn {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: .3rem .85rem .3rem .35rem;
    font-weight: 500;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}
#user_logged_in .user-pill-btn:hover,
#user_logged_in .user-pill-btn[aria-expanded="true"] {
    background: var(--brand-light);
    border-color: var(--brand);
}
#user_logged_in .user-avatar-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: .03em;
}
#user_logged_in .user-avatar-lg {
    width: 40px;
    height: 40px;
    font-size: .9rem;
}
#user_logged_in .user-pill-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#user_logged_in .user-menu-card {
    min-width: 260px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color) !important;
    z-index: 1035;
}
#user_logged_in .user-menu-header {
    background: #f8fafc;
    border-radius: var(--radius-sm);
}
#user_logged_in .user-menu-card .dropdown-item {
    border-radius: var(--radius-sm);
    padding: .5rem .75rem;
    font-size: .9rem;
    font-weight: 500;
}
#user_logged_in .user-menu-card .user-logout-item {
    color: #dc2626;
}
#user_logged_in .user-menu-card .user-logout-item:hover {
    background: #fef2f2;
    color: #b91c1c;
}

/* ==========================================================================
   Hero banner — used both as a big landing hero (home) and a compact page
   header (generated create/edit/index/view templates).
   ========================================================================== */
.hero-section {
    background: var(--surface);
    border: 1px solid var(--border-color);
    color: var(--text);
    padding: 36px 0;
    text-align: center;
    border-radius: var(--radius);
    margin-top: 1.25rem;
}
.hero-section h1,
.hero-section h2,
.hero-section h3 {
    color: var(--brand-dark);
    font-weight: 600;
    margin-bottom: .35rem;
}
.hero-section p {
    color: var(--muted);
}
.hero-section .breadcrumb-item,
.hero-section .breadcrumb-item a {
    color: var(--muted);
    font-size: .85rem;
}
.hero-section .breadcrumb-item.active {
    color: var(--brand-dark);
    font-weight: 600;
}
.hero-section-lg {
    padding: 64px 0;
}
.hero-section-mini {
    background: transparent;
    color: var(--text);
    padding: 20px 0;
    text-align: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.button1 {
    color: #fff !important;
    background: var(--brand);
    border: none;
    font-weight: 600;
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.button1:hover {
    color: #fff;
    background: var(--brand-hover);
    box-shadow: var(--shadow-sm);
}
.button1.disabled, .button1:disabled {
    background-color: var(--accent);
}
.search-btn,
.create-btn,
.submit-btn {
    border: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: .5rem 1.2rem;
    transition: background-color var(--transition), border-color var(--transition);
}
.search-btn {
    background: var(--brand-dark);
    color: #fff;
}
.search-btn:hover {
    background: #1e293b;
    color: #fff;
}
.create-btn {
    background: var(--brand);
    color: #fff;
}
.create-btn:hover {
    background: var(--brand-hover);
    color: #fff;
}
.submit-btn {
    background: var(--brand);
    color: #fff;
}
/* Secondary action (e.g. Download CSV) — outlined so "New" stays primary. */
.export-btn {
    border: 1px solid var(--border-color);
    color: var(--brand-dark);
    background: var(--surface);
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: .5rem 1.2rem;
    transition: background-color var(--transition), border-color var(--transition);
}
.export-btn:hover {
    background: var(--bg);
    border-color: var(--brand);
    color: var(--brand-dark);
}
.submit-btn:hover {
    background: var(--brand-hover);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.table-button {
    margin: 0;
    border-radius: 999px;
    border-color: var(--brand) !important;
    color: var(--brand-dark);
    transition: background-color var(--transition), color var(--transition);
}
.table-button:hover {
    background: var(--brand);
    color: #fff;
}
.view-text {
    font-size: 23px;
    display: block;
}

/* ==========================================================================
   Forms — shared polish for generated create/edit views and account pages.
   ========================================================================== */
.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border-color: var(--border-color);
    padding: .6rem .9rem;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem var(--brand-light);
}
.search-input {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border-color: var(--border-color);
}
.form-check-input {
    width: 25px;
    height: 25px;
    margin-right: 5px;
    transition: background-color var(--transition);
    border: none;
    background-image: none;
    background-color: var(--muted);
    float: none !important;
}
.form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}
.form-check-label {
    padding-top: 2px;
    color: var(--text);
}
.nav-tabs {
    border-bottom: 1px solid var(--border-color);
    gap: .25rem;
}
.nav-tabs .nav-link {
    border: none;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 500;
    padding: .5rem 1.1rem;
}
.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    background-color: var(--brand-light);
    color: var(--brand-dark);
    border: none;
}

/* ==========================================================================
   Breadcrumb (sits inside the colored hero banner)
   ========================================================================== */
.breadcrumb {
    display: inline-flex;
    background: rgba(255, 255, 255, .16);
    border-radius: 999px;
    padding: .35rem .9rem;
    margin-bottom: 0;
}
.breadcrumb a {
    color: rgba(255, 255, 255, .85);
}
.breadcrumb .active {
    color: #fff;
}
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .6);
}

/* ==========================================================================
   Cards / lists / tables (used by generated index & view pages)
   ========================================================================== */
.category-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: transform var(--transition), box-shadow var(--transition);
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.category-icon {
    font-size: 42px;
    color: var(--brand);
}
.stats-label-text {
    font-size: small;
    color: var(--muted);
}
.stats-label {
    font-size: large;
    color: var(--brand-dark);
    font-weight: 600;
}
.filter-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 5px;
}
.filter-list a { cursor: pointer; }
.filter-list a:hover { color: var(--brand); }
.filter-list-link {
    color: var(--brand-dark);
    transition: color var(--transition);
}
.filter-list-link:hover { color: var(--brand); }
.list-group-item.active {
    color: #fff;
    background-color: var(--accent);
    border: none;
}
.list-group-item.active.filter-list-link {
    color: #fff !important;
}
th, td {
    padding: 15px !important;
    text-align: left;
}
/* Header colour belongs to the table, not to every thead on the page. This
   bare selector painted navy behind any table that did not carry .table, and
   showed through wherever a th was given its own background. */
thead {
    border-bottom: 1px solid var(--border-color);
}
.table thead th {
    background: var(--brand-light);
    color: var(--muted);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}
tr:first-child { padding-top: 15px; }

/* Segmented list/table view toggle (generated index pages) */
.view-toggle {
    display: inline-flex;
    background: var(--brand-light);
    border-radius: 999px;
    padding: 3px;
}
.view-toggle span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 34px;
    border-radius: 999px;
    cursor: pointer;
    color: var(--muted);
    transition: background-color var(--transition), color var(--transition);
}
.view-toggle span:hover { color: var(--brand-dark); }
.view-toggle span.selected {
    background: var(--surface);
    color: var(--brand-dark);
    box-shadow: var(--shadow-sm);
}
/* keep old markup working if a project still uses the bare-icon variant */
#viewToggle span i { cursor: pointer; }

/* Record list cards (list view) */
.record-list-item {
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: .75rem;
    transition: box-shadow var(--transition), transform var(--transition);
}
.record-list-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.record-list-item h5 { margin-bottom: .35rem; color: var(--text); }

/* Record cards render a heading plus a label/value grid (see
   boilerplate/templates/scripts.template.js). The grid is what lets the same
   field land in the same place on every row, so a column reads down the page
   instead of being buried in a pipe-separated sentence. */
.record-head {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .9rem;
}
.record-index {
    flex: none;
    width: 1.65rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand);
    font-size: .74rem;
    font-weight: 700;
}
.record-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-dark);
}
.record-status { margin-left: auto; }

.record-fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: .75rem 1.5rem;
    margin-bottom: 1rem;
}
.record-field { display: flex; flex-direction: column; min-width: 0; }
.record-label {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .12rem;
}
.record-value {
    font-size: .9rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .record-fields { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .6rem 1rem; }
}

/* Detail table (view page) */
.detail-table th { width: 220px; color: var(--brand-dark); }

/* Empty / error state */
.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 3rem 1rem;
}
.empty-state i {
    font-size: 2.5rem;
    color: var(--border-color);
    margin-bottom: .75rem;
    display: block;
}
.empty-state p { margin-bottom: 1rem; }

/* Pager */
.pager-btn {
    height: 38px;
    width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--radius-sm) !important;
    background: transparent;
    border: 1px solid var(--border-color);
}
.pager-btn:hover { background: var(--brand-light); }
.pager-select {
    min-width: 250px;
    text-align: center;
    background: transparent;
}

#show_table {
    width: 95vw;
    overflow-x: auto;
}
.search input[type="text"],
.search input[type="search"],
.search select {
    background-color: transparent;
}
.page-link { color: var(--muted) !important; }
#_pagination { background: transparent; }

/* ==========================================================================
   Auth pages (login / register / reset / set-password) + account body
   ========================================================================== */
.account-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}
/* The layout wraps @yield('content') in a plain ".content" div — it has to
   participate in the flex chain too, otherwise .az-signin-wrapper below has
   nothing to center within and the card sticks to the top-left. */
.account-body > .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.account-logo {
    max-height: 42px;
    width: auto;
    max-width: 190px;
    border-radius: var(--radius-sm);
    background: transparent;
    padding: 4px;
    box-shadow: none;
}
.az-signin-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.az-card-signin {
    background: var(--surface);
    width: 100%;
    max-width: 440px;
    padding: 36px 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.az-signin-header h2 {
    font-weight: 600;
    color: var(--brand-dark);
    letter-spacing: -.5px;
}
.az-signin-header h4 {
    font-weight: 400;
    color: var(--text);
    margin-bottom: 25px;
}
.az-signin-header label { color: var(--muted); }
.az-signin-header .form-control,
.az-signin-header .form-select {
    color: var(--text);
    border-width: 1px;
    border-color: var(--border-color);
    background: var(--bg);
}
.az-signin-header .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem var(--brand-light);
}
.az-signin-header .form-control::placeholder { color: var(--muted); }
.az-signin-header .btn { margin-top: 25px; }
.az-signin-footer p { color: var(--muted); }
.az-signin-footer p:first-child { margin-bottom: 5px; }
.az-signin-footer p:last-child { margin-bottom: 0; }
.az-signin-footer a {
    color: var(--brand-dark);
    font-weight: 700;
}
.az-signin-footer a:hover,
.az-signin-footer a:focus { color: var(--brand); }

/* Auth-card input groups (login/register/reset/set-password use these) */
.az-card-signin .input-group {
    border-radius: var(--radius-sm);
}
.az-card-signin .input-group-text,
.az-card-signin .form-control {
    border-color: var(--border-color) !important;
    background: var(--bg) !important;
    color: var(--text) !important;
}
.az-card-signin .input-group-text i { color: var(--muted); }
.az-card-signin .form-control::placeholder { color: var(--muted); }

/* Secondary links on auth pages ("forgot password", "create an account"...) */
.auth-link {
    color: var(--brand-dark);
    font-weight: 500;
}
.auth-link:hover { color: var(--brand); }

/* ==========================================================================
   Loading overlay / global modals
   ========================================================================== */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, .55);
    backdrop-filter: blur(2px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
#loadingOverlay.d-none { display: none; }
.overlay-content { text-align: center; }
.overlay-content .spinner-border { color: var(--brand) !important; }
.modal-content {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.modal-header {
    background: var(--brand-light);
    border-bottom: 1px solid var(--border-color);
}
.modal input,
.modal select {
    background-color: transparent;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    color: var(--muted);
    padding: 24px 0;
    text-align: center;
}

/* ==========================================================================
   Misc small helpers used across guest/account pages
   ========================================================================== */
.default-text-block { position: relative; margin-bottom: 40px; }
#dropdownMenuButton:hover { background: transparent; }
#iframe_a {
    width: 100%;
    border: none;
    min-height: 80vh;
}
.row > * { padding-left: 0; }

/* ==========================================================================
   Legacy admin/dashboard styles (out of scope for this retheme — left as-is
   for pages not covered here: users/currency listings, internal dashboards).
   ========================================================================== */
.nav-dropdown {
    background: var(--brand-dark);
    color: #fff;
    width: auto;
}
.nav-dropdown .dropdown-item { color: #fff; }
.nav-dropdown .dropdown-item:not(:first-child) {
    border-top: 1px solid rgba(255, 255, 255, .15);
}
.nav-dropdown .dropdown-item:hover {
    color: var(--brand);
    background: transparent;
}
.bg-green { background: #fff; }
.bg-nav { background: var(--brand-dark); }
.text-green { color: #00A85A; }
.text-yellow { color: #ff9800; }
.acc-btn {
    background: #0d47a1;
    color: #fff !important;
}
.acc-btn:hover {
    background: #0b3981;
    color: #fff;
}
.acc-alt-link { color: #ff9800; }
.acc-alt-link:hover { color: #333; }
.s-item.active { color: #ffff00; }
.d-tab { min-height: 60vh; }
.az-content-header-right .media label { color: #fff; }
.az-dashboard-nav .nav:last-child .nav-link { color: #fff; }
.az-header {
    background-color: #5D4037;
    border-bottom: 2px solid #ff9800;
}
.az-footer {
    background-color: #0e0202;
    border-top: 1px solid #4CAF50;
    margin-top: auto;
    display: none;
}
.az-header-menu .nav-item > .nav-link { color: #22534f; }
.az-dashboard-nav .nav:first-child .nav-link.active { color: #333; }
.az-dashboard-nav .nav:first-child .nav-link:hover { color: #ccc; }

/* Color / background / border swatch utilities used by some legacy pages. */
.color-sdagreen { color: #005e56; }
.color-sdagold { color: #c89b2d; }
.bg-sdagold { background-color: #c89b2d; }
.color-1 { color: #a8216b; }
.color-2 { color: #ec1a4a; }
.color-3 { color: #f26a44; }
.color-4 { color: #f7db69; }
.color-5 { color: #2e9598; }
.border-1 { border: 1px solid; border-color: #a8216b !important; }
.border-2 { border: 1px solid; border-color: #ec1a4a !important; }
.border-3 { border: 1px solid; border-color: #f26a44 !important; }
.border-4 { border: 1px solid; border-color: #f7db69 !important; }
.border-5 { border: 1px solid; border-color: #2e9598 !important; }
.bg-1 { background-color: #a8216b; }
.bg-2 { background-color: #ec1a4a; }
.bg-3 { background-color: #f26a44; }
.bg-4 { background-color: #f7db69; }
.bg-5 { background-color: #2e9598; }

.lanenar-font { font-family: 'lanenar_-webfont', sans-serif; }
.playfair-font { font-family: 'playfairdisplaysc-regular-webfont', sans-serif; }
.montserratalternates-font { font-family: 'montserratalternates-extralight-webfont', sans-serif; }
.caviardreams-font { font-family: 'caviardreams-webfont', sans-serif; }
.logo { font-family: 'kingthings_exeter-webfont', sans-serif; font-weight: bold; }

.small-font { font-size: 16px; line-height: 40px; letter-spacing: 3px; }
.normal-font { font-size: 22px; line-height: 50px; letter-spacing: 3px; }
.large-font { font-size: 35px; line-height: 80px; letter-spacing: 3px; }

.dark-mode { background-color: #001d1a; color: #ffffff; }
.light-mode { background-color: #fcf6e9; color: #005e56; }
/* --- Idle session timer (see views/partials/session-timer.php) ------------- */
.session-timer {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
    padding: 10px 14px;
    color: #fff;
    background: rgba(20, 67, 76, .94);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(14, 45, 51, .2);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    visibility: hidden;
}
.session-timer-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}
.session-timer > i { color: #ffd082; font-size: 1.15rem; }
.session-timer-copy { display: flex; flex-direction: column; line-height: 1.2; }
.session-timer-copy small { opacity: .78; font-size: .7rem; }
.session-timer-copy strong { font-size: .82rem; font-weight: 700; }
.session-timer-warning { background: rgba(145, 76, 15, .96); animation: session-pulse 1.5s ease-in-out infinite; }
@keyframes session-pulse { 50% { box-shadow: 0 0 0 5px rgba(228, 169, 83, .18); } }
@media (max-width: 575.98px) {
    .session-timer { left: 10px; bottom: 10px; min-width: 174px; padding: 8px 11px; }
}



/* ==========================================================================
   PIN entry (App\Helpers\PinLock)
   Four digits read better spaced and centred than as ordinary text, and a
   tabular figure stops the dots jittering as they fill.
   ========================================================================== */
.pin-input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: .6em;
    text-indent: .6em;   /* re-centres, since letter-spacing pads the right */
    font-variant-numeric: tabular-nums;
    padding-block: .4rem;
}
.pin-input::placeholder {
    letter-spacing: .6em;
    color: #c3d0dc;
}


/* ==========================================================================
   Upgraded boilerplate surfaces, filter bar & pill navigation
   ========================================================================== */
.surface-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.filter-bar {
    background: var(--bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: .75rem 1rem;
}

.record-pills .nav-link {
    color: var(--muted);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .88rem;
    padding: .45rem .9rem;
    transition: background var(--transition), color var(--transition);
}
.record-pills .nav-link:hover {
    background: var(--brand-light);
    color: var(--brand-dark);
}
.record-pills .nav-link.active {
    background: var(--brand);
    color: #fff;
}

.surface-card .form-control:focus,
.surface-card .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem rgba(0, 192, 141, .18);
}

.detail-table tr:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}
.detail-table th,
.detail-table td {
    padding-top: .85rem;
    padding-bottom: .85rem;
}

/* ==========================================================================
   Zvese Guest Portal Theme (ported from zvese design system)
   ========================================================================== */
.zh { --zh-radius: 1.5rem; }
.zh .row > * { padding-left: calc(var(--bs-gutter-x) * 0.5); }

.zh-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    border-radius: var(--zh-radius);
    padding: clamp(1.75rem, 4.5vw, 4rem) clamp(1.5rem, 4.5vw, 3.5rem) clamp(3.5rem, 6vw, 5.5rem);
    background:
        radial-gradient(720px 360px at 90% -10%, rgba(0, 192, 141, .38), transparent 62%),
        radial-gradient(520px 320px at -5% 110%, rgba(247, 219, 105, .14), transparent 60%),
        linear-gradient(135deg, #0B1F1A 0%, #063f2d 62%, #004d38 100%);
    box-shadow: 0 22px 48px rgba(11, 31, 26, .16);
}
.zh-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .06;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 22px 22px;
}
.zh-hero > * { position: relative; z-index: 1; }
.zh-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: rgba(0, 192, 141, .16);
    color: #5ff2c6;
    border: 1px solid rgba(0, 192, 141, .35);
}
.zh-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--zvese-green);
    box-shadow: 0 0 0 0 rgba(0, 192, 141, .7);
    animation: zhPulse 1.8s infinite;
}
@keyframes zhPulse {
    70% { box-shadow: 0 0 0 .55rem rgba(0, 192, 141, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 192, 141, 0); }
}
.zh-hero h1 {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.06;
    margin: 1rem 0;
    color: #fff;
}
.zh-hero h1 em { font-style: normal; color: var(--zvese-green); }
.zh-hero .zh-lead {
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    color: rgba(255, 255, 255, .78);
    max-width: 34rem;
    line-height: 1.6;
}
.zh-btn-emerald {
    background: var(--zvese-green);
    color: var(--zvese-ink);
    font-weight: 700;
    border: 0;
}
.zh-btn-emerald:hover {
    background: #00d49c;
    color: var(--zvese-ink);
}
.zh-btn-amber {
    background: var(--zvese-amber);
    color: var(--zvese-ink);
    font-weight: 700;
    border: 0;
}
.zh-btn-amber:hover {
    background: #f2d24b;
    color: var(--zvese-ink);
}
.zh-hero-visual-card {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 1.25rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.zh-hero-van-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}
.zh-glass-row {
    display: flex;
    gap: .9rem;
    align-items: center;
    padding: .85rem 1.15rem;
}
.zh-glass-row + .zh-glass-row { border-top: 1px solid rgba(255, 255, 255, .1); }
.zh-glass-ico {
    flex: 0 0 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: .75rem;
    background: var(--zvese-green);
    color: var(--zvese-ink);
}
.zh-glass-row strong { display: block; font-size: .95rem; color: #fff; }
.zh-glass-row span { font-size: .82rem; color: rgba(255, 255, 255, .66); }

.zh-stats {
    position: relative;
    z-index: 2;
    margin: -2.4rem clamp(.75rem, 3.5vw, 2.5rem) 0;
    background: #fff;
    border: 1px solid var(--zvese-line);
    border-radius: 1.25rem;
    box-shadow: 0 14px 36px rgba(11, 31, 26, .10);
}
.zh-stat { padding: 1.1rem .75rem; text-align: center; }
.zh-stat b {
    display: block;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--zvese-ink);
}
.zh-stat:first-child b { color: var(--zvese-green-text); }
.zh-stat small {
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

.zh-section { margin-top: clamp(2.5rem, 5vw, 4.25rem); }
.zh-eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--zvese-green-text);
    margin-bottom: .5rem;
}
.zh-title {
    font-size: clamp(1.65rem, 3.2vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
    margin: 0;
    color: var(--zvese-ink);
}
.zh-sub { color: var(--muted); max-width: 38rem; margin: .65rem 0 0; }

.zh-live {
    background: #fff;
    border: 1px solid var(--zvese-line);
    border-radius: var(--zh-radius);
    padding: clamp(1.25rem, 3vw, 2.25rem);
    box-shadow: 0 8px 28px rgba(11, 31, 26, .06);
}
.zh-signal-card {
    border-radius: 1.1rem;
    border: 1px solid var(--zvese-line);
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.zh-signal-card:hover {
    transform: translateY(-3px);
    border-color: var(--zvese-green);
    box-shadow: 0 12px 28px rgba(0, 192, 141, .14);
}
.zh-step {
    position: relative;
    height: 100%;
    padding: 1.65rem;
    background: #fff;
    border: 1px solid var(--zvese-line);
    border-radius: 1.25rem;
}
.zh-step-num {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    background: var(--zvese-ink);
    color: var(--zvese-green);
    margin-bottom: 1rem;
}
.zh-step h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: .4rem; color: var(--zvese-ink); }
.zh-step p { margin: 0; color: var(--muted); font-size: .94rem; }

.zh-tile {
    height: 100%;
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: var(--zvese-soft);
    border: 1px solid transparent;
    transition: border-color .18s, background .18s, transform .18s;
}
.zh-tile:hover {
    background: #fff;
    border-color: var(--zvese-green);
    transform: translateY(-3px);
}
.zh-ico {
    width: 2.9rem;
    height: 2.9rem;
    display: grid;
    place-items: center;
    border-radius: .9rem;
    background: rgba(0, 192, 141, .14);
    color: var(--zvese-green-text);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.zh-tile h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: .35rem; color: var(--zvese-ink); }
.zh-tile p { margin: 0; color: var(--muted); font-size: .92rem; }

.zh-portal {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.65rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid var(--zvese-line);
    text-decoration: none;
    color: inherit;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.zh-portal:hover {
    transform: translateY(-4px);
    border-color: var(--zvese-green);
    box-shadow: 0 16px 34px rgba(11, 31, 26, .10);
    color: inherit;
}
.zh-portal h3 { font-size: 1.18rem; font-weight: 800; margin: 0 0 .5rem; color: var(--zvese-ink); }
.zh-portal p { color: var(--muted); font-size: .92rem; flex: 1; }
.zh-portal .zh-go { font-weight: 700; color: var(--zvese-green-text); font-size: .92rem; }
.zh-portal .zh-ico.amber { background: rgba(247, 219, 105, .35); color: #7a6200; }
.zh-portal .zh-ico.blue { background: rgba(13, 110, 253, .12); color: #0b5ed7; }

.zh-biz {
    border-radius: var(--zh-radius);
    color: #fff;
    padding: clamp(1.5rem, 4vw, 3.25rem);
    background: radial-gradient(600px 300px at 100% 0%, rgba(0, 192, 141, .22), transparent 60%), #0B1F1A;
}
.zh-biz .zh-title { color: #fff; }
.zh-biz-card {
    height: 100%;
    padding: 1.35rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
}
.zh-biz-card .zh-ico { background: var(--zvese-green); color: var(--zvese-ink); }
.zh-biz-card h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: .3rem; color: #fff; }
.zh-biz-card p { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .66); }
.zh-who { display: flex; gap: .85rem; align-items: flex-start; padding: .85rem 0; }
.zh-who + .zh-who { border-top: 1px solid rgba(255, 255, 255, .1); }
.zh-who i { color: var(--zvese-green); margin-top: .25rem; }
.zh-who strong { display: block; color: #fff; }
.zh-who span { font-size: .88rem; color: rgba(255, 255, 255, .66); }

.zh-cta { height: 100%; border-radius: var(--zh-radius); padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.zh-cta-green { background: linear-gradient(135deg, #00C08D 0%, #00a577 100%); color: var(--zvese-ink); }
.zh-cta-dark { background: #0B1F1A; color: #fff; overflow: hidden; position: relative; }
.zh-cta h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.02em; }
.zh-cta-mock {
    width: 10rem;
    border-radius: 1.1rem;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .4);
    flex-shrink: 0;
}

.zh-banner-hero {
    background: linear-gradient(135deg, #0B1F1A 0%, #004d38 100%);
    color: #fff;
    border-radius: 1.35rem;
    padding: clamp(1.5rem, 3.5vw, 2.75rem);
}

/* Zvese Guest Footer */
.site-footer {
    padding: 38px 0 20px;
    border-top: 1px solid var(--zvese-line);
    background: #fff;
}
.site-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
}
.site-footer-brand { text-decoration: none; margin-bottom: 10px; }
.site-footer p { max-width: 260px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.site-footer h3 { margin: 0 0 12px; color: var(--zvese-ink); font-size: 15px; font-weight: 700; }
.site-footer a:not(.site-footer-brand) {
    display: block;
    margin-bottom: 9px;
    color: #5f6966;
    font-size: 14px;
    text-decoration: none;
}
.site-footer a:not(.site-footer-brand):hover { color: var(--zvese-green-text); }
.site-socials { display: flex; gap: 10px; }
.site-socials a {
    display: inline-grid !important;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--zvese-line);
    border-radius: 50%;
    color: var(--zvese-ink) !important;
    margin: 0 !important;
}
.site-socials a:hover {
    border-color: var(--zvese-green);
    color: var(--zvese-green-text) !important;
}
.site-footer-bottom {
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid var(--zvese-line);
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 991.98px) {
    .site-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 575.98px) {
    .site-footer-grid { grid-template-columns: 1fr; }
    .zh-cta-mock { display: none; }
}

/* Role- & User-Sensitive Web Sidebar */
.zv-web-shell {
    display: flex;
    min-height: calc(100vh - 64px);
    align-items: stretch;
}
.zv-web-main {
    flex: 1 1 auto;
    min-width: 0;
}
.zv-web-sidebar {
    width: 262px;
    flex: 0 0 262px;
    background: #ffffff;
    border-right: 1px solid var(--zvese-line);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 64px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    z-index: 950;
}
body.zv-sb-collapsed .zv-web-sidebar {
    display: none;
}
.zv-web-sb-user {
    background: linear-gradient(135deg, #0B1F1A 0%, #004d38 100%);
    padding: 1rem;
}
.zv-web-sb-pill {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 192, 141, 0.22);
    color: #a7f3d0;
    border: 1px solid rgba(0, 192, 141, 0.35);
}
.zv-web-sb-nav {
    padding: 0.75rem 0.65rem 1.5rem;
}
.zv-web-sb-heading {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    padding: 0.65rem 0.65rem 0.25rem;
}
.zv-web-sb-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.7rem;
    border-radius: 0.6rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    margin-bottom: 2px;
    transition: background 0.15s ease, color 0.15s ease;
}
.zv-web-sb-link:hover {
    background: #f1f5f9;
    color: #00805d;
}
.zv-web-sb-link.active {
    background: #ecfdf5;
    color: #00805d;
    font-weight: 700;
}
.zv-web-sb-link.danger {
    color: #b91c1c;
}
.zv-web-sb-backdrop {
    display: none;
}
@media (max-width: 991.98px) {
    .zv-web-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        max-height: 100vh;
        width: 276px;
        max-width: 84vw;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        z-index: 1090;
        box-shadow: 4px 0 24px rgba(11, 31, 26, 0.22);
    }
    .zv-web-sidebar.open {
        transform: translateX(0);
    }
    .zv-web-sb-backdrop.open {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(11, 31, 26, 0.5);
        z-index: 1080;
    }
}

/* ==========================================================================
   Dark Showcase Home Theme (matches pure-black #000 client brand carousel)
   ========================================================================== */
.zh-hero.zh-hero-stacked {
    padding: 0;
}
.zh-hero-carousel-full {
    width: 100%;
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.zh-carousel-stage {
    background: #000000;
}
.zh-carousel-img {
    height: clamp(230px, 40vw, 490px);
    width: 100%;
    object-fit: contain;
    object-position: center;
    background: #000000;
}
.zh-hero-below {
    padding: clamp(1.5rem, 3.8vw, 3rem) clamp(1.25rem, 4.5vw, 3.5rem) clamp(3.5rem, 6vw, 5.25rem);
}
.zh-carousel-indicators {
    margin-bottom: .6rem;
}
.zh-carousel-indicators [data-bs-target] {
    width: 24px;
    height: 4px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, .45);
    border: 0;
}
.zh-carousel-indicators .active {
    background-color: var(--zvese-green);
}
.zh-carousel-ctrl {
    width: 10%;
    opacity: .65;
    transition: opacity .15s ease;
}
.zh-carousel-ctrl:hover {
    opacity: 1;
}
.zh-glass-strip {
    border-top: 1px solid rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .03);
}
.zh-glass-strip .zh-glass-row {
    border-top: 0 !important;
    padding: .75rem .9rem;
}
@media (min-width: 768px) {
    .zh-glass-strip .zh-glass-row + .zh-glass-row {
        border-left: 1px solid rgba(255, 255, 255, .08);
    }
}
.zh-plate { color: var(--zvese-ink); }
.zh-muted-copy { color: var(--muted); }
.zh-empty-signals { background: #f8fafc; border-color: var(--zvese-line) !important; }

body.zv-dark-home {
    background: #000000 !important;
    color: #f1f5f9;
}
body.zv-dark-home .content,
body.zv-dark-home .zv-web-main {
    background: #000000;
}
body.zv-dark-home .zv-navbar-dark {
    background-color: rgba(0, 0, 0, .90) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .65);
}
body.zv-dark-home .zv-navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, .82);
}
body.zv-dark-home .zv-navbar-dark .navbar-nav .nav-link:hover {
    background: rgba(0, 192, 141, .16);
    color: #ffffff;
}
body.zv-dark-home .zv-navbar-dark .navbar-nav .nav-link.active {
    background: var(--zvese-green);
    color: #000000;
    font-weight: 700;
}
body.zv-dark-home .zv-navbar-dark .brand-degree-dot {
    color: var(--zvese-green);
}
body.zv-dark-home .zv-navbar-dark .dropdown-menu {
    background: #0e1110;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .75);
}
body.zv-dark-home .zv-navbar-dark .dropdown-item {
    color: #e2e8f0;
}
body.zv-dark-home .zv-navbar-dark .dropdown-item:hover {
    background: rgba(0, 192, 141, .16);
    color: #ffffff;
}
body.zv-dark-home .zv-navbar-dark #user_logged_in .user-pill-btn {
    background: #101412;
    border-color: rgba(255, 255, 255, .18);
    color: #f8fafc;
}
body.zv-dark-home .zv-navbar-dark #zvWebSidebarToggle {
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, .24);
}

body.zv-dark-home .zh-hero {
    background:
        radial-gradient(640px 340px at 78% 12%, rgba(0, 192, 141, .14), transparent 64%),
        radial-gradient(480px 300px at 8% 100%, rgba(247, 219, 105, .07), transparent 62%),
        #000000;
    border: 1px solid rgba(255, 255, 255, .09);
    box-shadow: 0 28px 64px rgba(0, 0, 0, .85);
}
body.zv-dark-home .zh-hero::after {
    opacity: .035;
}

body.zv-dark-home .zh-stats {
    background: #0b0d0c;
    border: 1px solid rgba(255, 255, 255, .11);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .75);
}
body.zv-dark-home .zh-stat {
    border-color: rgba(255, 255, 255, .09) !important;
}
body.zv-dark-home .zh-stat b { color: #ffffff; }
body.zv-dark-home .zh-stat:first-child b { color: var(--zvese-green); }
body.zv-dark-home .zh-stat small { color: rgba(255, 255, 255, .58); }

body.zv-dark-home .zh-eyebrow { color: var(--zvese-green); }
body.zv-dark-home .zh-title { color: #ffffff; }
body.zv-dark-home .zh-sub { color: rgba(255, 255, 255, .66); }
body.zv-dark-home .btn-outline-success {
    color: var(--zvese-green);
    border-color: rgba(0, 192, 141, .55);
}
body.zv-dark-home .btn-outline-success:hover {
    background: var(--zvese-green);
    border-color: var(--zvese-green);
    color: #000000;
}

body.zv-dark-home .zh-live,
body.zv-dark-home .zh-step,
body.zv-dark-home .zh-portal {
    background: #0b0d0c;
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .55);
}
body.zv-dark-home .zh-signal-card {
    background: #101311;
    border: 1px solid rgba(255, 255, 255, .10);
}
body.zv-dark-home .zh-signal-card h3,
body.zv-dark-home .zh-step h3,
body.zv-dark-home .zh-tile h3,
body.zv-dark-home .zh-portal h3,
body.zv-dark-home .zh-plate {
    color: #ffffff;
}
body.zv-dark-home .zh-muted-copy,
body.zv-dark-home .zh-step p,
body.zv-dark-home .zh-tile p,
body.zv-dark-home .zh-portal p {
    color: rgba(255, 255, 255, .66);
}
body.zv-dark-home .zh-sig-foot {
    border-color: rgba(255, 255, 255, .10) !important;
}
body.zv-dark-home .zh-empty-signals {
    background: #101311;
    border-color: rgba(255, 255, 255, .10) !important;
    color: #f8fafc;
}
body.zv-dark-home .zh-step-num {
    background: rgba(0, 192, 141, .14);
    border: 1px solid rgba(0, 192, 141, .35);
    color: var(--zvese-green);
}
body.zv-dark-home .zh-tile {
    background: #0b0d0c;
    border: 1px solid rgba(255, 255, 255, .09);
}
body.zv-dark-home .zh-tile:hover {
    background: #101412;
    border-color: var(--zvese-green);
}
body.zv-dark-home .zh-ico {
    background: rgba(0, 192, 141, .16);
    color: var(--zvese-green);
}
body.zv-dark-home .zh-portal .zh-go { color: var(--zvese-green); }
body.zv-dark-home .zh-portal .zh-ico.amber { background: rgba(247, 219, 105, .16); color: #f7db69; }
body.zv-dark-home .zh-portal .zh-ico.blue { background: rgba(59, 130, 246, .18); color: #60a5fa; }

body.zv-dark-home .zh-biz {
    background: radial-gradient(600px 320px at 100% 0%, rgba(0, 192, 141, .16), transparent 62%), #080a09;
    border: 1px solid rgba(255, 255, 255, .10);
}
body.zv-dark-home .zh-biz-card {
    background: #101311;
    border-color: rgba(255, 255, 255, .09);
}
body.zv-dark-home .zh-cta-dark {
    background: #0b0d0c;
    border: 1px solid rgba(255, 255, 255, .10);
}

body.zv-dark-home .zv-footer-dark {
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, .10);
}
body.zv-dark-home .zv-footer-dark h3 { color: #ffffff; }
body.zv-dark-home .zv-footer-dark .brand-degree { color: var(--zvese-green); }
body.zv-dark-home .zv-footer-dark p,
body.zv-dark-home .zv-footer-dark .site-footer-bottom,
body.zv-dark-home .zv-footer-dark a:not(.site-footer-brand) {
    color: rgba(255, 255, 255, .64);
}
body.zv-dark-home .zv-footer-dark a:not(.site-footer-brand):hover {
    color: var(--zvese-green);
}
body.zv-dark-home .zv-footer-dark .site-socials a {
    border-color: rgba(255, 255, 255, .18);
    color: #ffffff !important;
}
body.zv-dark-home .zv-footer-dark .site-footer-bottom {
    border-top-color: rgba(255, 255, 255, .10);
}

/* ---------- Smooth Carousel, Cross-Page Transitions & Reveals ---------- */
@keyframes zvViewFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
@keyframes zvViewFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
::view-transition-old(root) {
    animation: 0.22s cubic-bezier(0.22, 1, 0.36, 1) both zvViewFadeOut;
}
::view-transition-new(root) {
    animation: 0.34s cubic-bezier(0.22, 1, 0.36, 1) both zvViewFadeIn;
}

@keyframes zvPageEnter {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

body.zv-dark-home .zv-web-main {
    animation: zvPageEnter 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: opacity 0.16s cubic-bezier(0.4, 0, 0.2, 1), transform 0.16s cubic-bezier(0.4, 0, 0.2, 1);
}
body.zv-dark-home .zv-web-main.zv-page-leaving {
    opacity: 0 !important;
    transform: translateY(6px);
    pointer-events: none;
}

/* Smooth Carousel Fade & Subtle Depth Settle */
#zhHeroCarousel.carousel-fade .carousel-item {
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
#zhHeroCarousel .zh-carousel-img {
    transform: scale(1.018);
    transition: transform 5.2s cubic-bezier(0.22, 1, 0.36, 1);
}
#zhHeroCarousel .carousel-item.active .zh-carousel-img {
    transform: scale(1);
}

/* Staggered Section / Card Entrance */
.zv-reveal-ready {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--zv-reveal-delay, 0ms);
}
.zv-reveal-ready.zv-revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root),
    body.zv-dark-home .zv-web-main {
        animation: none !important;
        transition: none !important;
    }
    #zhHeroCarousel.carousel-fade .carousel-item,
    #zhHeroCarousel .zh-carousel-img,
    .zv-reveal-ready {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ---------- Dark Theme Coverage Across All Guest Pages ---------- */
body.zv-dark-home .zh {
    color: #e2e8f0;
}
body.zv-dark-home .zh h1,
body.zv-dark-home .zh h2,
body.zv-dark-home .zh h3,
body.zv-dark-home .zh h4,
body.zv-dark-home .zh h5,
body.zv-dark-home .zh .text-dark {
    color: #ffffff !important;
}
body.zv-dark-home .zh .text-muted,
body.zv-dark-home .zh .text-secondary,
body.zv-dark-home .zh .small.text-muted {
    color: rgba(255, 255, 255, .64) !important;
}
body.zv-dark-home .zh .zh-banner-hero {
    background: linear-gradient(135deg, #0b0e0d 0%, #051711 55%, #000000 100%);
    border: 1px solid rgba(0, 192, 141, .24);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .55);
}
body.zv-dark-home .zh .surface-card {
    background: #0b0d0c;
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .48);
    color: #e2e8f0;
}
body.zv-dark-home .zh .surface-card:hover {
    border-color: rgba(0, 192, 141, .32);
}
body.zv-dark-home .zh .bg-light,
body.zv-dark-home .zh .bg-white:not(:has(img[src*="create-qr-code"])) {
    background-color: #111514 !important;
    color: #e2e8f0;
}
body.zv-dark-home .zh .p-2.bg-white:has(img[src*="create-qr-code"]) {
    background-color: #ffffff !important;
    border-color: rgba(255, 255, 255, .25) !important;
}
body.zv-dark-home .zh .btn.bg-white,
body.zv-dark-home .zh button.bg-white {
    background-color: #111514 !important;
    border-color: rgba(255, 255, 255, .12) !important;
    color: #ffffff !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.16s ease;
}
body.zv-dark-home .zh .btn.bg-white:hover,
body.zv-dark-home .zh button.bg-white:hover {
    background-color: #161d1b !important;
    border-color: rgba(0, 192, 141, .45) !important;
}
body.zv-dark-home .zh .border,
body.zv-dark-home .zh .border-top,
body.zv-dark-home .zh .border-bottom {
    border-color: rgba(255, 255, 255, .11) !important;
}
body.zv-dark-home .zh .form-control,
body.zv-dark-home .zh .form-select,
body.zv-dark-home .zh .input-group-text {
    background-color: #0e1211 !important;
    border-color: rgba(255, 255, 255, .16) !important;
    color: #ffffff !important;
}
body.zv-dark-home .zh .form-control::placeholder {
    color: rgba(255, 255, 255, .42);
}
body.zv-dark-home .zh .form-control:focus,
body.zv-dark-home .zh .form-select:focus {
    border-color: var(--zvese-green) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 192, 141, .20);
}
body.zv-dark-home .zh .nav-pills .nav-link {
    background-color: #111514;
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .78);
}
body.zv-dark-home .zh .nav-pills .nav-link:hover {
    color: #ffffff;
    border-color: rgba(0, 192, 141, .38);
}
body.zv-dark-home .zh .nav-pills .nav-link.active {
    background-color: var(--zvese-green);
    border-color: var(--zvese-green);
    color: #000000 !important;
    font-weight: 700;
}
body.zv-dark-home .zh .badge.bg-light,
body.zv-dark-home .zh .badge.text-dark:not(.bg-warning):not(.bg-info) {
    background-color: rgba(255, 255, 255, .08) !important;
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, .14) !important;
}
body.zv-dark-home .zh .badge.bg-warning.text-dark {
    color: #fef08a !important;
}
body.zv-dark-home .zh .btn-outline-dark,
body.zv-dark-home .zh .btn-outline-secondary {
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, .24);
}
body.zv-dark-home .zh .btn-outline-dark:hover,
body.zv-dark-home .zh .btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, .10);
    border-color: rgba(0, 192, 141, .45);
    color: #ffffff;
}
body.zv-dark-home .zh .alert {
    background-color: #111514;
    border-color: rgba(255, 255, 255, .14);
    color: #e2e8f0;
}
body.zv-dark-home .zh .alert-success {
    background-color: rgba(0, 192, 141, .12);
    border-color: rgba(0, 192, 141, .34);
    color: #a7f3d0;
}
body.zv-dark-home .zh .alert-danger {
    background-color: rgba(239, 68, 68, .14);
    border-color: rgba(239, 68, 68, .34);
    color: #fecaca;
}
body.zv-dark-home .zh code {
    background: rgba(0, 192, 141, .12);
    color: #5eead4;
    padding: 0.12rem 0.36rem;
    border-radius: 6px;
}
body.zv-dark-home .leaflet-container {
    border: 1px solid rgba(255, 255, 255, .14);
    background: #0b0d0c;
}
body.zv-dark-home .leaflet-popup-content,
body.zv-dark-home .leaflet-popup-content * {
    color: #0f172a !important;
}

