/* =================================================================
   Dana Duhok — Components
   Clean & minimal: flat surfaces, hairline borders, subtle shadows,
   solid accent buttons. No glass blur, no neon glow.
   ================================================================= */

/* =================================================================
   SURFACE / CARD  (.glass keeps its name but is now a flat card)
   ================================================================= */
.glass {
    position: relative;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    isolation: isolate;
}
.glass--glow {
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.glass--glow:hover {
    border-color: var(--c-border-strong);
    box-shadow: var(--shadow-md);
}

/* =================================================================
   BUTTONS
   ================================================================= */
.btn {
    --btn-h: 46px;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 9px;
    height: var(--btn-h);
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .92rem;
    letter-spacing: -0.005em;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: transform .18s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s;
}
.btn:disabled,.btn.is-loading { opacity: .55; cursor: progress; pointer-events: none; }
.btn svg { width: 16px; height: 16px; }
.btn--sm { --btn-h: 40px; padding: 0 18px; font-size: .85rem; }
.btn--lg { --btn-h: 54px; padding: 0 30px; font-size: .98rem; }
.btn--block { display: flex; width: 100%; }

/* Primary — solid accent (white text; blue meets AA) */
.btn--primary {
    color: var(--c-on-accent);
    background: var(--c-primary);
    box-shadow: var(--shadow-btn);
}
.btn--primary:hover {
    background: var(--c-primary-2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn--primary:active { transform: translateY(0); }

/* Ghost — hairline outline */
.btn--ghost {
    background: var(--c-surface);
    color: var(--c-text);
    border-color: var(--c-border-strong);
}
.btn--ghost:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
    background: var(--c-accent-tint);
}

.btn.danger {
    color: var(--c-danger);
    border-color: color-mix(in srgb, var(--c-danger) 35%, transparent);
    background: color-mix(in srgb, var(--c-danger) 8%, transparent);
}
.btn.danger:hover { background: var(--c-danger); color: #fff; border-color: var(--c-danger); }

/* Loading spinner */
.btn__spinner {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid currentColor; border-right-color: transparent;
    animation: spin .8s linear infinite;
    display: none;
}
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading .btn__label   { opacity: .65; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =================================================================
   Icon button
   ================================================================= */
.icon-btn {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    color: var(--c-text-2);
    cursor: pointer;
    transition: color .18s, border-color .2s, background-color .2s;
}
.icon-btn:hover {
    color: var(--c-primary);
    border-color: var(--c-primary);
    background: var(--c-accent-tint);
}
.icon-btn svg { width: 18px; height: 18px; }

/* =================================================================
   Chip / Badge
   ================================================================= */
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 500;
    color: var(--c-text-2);
    background: var(--c-surface-glass);
    border: 1px solid var(--c-border);
}
.chip__dot {
    width: 7px; height: 7px; border-radius: 999px;
    background: var(--c-success);
}
.chip__dot--alt { background: var(--c-primary); }

.badge {
    display: inline-flex;
    padding: 4px 11px;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid transparent;
}
.badge--pending   { background: color-mix(in srgb, var(--c-warning) 12%, transparent); color: var(--c-warning); border-color: color-mix(in srgb, var(--c-warning) 36%, transparent); }
.badge--confirmed { background: color-mix(in srgb, var(--c-info) 12%, transparent);    color: var(--c-info);    border-color: color-mix(in srgb, var(--c-info) 36%, transparent); }
.badge--completed { background: color-mix(in srgb, var(--c-success) 12%, transparent); color: var(--c-success); border-color: color-mix(in srgb, var(--c-success) 36%, transparent); }
.badge--cancelled { background: color-mix(in srgb, var(--c-danger) 12%, transparent);  color: var(--c-danger);  border-color: color-mix(in srgb, var(--c-danger) 36%, transparent); }
.badge--ok   { background: color-mix(in srgb, var(--c-success) 12%, transparent); color: var(--c-success); border-color: color-mix(in srgb, var(--c-success) 36%, transparent); }
.badge--off  { background: var(--c-surface-glass); color: var(--c-text-3); border-color: var(--c-border); }

/* =================================================================
   Forms
   ================================================================= */
.form { padding: clamp(22px, 3vw, 36px); }
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 7px; position: relative; }
.form-field--full { grid-column: 1 / -1; }
.form-field > label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--c-text);
    letter-spacing: -0.005em;
}
.form-field > input,
.form-field > select,
.form-field > textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border-strong);
    background: var(--c-bg-base);
    color: var(--c-text);
    font-family: inherit;
    font-size: .96rem;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form-field > textarea { resize: vertical; min-height: 110px; }
.form-field > input::placeholder,
.form-field > textarea::placeholder { color: var(--c-text-3); }
.form-field > input:focus,
.form-field > select:focus,
.form-field > textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 16%, transparent);
}
.form-field.is-invalid > input,
.form-field.is-invalid > select,
.form-field.is-invalid > textarea {
    border-color: var(--c-danger);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-danger) 14%, transparent);
}

/* Select — clean custom dropdown */
.form-field > select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    padding-right: 42px;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%2379808F' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
    line-height: 1.3;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.form-field > select:hover {
    border-color: color-mix(in srgb, var(--c-primary) 45%, var(--c-border-strong));
}
.form-field > select:disabled { opacity: .55; cursor: not-allowed; }
.form-field > select option,
.status-select option {
    background-color: var(--c-bg-1);
    color: var(--c-text);
    padding: 10px 14px;
    font-weight: 500;
}
.form-field > select option:checked,
.status-select option:checked { color: var(--c-primary); font-weight: 600; }
.form-field > select option:disabled { color: var(--c-text-3); }
.form-field__error {
    color: var(--c-danger);
    font-size: .8rem;
    margin-top: 4px;
    display: none;
}
.form-field.is-invalid .form-field__error { display: block; }

.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.form-note { font-size: .82rem; color: var(--c-text-3); margin: 0; max-width: 40ch; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--c-text-2); }
.check input { width: 18px; height: 18px; accent-color: var(--c-primary); }

/* =================================================================
   Modal
   ================================================================= */
.modal {
    position: fixed; inset: 0; z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(10,12,18,0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: fadeIn .2s ease;
}
.modal__panel {
    position: relative;
    width: min(720px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: pop .28s cubic-bezier(.2,.8,.2,1);
}
.modal__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid var(--c-border);
}
.modal__head h2 { margin: 0; font-size: 1.2rem; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop    { from { opacity: 0; transform: scale(.98) translateY(6px); } to { opacity: 1; transform: none; } }

/* =================================================================
   Toast — "Signal Card": bold tinted alert with semantic rail,
   filled icon chip, colored under-glow, close button + drain bar.
   Token-driven only (info = brand accent). Works light + dark +
   reduced-motion. Body/title text never sits on a saturated fill,
   so contrast stays AA in both modes.
   ================================================================= */
.toast-host {
    position: fixed; right: 22px; bottom: 22px;
    z-index: 100100;              /* above modals (100000) + lightbox (100050) */
    display: flex; flex-direction: column; gap: 14px;
    width: min(92vw, 400px);
    pointer-events: none;         /* host is click-through; toasts re-enable */
}

.toast {
    /* one per-type token drives rail, chip, glow, title, bar */
    --toast-accent: var(--c-info);
    --toast-dur: 4200ms;          /* JS overrides inline to match the timeout */

    position: relative;
    pointer-events: auto;
    width: 100%;
    min-width: 300px;
    box-sizing: border-box;
    padding: 16px 42px 17px 20px;  /* right pad clears the close button */
    border-radius: var(--radius-lg);
    color: var(--c-text);
    /* faint same-hue wash so the card reads as "charged", never stark white */
    background:
        linear-gradient(90deg,
            color-mix(in srgb, var(--toast-accent) 10%, var(--c-surface)) 0%,
            color-mix(in srgb, var(--toast-accent) 4%,  var(--c-surface)) 58%,
            var(--c-surface) 100%);
    border: 1px solid color-mix(in srgb, var(--toast-accent) 34%, var(--c-border));
    border-left: 6px solid var(--toast-accent);   /* thick semantic rail */
    /* elevation + a soft colored under-glow so it looks lit by its status */
    box-shadow:
        var(--shadow-lg),
        0 0 0 1px color-mix(in srgb, var(--toast-accent) 24%, transparent),
        0 12px 36px -8px color-mix(in srgb, var(--toast-accent) 44%, transparent);
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    column-gap: 14px;
    overflow: hidden;             /* clips the drain bar to the rounded corners */
    isolation: isolate;
    animation: toastIn .36s cubic-bezier(.18,.9,.28,1.12) both;
    transition: transform .18s ease, box-shadow .18s ease;
}
.toast:hover {
    transform: translateY(-2px);
    box-shadow:
        var(--shadow-lg),
        0 0 0 1px color-mix(in srgb, var(--toast-accent) 34%, transparent),
        0 18px 46px -8px color-mix(in srgb, var(--toast-accent) 54%, transparent);
}
.toast.is-leaving { animation: toastOut .26s cubic-bezier(.4,0,1,1) forwards; }

/* Per-type accent — info follows the brand accent (monochrome) */
.toast--info    { --toast-accent: var(--c-info);    }
.toast--success { --toast-accent: var(--c-success); }
.toast--error   { --toast-accent: var(--c-danger);  }
.toast--warning { --toast-accent: var(--c-warning); }

/* Solid filled semantic icon chip — the bold focal element */
.toast__icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-weight: 800; font-size: 1.2rem; line-height: 1;
    background: var(--toast-accent);
    color: var(--c-on-accent);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.28),
        0 6px 16px -6px color-mix(in srgb, var(--toast-accent) 60%, transparent);
}
/* Amber is too light to carry white text — use dark ink (AA). */
.toast--warning .toast__icon { color: #1A1206; }

.toast__body { min-width: 0; padding-top: 2px; }   /* let long text wrap */
.toast__title {
    font-weight: 700;
    font-size: .98rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    /* colored title; deepened toward black on LIGHT below for AA */
    color: var(--toast-accent);
}
/* Deepen colored titles on light surfaces so they clear AA normal text */
html[data-mode="light"] .toast__title {
    color: color-mix(in srgb, var(--toast-accent) 78%, #000);
}
/* info uses the pre-vetted accent-ink token in both modes */
.toast--info .toast__title { color: var(--c-accent-ink); }

.toast__msg {
    font-size: .88rem;
    line-height: 1.45;
    color: var(--c-text-2);          /* ~8:1 light / ~7:1 dark */
    margin-top: 3px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

/* Close button — real <button>, clear focus ring */
.toast__close {
    position: absolute;
    top: 9px; right: 9px;
    width: 28px; height: 28px;
    padding: 0; margin: 0;
    border: 0; border-radius: 9px;
    background: transparent;
    color: var(--c-text-3);
    font-size: 1.15rem; line-height: 1;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s ease, color .15s ease, transform .12s ease;
}
.toast__close:hover {
    background: color-mix(in srgb, var(--toast-accent) 14%, transparent);
    color: color-mix(in srgb, var(--toast-accent) 80%, var(--c-text));
}
.toast__close:active { transform: scale(.92); }
.toast__close:focus-visible {
    outline: 2px solid var(--toast-accent);
    outline-offset: 2px;
}

/* Auto-dismiss progress bar — drains full -> empty, synced to --toast-dur */
.toast__progress {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    grid-column: 1 / -1;
    transform-origin: left center;
    background: linear-gradient(90deg,
        var(--toast-accent),
        color-mix(in srgb, var(--toast-accent) 55%, var(--c-surface)));
    animation: toastProgress var(--toast-dur) linear forwards;
}
/* pause the countdown visual while the user reads (JS pauses the timer too) */
.toast:hover .toast__progress,
.toast:focus-within .toast__progress,
.toast.is-leaving .toast__progress { animation-play-state: paused; }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(18px) scale(.97); }
    to   { opacity: 1; transform: none; }
}
@keyframes toastOut {
    from { opacity: 1; transform: none; }
    to   { opacity: 0; transform: translateX(24px) scale(.98); }
}
@keyframes toastProgress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* -----------------------------------------------------------------
   DARK mode — semantic + brand tokens auto-swap to their brighter
   variants, so the single --toast-accent recolors everything. We only
   strengthen the wash / ring so the card stays "charged" on navy, and
   keep dark titles bright (the light-mode #000-deepen is scoped out).
   ----------------------------------------------------------------- */
html[data-mode="dark"] .toast {
    background:
        linear-gradient(90deg,
            color-mix(in srgb, var(--toast-accent) 18%, var(--c-surface)) 0%,
            color-mix(in srgb, var(--toast-accent) 8%,  var(--c-surface)) 58%,
            var(--c-surface) 100%);
    border-color: color-mix(in srgb, var(--toast-accent) 42%, var(--c-border));
    box-shadow:
        var(--shadow-lg),
        0 0 0 1px color-mix(in srgb, var(--toast-accent) 34%, transparent),
        0 14px 40px -8px color-mix(in srgb, var(--toast-accent) 46%, #000);
}

/* -----------------------------------------------------------------
   Reduced motion — no slide/scale entrance, no draining animation;
   the bar renders as a static full-width accent rule. Auto-dismiss
   still works (it is driven by setTimeout in JS, not by the bar).
   ----------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .toast            { animation: toastFade .2s ease both; transition: none; }
    .toast:hover      { transform: none; }
    .toast.is-leaving { animation: toastFade .2s ease reverse forwards; }
    .toast__progress  { animation: none; transform: scaleX(1); opacity: .6; }
    @keyframes toastFade { from { opacity: 0; } to { opacity: 1; } }
}

/* =================================================================
   Icons & misc
   ================================================================= */
.ico    { width: 22px; height: 22px; stroke-width: 1.7; }
.ico--md{ width: 26px; height: 26px; }
.ico--lg{ width: 28px; height: 28px; }
.ico--xl{ width: 56px; height: 56px; stroke-width: 1.5; }

.divider {
    border: 0;
    height: 1px;
    background: var(--c-border);
    margin: 22px 0;
}
.dot-bullet {
    width: 6px; height: 6px;
    border-radius: 999px;
    background: var(--c-primary);
    display: inline-block; margin-right: 12px;
    flex-shrink: 0;
}
.dot-bullet--accent { background: var(--c-primary-2); }

.feature-list { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-direction: column; gap: 11px; }
.feature-list li { display: flex; align-items: center; color: var(--c-text-2); font-size: .96rem; }
.feature-list--lg li { font-size: 1.02rem; }

.avatar {
    width: 46px; height: 46px;
    border-radius: 999px;
    background: var(--c-primary);
    color: #fff; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--c-border);
}
.avatar--sm { width: 36px; height: 36px; font-size: .9rem; }

/* Table */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); }
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .92rem;
}
.data-table th,
.data-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
    vertical-align: middle;
}
.data-table th {
    font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
    color: var(--c-text-3); font-weight: 600;
    background: var(--c-surface-2);
    position: sticky; top: 0;
}
.data-table tbody tr { transition: background-color .15s; }
.data-table tbody tr:hover { background: var(--c-accent-tint); }
.data-table tr.is-unread { background: var(--c-accent-tint); }
/* Actions always sit at the end (right edge) of the row. */
.data-table th.actions,
.data-table td.actions { white-space: nowrap; text-align: right; }
.data-table .actions .btn { margin-left: 6px; margin-right: 0; }
.data-table .actions .btn:first-child { margin-left: 0; }
.data-table .cell-message { max-width: 360px; color: var(--c-text-2); }
.data-table code {
    background: var(--c-surface-glass);
    padding: 2px 8px; border-radius: var(--radius-xs); font-size: .84rem;
}
.status-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 8px 32px 8px 14px;
    border: 1px solid var(--c-border-strong);
    border-radius: 999px;
    background-color: var(--c-surface);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1L5 5L9 1' stroke='%2379808F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 6px;
    color: var(--c-text);
    font-family: inherit;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.status-select:hover {
    border-color: color-mix(in srgb, var(--c-primary) 50%, var(--c-border-strong));
}
.status-select:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 16%, transparent);
}
.status-select[data-status="pending"]   { color: var(--c-warning); border-color: color-mix(in srgb, var(--c-warning) 45%, var(--c-border-strong)); background-color: color-mix(in srgb, var(--c-warning) 8%, transparent); }
.status-select[data-status="confirmed"] { color: var(--c-info);    border-color: color-mix(in srgb, var(--c-info) 45%, var(--c-border-strong));    background-color: color-mix(in srgb, var(--c-info) 8%, transparent); }
.status-select[data-status="completed"] { color: var(--c-success); border-color: color-mix(in srgb, var(--c-success) 45%, var(--c-border-strong)); background-color: color-mix(in srgb, var(--c-success) 9%, transparent); }
.status-select[data-status="cancelled"] { color: var(--c-danger);  border-color: color-mix(in srgb, var(--c-danger) 45%, var(--c-border-strong));  background-color: color-mix(in srgb, var(--c-danger) 8%, transparent); }

/* =================================================================
   Lightbox — full-screen image viewer for galleries
   ================================================================= */
.svc-gallery__item { cursor: zoom-in; }

.lightbox {
    position: fixed; inset: 0; z-index: 100050;
    display: flex; align-items: center; justify-content: center;
    padding: clamp(16px, 4vw, 56px);
    background: rgba(8, 12, 20, 0.92);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: lbFade .2s ease;
}
.lightbox[hidden] { display: none; }
html.lightbox-open { overflow: hidden; }

.lightbox__stage {
    margin: 0; max-width: 100%; max-height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.lightbox__img {
    max-width: 100%; max-height: 86vh; width: auto; height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
    animation: lbZoom .25s cubic-bezier(.2, .8, .2, 1);
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; cursor: pointer; line-height: 1;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .08);
    border-radius: 999px;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.lightbox__close { top: 18px; right: 18px; width: 46px; height: 46px; font-size: 1.7rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2.1rem; }
.lightbox__nav--prev { left: clamp(10px, 3vw, 32px); }
.lightbox__nav--next { right: clamp(10px, 3vw, 32px); }
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .55); }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox.is-single .lightbox__nav { display: none; }

.lightbox__counter {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: rgba(255, 255, 255, .82); font-size: .85rem; letter-spacing: .04em;
}

@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbZoom { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .lightbox, .lightbox__img { animation: none; }
}

/* =================================================================
   Share bar — social + copy-link buttons (Admin → Sharing)
   Monochrome: every button uses the brand accent on hover.
   ================================================================= */
.share-section { padding-top: 0; }
.share-section .share-bar { border-top: 1px solid var(--c-border); padding-top: clamp(22px, 3vw, 32px); }

.share-bar {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.share-bar__label { font-weight: 600; color: var(--c-text-2); font-size: .98rem; }
.share-bar__btns { display: flex; gap: 10px; flex-wrap: wrap; }

.share-btn {
    width: 44px; height: 44px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--c-border-strong);
    background: var(--c-surface);
    color: var(--c-text-2);
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.share-btn svg { width: 19px; height: 19px; display: block; }
.share-btn:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn);
}
.share-btn:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
}

/* Floating layout — pinned to the side of the viewport. */
.share-bar--floating {
    position: fixed; left: 16px; top: 50%; transform: translateY(-50%);
    z-index: 80;
    flex-direction: column; gap: 8px;
    padding: 10px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 999px;
    box-shadow: var(--shadow-md);
}
.share-bar--floating .share-bar__btns { flex-direction: column; }
.share-bar--floating .share-btn:hover { transform: translateX(2px); }

@media (max-width: 900px) {
    .share-bar--floating {
        position: static; transform: none; top: auto; left: auto;
        flex-direction: row; border-radius: var(--radius-lg);
        margin: 28px auto 0; width: max-content; max-width: 100%;
    }
    .share-bar--floating .share-bar__btns { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

/* Keep the floating bar out of the way of printed output. */
@media print { .share-bar { display: none !important; } }
