/* =====================================================================
   GozarSabz Design System  ·  گذرسبز
   Shared by EndPoint.Site (website + admin), EndPoint.PWA and EndPoint.Mobile.
   Served from the Razor class library: /_content/GozarSabzComponents/css/gozarsabz.css
   ===================================================================== */

/* ---------- Fonts (Vazirmatn UI, Farsi digits · SIL OFL) ---------- */
@font-face { font-family: "Vazirmatn"; font-weight: 400; font-display: swap; src: url("../fonts/Vazirmatn-UI-FD-Regular.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 500; font-display: swap; src: url("../fonts/Vazirmatn-UI-FD-Medium.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 700; font-display: swap; src: url("../fonts/Vazirmatn-UI-FD-Bold.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 800; font-display: swap; src: url("../fonts/Vazirmatn-UI-FD-ExtraBold.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
    color-scheme: light;
    --gz-font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

    /* Brand – emerald, tuned for the «مسیر سبز» story */
    --gz-brand-50: #eafbf3; --gz-brand-100: #cff5e3; --gz-brand-200: #a0eac9; --gz-brand-300: #67d9a9;
    --gz-brand-400: #2fc488; --gz-brand-500: #12a870; --gz-brand-600: #0a8a5c; --gz-brand-700: #0b6e4b;
    --gz-brand-800: #0d573d; --gz-brand-900: #0c4733; --gz-brand-950: #04281c;
    --gz-gradient: linear-gradient(135deg, #3ee0a0 0%, #0e9a66 50%, #075a3e 100%);
    --gz-gradient-soft: linear-gradient(135deg, rgba(62, 224, 160, .16), rgba(14, 154, 102, .08));

    /* Surfaces & ink (light) */
    --gz-bg: #f3f5f4;
    --gz-bg-grad: radial-gradient(1200px 600px at 100% -10%, rgba(62, 224, 160, .10), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(42, 120, 214, .06), transparent 60%);
    --gz-surface: #ffffff;
    --gz-surface-2: #f8faf9;
    --gz-surface-3: #eef2f0;
    --gz-glass: rgba(255, 255, 255, .72);
    --gz-border: rgba(12, 17, 16, .08);
    --gz-border-strong: rgba(12, 17, 16, .14);
    --gz-text: #0f1514;
    --gz-text-2: #4f5b58;
    --gz-text-3: #7c8985;
    --gz-primary: #0a8a5c;
    --gz-primary-hover: #0b6e4b;
    --gz-primary-soft: #e3f7ee;
    --gz-primary-ink: #ffffff;
    --gz-ring: rgba(18, 168, 112, .32);
    --gz-sidebar: #0c1311;
    --gz-sidebar-text: #b8c4c0;

    /* Semantic tints (icon chips, badges) */
    --gz-green: #0e9a66;  --gz-green-soft: #e4f6ee;
    --gz-blue: #2a78d6;   --gz-blue-soft: #e7f0fc;
    --gz-amber: #c77c02;  --gz-amber-soft: #fff3d9;
    --gz-red: #d93d42;    --gz-red-soft: #fdeced;
    --gz-violet: #6150c9; --gz-violet-soft: #efedfb;
    --gz-teal: #0f8f95;   --gz-teal-soft: #e2f5f6;
    --gz-pink: #c2477a;   --gz-pink-soft: #fceaf2;
    --gz-slate: #4f5b58;  --gz-slate-soft: #eef2f0;
    --gz-gold: #b7862a;   --gz-gold-soft: #fbf3e2;

    /* Data-viz (validated: CVD-safe adjacent order, light surface #fff) */
    --gz-series-1: #0e9a66; --gz-series-2: #2a78d6; --gz-series-3: #eb6834;
    --gz-series-4: #4a3aa7; --gz-series-5: #eda100; --gz-series-6: #e87ba4;
    --gz-grid: #e6ebe9; --gz-axis: #c6cfcc; --gz-muted-ink: #8a9692;

    /* Shape & depth */
    --gz-r-xs: 8px; --gz-r-sm: 10px; --gz-r-md: 14px; --gz-r-lg: 20px; --gz-r-xl: 28px; --gz-r-pill: 999px;
    --gz-sh-1: 0 1px 2px rgba(16, 24, 22, .05), 0 1px 1px rgba(16, 24, 22, .03);
    --gz-sh-2: 0 6px 20px -6px rgba(16, 24, 22, .10), 0 2px 6px rgba(16, 24, 22, .04);
    --gz-sh-3: 0 28px 60px -18px rgba(16, 24, 22, .25), 0 8px 20px -8px rgba(16, 24, 22, .10);
    --gz-sh-brand: 0 10px 30px -10px rgba(14, 154, 102, .55);
    --gz-ease: cubic-bezier(.2, .8, .2, 1);
    --gz-sidebar-w: 272px;
}

@media (prefers-color-scheme: dark) {
    :root:where(:not([data-theme="light"])) {
        color-scheme: dark;
        --gz-bg: #0a0f0e;
        --gz-bg-grad: radial-gradient(1200px 600px at 100% -10%, rgba(47, 196, 136, .10), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(57, 135, 229, .07), transparent 60%);
        --gz-surface: #121917; --gz-surface-2: #171f1d; --gz-surface-3: #1e2826; --gz-glass: rgba(18, 25, 23, .72);
        --gz-border: rgba(255, 255, 255, .07); --gz-border-strong: rgba(255, 255, 255, .13);
        --gz-text: #eef3f1; --gz-text-2: #b3bfbb; --gz-text-3: #7f8c88;
        --gz-primary: #2fc488; --gz-primary-hover: #52d39f; --gz-primary-soft: rgba(47, 196, 136, .13); --gz-primary-ink: #03261a;
        --gz-ring: rgba(47, 196, 136, .38); --gz-sidebar: #0d1412; --gz-sidebar-text: #aab7b3;
        --gz-green: #3ccf93; --gz-green-soft: rgba(60, 207, 147, .13);
        --gz-blue: #6aa8f0;  --gz-blue-soft: rgba(106, 168, 240, .13);
        --gz-amber: #f0b440; --gz-amber-soft: rgba(240, 180, 64, .13);
        --gz-red: #f07a7e;   --gz-red-soft: rgba(240, 122, 126, .13);
        --gz-violet: #a79cf2; --gz-violet-soft: rgba(167, 156, 242, .14);
        --gz-teal: #4fcfd5;  --gz-teal-soft: rgba(79, 207, 213, .13);
        --gz-pink: #f08bb5;  --gz-pink-soft: rgba(240, 139, 181, .13);
        --gz-slate: #b3bfbb; --gz-slate-soft: rgba(255, 255, 255, .06);
        --gz-gold: #e2b75e;  --gz-gold-soft: rgba(226, 183, 94, .13);
        --gz-series-1: #15a571; --gz-series-2: #3987e5; --gz-series-3: #d95926;
        --gz-series-4: #9085e9; --gz-series-5: #c98500; --gz-series-6: #d55181;
        --gz-grid: #202a28; --gz-axis: #34403d; --gz-muted-ink: #7f8c88;
        --gz-sh-1: 0 1px 2px rgba(0, 0, 0, .4);
        --gz-sh-2: 0 8px 24px -8px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);
        --gz-sh-3: 0 30px 60px -20px rgba(0, 0, 0, .8);
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --gz-bg: #0a0f0e;
    --gz-bg-grad: radial-gradient(1200px 600px at 100% -10%, rgba(47, 196, 136, .10), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(57, 135, 229, .07), transparent 60%);
    --gz-surface: #121917; --gz-surface-2: #171f1d; --gz-surface-3: #1e2826; --gz-glass: rgba(18, 25, 23, .72);
    --gz-border: rgba(255, 255, 255, .07); --gz-border-strong: rgba(255, 255, 255, .13);
    --gz-text: #eef3f1; --gz-text-2: #b3bfbb; --gz-text-3: #7f8c88;
    --gz-primary: #2fc488; --gz-primary-hover: #52d39f; --gz-primary-soft: rgba(47, 196, 136, .13); --gz-primary-ink: #03261a;
    --gz-ring: rgba(47, 196, 136, .38); --gz-sidebar: #0d1412; --gz-sidebar-text: #aab7b3;
    --gz-green: #3ccf93; --gz-green-soft: rgba(60, 207, 147, .13);
    --gz-blue: #6aa8f0;  --gz-blue-soft: rgba(106, 168, 240, .13);
    --gz-amber: #f0b440; --gz-amber-soft: rgba(240, 180, 64, .13);
    --gz-red: #f07a7e;   --gz-red-soft: rgba(240, 122, 126, .13);
    --gz-violet: #a79cf2; --gz-violet-soft: rgba(167, 156, 242, .14);
    --gz-teal: #4fcfd5;  --gz-teal-soft: rgba(79, 207, 213, .13);
    --gz-pink: #f08bb5;  --gz-pink-soft: rgba(240, 139, 181, .13);
    --gz-slate: #b3bfbb; --gz-slate-soft: rgba(255, 255, 255, .06);
    --gz-gold: #e2b75e;  --gz-gold-soft: rgba(226, 183, 94, .13);
    --gz-series-1: #15a571; --gz-series-2: #3987e5; --gz-series-3: #d95926;
    --gz-series-4: #9085e9; --gz-series-5: #c98500; --gz-series-6: #d55181;
    --gz-grid: #202a28; --gz-axis: #34403d; --gz-muted-ink: #7f8c88;
    --gz-sh-1: 0 1px 2px rgba(0, 0, 0, .4);
    --gz-sh-2: 0 8px 24px -8px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);
    --gz-sh-3: 0 30px 60px -20px rgba(0, 0, 0, .8);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; font-family: var(--gz-font); font-size: 15px; line-height: 1.7;
    color: var(--gz-text); background: var(--gz-bg); background-image: var(--gz-bg-grad); background-attachment: fixed;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { margin: 0 0 .4em; line-height: 1.35; font-weight: 800; letter-spacing: -.2px; color: var(--gz-text); }
h1 { font-size: 28px; } h2 { font-size: 22px; } h3 { font-size: 18px; } h4 { font-size: 16px; } h5, h6 { font-size: 14px; }
p { margin: 0 0 1em; }
a { color: var(--gz-primary); text-decoration: none; transition: color .15s; }
@media (hover: hover) and (pointer: fine) { a:hover { color: var(--gz-primary-hover); } }
img, svg, video { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gz-brand-200); color: var(--gz-brand-950); }
:focus-visible { outline: 3px solid var(--gz-ring); outline-offset: 2px; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--gz-border); margin: 20px 0; }
.gz-num, .gz-table td, .gz-tabular { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* thin, quiet scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--gz-border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--gz-border-strong); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }

/* ---------- Icons (SVG sprite) ---------- */
.gz-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.gz-i.sm { width: 16px; height: 16px; } .gz-i.lg { width: 24px; height: 24px; } .gz-i.xl { width: 32px; height: 32px; stroke-width: 1.6; }
[dir="rtl"] .gz-i.flip { transform: scaleX(-1); }

/* Icon chips – soft tinted squares, one colour per domain */
.gz-chip { --c: var(--gz-green); --s: var(--gz-green-soft); display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; color: var(--c); background: var(--s); position: relative; }
.gz-chip .gz-i { width: 21px; height: 21px; }
.gz-chip.sm { width: 32px; height: 32px; border-radius: 10px; } .gz-chip.sm .gz-i { width: 17px; height: 17px; }
.gz-chip.lg { width: 54px; height: 54px; border-radius: 17px; } .gz-chip.lg .gz-i { width: 26px; height: 26px; }
.gz-chip.solid { background: var(--c); color: #fff; box-shadow: 0 8px 18px -8px var(--c); }
.is-green { --c: var(--gz-green); --s: var(--gz-green-soft); }
.is-blue { --c: var(--gz-blue); --s: var(--gz-blue-soft); }
.is-amber { --c: var(--gz-amber); --s: var(--gz-amber-soft); }
.is-red { --c: var(--gz-red); --s: var(--gz-red-soft); }
.is-violet { --c: var(--gz-violet); --s: var(--gz-violet-soft); }
.is-teal { --c: var(--gz-teal); --s: var(--gz-teal-soft); }
.is-pink { --c: var(--gz-pink); --s: var(--gz-pink-soft); }
.is-slate { --c: var(--gz-slate); --s: var(--gz-slate-soft); }
.is-gold { --c: var(--gz-gold); --s: var(--gz-gold-soft); }

/* ---------- Brand ---------- */
.gz-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--gz-text); font-weight: 800; font-size: 20px; letter-spacing: -.3px; line-height: 1; }
.gz-brand img, .gz-brand svg { width: 36px; height: 36px; border-radius: 11px; box-shadow: var(--gz-sh-brand); }
.gz-brand b { color: var(--gz-primary); font-weight: 800; }
.gz-brand small { display: block; font-size: 11px; font-weight: 500; color: var(--gz-text-3); letter-spacing: 0; margin-top: 5px; }
@media (hover: hover) and (pointer: fine) { .gz-brand:hover { color: var(--gz-text); } }

/* Animated logo – the check «passes through the gate» */
.gz-logo-anim .arch { stroke-dasharray: 120; stroke-dashoffset: 120; animation: gz-draw 1s var(--gz-ease) .1s forwards; }
.gz-logo-anim .check { stroke-dasharray: 60; stroke-dashoffset: 60; animation: gz-draw .7s var(--gz-ease) .7s forwards; }
@keyframes gz-draw { to { stroke-dashoffset: 0; } }

/* ---------- Buttons ---------- */
.gz-btn {
    --bg: var(--gz-surface); --fg: var(--gz-text); --bd: var(--gz-border-strong);
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 18px; border-radius: var(--gz-r-md); border: 1px solid var(--bd);
    background: var(--bg); color: var(--fg); font-weight: 700; font-size: 14.5px; white-space: nowrap; cursor: pointer; user-select: none;
    transition: transform .15s var(--gz-ease), background .2s, box-shadow .2s, border-color .2s, color .2s;
}
@media (hover: hover) and (pointer: fine) { .gz-btn:hover { color: var(--fg); border-color: var(--gz-text-3); } }
.gz-btn:active { transform: scale(.97); }
.gz-btn[disabled], .gz-btn.is-disabled { opacity: .5; pointer-events: none; }
.gz-btn .gz-i { width: 19px; height: 19px; }
.gz-btn.primary { --bg: var(--gz-primary); --fg: var(--gz-primary-ink); --bd: transparent; box-shadow: var(--gz-sh-brand), inset 0 1px 0 rgba(255, 255, 255, .18); }
@media (hover: hover) and (pointer: fine) { .gz-btn.primary:hover { --bg: var(--gz-primary-hover); } }
.gz-btn.brand { --fg: #fff; --bd: transparent; background: var(--gz-gradient); background-size: 150% 150%; box-shadow: var(--gz-sh-brand), inset 0 1px 0 rgba(255, 255, 255, .25); }
@media (hover: hover) and (pointer: fine) { .gz-btn.brand:hover { background-position: 100% 100%; } }
.gz-btn.soft { --bg: var(--gz-primary-soft); --fg: var(--gz-primary); --bd: transparent; }
@media (hover: hover) and (pointer: fine) { .gz-btn.soft:hover { --bd: var(--gz-ring); } }
.gz-btn.ghost { --bg: transparent; --bd: transparent; --fg: var(--gz-text-2); }
@media (hover: hover) and (pointer: fine) { .gz-btn.ghost:hover { --bg: var(--gz-surface-3); --fg: var(--gz-text); } }
.gz-btn.dark { --bg: var(--gz-text); --fg: var(--gz-surface); --bd: transparent; }
.gz-btn.danger { --bg: var(--gz-red-soft); --fg: var(--gz-red); --bd: transparent; }
.gz-btn.sm { height: 36px; padding: 0 13px; font-size: 13.5px; border-radius: var(--gz-r-sm); }
.gz-btn.lg { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 16px; }
.gz-btn.block { width: 100%; }
.gz-btn.icon { width: 44px; padding: 0; } .gz-btn.icon.sm { width: 36px; }
.gz-btn .gz-count { position: absolute; top: 6px; inset-inline-end: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gz-red); color: #fff; font-size: 10.5px; line-height: 18px; font-weight: 800; box-shadow: 0 0 0 2px var(--gz-surface); }

/* Loading state – label stays for width, spinner takes its place */
.gz-btn.is-loading { pointer-events: none; }
.gz-btn.is-loading > :not(.gz-spinner) { visibility: hidden; }
.gz-btn.is-loading > .gz-spinner { position: absolute; }
.gz-btn .gz-spinner { display: none; } .gz-btn.is-loading .gz-spinner { display: inline-block; }
.gz-btn.is-loading > .gz-spinner { inset-inline-start: calc(50% - 10px); top: calc(50% - 10px); }
.gz-btn.is-loading:not(.brand) { background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent); background-size: 200% 100%; animation: gz-btn-sheen 1.2s linear infinite; }
@keyframes gz-btn-sheen { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* ---------- Loaders ---------- */
.gz-spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-inline-end-color: transparent; opacity: .9; animation: gz-spin .7s linear infinite; display: inline-block; flex: none; }
.gz-spinner.lg { width: 36px; height: 36px; border-width: 3px; }
@keyframes gz-spin { to { transform: rotate(360deg); } }

.gz-dots { display: inline-flex; gap: 4px; } .gz-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: gz-bounce 1s infinite ease-in-out; }
.gz-dots i:nth-child(2) { animation-delay: .15s; } .gz-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes gz-bounce { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

/* thin top progress bar (navigation & form posts) */
.gz-topbar-progress { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .3s; }
.gz-topbar-progress.is-active { opacity: 1; }
.gz-topbar-progress::before { content: ""; position: absolute; inset-block: 0; inset-inline-end: 100%; width: 40%; background: var(--gz-gradient); border-radius: 3px; box-shadow: 0 0 12px var(--gz-brand-400); animation: gz-progress 1.1s var(--gz-ease) infinite; }
@keyframes gz-progress { 0% { inset-inline-end: 100%; width: 10%; } 60% { width: 45%; } 100% { inset-inline-end: -45%; width: 10%; } }

/* skeletons */
.gz-skel { position: relative; overflow: hidden; background: var(--gz-surface-3); border-radius: var(--gz-r-sm); min-height: 12px; }
.gz-skel::after { content: ""; position: absolute; inset: 0; transform: translateX(100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: gz-shimmer 1.4s infinite; }
:root[data-theme="dark"] .gz-skel::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); }
@keyframes gz-shimmer { to { transform: translateX(-100%); } }

/* overlay for full-card loading */
.gz-loading-veil { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--gz-surface) 70%, transparent); backdrop-filter: blur(3px); border-radius: inherit; z-index: 5; color: var(--gz-primary); }

/* splash */
.gz-splash { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--gz-bg); background-image: var(--gz-bg-grad); z-index: 10000; }
.gz-splash svg { width: 84px; height: 84px; filter: drop-shadow(0 18px 30px rgba(14, 154, 102, .35)); }
.gz-splash .name { font-size: 26px; font-weight: 800; letter-spacing: -.4px; } .gz-splash .name b { color: var(--gz-primary); }
.gz-splash .tag { color: var(--gz-text-3); font-size: 13px; margin-top: -8px; }
.gz-splash .bar { width: 120px; height: 3px; border-radius: 3px; background: var(--gz-surface-3); overflow: hidden; position: relative; margin-top: 8px; }
.gz-splash .bar::after { content: ""; position: absolute; inset-block: 0; width: 40%; background: var(--gz-gradient); border-radius: 3px; animation: gz-splash-bar 1.2s var(--gz-ease) infinite; }
@keyframes gz-splash-bar { from { inset-inline-start: -40%; } to { inset-inline-start: 100%; } }

/* ---------- Forms ---------- */
.gz-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.gz-label { font-size: 13.5px; font-weight: 700; color: var(--gz-text); display: flex; align-items: center; gap: 6px; }
.gz-label .req { color: var(--gz-red); }
.gz-hint { font-size: 12.5px; color: var(--gz-text-3); }
.gz-error { font-size: 12.5px; color: var(--gz-red); display: flex; align-items: center; gap: 5px; }
.gz-input, .gz-select, .gz-textarea {
    width: 100%; height: 48px; padding: 0 14px; border-radius: var(--gz-r-md);
    border: 1px solid var(--gz-border-strong); background: var(--gz-surface); color: var(--gz-text);
    transition: border-color .15s, box-shadow .15s, background .15s; outline: none;
}
.gz-textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.8; }
.gz-input::placeholder, .gz-textarea::placeholder { color: var(--gz-text-3); }
@media (hover: hover) and (pointer: fine) { .gz-input:hover, .gz-select:hover, .gz-textarea:hover { border-color: var(--gz-text-3); } }
.gz-input:focus, .gz-select:focus, .gz-textarea:focus { border-color: var(--gz-primary); box-shadow: 0 0 0 4px var(--gz-ring); }
.gz-input.is-invalid, .input-validation-error { border-color: var(--gz-red) !important; box-shadow: 0 0 0 4px var(--gz-red-soft) !important; }
.gz-input.ltr, .gz-ltr { direction: ltr; text-align: left; }
.gz-input-group { position: relative; display: flex; align-items: center; }
.gz-input-group > .gz-i { position: absolute; inset-inline-start: 14px; color: var(--gz-text-3); pointer-events: none; }
.gz-input-group > .gz-input { padding-inline-start: 44px; }
.gz-input-group > .gz-addon { position: absolute; inset-inline-end: 6px; }
.gz-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237c8985' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; padding-inline-end: 40px; }
.gz-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.gz-check input { appearance: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--gz-border-strong); background: var(--gz-surface); display: grid; place-items: center; transition: .15s; cursor: pointer; margin: 0; }
/* The tick is an SVG (not rotated borders): it looks the same in RTL and LTR */
.gz-check input:checked { border-color: var(--gz-primary); background: var(--gz-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.gz-switch { position: relative; width: 44px; height: 26px; appearance: none; border-radius: 13px; background: var(--gz-surface-3); border: 1px solid var(--gz-border-strong); cursor: pointer; transition: .2s; margin: 0; }
.gz-switch::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--gz-sh-1); transition: .2s var(--gz-ease); }
.gz-switch:checked { background: var(--gz-primary); border-color: var(--gz-primary); }
.gz-switch:checked::after { inset-inline-start: 20px; }

/* one-time-code boxes */
.gz-otp { display: flex; gap: 10px; direction: ltr; justify-content: center; }
.gz-otp input { width: 52px; height: 60px; text-align: center; font-size: 24px; font-weight: 800; border-radius: 14px; border: 1.5px solid var(--gz-border-strong); background: var(--gz-surface); outline: none; transition: .15s; }
.gz-otp input:focus { border-color: var(--gz-primary); box-shadow: 0 0 0 4px var(--gz-ring); transform: translateY(-2px); }
.gz-otp input.filled { border-color: var(--gz-primary); background: var(--gz-primary-soft); }

/* upload drop-zone */
.gz-drop { border: 1.5px dashed var(--gz-border-strong); border-radius: var(--gz-r-lg); padding: 26px; text-align: center; color: var(--gz-text-2); background: var(--gz-surface-2); transition: .2s; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .gz-drop:hover, .gz-drop.is-over { border-color: var(--gz-primary); background: var(--gz-primary-soft); color: var(--gz-primary); } }

/* ---------- Cards & surfaces ---------- */
.gz-card { position: relative; background: var(--gz-surface); border: 1px solid var(--gz-border); border-radius: var(--gz-r-lg); box-shadow: var(--gz-sh-1); padding: 20px; }
.gz-card.pad-0 { padding: 0; } .gz-card.pad-lg { padding: 28px; }
.gz-card.hover { transition: transform .2s var(--gz-ease), box-shadow .2s; }
@media (hover: hover) and (pointer: fine) { .gz-card.hover:hover { transform: translateY(-2px); box-shadow: var(--gz-sh-2); } }
.gz-card.glass { background: var(--gz-glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.gz-card.brand { background: var(--gz-gradient); color: #fff; border: 0; box-shadow: var(--gz-sh-brand); overflow: hidden; }
.gz-card.brand::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at 0% 0%, rgba(255, 255, 255, .25), transparent 60%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 40L40 0' stroke='white' stroke-opacity='.06'/%3E%3C/svg%3E"); pointer-events: none; }
.gz-card.brand h1, .gz-card.brand h2, .gz-card.brand h3, .gz-card.brand h4 { color: #fff; }
.gz-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.gz-card-head h3, .gz-card-head h4 { margin: 0; font-size: 16px; }
.gz-card-head .sub { font-size: 12.5px; color: var(--gz-text-3); margin-top: 1px; }
.gz-card-head .end { margin-inline-start: auto; display: flex; gap: 6px; align-items: center; }
.gz-card-foot { margin: 16px -20px -20px; padding: 12px 20px; border-top: 1px solid var(--gz-border); display: flex; align-items: center; gap: 10px; }

/* KPI stat tile */
.gz-stat { display: flex; flex-direction: column; gap: 14px; }
.gz-stat .top { display: flex; align-items: center; gap: 12px; }
.gz-stat .label { font-size: 13px; color: var(--gz-text-2); font-weight: 500; }
.gz-stat .value { font-size: 28px; font-weight: 800; letter-spacing: -.5px; line-height: 1.1; }
.gz-stat .value small { font-size: 13px; font-weight: 500; color: var(--gz-text-3); margin-inline-start: 4px; }
.gz-stat .foot { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--gz-text-3); }
.gz-delta { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 6px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.gz-delta.up { color: var(--gz-green); background: var(--gz-green-soft); } .gz-delta.down { color: var(--gz-red); background: var(--gz-red-soft); }
.gz-delta .gz-i { width: 14px; height: 14px; stroke-width: 2.4; }

/* ---------- Badges, pills, tags ---------- */
.gz-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--s, var(--gz-slate-soft)); color: var(--c, var(--gz-slate)); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.gz-badge.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.gz-badge.live::before { animation: gz-pulse 1.6s infinite; }
@keyframes gz-pulse { 50% { box-shadow: 0 0 0 6px transparent; opacity: .6; } }
.gz-badge .gz-i { width: 14px; height: 14px; }
.gz-badge.outline { background: transparent; border: 1px solid var(--gz-border-strong); color: var(--gz-text-2); }
.gz-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: var(--gz-surface-3); color: var(--gz-text-2); font-size: 13px; font-weight: 500; border: 1px solid transparent; cursor: default; transition: .15s; }
button.gz-tag, a.gz-tag { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { button.gz-tag:hover, a.gz-tag:hover { border-color: var(--gz-border-strong); color: var(--gz-text); } }
.gz-tag.active { background: var(--gz-text); color: var(--gz-surface); }
.gz-verified { color: var(--gz-blue); width: 18px; height: 18px; }

/* ---------- Avatars ---------- */
.gz-avatar { --size: 40px; width: var(--size); height: var(--size); border-radius: 50%; flex: none; display: inline-grid; place-items: center; overflow: hidden; background: var(--gz-surface-3); color: var(--gz-text-2); font-weight: 800; font-size: calc(var(--size) * .38); object-fit: cover; position: relative; }
.gz-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gz-avatar.sm { --size: 30px; } .gz-avatar.lg { --size: 56px; } .gz-avatar.xl { --size: 96px; }
.gz-avatar.sq { border-radius: 30%; }
.gz-avatar.online::after { content: ""; position: absolute; bottom: 1px; inset-inline-end: 1px; width: 28%; height: 28%; border-radius: 50%; background: var(--gz-brand-400); box-shadow: 0 0 0 2px var(--gz-surface); }
.gz-avatars { display: flex; } .gz-avatars .gz-avatar { box-shadow: 0 0 0 2px var(--gz-surface); } .gz-avatars .gz-avatar + .gz-avatar { margin-inline-start: -10px; }
/* story ring */
.gz-story { display: inline-grid; place-items: center; padding: 3px; border-radius: 50%; background: conic-gradient(from 210deg, #3ee0a0, #0e9a66, #2a78d6, #3ee0a0); }
.gz-story .gz-avatar { box-shadow: 0 0 0 3px var(--gz-surface); }
.gz-story.seen { background: var(--gz-border-strong); }

/* ---------- Progress ---------- */
.gz-progress { height: 8px; border-radius: 8px; background: var(--gz-surface-3); overflow: hidden; }
.gz-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--gz-gradient); transition: width .6s var(--gz-ease); }
.gz-progress.thin { height: 5px; }
.gz-ring { --p: 60; --size: 56px; --c: var(--gz-primary); width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--gz-surface-3) 0); position: relative; flex: none; }
.gz-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--gz-surface); }
.gz-ring > span { position: relative; font-weight: 800; font-size: calc(var(--size) * .24); }

/* ---------- Tabs / segmented ---------- */
.gz-seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 14px; background: var(--gz-surface-3); border: 1px solid var(--gz-border); max-width: 100%; overflow-x: auto; }
.gz-seg > * { height: 34px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--gz-text-2); font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; white-space: nowrap; transition: .2s; }
@media (hover: hover) and (pointer: fine) { .gz-seg > *:hover { color: var(--gz-text); } }
.gz-seg > .active { background: var(--gz-surface); color: var(--gz-text); box-shadow: var(--gz-sh-1); }
.gz-seg .n { font-size: 11px; background: var(--gz-surface-3); border-radius: 8px; padding: 0 6px; line-height: 18px; }
.gz-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--gz-border); overflow-x: auto; }
.gz-tabs > * { padding: 12px 2px; border: 0; background: none; color: var(--gz-text-3); font-weight: 700; font-size: 14px; position: relative; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.gz-tabs > .active { color: var(--gz-text); }
.gz-tabs > .active::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2.5px; border-radius: 3px; background: var(--gz-primary); }

/* ---------- Tables ---------- */
.gz-table-wrap { overflow-x: auto; border-radius: var(--gz-r-lg); }
.gz-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.gz-table th { position: sticky; top: 0; z-index: 1; background: var(--gz-surface-2); color: var(--gz-text-3); font-weight: 700; font-size: 12.5px; text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--gz-border); white-space: nowrap; }
.gz-table td { padding: 14px 16px; border-bottom: 1px solid var(--gz-border); vertical-align: middle; }
.gz-table tbody tr { transition: background .15s; }
@media (hover: hover) and (pointer: fine) { .gz-table tbody tr:hover { background: var(--gz-surface-2); } }
.gz-table tbody tr:last-child td { border-bottom: 0; }
.gz-table .num { text-align: end; }
.gz-cell-main { display: flex; align-items: center; gap: 12px; }
.gz-cell-main .t { font-weight: 700; } .gz-cell-main .s { font-size: 12.5px; color: var(--gz-text-3); }
@media (max-width: 720px) {
    .gz-table.stack thead { display: none; }
    .gz-table.stack tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--gz-border); }
    .gz-table.stack td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border: 0; }
    .gz-table.stack td::before { content: attr(data-label); color: var(--gz-text-3); font-size: 12.5px; }
}

/* ---------- Lists ---------- */
.gz-list { display: flex; flex-direction: column; }
.gz-list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gz-border); }
.gz-list-item:last-child { border-bottom: 0; }
.gz-list-item .body { flex: 1; min-width: 0; }
.gz-list-item .t { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gz-list-item .s { font-size: 12.5px; color: var(--gz-text-3); }
.gz-list-item .end { text-align: end; flex: none; }
a.gz-list-item { color: inherit; border-radius: 12px; }

/* ---------- Checklist / steps ---------- */
.gz-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.gz-step { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.gz-step:last-child { padding-bottom: 0; }
.gz-step::before { content: ""; position: absolute; top: 34px; bottom: 4px; inset-inline-start: 15px; width: 2px; border-radius: 2px; background: var(--gz-border-strong); }
.gz-step:last-child::before { display: none; }
.gz-step.done::before { background: var(--gz-primary); }
.gz-step .dot { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--gz-surface); border: 2px solid var(--gz-border-strong); color: var(--gz-text-3); z-index: 1; }
.gz-step .dot .gz-i { width: 16px; height: 16px; stroke-width: 2.6; }
.gz-step.done .dot { background: var(--gz-primary); border-color: var(--gz-primary); color: var(--gz-primary-ink); }
.gz-step.current .dot { border-color: var(--gz-primary); color: var(--gz-primary); box-shadow: 0 0 0 5px var(--gz-ring); animation: gz-pulse-ring 2s infinite; }
@keyframes gz-pulse-ring { 50% { box-shadow: 0 0 0 9px transparent; } }
.gz-step.blocked .dot { border-color: var(--gz-amber); color: var(--gz-amber); }
.gz-step .body { flex: 1; min-width: 0; padding-top: 4px; }
.gz-step .t { font-weight: 700; font-size: 14.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gz-step .s { font-size: 12.5px; color: var(--gz-text-3); margin-top: 2px; }
.gz-step.done .t { color: var(--gz-text-2); }
.gz-todo { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--gz-border); background: var(--gz-surface-2); margin-top: 8px; font-size: 13.5px; }
.gz-todo.done { opacity: .7; } .gz-todo.done .t { text-decoration: line-through; text-decoration-color: var(--gz-text-3); }

/* ---------- Toast ---------- */
.gz-toasts { position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translateX(50%); z-index: 10001; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.gz-toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--gz-text); color: var(--gz-surface); box-shadow: var(--gz-sh-3); font-weight: 500; font-size: 14px; animation: gz-rise .35s var(--gz-ease); }
@keyframes gz-rise { from { opacity: 0; transform: translateY(14px) scale(.96); } }

/* ---------- Empty & misc ---------- */
.gz-empty { text-align: center; padding: 40px 20px; color: var(--gz-text-3); }
.gz-empty .gz-chip { margin: 0 auto 14px; }
.gz-empty h4 { color: var(--gz-text); }
.gz-kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--gz-border-strong); border-bottom-width: 2px; font-size: 11px; font-weight: 700; color: var(--gz-text-3); font-family: var(--gz-font); background: var(--gz-surface); }
.gz-divider-text { display: flex; align-items: center; gap: 12px; color: var(--gz-text-3); font-size: 12.5px; }
.gz-divider-text::before, .gz-divider-text::after { content: ""; flex: 1; height: 1px; background: var(--gz-border); }
.gz-note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--s, var(--gz-blue-soft)); color: var(--gz-text); font-size: 13.5px; border: 1px solid color-mix(in srgb, var(--c, var(--gz-blue)) 20%, transparent); }
.gz-note > .gz-i { color: var(--c, var(--gz-blue)); margin-top: 2px; }

/* ---------- Charts (Razor SVG components) ---------- */
.gz-chart { position: relative; width: 100%; }
.gz-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.gz-chart .grid line { stroke: var(--gz-grid); stroke-width: 1; }
.gz-chart .axis text, .gz-chart .lbl { fill: var(--gz-muted-ink); font-size: 11px; font-family: var(--gz-font); }
.gz-chart .val { fill: var(--gz-text-2); font-size: 11px; font-weight: 700; font-family: var(--gz-font); }
.gz-chart .baseline { stroke: var(--gz-axis); }
.gz-chart .hit { fill: transparent; cursor: crosshair; }
.gz-chart .hover-line { stroke: var(--gz-text-3); stroke-dasharray: 3 3; opacity: 0; }
.gz-chart .pt { opacity: 0; transition: opacity .15s; }
@media (hover: hover) and (pointer: fine) { .gz-chart g.col:hover .pt, .gz-chart g.col:hover .hover-line { opacity: 1; } }
.gz-chart g.col .tip { opacity: 0; pointer-events: none; transition: opacity .15s; }
@media (hover: hover) and (pointer: fine) { .gz-chart g.col:hover .tip { opacity: 1; } }
.gz-chart .tip rect { fill: var(--gz-text); rx: 8; }
.gz-chart .tip text { fill: var(--gz-surface); font-size: 11.5px; font-family: var(--gz-font); font-weight: 700; }
.gz-chart .bar { transition: opacity .15s; }
@media (hover: hover) and (pointer: fine) { .gz-chart g.col:hover .bar { opacity: .85; } }
.gz-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--gz-text-2); }
.gz-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gz-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.gz-donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.gz-donut-center b { display: block; font-size: 22px; font-weight: 800; } .gz-donut-center small { color: var(--gz-text-3); font-size: 12px; }

/* ---------- Layout helpers ---------- */
.gz-container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
.gz-grid { display: grid; gap: 16px; }
.gz-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gz-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .gz-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gz-grid.auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gz-span-2 { grid-column: span 2; } .gz-span-3 { grid-column: span 3; }
@media (max-width: 1100px) { .gz-grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gz-grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gz-span-3 { grid-column: span 2; } }
@media (max-width: 720px) { .gz-grid.c2, .gz-grid.c3, .gz-grid.c4 { grid-template-columns: minmax(0, 1fr); } .gz-span-2, .gz-span-3 { grid-column: auto; } }
.gz-row { display: flex; align-items: center; gap: 10px; } .gz-row.wrap { flex-wrap: wrap; } .gz-row.between { justify-content: space-between; }
.gz-col { display: flex; flex-direction: column; gap: 10px; }
.gz-stack > * + * { margin-top: 16px; }
.gz-grow { flex: 1; min-width: 0; } .gz-end { margin-inline-start: auto; }
.gz-muted { color: var(--gz-text-3); } .gz-text-2 { color: var(--gz-text-2); } .gz-primary { color: var(--gz-primary); }
.gz-small { font-size: 12.5px; } .gz-xs { font-size: 11.5px; } .gz-bold { font-weight: 700; } .gz-black { font-weight: 800; }
.gz-center { text-align: center; } .gz-nowrap { white-space: nowrap; } .gz-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gz-mt-0 { margin-top: 0; } .gz-mb-0 { margin-bottom: 0; }
.gz-hide-mobile { } @media (max-width: 720px) { .gz-hide-mobile { display: none !important; } }
.gz-only-mobile { display: none; } @media (max-width: 720px) { .gz-only-mobile { display: initial; } }
.gz-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gz-fade-in { animation: gz-rise .5s var(--gz-ease) both; }
.gz-fade-in.d1 { animation-delay: .05s; } .gz-fade-in.d2 { animation-delay: .1s; } .gz-fade-in.d3 { animation-delay: .15s; } .gz-fade-in.d4 { animation-delay: .2s; }

/* =====================================================================
   APP SHELL  (PWA / MAUI user panel and the admin dashboard)
   A floating dark rail on desktop, glass top bar, bottom tab bar on phones.
   ===================================================================== */
.gz-app { display: grid; grid-template-columns: var(--gz-sidebar-w) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.gz-side {
    position: sticky; top: 12px; height: calc(100vh - 24px); height: calc(100dvh - 24px); margin: 12px; margin-inline-end: 0;
    display: flex; flex-direction: column; gap: 6px; padding: 18px 14px; border-radius: 24px;
    background: var(--gz-sidebar); color: var(--gz-sidebar-text); overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5);
}
.gz-side::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 260px at 100% 0%, rgba(47, 196, 136, .18), transparent 60%), radial-gradient(300px 300px at 0% 100%, rgba(57, 135, 229, .10), transparent 60%); pointer-events: none; }
.gz-side > * { position: relative; }
.gz-side .gz-brand { color: #fff; padding: 4px 8px 16px; }
.gz-side .gz-brand b { color: var(--gz-brand-400); }
.gz-side .gz-brand small { color: #7f8c88; }
.gz-side-scroll { flex: 1; overflow-y: auto; margin-inline: -6px; padding-inline: 6px; scrollbar-color: rgba(255, 255, 255, .12) transparent; }
.gz-side .sec { font-size: 11px; font-weight: 700; color: #66736f; padding: 14px 12px 6px; letter-spacing: .2px; }
.gz-nav-item { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 13px; color: var(--gz-sidebar-text); font-weight: 500; font-size: 14px; transition: background .15s, color .15s; position: relative; }
.gz-nav-item .gz-i { width: 20px; height: 20px; opacity: .85; }
@media (hover: hover) and (pointer: fine) { .gz-nav-item:hover { background: rgba(255, 255, 255, .05); color: #fff; } }
.gz-nav-item.active { background: linear-gradient(90deg, rgba(47, 196, 136, .06), rgba(47, 196, 136, .18)); color: #fff; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(47, 196, 136, .18); }
.gz-nav-item.active .gz-i { color: var(--gz-brand-400); opacity: 1; }
.gz-nav-item.active::before { content: ""; position: absolute; inset-inline-start: -14px; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gz-brand-400); box-shadow: 0 0 12px var(--gz-brand-400); }
[dir="rtl"] .gz-nav-item.active::before { border-radius: 4px 0 0 4px; }
.gz-nav-item .pill { margin-inline-start: auto; font-size: 11px; font-weight: 800; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #d9e2df; }
.gz-nav-item .pill.hot { background: var(--gz-brand-400); color: var(--gz-brand-950); }
.gz-side-card { margin-top: 10px; padding: 14px; border-radius: 18px; background: linear-gradient(160deg, rgba(47, 196, 136, .20), rgba(47, 196, 136, .04)); border: 1px solid rgba(47, 196, 136, .20); color: #dfe8e5; font-size: 13px; }
.gz-side-card b { color: #fff; display: block; margin-bottom: 4px; font-size: 14px; }
.gz-side-user { display: flex; align-items: center; gap: 10px; padding: 10px 8px 2px; border-top: 1px solid rgba(255, 255, 255, .06); margin-top: 10px; }
.gz-side-user .n { color: #fff; font-weight: 700; font-size: 13.5px; line-height: 1.3; } .gz-side-user .r { font-size: 11.5px; color: #7f8c88; }

.gz-main { min-width: 0; display: flex; flex-direction: column; }
.gz-top {
    position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; height: 76px; padding: 0 28px;
    background: color-mix(in srgb, var(--gz-bg) 72%, transparent); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
}
.gz-top .title h1 { font-size: 20px; margin: 0; } .gz-top .title .sub { font-size: 12.5px; color: var(--gz-text-3); }
.gz-cmd { display: flex; align-items: center; gap: 10px; width: min(420px, 38vw); height: 44px; padding: 0 12px; border-radius: 14px; background: var(--gz-surface); border: 1px solid var(--gz-border); color: var(--gz-text-3); font-size: 14px; box-shadow: var(--gz-sh-1); cursor: text; margin-inline-start: auto; transition: .15s; }
@media (hover: hover) and (pointer: fine) { .gz-cmd:hover { border-color: var(--gz-border-strong); } }
.gz-cmd input { flex: 1; border: 0; background: none; outline: none; min-width: 0; }
.gz-top .actions { display: flex; gap: 8px; align-items: center; }
.gz-content { padding: 4px 28px 40px; flex: 1; }
.gz-page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 6px 0 22px; }
.gz-page-head h1 { font-size: 26px; margin: 0; } .gz-page-head p { margin: 4px 0 0; color: var(--gz-text-3); }
.gz-page-head .end { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.gz-greet { font-size: 13px; color: var(--gz-text-3); display: flex; align-items: center; gap: 6px; }

/* bottom tab bar (phones) */
.gz-tabbar { display: none; }
@media (max-width: 960px) {
    .gz-app { grid-template-columns: minmax(0, 1fr); }
    .gz-side { display: none; }
    .gz-top { height: 64px; padding: 0 16px; padding-top: env(safe-area-inset-top); height: calc(64px + env(safe-area-inset-top)); }
    .gz-cmd { display: none; }
    .gz-content { padding: 4px 16px calc(110px + env(safe-area-inset-bottom)); }
    .gz-page-head h1 { font-size: 22px; }
    .gz-tabbar {
        display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; position: fixed; z-index: 60;
        inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); height: 68px; padding: 0 6px; border-radius: 24px;
        background: var(--gz-glass); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
        border: 1px solid var(--gz-border); box-shadow: var(--gz-sh-3);
    }
    .gz-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--gz-text-3); font-size: 10.5px; font-weight: 700; position: relative; }
    .gz-tabbar a .gz-i { width: 23px; height: 23px; }
    .gz-tabbar a.active { color: var(--gz-primary); }
    .gz-tabbar a.active::after { content: ""; position: absolute; top: -9px; width: 20px; height: 3px; border-radius: 3px; background: var(--gz-primary); }
    .gz-tabbar .fab { width: 56px; height: 56px; margin: -26px auto 0; border-radius: 19px; display: grid; place-items: center; color: #fff; background: var(--gz-gradient); box-shadow: var(--gz-sh-brand), 0 0 0 5px var(--gz-bg); }
    .gz-tabbar .fab .gz-i { width: 26px; height: 26px; stroke-width: 2.2; }
    .gz-tabbar .fab::after { display: none; }
}

/* offline banner */
.gz-offline { display: none; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; background: var(--gz-amber-soft); color: var(--gz-amber); font-weight: 700; font-size: 13px; }
html.is-offline .gz-offline { display: flex; }

/* ---------- Auth screens ---------- */
.gz-auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.gz-auth-form { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(20px, 6vw, 88px); }
.gz-auth-form .box { width: 100%; max-width: 420px; margin-inline: auto; }
.gz-auth-form h1 { font-size: 28px; margin-top: 32px; }
.gz-auth-art { position: relative; margin: 14px; margin-inline-start: 0; border-radius: 32px; overflow: hidden; background: #062a1d; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; isolation: isolate; }
.gz-auth-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 400px at 85% 10%, rgba(62, 224, 160, .55), transparent 60%), radial-gradient(500px 500px at 0% 100%, rgba(42, 120, 214, .35), transparent 60%), linear-gradient(160deg, #0b6e4b, #04281c); }
.gz-auth-art::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); }
.gz-auth-art .gz-card.glass { background: color-mix(in srgb, var(--gz-surface) 94%, transparent); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .45); }
.gz-auth-art h2 { color: #fff; font-size: 34px; line-height: 1.5; max-width: 520px; }
.gz-auth-art p { color: rgba(255, 255, 255, .75); max-width: 460px; }
@media (max-width: 960px) { .gz-auth { grid-template-columns: 1fr; } .gz-auth-art { display: none; } }

/* avatar tones (initials) */
.gz-avatar.t1 { background: var(--gz-green-soft); color: var(--gz-green); } .gz-avatar.t2 { background: var(--gz-violet-soft); color: var(--gz-violet); }
.gz-avatar.t3 { background: var(--gz-blue-soft); color: var(--gz-blue); } .gz-avatar.t4 { background: var(--gz-amber-soft); color: var(--gz-amber); }
.gz-avatar.t5 { background: var(--gz-teal-soft); color: var(--gz-teal); } .gz-avatar.t6 { background: var(--gz-pink-soft); color: var(--gz-pink); }
.gz-stars { display: inline-flex; gap: 1px; color: #f2b01e; vertical-align: middle; } .gz-stars .gz-i { width: 15px; height: 15px; } .gz-stars .off { color: var(--gz-border-strong); }
.gz-update-banner { position: fixed; z-index: 10002; inset-inline: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); margin-inline: auto; max-width: 420px; display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px 14px 12px 12px; border-radius: 18px; background: var(--gz-text); color: var(--gz-surface); box-shadow: var(--gz-sh-3); font-weight: 500; animation: gz-rise .35s var(--gz-ease); }
h1:focus, h1:focus-visible { outline: none; }

/* ---------- Chat ---------- */
a.gz-card { color: inherit; display: block; }
.gz-chat { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.gz-chat-scroll { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--gz-surface-2); background-image: radial-gradient(var(--gz-border) 1px, transparent 1px); background-size: 18px 18px; }
.gz-day { align-self: center; font-size: 11.5px; color: var(--gz-text-3); background: var(--gz-surface); border: 1px solid var(--gz-border); padding: 2px 12px; border-radius: 99px; margin: 6px 0; }
.gz-msg { display: flex; gap: 8px; align-items: flex-end; max-width: min(78%, 560px); }
.gz-msg.mine { align-self: flex-start; flex-direction: row; }
.gz-msg:not(.mine) { align-self: flex-end; flex-direction: row-reverse; }
.gz-bubble { padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.8; box-shadow: var(--gz-sh-1); position: relative; word-break: break-word; }
.gz-msg.mine .gz-bubble { background: var(--gz-primary); color: var(--gz-primary-ink); border-start-start-radius: 6px; }
.gz-msg:not(.mine) .gz-bubble { background: var(--gz-surface); border: 1px solid var(--gz-border); border-start-end-radius: 6px; }
.gz-bubble .meta { display: flex; gap: 4px; align-items: center; justify-content: flex-end; font-size: 11px; opacity: .72; margin-top: 2px; }
.gz-bubble .meta .gz-i { width: 14px; height: 14px; }
.gz-file { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.gz-file .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); flex: none; }
.gz-msg:not(.mine) .gz-file .ic { background: var(--gz-red-soft); color: var(--gz-red); }
.gz-file .n { font-weight: 700; font-size: 13.5px; } .gz-file .z { font-size: 11.5px; opacity: .75; }
.gz-msg.queued .gz-bubble { opacity: .75; }
.gz-queue { display: inline-flex; align-items: center; gap: 4px; }
.gz-composer { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--gz-border); background: var(--gz-surface); }
.gz-composer textarea { flex: 1; min-height: 44px; max-height: 140px; resize: none; border: 1px solid var(--gz-border-strong); border-radius: 14px; padding: 10px 14px; background: var(--gz-surface-2); outline: none; line-height: 1.7; }
.gz-composer textarea:focus { border-color: var(--gz-primary); box-shadow: 0 0 0 4px var(--gz-ring); }
.gz-channels { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid var(--gz-border); overflow-x: auto; background: var(--gz-surface); }
.gz-channel { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 14px; border: 1px solid var(--gz-border); background: var(--gz-surface); cursor: pointer; white-space: nowrap; font-size: 13.5px; font-weight: 700; color: var(--gz-text-2); transition: .15s; }
.gz-channel.active { border-color: var(--gz-primary); background: var(--gz-primary-soft); color: var(--gz-text); }
.gz-channel .u { min-width: 18px; height: 18px; border-radius: 9px; background: var(--gz-red); color: #fff; font-size: 10.5px; display: grid; place-items: center; padding: 0 5px; }
[dir="rtl"] .flip-send .gz-i { transform: scaleX(-1); }

/* ---------- Case page ---------- */
.gz-case-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; overflow: hidden; }
.gz-case-hero::after { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 45%; background: radial-gradient(400px 220px at 0% 0%, rgba(62, 224, 160, .14), transparent 70%); pointer-events: none; }
.gz-case-hero h1 { font-size: 24px; margin: 6px 0 8px; }
.gz-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--gz-text-2); font-size: 13.5px; }
.gz-meta span { display: inline-flex; align-items: center; gap: 6px; } .gz-meta .gz-i { width: 17px; height: 17px; color: var(--gz-text-3); }
.gz-case-side { display: flex; flex-direction: column; gap: 16px; }
.gz-sum-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--gz-border-strong); font-size: 13.5px; }
.gz-sum-row:last-child { border-bottom: 0; } .gz-sum-row b { font-size: 14.5px; }
.gz-evidence { display: flex; gap: 12px; padding: 12px; border-radius: 16px; background: var(--gz-surface-2); border: 1px solid var(--gz-border); }
.gz-evidence .thumb { width: 92px; height: 72px; border-radius: 12px; flex: none; position: relative; overflow: hidden; background: linear-gradient(135deg, #0d573d, #04281c); display: grid; place-items: center; color: #fff; }
.gz-evidence .thumb::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 12px 12px; }
.gz-evidence .thumb .gz-i { position: relative; width: 28px; height: 28px; }
.gz-evidence .thumb small { position: absolute; bottom: 4px; inset-inline-start: 6px; font-size: 10px; background: rgba(0, 0, 0, .45); padding: 0 6px; border-radius: 6px; }
.gz-cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (max-width: 960px) { .gz-case-hero { grid-template-columns: 1fr; } .gz-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gz-cat { padding: 14px; border-radius: 16px; background: var(--gz-surface); border: 1px solid var(--gz-border); display: flex; flex-direction: column; gap: 8px; }
.gz-cat .v { font-size: 18px; font-weight: 800; } .gz-cat .l { font-size: 12.5px; color: var(--gz-text-3); }
.gz-dispute { margin-top: 8px; display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; background: var(--gz-red-soft); font-size: 12.5px; color: var(--gz-text); }
.gz-doc { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--gz-border); background: var(--gz-surface); transition: .15s; }
@media (hover: hover) and (pointer: fine) { .gz-doc:hover { border-color: var(--gz-border-strong); box-shadow: var(--gz-sh-1); } }

/* ---------- Inbox ---------- */
.gz-inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100dvh - 140px); min-height: 520px; overflow: hidden; }
.gz-inbox-list { border-inline-end: 1px solid var(--gz-border); display: flex; flex-direction: column; min-height: 0; }
.gz-inbox-list .scroll { overflow-y: auto; padding: 6px; }
.gz-conv { display: flex; gap: 12px; padding: 12px; border-radius: 16px; cursor: pointer; transition: background .15s; align-items: center; }
.gz-conv.active { background: var(--gz-primary-soft); }
@media (hover: hover) and (pointer: fine) { .gz-conv:hover { background: var(--gz-surface-2); } }
.gz-conv .t { font-weight: 700; font-size: 14px; } .gz-conv .l { font-size: 12.5px; color: var(--gz-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gz-conv .u { min-width: 20px; height: 20px; border-radius: 10px; background: var(--gz-primary); color: var(--gz-primary-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; }
.gz-chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--gz-border); background: var(--gz-surface); }
@media (max-width: 960px) { .gz-inbox { grid-template-columns: 1fr; height: auto; } .gz-inbox-list { border: 0; } .gz-inbox .gz-chat { display: none; } }

/* ---------- Social ---------- */
.gz-stories { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 8px; }
.gz-stories .s { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--gz-text-2); flex: none; width: 74px; text-align: center; cursor: pointer; }
.gz-stories .s .gz-avatar { --size: 62px; }
.gz-stories .add { width: 68px; height: 68px; border-radius: 50%; border: 2px dashed var(--gz-border-strong); display: grid; place-items: center; color: var(--gz-primary); }
.gz-post .media { margin: 14px -20px; aspect-ratio: 16 / 8; position: relative; overflow: hidden; background: linear-gradient(160deg, #0d573d, #04281c 70%); }
.gz-post .media::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 200px at 80% 20%, rgba(62, 224, 160, .45), transparent 60%), repeating-linear-gradient(90deg, transparent 0 58px, rgba(255, 255, 255, .06) 58px 60px); }
.gz-post .media .ctr { position: absolute; bottom: 18%; inset-inline: 8%; display: flex; gap: 6px; align-items: flex-end; }
.gz-post .media .ctr i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--c); opacity: .92; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .15); }
.gz-post .media .caption { position: absolute; top: 14px; inset-inline-start: 14px; }
.gz-post .body { white-space: pre-line; font-size: 14.5px; }
.gz-post .actions { display: flex; gap: 4px; margin: 10px -8px -8px; }
.gz-post .actions .gz-btn { --fg: var(--gz-text-2); }
.gz-post .actions .liked { --fg: var(--gz-red); }
.gz-broker { display: flex; flex-direction: column; gap: 12px; }
.gz-broker .head { display: flex; gap: 12px; align-items: center; }
.gz-profile-cover { height: 190px; border-radius: 24px 24px 0 0; margin: -28px -28px 0; position: relative; overflow: hidden; background: #062a1d; }
.gz-profile-cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 240px at 85% 0%, rgba(62, 224, 160, .6), transparent 60%), radial-gradient(420px 260px at 10% 100%, rgba(42, 120, 214, .45), transparent 60%), linear-gradient(160deg, #0b6e4b, #04281c); }
.gz-profile-cover::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(to bottom, #000, transparent); }
.gz-profile-id { display: flex; gap: 20px; align-items: flex-end; margin-top: 14px; position: relative; flex-wrap: wrap; }
.gz-profile-id > .gz-avatar { margin-top: -84px; }
.gz-profile-id .gz-avatar { --size: 124px; box-shadow: 0 0 0 5px var(--gz-surface), var(--gz-sh-2); font-size: 40px; }
.gz-profile-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.gz-profile-stats div { display: flex; flex-direction: column; } .gz-profile-stats b { font-size: 20px; font-weight: 800; } .gz-profile-stats span { font-size: 12.5px; color: var(--gz-text-3); }
.gz-bar-row { display: grid; grid-template-columns: 110px 1fr 36px; gap: 10px; align-items: center; font-size: 13px; margin-bottom: 10px; }
.gz-review { padding: 16px 0; border-bottom: 1px solid var(--gz-border); } .gz-review:last-child { border-bottom: 0; }
.gz-reply { margin-top: 10px; margin-inline-start: 20px; padding: 10px 14px; border-radius: 14px; background: var(--gz-surface-2); border-inline-start: 3px solid var(--gz-primary); font-size: 13.5px; }
.gz-demo-banner { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 14px; background: repeating-linear-gradient(135deg, #f2b01e 0 18px, #f5bf42 18px 36px); color: #3b2a00; font-weight: 800; font-size: 13px; text-align: center; }

/* Confirmation dialog (gz.confirm in gz.js and ConfirmHost in Blazor share it) */
.gz-modal-wrap { position: fixed; inset: 0; z-index: 10002; display: grid; place-items: center; padding: 16px; background: rgba(6, 20, 15, .45); backdrop-filter: blur(3px); opacity: 0; transition: opacity .16s ease; }
.gz-modal-wrap.is-open { opacity: 1; }
.gz-modal { width: min(420px, 100%); background: var(--gz-surface); border: 1px solid var(--gz-border); border-radius: 22px; box-shadow: var(--gz-sh-3, 0 30px 80px -20px rgba(0, 0, 0, .45)); padding: 26px 24px 20px; text-align: center; transform: translateY(12px) scale(.97); transition: transform .18s var(--gz-ease, ease); }
.gz-modal-wrap.is-open .gz-modal { transform: none; }
.gz-modal h3 { margin: 14px 0 6px; font-size: 18px; }
.gz-modal p { margin: 0; color: var(--gz-text-2); font-size: 14.5px; line-height: 1.9; }
.gz-modal .gz-modal-detail { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--gz-surface-2); font-size: 13px; color: var(--gz-text-2); text-align: start; white-space: pre-wrap; }
.gz-modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.gz-modal-actions .gz-btn { flex: 1; height: 46px; }
.gz-modal .gz-btn.danger { --bg: var(--gz-red); --fg: #fff; }
@media (prefers-reduced-motion: reduce) { .gz-modal-wrap, .gz-modal { transition: none; } }

/* Complementary services: quote request panel inside the case side column */
.gz-quote { margin: 4px 0 10px; padding: 12px; border-radius: 14px; background: var(--gz-surface-2); border: 1px solid var(--gz-border); display: flex; flex-direction: column; gap: 4px; }
.gz-quote .gz-check { font-size: 13px; }

/* =====================================================================
   Mobile baseline (feels installed, not embedded)
   ===================================================================== */
html { -webkit-tap-highlight-color: transparent; }
/* The app has its own scroll areas; the website keeps pull-to-refresh */
html:has(.gz-app) { overscroll-behavior: none; }
/* iOS zooms into inputs under 16px and never zooms back */
.gz-input, .gz-select, .gz-textarea, .gz-composer textarea, input, select, textarea { font-size: 16px; }
.gz-btn, .gz-seg > *, .gz-tabs > *, .gz-tabbar a, .gz-nav-item, .gz-choice, .gz-chip, .gz-tag, .gz-channel, .gz-tick {
    touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
/* Press feedback on touch-down, for every input type */
.gz-btn { transition: transform 110ms var(--gz-ease), background .15s, border-color .15s, color .15s, box-shadow .15s; }
.gz-btn:not(:disabled):active { transform: scale(.97); }
a.gz-card.hover:active, .gz-card.hover:active, a.gz-list-item:active, .gz-todo.tap:active, .gz-choice:active { transform: scale(.985); }
.gz-tabbar a:active .gz-i { transform: scale(.88); }
.gz-tabbar a .gz-i { transition: transform 110ms var(--gz-ease); }
.gz-chat-scroll, .gz-side-scroll, .gz-modal { overscroll-behavior: contain; }
.gz-scroll-x { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.gz-scroll-x::-webkit-scrollbar { display: none; }

/* =====================================================================
   Work area (PWA / app): dashboard, cases, ledger, documents, chat
   ===================================================================== */
.gz-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.gz-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gz-num { font-variant-numeric: tabular-nums; }
.gz-badge.sm { height: 20px; font-size: 11px; padding: 0 7px; }
.gz-tabs .n { font-size: 11px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--gz-primary-soft); color: var(--gz-primary); }
.gz-grid.gz-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.gz-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 18px; }
.gz-filterbar .gz-input { height: 44px; }

/* Activity feed */
.gz-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.gz-feed li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; position: relative; }
.gz-feed li + li::before { content: ""; position: absolute; top: -8px; height: 16px; inset-inline-start: 17px; width: 2px; border-radius: 2px; background: var(--gz-border); }
.gz-feed .body { flex: 1; min-width: 0; color: inherit; }
.gz-feed .t { font-size: 13.5px; font-weight: 600; line-height: 1.6; }
.gz-feed .s { font-size: 12px; color: var(--gz-text-3); }

/* Onboarding */
.gz-onboard { padding: 12px 0 24px; }
.gz-onboard-hero { text-align: center; max-width: 680px; margin: 8px auto 28px; }
.gz-onboard-hero h1 { font-size: clamp(22px, 4vw, 32px); letter-spacing: -.02em; line-height: 1.25; margin: 16px 0 10px; }
.gz-onboard-hero p { color: var(--gz-text-2); }
.gz-onboard-card { display: flex; flex-direction: column; gap: 12px; }
.gz-onboard-card h3 { margin: 6px 0 0; }
.gz-onboard-card .gz-btn.block, .gz-onboard-card .block { margin-top: auto; }

/* Choice tiles (procedure, ledger category) */
.gz-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gz-choice-grid.tight { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.gz-choice { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border-radius: var(--gz-r-md); border: 1.5px solid var(--gz-border-strong);
    background: var(--gz-surface); color: var(--gz-text-2); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; text-align: start; transition: transform 110ms var(--gz-ease), border-color .15s, background .15s, color .15s; }
.gz-choice .gz-i { color: var(--gz-text-3); flex: none; }
.gz-choice.active { border-color: var(--gz-primary); background: var(--gz-primary-soft); color: var(--gz-primary); box-shadow: 0 0 0 3px var(--gz-ring); }
.gz-choice.active .gz-i { color: var(--gz-primary); }
.gz-choice:disabled:not(.active) { opacity: .45; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { .gz-choice:not(:disabled):hover { border-color: var(--gz-text-3); color: var(--gz-text); } }

/* Forms */
.gz-form .gz-field { margin-bottom: 14px; }
.gz-switch-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px; margin: 4px 0 14px; border-radius: var(--gz-r-md); background: var(--gz-surface-2); border: 1px solid var(--gz-border); cursor: pointer; font-size: 14px; line-height: 1.6; }
.gz-switch-row .gz-switch { flex: none; margin-top: 2px; }
.gz-switch:disabled { opacity: .45; cursor: not-allowed; }
.gz-form-actions { position: sticky; bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.gz-btn.lg { height: 54px; font-size: 16px; border-radius: 16px; }
.gz-file-pick { position: relative; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: var(--gz-r-md); border: 1.5px dashed var(--gz-border-strong); background: var(--gz-surface-2); color: var(--gz-text-2); cursor: pointer; font-size: 14px; }
.gz-file-pick input[type=file], .gz-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.gz-drop { position: relative; display: block; }
.gz-drop.busy { border-color: var(--gz-primary); color: var(--gz-primary); background: var(--gz-primary-soft); }
.gz-spin { animation: gz-spin 1s linear infinite; }
@keyframes gz-spin { to { transform: rotate(360deg); } }

/* Case page */
.gz-hero-actions { gap: 8px; margin-top: 18px; }
.gz-hero-side { align-items: center; gap: 10px; position: relative; z-index: 1; }
.gz-todo.tap { cursor: pointer; transition: transform 110ms var(--gz-ease), border-color .15s; }
@media (hover: hover) and (pointer: fine) { .gz-todo.tap:hover { border-color: var(--gz-primary); } }
.gz-step-actions { margin: 6px 0 4px; padding: 12px; border-radius: 12px; background: var(--gz-surface); border: 1px solid var(--gz-primary); box-shadow: 0 0 0 3px var(--gz-ring); }
.gz-sum-row.total { border-top: 1px solid var(--gz-border-strong); border-bottom: 0; margin-top: 4px; padding-top: 12px; font-weight: 700; }
.gz-tag.off { opacity: .45; text-decoration: line-through; }

/* Ledger */
.gz-ledger { display: flex; flex-direction: column; }
.gz-ledger-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 20px; border-top: 1px solid var(--gz-border); }
.gz-ledger-row.reversed { opacity: .5; }
.gz-ledger-row.reversed .gz-black { text-decoration: line-through; }
.gz-ledger-actions { gap: 6px; margin-top: 10px; }
.gz-dispute { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--gz-amber-soft); font-size: 13px; }

/* Deadlines */
.gz-tick { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; border: 1.5px solid var(--gz-border-strong); background: var(--gz-surface); color: transparent; cursor: pointer; padding: 0; transition: .15s; }
.gz-tick.on { background: var(--gz-primary); border-color: var(--gz-primary); color: #fff; }
.gz-list-item.done .t { text-decoration: line-through; color: var(--gz-text-3); }

/* Chat card */
.gz-chat-card { height: min(640px, calc(100dvh - 220px)); min-height: 420px; overflow: hidden; }
.gz-channels { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--gz-border); background: var(--gz-surface); overflow-x: auto; scrollbar-width: none; }
.gz-channel { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 6px; border-radius: 12px; border: 1px solid transparent; background: none; font: inherit; font-weight: 700; font-size: 13px; color: var(--gz-text-2); cursor: pointer; white-space: nowrap; }
.gz-channel.active { background: var(--gz-surface-2); border-color: var(--gz-border-strong); color: var(--gz-text); }
button.gz-file { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 0; text-align: start; width: 100%; }

/* Inbox list, team, account */
.gz-conv-list .gz-conv { padding: 14px 18px; border-radius: 0; }
.gz-member { display: flex; align-items: center; gap: 14px; }
.gz-member-stat { text-align: center; flex: none; padding: 0 6px; }
.gz-member-stat b { display: block; font-size: 20px; line-height: 1.2; }
.gz-member-stat span { font-size: 11.5px; color: var(--gz-text-3); }
.gz-account { display: flex; align-items: center; gap: 18px; background: var(--gz-gradient-soft); }
button.gz-list-item { width: 100%; border: 0; border-bottom: 1px solid var(--gz-border); background: none; font: inherit; cursor: pointer; text-align: start; }
.gz-usage { margin-bottom: 12px; } .gz-usage .gz-progress { margin-top: 6px; }

@media (max-width: 720px) {
    .gz-page-head { gap: 12px; }
    .gz-page-head h1 { font-size: 22px; letter-spacing: -.01em; }
    .gz-page-head .end { width: 100%; }
    .gz-page-head .end .gz-btn.brand, .gz-page-head .end .gz-btn.primary { flex: 1; }
    /* KPI tiles two per row on phones: less scrolling, same information */
    .gz-grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .gz-grid.c4 .gz-stat { padding: 14px; gap: 10px; }
    .gz-grid.c4 .gz-stat .value { font-size: 21px; }
    .gz-grid.c4 .gz-stat .gz-spark, .gz-grid.c4 .gz-stat svg.gz-sparkline, .gz-grid.c4 .gz-stat .gz-delta { display: none; }
    .gz-grid.c4 .gz-stat .foot { font-size: 11.5px; line-height: 1.5; }
    .gz-grid.c4 .gz-stat .top { gap: 8px; }
    .gz-grid.c4 .gz-stat .gz-chip { width: 34px; height: 34px; border-radius: 11px; }
    .gz-case-hero h1 { font-size: 20px; }
    .gz-hero-side { flex-direction: row; justify-content: space-between; width: 100%; }
    .gz-hero-side .gz-ring { --size: 72px !important; }
    .gz-hero-actions > * { flex: 1 1 calc(50% - 8px); }
    .gz-ledger-row { padding: 14px 16px; }
    .gz-member { flex-wrap: wrap; }
    .gz-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gz-form-actions { position: static; }
    .gz-chat-card { height: calc(100dvh - 250px); }
    .gz-account { gap: 14px; }
}
a.gz-side-card { display: block; text-decoration: none; transition: border-color .15s; }
a.gz-side-card:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { a.gz-side-card:hover { border-color: rgba(47, 196, 136, .45); color: #fff; } }
.gz-side-card .gz-progress { display: block; }
@media (max-width: 720px) {
    /* Case actions: one swipeable row instead of a stack of full-width buttons */
    .gz-row.wrap.gz-hero-actions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -28px; padding: 2px 28px; }
    .gz-hero-actions::-webkit-scrollbar { display: none; }
    .gz-hero-actions > * { flex: none; height: 40px; font-size: 13.5px; padding: 0 14px; }
    .gz-grid.c4 .gz-stat .value small { display: block; margin: 4px 0 0; font-size: 11.5px; }
}

/* Solar Hijri date: day | month | year, the month gets the room */
.gz-date-row { display: grid; grid-template-columns: minmax(64px, .8fr) minmax(110px, 1.6fr) minmax(78px, 1fr); gap: 8px; margin-top: 8px; }
.gz-date-row .gz-select { padding-inline: 10px 28px; min-width: 0; }
/* A checklist step's note */
.gz-step-note { display: flex; gap: 6px; align-items: flex-start; margin-top: 4px; font-size: 12.5px; color: var(--gz-text-2); background: var(--gz-surface); border-radius: 8px; padding: 4px 8px; white-space: pre-wrap; }
.gz-step-note.warn { color: var(--gz-amber); background: var(--gz-amber-soft); }
.gz-step-note .gz-i { flex: none; margin-top: 2px; }

/* ---- Document viewer and redaction editor ---- */
.gz-viewer { position: fixed; inset: 0; z-index: 1200; display: flex; flex-direction: column; background: var(--gz-bg); animation: gz-rise .2s var(--gz-ease); }
@media (min-width: 900px) { .gz-viewer { inset: 24px; border-radius: 22px; border: 1px solid var(--gz-border); box-shadow: var(--gz-sh-3); overflow: hidden; } }
.gz-viewer-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); background: var(--gz-surface); border-bottom: 1px solid var(--gz-border); }
.gz-viewer-share { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 8px 14px; background: var(--gz-amber-soft); border-bottom: 1px solid var(--gz-border); }
.gz-viewer-frame { flex: 1; width: 100%; border: 0; background: #525659; }
.gz-viewer-body { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.gz-viewer-img { max-width: 100%; max-height: calc(100dvh - 120px); border-radius: 10px; box-shadow: var(--gz-sh-2); }
.gz-redact { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.gz-viewer-body:has(> .gz-redact) { background: #3b3f42; }
.gz-redact-page { width: min(100%, 900px); }
.gz-redact-canvas { display: block; width: 100%; height: auto; background: #fff; border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); cursor: crosshair; touch-action: none; }
.gz-redact.pan .gz-redact-canvas { touch-action: pan-x pan-y pinch-zoom; cursor: grab; }
@media (max-width: 720px) { .gz-viewer-bar { flex-wrap: wrap; } .gz-viewer-bar .gz-seg > * { padding: 0 10px; } }

/* Tags input and pick lists */
.gz-tags-input { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 48px; padding: 6px 8px; border-radius: var(--gz-r-md); border: 1px solid var(--gz-border-strong); background: var(--gz-surface); }
.gz-tags-input:focus-within { border-color: var(--gz-primary); box-shadow: 0 0 0 4px var(--gz-ring); }
.gz-tags-field { flex: 1; min-width: 140px; border: 0; outline: none; background: transparent; color: var(--gz-text); height: 34px; font: inherit; font-size: 16px; }
.gz-tag .x { border: 0; background: none; padding: 0; margin-inline-start: 2px; color: var(--gz-text-3); cursor: pointer; display: inline-grid; place-items: center; }
.gz-pick-list { margin-top: 8px; border: 1px solid var(--gz-border); border-radius: 12px; padding: 0 10px; max-height: 320px; overflow: auto; }
.gz-ltr-group { direction: ltr; }
.gz-ltr-group .gz-addon { border-radius: var(--gz-r-md) 0 0 var(--gz-r-md); }
.gz-onboard-grid { max-width: 1200px; margin: 0 auto; }
@media (max-width: 1100px) and (min-width: 721px) { .gz-onboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gz-view-canvas { display: block; width: 100%; max-width: 980px; height: auto; margin: 0 auto; background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .25); border-radius: 4px; }
