/*
 * SNB mobile-app design system for the Motor insurance prototype.
 * Derived from the SNB app screens in D:\SNB\snb-mobile-app-images (dark and light themes):
 * gradient background, large title with a lime back chevron, translucent cards, filled fields,
 * pill chips, full-width primary button, bottom sheets, bottom tab bar.
 *
 * Logical properties (inline-start/end) are used so the layout can flip for Arabic (dir="rtl").
 */

/* ── Tokens: dark theme (default) ── */
:root,
[data-theme="dark"] {
    --bg: linear-gradient(180deg, #3D7B44 0%, #1D5238 22%, #0F3429 52%, #0A2821 100%);
    --sheet-bg: linear-gradient(180deg, #4F8A45 0%, #25583A 45%, #173F30 100%);
    --surface: rgba(255, 255, 255, 0.075);
    --surface-strong: rgba(255, 255, 255, 0.12);
    --field: rgba(255, 255, 255, 0.1);
    --field-focus: rgba(255, 255, 255, 0.16);
    --divider: rgba(255, 255, 255, 0.12);
    --text: #FFFFFF;
    --muted: rgba(255, 255, 255, 0.62);
    --faint: rgba(255, 255, 255, 0.4);
    --accent: #8CC63F;            /* lime: links, icons, active states */
    --btn-bg: #86BC25;            /* primary button */
    --btn-fg: #0B2A22;
    --btn-disabled: rgba(255, 255, 255, 0.18);
    --chip-on-bg: #86BC25;
    --chip-on-fg: #0B2A22;
    --logo-box: #FFFFFF;
    --tabbar: #0B2A22;
    --danger: #FF7A6B;
    --warning: #F5C451;
    --shadow: none;
    --overlay: rgba(0, 0, 0, 0.55);
    color-scheme: dark;
}

/* ── Tokens: light theme ── */
[data-theme="light"] {
    --bg: linear-gradient(180deg, #DDEFCB 0%, #F1F8EA 22%, #FFFFFF 50%);
    --sheet-bg: linear-gradient(180deg, #E4F2D4 0%, #FFFFFF 40%);
    --surface: #FFFFFF;
    --surface-strong: #F3F6F1;
    --field: #EEF1EC;
    --field-focus: #E6EBE3;
    --divider: #E3E7E1;
    --text: #1E2B26;
    --muted: #6F7A74;
    --faint: #A3ABA6;
    --accent: #006A52;
    --btn-bg: #006A52;
    --btn-fg: #FFFFFF;
    --btn-disabled: #C9D0CB;
    --chip-on-bg: #006A52;
    --chip-on-fg: #FFFFFF;
    --logo-box: #FFFFFF;
    --tabbar: #FFFFFF;
    --danger: #D64533;
    --warning: #B7791F;
    --shadow: 0 6px 18px rgba(16, 48, 36, 0.08);
    --overlay: rgba(10, 30, 24, 0.45);
    color-scheme: light;
}

/* ── Base ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Neo Sans Arabic", SNBFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #06201A;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

[data-theme="light"] body,
body[data-theme="light"] {
    background: #E9EFE6;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

.fa, .fas, .far, .fab {
    line-height: 1;
}

/* ── App shell: phone-width column, centred on larger screens ── */
.app {
    position: relative;
    max-width: 430px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

@media (min-width: 600px) {
    body {
        padding: 24px 0;
    }

    .app {
        min-height: calc(100vh - 48px);
        border-radius: 36px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
        overflow: hidden;
    }
}

.screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    animation: screen-in 0.22s ease-out;
}

@keyframes screen-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

/* ── Header: back chevron + large title, home arch at the end ── */
.topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 16px 10px;
    padding-top: calc(18px + env(safe-area-inset-top, 0px));
}

.topbar-back,
.topbar-home,
.icon-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 20px;
    flex-shrink: 0;
    border-radius: 50%;
}

.topbar-back:active,
.topbar-home:active,
.icon-btn:active {
    background: var(--surface);
}

.topbar-title {
    flex: 1;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    min-width: 0;
}

.topbar-sub {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
    margin-top: 2px;
}

/* Home header: wordmark centred between icon buttons */
.brandbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px 8px;
    padding-top: calc(18px + env(safe-area-inset-top, 0px));
}

.wordmark {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: var(--text);
}

.wordmark b {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.wordmark span {
    font-size: 20px;
    font-weight: 500;
}

/* ── Scrollable content + sticky footer ── */
.content {
    flex: 1;
    padding: 4px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer {
    position: sticky;
    bottom: 0;
    padding: 12px 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 40, 33, 0.92) 30%);
    z-index: 5;
}

[data-theme="light"] .footer {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.96) 30%);
}

.footer-note {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
}

/* ── Step progress (segmented, like the SNB request tracker) ── */
.steps {
    display: flex;
    gap: 6px;
    padding: 0 16px 6px;
}

.steps span {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--divider);
}

.steps span.done {
    background: var(--accent);
}

.steps-label {
    padding: 0 16px 8px;
    font-size: 12px;
    color: var(--muted);
}

/* ── Typography helpers ── */
.section-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: -6px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.section-label a,
.link {
    color: var(--accent);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 12px;
}

.amount {
    font-weight: 700;
    white-space: nowrap;
}

.amount small {
    font-size: 0.62em;
    font-weight: 500;
    margin-inline-end: 3px;
}

/* ── Buttons ── */
.btn {
    width: 100%;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 12px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.1s, opacity 0.2s;
}

.btn:active {
    transform: scale(0.99);
}

.btn:disabled {
    background: var(--btn-disabled);
    color: var(--faint);
    cursor: not-allowed;
}

.btn.secondary {
    background: var(--surface-strong);
    color: var(--text);
}

.btn.outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px dashed var(--divider);
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 18px;
    border-radius: 10px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.pill-btn.ghost {
    background: var(--surface-strong);
    color: var(--text);
}

/* ── Cards & lists ── */
.card {
    background: var(--surface);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.card.tight {
    padding: 12px 14px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: start;
    background: var(--surface);
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--shadow);
}

.list-item .li-body {
    flex: 1;
    min-width: 0;
}

.li-title {
    font-size: 16px;
    font-weight: 600;
}

.li-sub {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
    overflow-wrap: anywhere;
}

.li-chevron {
    color: var(--accent);
    font-size: 16px;
}

.icon-tile {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--surface-strong);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

/* Insurer logo box (white tile, as in the SNB insurance list) */
.logo-box {
    width: 64px;
    height: 48px;
    border-radius: 10px;
    background: var(--logo-box);
    color: #0B5A45;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-box i {
    font-size: 20px;
    margin-inline-end: 4px;
}

/* Key–value rows (review screens) */
.kv {
    display: flex;
    flex-direction: column;
}

.kv-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--divider);
}

.kv-row:last-child {
    border-bottom: none;
}

.kv-row dt {
    color: var(--muted);
    font-size: 13px;
}

.kv-row dd {
    font-weight: 600;
    text-align: end;
    overflow-wrap: anywhere;
    font-size: 14px;
}

.kv-row.total dt,
.kv-row.total dd {
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
}

/* Stacked label-over-value tiles (SNB review style) */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat {
    background: var(--surface);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: var(--shadow);
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
}

.stat-value {
    font-size: 15px;
    font-weight: 700;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

/* ── Badges & tags ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--surface-strong);
    color: var(--muted);
    white-space: nowrap;
}

.badge.lime {
    background: var(--chip-on-bg);
    color: var(--chip-on-fg);
}

.badge.ok {
    color: var(--accent);
}

.badge.warn {
    color: var(--warning);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ── Chips (segmented / multi-select) ── */
.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chips.scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 0 16px;
}

.chips.scroll::-webkit-scrollbar {
    display: none;
}

.chip {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow);
}

.chip.on {
    background: var(--chip-on-bg);
    color: var(--chip-on-fg);
    font-weight: 700;
}

.chips.fill .chip {
    flex: 1;
    justify-content: center;
}

/* ── Form fields ── */
.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label {
    font-size: 14px;
    font-weight: 500;
}

.field-label .opt {
    color: var(--muted);
    font-weight: 400;
    font-size: 12px;
}

.control {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--field);
    border: 1.5px solid transparent;
    transition: border-color 0.15s, background 0.15s;
}

.control:focus-within {
    background: var(--field-focus);
    border-color: var(--accent);
}

.control.invalid {
    border-color: var(--danger);
}

.control input,
.control select,
.control textarea {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;   /* ≥16px prevents iOS zoom on focus */
    padding: 14px 0;
}

.control select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.control select option {
    color: #1E2B26;
}

.control textarea {
    resize: vertical;
    min-height: 80px;
}

.control .prefix {
    color: var(--muted);
    font-weight: 600;
    font-size: 15px;
}

.control .suffix-icon {
    color: var(--accent);
}

.control input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.6);
}

.field-row {
    display: flex;
    gap: 10px;
}

.field-row > * {
    flex: 1;
    min-width: 0;
}

.field-hint {
    font-size: 12px;
    color: var(--muted);
}

.field-error {
    font-size: 12px;
    color: var(--danger);
    display: none;
}

.field.has-error .field-error {
    display: block;
}

.field.has-error .control {
    border-color: var(--danger);
}

/* Toggle switch row */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
}

.switch {
    position: relative;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch span {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: var(--btn-disabled);
    transition: background 0.2s;
}

.switch span::before {
    content: "";
    position: absolute;
    top: 3px;
    inset-inline-start: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #FFFFFF;
    transition: transform 0.2s;
}

.switch input:checked + span {
    background: var(--btn-bg);
}

.switch input:checked + span::before {
    transform: translateX(20px);
}

[dir="rtl"] .switch input:checked + span::before {
    transform: translateX(-20px);
}

/* Checkbox row */
.check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    cursor: pointer;
}

.check input {
    width: 20px;
    height: 20px;
    accent-color: var(--btn-bg);
    flex-shrink: 0;
    margin-top: 1px;
}

/* Radio option rows (payment methods) */
.option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
    background: var(--surface);
    border: 1.5px solid transparent;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.option.on {
    border-color: var(--accent);
}

.option input {
    accent-color: var(--btn-bg);
    width: 20px;
    height: 20px;
}

/* ── Accordion ── */
.accordion {
    border-bottom: 1px solid var(--divider);
}

.accordion-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 700;
    text-align: start;
}

.accordion-head i {
    color: var(--accent);
    transition: transform 0.2s;
}

.accordion.open .accordion-head i {
    transform: rotate(180deg);
}

.accordion-body {
    display: none;
    padding-bottom: 14px;
}

.accordion.open .accordion-body {
    display: block;
}

/* ── Vehicle card + Saudi plate ── */
.vehicle-card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.vehicle-art {
    width: 72px;
    height: 56px;
    border-radius: 12px;
    background: var(--surface-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--text);
    flex-shrink: 0;
}

.plate {
    display: inline-flex;
    align-items: stretch;
    border: 2px solid #1C1C1C;
    border-radius: 6px;
    background: #FFFFFF;
    color: #1C1C1C;
    font-weight: 700;
    font-size: 13px;
    overflow: hidden;
    direction: ltr;
    margin-top: 6px;
}

.plate span {
    padding: 2px 8px;
}

.plate span + span {
    border-inline-start: 2px solid #1C1C1C;
}

/* ── Offer cards (quote comparison) ── */
.offer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.offer-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.offer-name {
    flex: 1;
    min-width: 0;
}

.offer-price {
    text-align: end;
}

.offer-price .amount {
    font-size: 22px;
}

.offer-price .was {
    font-size: 12px;
    color: var(--faint);
    text-decoration: line-through;
}

.offer-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--divider);
}

/* ── Coverage list ── */
.cover-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cover-list li {
    display: flex;
    gap: 10px;
    font-size: 14px;
    align-items: flex-start;
}

.cover-list i {
    color: var(--accent);
    margin-top: 2px;
}

.addon {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--divider);
}

.addon:last-child {
    border-bottom: none;
}

.addon-body {
    flex: 1;
    min-width: 0;
}

/* ── Photo grid ── */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.photo {
    aspect-ratio: 1;
    border-radius: 12px;
    border: 1.5px dashed var(--divider);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: var(--muted);
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 4px;
}

.photo i {
    font-size: 20px;
    color: var(--accent);
}

.photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo.done {
    border-style: solid;
    border-color: var(--accent);
}

/* ── Countdown / summary strip ── */
.summary-strip {
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.summary-strip > div {
    flex: 1;
}

.summary-strip > div + div {
    border-inline-start: 1px solid var(--divider);
}

.summary-strip b {
    display: block;
    font-size: 17px;
}

/* ── Note banner ── */
.note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
    background: var(--surface);
    border-radius: 12px;
    padding: 12px 14px;
}

.note i {
    color: var(--accent);
    margin-top: 2px;
}

.note.warn i {
    color: var(--warning);
}

/* ── Loader ── */
.spinner-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 6px solid var(--surface-strong);
    border-top-color: var(--accent);
    animation: spin 0.9s linear infinite;
    margin: 12px auto 0;
}

.spinner-inline {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2.5px solid rgba(0, 0, 0, 0.2);
    border-top-color: currentColor;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Success / result ── */
.result {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 24px 8px 8px;
}

.shield {
    width: 84px;
    height: 96px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    clip-path: polygon(50% 0, 100% 14%, 100% 55%, 50% 100%, 0 55%, 0 14%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 8px;
}

.result h2 {
    font-size: 22px;
}

/* ── Bottom sheet ── */
.sheet-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    z-index: 50;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fade-in 0.2s;
}

.sheet {
    width: 100%;
    max-width: 430px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--sheet-bg);
    border-radius: 22px 22px 0 0;
    padding: 18px 16px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: sheet-up 0.25s ease-out;
}

[data-theme="dark"] .sheet .control,
:root:not([data-theme="light"]) .sheet .control {
    background: rgba(0, 0, 0, 0.18);
}

.sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sheet-title {
    font-size: 18px;
    font-weight: 700;
    flex: 1;
    text-align: center;
}

.sheet-close {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    min-width: 48px;
}

@keyframes sheet-up {
    from { transform: translateY(100%); }
    to { transform: none; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── OTP ── */
.otp {
    display: flex;
    gap: 12px;
    justify-content: center;
    direction: ltr;
}

.otp input {
    width: 56px;
    height: 64px;
    border-radius: 10px;
    border: 1.5px solid var(--divider);
    background: transparent;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    outline: none;
}

.otp input:focus {
    border-color: var(--accent);
}

/* ── Bottom tab bar ── */
.tabbar {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    padding: 8px 4px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--tabbar);
    border-top: 1px solid var(--divider);
    z-index: 5;
}

.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--muted);
    min-width: 56px;
}

.tab i {
    font-size: 19px;
}

.tab.on {
    color: var(--accent);
    font-weight: 700;
}

/* ── Home widgets ── */
.balance {
    text-align: center;
    padding: 8px 0 4px;
}

.balance .amount {
    font-size: 26px;
    letter-spacing: 2px;
}

.promo {
    display: flex;
    gap: 14px;
    align-items: center;
    background: linear-gradient(120deg, rgba(134, 188, 37, 0.28), rgba(255, 255, 255, 0.06));
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: var(--shadow);
}

[data-theme="light"] .promo {
    background: linear-gradient(120deg, #E4F2D4, #FFFFFF);
}

.promo h3 {
    font-size: 18px;
    line-height: 1.3;
}

.promo .icon-tile {
    width: 64px;
    height: 64px;
    font-size: 30px;
}

.dots {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--faint);
}

.dots span.on {
    background: var(--accent);
}

/* ── Toast ── */
.toast {
    position: fixed;
    left: 50%;
    bottom: 96px;
    transform: translateX(-50%);
    max-width: min(390px, calc(100vw - 32px));
    width: max-content;
    background: #FFFFFF;
    color: #1E2B26;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    gap: 8px;
    align-items: center;
    animation: fade-in 0.2s;
}

.toast.error i {
    color: #D64533;
}

.toast i {
    color: #1C693C;
}

.empty {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    padding: 18px;
    border: 1.5px dashed var(--divider);
    border-radius: 14px;
}

.hidden {
    display: none !important;
}
