/* ==========================================================================
   FEVENT — Design System
   Tokens · Reset · Typography · Layout · Components · App shell
   Mobile-first. Light theme. Tokens are the only source of colour/spacing.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* Families (max two for application UI) */
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-serif: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;

    /* Type scale */
    --fs-caption: 0.75rem;    /* 12 */
    --fs-small: 0.8125rem;    /* 13 */
    --fs-label: 0.875rem;     /* 14 */
    --fs-body: 1rem;          /* 16 */
    --fs-title: 1.125rem;     /* 18 */
    --fs-h3: 1.375rem;        /* 22 */
    --fs-h2: clamp(1.75rem, 1.35rem + 1.6vw, 2.375rem);
    --fs-h1: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);
    --fs-display: clamp(2.5rem, 1.6rem + 4.2vw, 4.5rem);

    --lh-tight: 1.1;
    --lh-snug: 1.25;
    --lh-normal: 1.55;
    --lh-relaxed: 1.7;

    /* Colour — semantic */
    --bg: #FAF8F4;
    --surface: #FFFFFF;
    --surface-2: #F4F1EB;
    --surface-3: #ECE7DE;
    --surface-elev: #FFFFFF;
    --ink: #1F1D1A;
    --text: #1F1D1A;
    --text-2: #5B5750;
    --text-3: #8C877E;
    --text-inverse: #FFFFFF;
    --border: #E6E1D8;
    --border-strong: #CFC8BC;
    --accent: #8B5E34;
    --accent-hover: #73492A;
    --accent-soft: #F3EADF;
    --accent-soft-2: #E9DCCB;
    --success: #2E7D5B;
    --success-soft: #E6F2EC;
    --warning: #A86B12;
    --warning-soft: #FBF0DC;
    --error: #B42318;
    --error-soft: #FBE9E7;
    --info: #2F5F8F;
    --info-soft: #E7EEF6;
    --focus-ring: 0 0 0 3px rgba(139, 94, 52, 0.28);
    --overlay: rgba(31, 29, 26, 0.48);

    /* Spacing scale */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;
    --sp-12: 48px;
    --sp-16: 64px;
    --sp-20: 80px;
    --sp-24: 96px;

    /* Radius */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-pill: 999px;

    /* Shadows (4 levels, very subtle) */
    --sh-1: 0 1px 2px rgba(31, 29, 26, 0.06);
    --sh-2: 0 2px 8px rgba(31, 29, 26, 0.07), 0 1px 2px rgba(31, 29, 26, 0.04);
    --sh-3: 0 12px 32px rgba(31, 29, 26, 0.10), 0 2px 6px rgba(31, 29, 26, 0.05);
    --sh-4: 0 24px 64px rgba(31, 29, 26, 0.18), 0 4px 12px rgba(31, 29, 26, 0.08);

    /* Motion */
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --dur-1: 150ms;
    --dur-2: 240ms;
    --dur-3: 340ms;

    /* Layout */
    --container: 1200px;
    --container-narrow: 760px;
    --container-wide: 1360px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 60px;
    --brand-mark: 40px; /* logo ilustrat (images/app/brand-mark.png) */
    --tabbar-h: 60px;
    --touch: 44px;

    /* Safe areas */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);

    color-scheme: light;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    height: 100%;
    /* Senzație de aplicație nativă: dublul tap nu mai mărește pagina (și dispare și
       întârzierea de 300 ms la atingere). Zoom-ul cu două degete este oprit din meta
       viewport, în fiecare pagină. Elementele care au nevoie de alt gest (banda de
       telefoane, hărțile) își declară singure `touch-action`. */
    touch-action: manipulation;
}

body {
    min-height: 100%;
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: var(--lh-normal);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    overflow-wrap: anywhere;
}

body.is-locked { overflow: hidden; }

img, svg, video, canvas, picture { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--border); }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-sm); }
[tabindex="-1"]:focus-visible { box-shadow: none; } /* programmatic focus targets (headings) */
/* Revenire cu Back: elementul de la care ai plecat este marcat scurt, ca să-l regăsești din ochi. */
.is-nav-return { box-shadow: var(--focus-ring); border-radius: var(--r-sm); animation: navReturn 1.4s ease-out both; }
@keyframes navReturn { 0%, 60% { box-shadow: var(--focus-ring); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .is-nav-return { animation: none; } }
::selection { background: var(--accent-soft-2); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
    font-weight: 600;
    line-height: var(--lh-snug);
    letter-spacing: -0.01em;
    color: var(--ink);
    text-wrap: balance;
}
h1, .h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -0.02em; }
h2, .h2 { font-size: var(--fs-h2); letter-spacing: -0.015em; }
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: var(--fs-title); }
.display { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.025em; font-weight: 600; }
.serif { font-family: var(--font-serif); font-weight: 500; letter-spacing: 0; }
.serif-italic { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
p { text-wrap: pretty; }
.lead { font-size: var(--fs-title); color: var(--text-2); line-height: var(--lh-relaxed); }
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }
.small { font-size: var(--fs-small); }
.caption { font-size: var(--fs-caption); color: var(--text-3); }
.label { font-size: var(--fs-label); font-weight: 500; }
.eyebrow {
    font-size: var(--fs-caption);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--dur-1) var(--ease); }
.link:hover { color: var(--accent-hover); }
.link-quiet { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.link-quiet:hover { color: var(--ink); text-decoration-color: var(--ink); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; letter-spacing: 0.02em; }
.truncate { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tnum { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
.container-wide { max-width: calc(var(--container-wide) + 2 * var(--gutter)); }
.stack > * + * { margin-top: var(--stack-gap, var(--sp-4)); }
.stack-sm { --stack-gap: var(--sp-2); }
.stack-lg { --stack-gap: var(--sp-6); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--cluster-gap, var(--sp-3)); align-items: center; }
.row { display: flex; align-items: center; gap: var(--sp-3); }
.between { justify-content: space-between; }
.grid { display: grid; gap: var(--grid-gap, var(--sp-6)); }
.grid-2 { grid-template-columns: minmax(0, 1fr); }
.grid-3 { grid-template-columns: minmax(0, 1fr); }
.grid-4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section-sm { padding-block: clamp(40px, 6vw, 72px); }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: var(--sp-3); }
.section-head p { margin-top: var(--sp-3); color: var(--text-2); font-size: var(--fs-title); }
.divider { border: 0; border-top: 1px solid var(--border); margin-block: var(--sp-8); }
.visually-hidden, .sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hide-mobile { display: none !important; }
@media (min-width: 900px) { .hide-mobile { display: revert !important; } .hide-desktop { display: none !important; } .btn.hide-mobile { display: inline-flex !important; } }
.text-center { text-align: center; }
.mt-2 { margin-top: var(--sp-2); } .mt-3 { margin-top: var(--sp-3); } .mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); } .mt-8 { margin-top: var(--sp-8); }
.mb-2 { margin-bottom: var(--sp-2); } .mb-3 { margin-bottom: var(--sp-3); } .mb-4 { margin-bottom: var(--sp-4); } .mb-5 { margin-bottom: var(--sp-5); } .mb-6 { margin-bottom: var(--sp-6); } .mb-8 { margin-bottom: var(--sp-8); }
.w-full { width: 100%; }
.flex-1 { flex: 1 1 auto; min-width: 0; }

/* --------------------------------------------------------------------------
   5. ICONS
   -------------------------------------------------------------------------- */
.icon {
    width: 20px; height: 20px; flex: none;
    stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
    vertical-align: middle;
}
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; stroke-width: 1.5; }
.icon-tile {
    width: 44px; height: 44px; border-radius: var(--r-md);
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent-soft); color: var(--accent); flex: none;
}
.icon-tile .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.icon-tile.lg { width: 56px; height: 56px; border-radius: var(--r-lg); }
.icon-tile.lg .icon { width: 26px; height: 26px; }
.icon-tile.neutral { background: var(--surface-2); color: var(--text-2); }
.icon-tile.success { background: var(--success-soft); color: var(--success); }
.icon-tile.error { background: var(--error-soft); color: var(--error); }
.icon-tile.info { background: var(--info-soft); color: var(--info); }
.icon-tile.warning { background: var(--warning-soft); color: var(--warning); }

/* --------------------------------------------------------------------------
   6. BUTTONS  (primary · secondary · ghost · danger · icon)
   -------------------------------------------------------------------------- */
.btn {
    --btn-h: 44px;
    --btn-px: 18px;
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
    min-height: var(--btn-h); padding: 0 var(--btn-px);
    font-size: var(--fs-label); font-weight: 600; line-height: 1;
    border-radius: var(--r-md); border: 1px solid transparent;
    white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent;
    transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease),
                border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.btn:active { transform: scale(0.985); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: var(--text-inverse); border-color: var(--ink); }
.btn-primary:hover { background: #33302B; border-color: #33302B; }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--ink); background: var(--surface); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-soft { background: var(--surface-2); color: var(--ink); }
.btn-soft:hover { background: var(--surface-3); }
.btn-danger { background: transparent; color: var(--error); border-color: transparent; }
.btn-danger:hover { background: var(--error-soft); }
.btn-danger-solid { background: var(--error); color: #fff; border-color: var(--error); }
.btn-danger-solid:hover { background: #952015; }
.btn-sm { --btn-h: 36px; --btn-px: 14px; font-size: var(--fs-small); border-radius: var(--r-sm); }
.btn-lg { --btn-h: 52px; --btn-px: 24px; font-size: var(--fs-body); }
.btn-block { width: 100%; }
.btn-pill { border-radius: var(--r-pill); }
.btn-icon { --btn-px: 0; width: var(--btn-h); padding: 0; border-radius: var(--r-md); }
.btn-icon.btn-sm { width: 36px; }
.btn-icon .icon { width: 20px; height: 20px; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
    content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid currentColor; border-right-color: transparent;
    color: var(--text-inverse); animation: spin 0.7s linear infinite;
}
.btn-secondary.is-loading::after, .btn-ghost.is-loading::after, .btn-soft.is-loading::after { color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-inline { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: var(--fs-label); }
.btn-inline:hover { color: var(--accent-hover); }
.btn-inline .icon { width: 16px; height: 16px; transition: transform var(--dur-1) var(--ease); }
.btn-inline:hover .icon { transform: translateX(2px); }

/* --------------------------------------------------------------------------
   7. FORMS
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field + .field, .field-row + .field, .field + .field-row, .field-row + .field-row { margin-top: var(--sp-4); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
@media (min-width: 640px) { .field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .field-row > .field + .field { margin-top: 0; } }
.field-row > .field + .field { margin-top: 0; }
.field-label { font-size: var(--fs-label); font-weight: 500; color: var(--ink); display: flex; align-items: baseline; gap: 6px; }
.field-label .opt { font-weight: 400; color: var(--text-3); font-size: var(--fs-caption); }
.field-label .req { color: var(--accent); }
.input, .select, .textarea {
    width: 100%; min-height: 46px; padding: 11px 14px;
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--border-strong); border-radius: var(--r-md);
    transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
    appearance: none; -webkit-appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
/* iOS mărește pagina când focalizezi un câmp cu text sub 16px și nu o mai micșorează la loc.
   Pe ecrane tactile toate câmpurile rămân la 16px, indiferent ce spune stilul local — de aceea
   `!important`: regula trebuie să bată stilurile per-modul (admin, workspace) încărcate după. */
@media (pointer: coarse) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
    select, textarea { font-size: 16px !important; }
}
.input:hover, .select:hover, .textarea:hover { border-color: #B9B1A3; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: var(--focus-ring); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--surface-2); color: var(--text-3); cursor: not-allowed; }
.input[readonly] { background: var(--surface-2); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--error); }
.input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.18); }
.textarea { min-height: 120px; resize: vertical; line-height: var(--lh-normal); }
.select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B5750' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px;
}
.field-hint { font-size: var(--fs-small); color: var(--text-3); }
.field-error { font-size: var(--fs-small); color: var(--error); display: flex; align-items: center; gap: 6px; }
.field-error:empty { display: none; }
.field-counter { font-size: var(--fs-caption); color: var(--text-3); text-align: right; }
.input-group { position: relative; display: flex; align-items: stretch; }
.input-group .input { flex: 1; min-width: 0; }
.input-group .input-leading { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.input-group .input-leading + .input { padding-left: 40px; }
.input-group .input-trailing { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.input-group .input.has-trailing { padding-right: 44px; }
.input-group.joined .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group.joined .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; }

/* Checkbox / radio (custom, 44px touch target) */
.check, .radio {
    display: flex; align-items: flex-start; gap: var(--sp-3); cursor: pointer;
    min-height: var(--touch); padding: 6px 0; font-size: var(--fs-label); color: var(--ink); position: relative;
}
.check input, .radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box, .radio .box {
    flex: none; width: 20px; height: 20px; margin-top: 1px;
    border: 1.5px solid var(--border-strong); border-radius: 5px; background: var(--surface);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.radio .box { border-radius: 50%; }
.check .box svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; fill: none; opacity: 0; transform: scale(0.6); transition: all var(--dur-1) var(--ease); }
.radio .box::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform var(--dur-1) var(--ease); }
.check input:checked + .box, .radio input:checked + .box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .box svg { opacity: 1; transform: scale(1); }
.radio input:checked + .box::after { transform: scale(1); }
.check input:focus-visible + .box, .radio input:focus-visible + .box { box-shadow: var(--focus-ring); }
.check .text, .radio .text { line-height: 1.45; }
.check .text small, .radio .text small { display: block; color: var(--text-3); font-size: var(--fs-small); margin-top: 2px; }

/* Switch — single definition for the whole app. Two sizes:
   .switch      42x24, 44px tap target — standalone rows in forms and settings
   .switch-sm   34x20, no tap padding  — dense lists (table rows, section lists, card heads) */
.switch {
    --tr-w: 42px; --tr-h: 24px; --tr-knob: 18px; --tr-pad: 3px;
    display: inline-flex; align-items: center; gap: var(--sp-3); cursor: pointer; min-height: var(--touch); position: relative; font-size: var(--fs-label);
}
.switch-sm { --tr-w: 34px; --tr-h: 20px; --tr-knob: 14px; --tr-pad: 3px; min-height: 0; gap: var(--sp-2); font-size: var(--fs-small); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track {
    flex: none; width: var(--tr-w); height: var(--tr-h); border-radius: var(--r-pill); background: var(--border-strong);
    position: relative; transition: background var(--dur-2) var(--ease);
}
.switch .track::after {
    content: ''; position: absolute; top: var(--tr-pad); left: var(--tr-pad); width: var(--tr-knob); height: var(--tr-knob); border-radius: 50%;
    background: #fff; box-shadow: var(--sh-1); transition: transform var(--dur-2) var(--ease);
}
.switch input:checked + .track { background: var(--ink); }
.switch input:checked + .track::after { transform: translateX(calc(var(--tr-w) - var(--tr-knob) - var(--tr-pad) * 2)); }
.switch input:focus-visible + .track { box-shadow: var(--focus-ring); }
.switch input:disabled + .track { opacity: 0.5; }
.switch input:disabled ~ * { opacity: 0.6; }
.switch:has(input:disabled) { cursor: not-allowed; }

/* Choice cards (radio-as-card) */
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice .choice-body {
    display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: var(--sp-4); transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), transform var(--dur-2) var(--ease);
    min-height: var(--touch);
}
.choice:hover .choice-body { border-color: var(--border-strong); }
.choice input:checked + .choice-body { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.choice input:focus-visible + .choice-body { box-shadow: var(--focus-ring); }
.choice input:disabled + .choice-body { opacity: 0.55; cursor: not-allowed; }
.choice .choice-check {
    position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(0.6); transition: all var(--dur-2) var(--ease-out);
}
.choice .choice-check .icon { width: 13px; height: 13px; stroke-width: 3; }
.choice input:checked ~ .choice-check { opacity: 1; transform: scale(1); }

/* Segmented control */
.segmented { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: var(--r-md); gap: 2px; max-width: 100%; overflow: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented button, .segmented a {
    min-height: 36px; padding: 0 14px; border-radius: 8px; font-size: var(--fs-label); font-weight: 500;
    color: var(--text-2); white-space: nowrap; transition: all var(--dur-1) var(--ease); display: inline-flex; align-items: center; gap: 6px;
}
.segmented .is-active { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); font-weight: 600; }

/* Chips (filters) */
.chips { display: flex; gap: var(--sp-2); overflow-x: auto; min-width: 0; max-width: 100%; flex: 1 1 auto; scrollbar-width: none; padding-block: 2px; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
    border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface);
    font-size: var(--fs-label); font-weight: 500; color: var(--text-2); white-space: nowrap; scroll-snap-align: start;
    transition: all var(--dur-1) var(--ease);
}
.chip:hover { border-color: var(--border-strong); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .icon { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   8. SURFACES
   -------------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.card-pad { padding: clamp(16px, 3vw, 24px); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-5) var(--sp-6) 0; }
.card-head h3 { font-size: var(--fs-title); }
.card-head p { color: var(--text-2); font-size: var(--fs-small); margin-top: 2px; }
.card-body { padding: var(--sp-5) var(--sp-6) var(--sp-6); }
.card-foot { padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--border); }
@media (max-width: 639px) { .card-head { padding: var(--sp-4) var(--sp-4) 0; } .card-body { padding: var(--sp-4); } .card-foot { padding: var(--sp-3) var(--sp-4); } }
.card-hover { transition: box-shadow var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease); }
.card-hover:hover { box-shadow: var(--sh-3); transform: translateY(-2px); border-color: var(--border-strong); }
.surface-2 { background: var(--surface-2); }
.panel { background: var(--surface-2); border-radius: var(--r-lg); padding: var(--sp-5); }

/* Badges */
.badge {
    display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 0 9px;
    border-radius: var(--r-pill); font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.02em;
    background: var(--surface-2); color: var(--text-2); white-space: nowrap;
}
.badge .icon { width: 12px; height: 12px; stroke-width: 2.2; }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-error { background: var(--error-soft); color: var(--error); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-ink { background: var(--ink); color: #fff; }
.badge-outline { background: transparent; border: 1px solid var(--border-strong); color: var(--text-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* Alerts / notices */
.notice { display: flex; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); font-size: var(--fs-label); line-height: 1.5; background: var(--surface-2); color: var(--text-2); border: 1px solid transparent; }
.notice .icon { flex: none; margin-top: 2px; width: 18px; height: 18px; }
.notice strong { color: inherit; font-weight: 600; }
.notice-info { background: var(--info-soft); color: var(--info); }
.notice-success { background: var(--success-soft); color: var(--success); }
.notice-warning { background: var(--warning-soft); color: var(--warning); }
.notice-error { background: var(--error-soft); color: var(--error); }
.notice-accent { background: var(--accent-soft); color: var(--accent); }
.notice .notice-actions { margin-top: var(--sp-2); display: flex; gap: var(--sp-2); flex-wrap: wrap; }

/* Avatar */
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: var(--fs-label); flex: none; }
.avatar.lg { width: 56px; height: 56px; font-size: var(--fs-h3); }

/* Stat tile */
.stat { padding: var(--sp-4) var(--sp-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.stat-value { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: var(--fs-small); color: var(--text-2); margin-top: 4px; }

/* Tabs */
.tabs { display: flex; gap: var(--sp-1); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
    position: relative; flex: none; min-height: 46px; padding: 0 var(--sp-3); display: inline-flex; align-items: center; gap: var(--sp-2);
    font-size: var(--fs-label); font-weight: 500; color: var(--text-2); white-space: nowrap; transition: color var(--dur-1) var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); font-weight: 600; }
.tab.is-active::after { content: ''; position: absolute; left: var(--sp-3); right: var(--sp-3); bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px 2px 0 0; }
.tab .count { font-size: var(--fs-caption); background: var(--surface-2); border-radius: var(--r-pill); padding: 1px 7px; color: var(--text-2); }

/* Dropdown menu */
.menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px; background: var(--surface-elev); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-3); padding: 6px; z-index: 60; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all var(--dur-2) var(--ease); }
.menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-item { display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: 40px; padding: 0 10px; border-radius: var(--r-sm); font-size: var(--fs-label); color: var(--text-2); text-align: left; }
.menu-item:hover { background: var(--surface-2); color: var(--ink); }
.menu-item.danger { color: var(--error); }
.menu-item.danger:hover { background: var(--error-soft); }
.menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.menu-head { padding: 8px 10px 6px; font-size: var(--fs-caption); color: var(--text-3); }

/* Skeleton */
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--r-sm); color: transparent !important; }
.skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skeleton-text { height: 14px; border-radius: 4px; }
.skeleton-title { height: 22px; width: 60%; border-radius: 6px; }
.skeleton-block { height: 120px; border-radius: var(--r-lg); }

/* Empty state */
.empty { text-align: center; padding: clamp(32px, 6vw, 56px) var(--sp-5); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); background: var(--surface); }
.empty .icon-tile { margin: 0 auto var(--sp-4); }
.empty h3 { font-size: var(--fs-title); }
.empty p { color: var(--text-2); font-size: var(--fs-label); max-width: 360px; margin: var(--sp-2) auto 0; }
.empty .actions { margin-top: var(--sp-5); display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap; }

/* Progress bar */
.progress { height: 4px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--ink); border-radius: 2px; transition: width var(--dur-3) var(--ease); }

/* Spinner */
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--ink); animation: spin 0.8s linear infinite; }

/* Kbd-like pill for plan */
.plan-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid var(--border-strong); color: var(--text-2); background: var(--surface); }
.plan-pill.pro { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.plan-pill.standard { border-color: var(--ink); color: var(--ink); }

/* --------------------------------------------------------------------------
   9. OVERLAYS — modal & bottom sheet (same markup, responsive behaviour)
   -------------------------------------------------------------------------- */
.modal {
    position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center;
    padding: 0; background: var(--overlay); opacity: 0; visibility: hidden; transition: opacity var(--dur-2) var(--ease), visibility 0s linear var(--dur-2);
}
.modal.is-open { opacity: 1; visibility: visible; transition: opacity var(--dur-2) var(--ease); }
.modal-panel {
    position: relative; width: 100%; max-height: calc(100dvh - 24px); background: var(--surface-elev); border-radius: var(--r-lg) var(--r-lg) 0 0;
    box-shadow: var(--sh-4); display: flex; flex-direction: column; overflow: hidden;
    transform: translateY(24px); transition: transform var(--dur-3) var(--ease-out);
    padding-bottom: var(--safe-bottom);
}
.modal.is-open .modal-panel { transform: translateY(0); }
.modal-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 10px auto 0; flex: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5) var(--sp-3); flex: none; }
.modal-head h3 { font-size: var(--fs-title); }
.modal-body { padding: 0 var(--sp-5) var(--sp-5); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; flex: 1 1 auto; min-height: 0; }
.modal-foot { display: flex; gap: var(--sp-2); justify-content: flex-end; padding: var(--sp-3) var(--sp-5) var(--sp-4); border-top: 1px solid var(--border); flex: none; flex-wrap: wrap; }
.modal-foot .btn { flex: 1 1 auto; }
.modal-sm .modal-panel { max-width: 440px; }
.modal-lg .modal-panel { max-width: 760px; }
.modal-full .modal-panel { max-height: 100dvh; height: 100dvh; border-radius: 0; }
@media (min-width: 700px) {
    .modal { align-items: center; padding: var(--sp-6); }
    .modal-panel { max-width: 560px; max-height: calc(100vh - 48px); border-radius: var(--r-lg); transform: translateY(12px) scale(0.98); padding-bottom: 0; }
    .modal-grip { display: none; }
    .modal-head { padding: var(--sp-5) var(--sp-6) var(--sp-3); }
    .modal-body { padding: 0 var(--sp-6) var(--sp-6); }
    .modal-foot { padding: var(--sp-4) var(--sp-6); }
    .modal-foot .btn { flex: 0 0 auto; }
    .modal-full .modal-panel { max-width: 1100px; height: auto; max-height: calc(100vh - 48px); border-radius: var(--r-lg); }
}

/* Viewer PDF — rapoartele și tipizatele se deschid aici, nu într-un tab nou */
.modal-pdf .modal-body { padding: 0; background: var(--surface-3); display: flex; }
.pdfv { flex: 1 1 auto; display: flex; min-height: 0; }
.pdfv:not([data-state="ready"]) { align-items: center; justify-content: center; padding: var(--sp-6) var(--sp-5); }
.pdfv-msg { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); text-align: center; max-width: 420px; }
.pdfv-frame { flex: 1 1 auto; width: 100%; border: 0; background: var(--surface-3); }
/* Telefon: documentul ca pagini-imagine derulabile (browserul nu afișează PDF într-un iframe). */
.pdfv[data-state="pages"] { align-items: stretch; justify-content: flex-start; padding: 0; }
.pdfv-pages { flex: 1 1 auto; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); padding: var(--sp-4); background: var(--surface-3); outline: none; }
.pdfv-pages img { display: block; width: 100%; max-width: 720px; height: auto; aspect-ratio: 210 / 297; background: #fff; border-radius: 2px; box-shadow: 0 0 0 1px rgba(31,29,26,0.06), 0 2px 6px rgba(31,29,26,0.08), 0 10px 28px rgba(31,29,26,0.10); }
.pdfv-pages p { margin: 0; text-align: center; }
@media (min-width: 700px) {
    .modal-pdf .modal-panel { width: 100%; max-width: 1000px; height: calc(100vh - 48px); }
}

/* Toast */
/* „înapoi sus” — vezi initBackToTop() din js/main.js */
.to-top {
    position: fixed; right: max(var(--gutter), 16px); bottom: calc(var(--safe-bottom) + 18px + var(--to-top-lift, 0px));
    z-index: 45; width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: var(--sh-2); opacity: 0; transform: translateY(10px) scale(0.94);
    transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), background var(--dur-1);
}
.to-top.is-on { opacity: 1; transform: none; }
.to-top:hover { background: var(--surface-2); }
.to-top .icon { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity var(--dur-1) linear; transform: none; } }

.toast-region { position: fixed; left: 0; right: 0; bottom: calc(var(--safe-bottom) + 16px); z-index: 200; display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); pointer-events: none; padding: 0 var(--sp-4); }
.toast {
    pointer-events: auto; display: flex; align-items: center; gap: var(--sp-3); max-width: 420px; width: 100%;
    padding: 12px 14px; background: var(--ink); color: #fff; border-radius: var(--r-md); box-shadow: var(--sh-3);
    font-size: var(--fs-label); line-height: 1.4;
    opacity: 0; transform: translateY(8px); transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease-out);
}
.toast.is-shown { opacity: 1; transform: translateY(0); }
.toast .icon { width: 18px; height: 18px; flex: none; }
.toast.success .icon { color: #7FD1AA; }
.toast.error .icon { color: #F6A59B; }
.toast.warning .icon { color: #F3C978; }
.toast .toast-action { margin-left: auto; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
body.has-tabbar .toast-region { bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px); }
@media (min-width: 700px) { .toast-region { align-items: flex-end; right: var(--sp-6); left: auto; padding: 0; } .toast { width: auto; min-width: 280px; } }

/* --------------------------------------------------------------------------
   10. APP SHELL — header, mobile nav, footer, tab bar
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 80; height: calc(var(--header-h) + var(--safe-top));
    padding-top: var(--safe-top); background: rgba(250, 248, 244, 0.86); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent; transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.site-header.is-scrolled, .site-header.solid { border-bottom-color: var(--border); background: rgba(255, 255, 255, 0.9); }
.site-header .container { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); min-height: var(--touch); }
.brand-mark { width: var(--brand-mark); height: var(--brand-mark); flex: none; display: block; object-fit: contain; }
/* Wordmark FEVENT (Full Event): majuscule Cormorant, spațiate; „F” în accent. */
.brand-name { display: block; font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; margin-right: -0.18em; line-height: 1; white-space: nowrap; }
.brand-name::first-letter { color: var(--brand-f, var(--accent)); }
.brand-slogan, .footer-brand p.brand-slogan { font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; line-height: 1.3; color: var(--ink); margin-top: var(--sp-2); }
.nav-desktop { display: none; align-items: center; gap: var(--sp-1); }
.nav-desktop a { min-height: 40px; display: inline-flex; align-items: center; white-space: nowrap; padding: 0 14px; border-radius: var(--r-sm); font-size: var(--fs-label); font-weight: 500; color: var(--text-2); transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease); }
.nav-desktop a:hover { color: var(--ink); background: var(--surface-2); }
.nav-desktop a.is-active { color: var(--ink); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: var(--sp-2); }
.nav-actions .btn-cta { display: none; }
.nav-user { position: relative; }
.nav-user-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 2px 8px 2px 2px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); }
.nav-user-btn .name { font-size: var(--fs-label); font-weight: 500; max-width: 120px; }
.nav-user-btn .icon { width: 16px; height: 16px; color: var(--text-3); }
.nav-toggle { display: inline-flex; }
@media (min-width: 900px) {
    /* Pe desktop navigația e un grup de butoane-pastilă: pagina curentă e pastila albă,
       ridicată de pe fundal, restul stau discret în grupul translucid. */
    .nav-desktop { display: flex; gap: 2px; padding: 4px; border-radius: var(--r-pill); background: rgba(31, 29, 26, 0.05); }
    .nav-desktop a { min-height: 36px; padding: 0 clamp(10px, 1.1vw, 16px); border-radius: var(--r-pill); }
    .nav-desktop a:hover { background: rgba(255, 255, 255, 0.72); }
    .nav-desktop a.is-active { background: var(--surface-elev, #fff); box-shadow: var(--sh-1); }
    .nav-desktop a.is-active:hover { background: var(--surface-elev, #fff); }
    .nav-toggle { display: none; }
    .nav-actions .btn-cta { display: inline-flex; }
}

/* Mobile navigation sheet */
.mobile-nav { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.mobile-nav.is-open { visibility: visible; }
.mobile-nav .scrim { position: absolute; inset: 0; background: var(--overlay); opacity: 0; transition: opacity var(--dur-2) var(--ease); }
.mobile-nav.is-open .scrim { opacity: 1; }
.mobile-nav .sheet {
    position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface-elev); border-radius: var(--r-lg) var(--r-lg) 0 0;
    padding: 8px var(--sp-4) calc(var(--sp-5) + var(--safe-bottom)); transform: translateY(100%); transition: transform var(--dur-3) var(--ease-out);
    max-height: calc(100dvh - 40px); overflow-y: auto;
}
.mobile-nav.is-open .sheet { transform: translateY(0); }
.mobile-nav .sheet-head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-2) 0 var(--sp-3); }
.mobile-nav .nav-list a, .mobile-nav .nav-list button { display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: 52px; padding: 0 var(--sp-2); border-radius: var(--r-md); font-size: var(--fs-title); font-weight: 500; color: var(--ink); text-align: left; }
.mobile-nav .nav-list a:hover, .mobile-nav .nav-list a.is-active { background: var(--surface-2); }
.mobile-nav .nav-list .icon { color: var(--text-3); }
.mobile-nav .nav-list a.is-active .icon { color: var(--ink); }
.mobile-nav .nav-user-card { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-3); background: var(--surface-2); border-radius: var(--r-md); margin-bottom: var(--sp-3); }
.mobile-nav .nav-user-id { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
/* Contul meu | Afiliere — două butoane egale, pe același rând */
.mobile-nav .nav-user-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-2); }
.mobile-nav .nav-user-actions .btn { --btn-h: 42px; width: 100%; justify-content: center; }
.mobile-nav .nav-user-actions .btn.is-active { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.mobile-nav .nav-user-card .who { min-width: 0; }
.mobile-nav .nav-user-card .who strong { display: block; font-size: var(--fs-label); }
.mobile-nav .nav-user-card .who span { display: block; font-size: var(--fs-caption); color: var(--text-3); }
.mobile-nav .nav-cta { margin-top: var(--sp-3); display: grid; gap: var(--sp-2); }

/* Bottom tab bar (authenticated area, mobile) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; height: calc(var(--tabbar-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom); background: rgba(255,255,255,0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--text-3); min-height: var(--tabbar-h); }
.tabbar a .icon { width: 22px; height: 22px; }
.tabbar a.is-active { color: var(--ink); }
.tabbar a.is-active .icon { stroke-width: 2.2; }
body.has-tabbar { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom)); }
@media (min-width: 900px) { .tabbar { display: none; } body.has-tabbar { padding-bottom: 0; } }

/* Footer (marketing) */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: clamp(40px, 6vw, 64px) 0 calc(24px + var(--safe-bottom)); }
.footer-grid { display: grid; gap: var(--sp-8); grid-template-columns: minmax(0, 1fr); }
.footer-brand p { color: var(--text-2); font-size: var(--fs-label); margin-top: var(--sp-3); max-width: 320px; }
.footer-col h4 { font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--sp-3); }
.footer-col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text-2); font-size: var(--fs-label); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; justify-content: space-between; font-size: var(--fs-small); color: var(--text-3); }
.footer-legal { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }
.footer-legal img { height: 36px; width: auto; background: #fff; border-radius: 4px; }
.footer-legal a { opacity: 0.85; transition: opacity var(--dur-1) var(--ease); }
.footer-legal .pay-badge { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); color: var(--text-2); }
.footer-legal .pay-badge .icon { width: 16px; height: 16px; color: var(--success); }
.footer-legal a:hover { opacity: 1; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1.4fr minmax(0,1fr) minmax(0,1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr repeat(3, minmax(0,1fr)); } }

/* Page header (simple) */
.page-head { padding: clamp(32px, 5vw, 56px) 0 clamp(20px, 3vw, 32px); }
.page-head h1 { font-size: var(--fs-h2); }
.page-head p { color: var(--text-2); margin-top: var(--sp-2); max-width: 560px; font-size: var(--fs-title); }

/* Sticky action bar (mobile) */
.sticky-actions { position: sticky; bottom: 0; z-index: 40; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--border); padding: var(--sp-3) var(--gutter) calc(var(--sp-3) + var(--safe-bottom)); display: flex; gap: var(--sp-2); align-items: center; }
.sticky-actions .btn { flex: 1; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Share sheet grid */
.share-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); }
.share-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 72px; padding: var(--sp-3) var(--sp-2); border: 1px solid var(--border); border-radius: var(--r-md); font-size: var(--fs-caption); font-weight: 500; color: var(--text-2); background: var(--surface); transition: all var(--dur-1) var(--ease); }
.share-item:hover { border-color: var(--ink); color: var(--ink); }
.share-item .icon { width: 22px; height: 22px; color: var(--ink); }

/* Offline banner */
.offline-banner { position: fixed; top: calc(var(--header-h) + var(--safe-top) + 8px); left: 50%; transform: translateX(-50%); z-index: 95; background: var(--ink); color: #fff; font-size: var(--fs-small); padding: 8px 14px; border-radius: var(--r-pill); display: flex; align-items: center; gap: 8px; box-shadow: var(--sh-3); }

/* Print */
@media print { .site-header, .site-footer, .tabbar, .toast-region, .mobile-nav { display: none !important; } }

/* 2FA setup / recovery codes (cont.html) */
.recovery-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-2); }
.recovery-codes span { display: block; padding: var(--sp-2) var(--sp-3); text-align: center; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--r-sm); font-size: var(--fs-label); letter-spacing: 0.08em; user-select: all; }
.qr-setup { display: flex; justify-content: center; }
.qr-setup canvas { width: 200px; height: 200px; max-width: 100%; padding: var(--sp-2); background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); image-rendering: pixelated; }
.steps-list { list-style: decimal; padding-left: 1.25em; display: grid; gap: var(--sp-1); }

/* ==========================================================================
   Bare de derulare invizibile în toată aplicația.
   Conținutul derulează normal (touch, rotiță, tastatură, bară de spațiu) —
   dispare doar indicatorul, ca invitația și mockup-urile să arate ca un ecran
   de telefon, nu ca o fereastră de browser.
   ========================================================================== */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { width: 0; height: 0; }
*, *::before, *::after { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }
