/* ==========================================================================
   Masada QR Menü — Müşteri Uygulaması
   Mobil öncelikli, tek elle kullanılabilir, hızlı açılan menü deneyimi
   ========================================================================== */

:root {
    /* İşletme temasına göre çalışma zamanında güncellenir */
    --brand: #F4713B;
    --brand-rgb: 244, 113, 59;
    --brand-dark: #D95B27;
    --brand-soft: #FFF1EA;

    --bg: #F6F7F9;
    --surface: #FFFFFF;
    --surface-2: #F1F3F6;
    --border: #E4E7EC;
    --border-strong: #CFD4DC;

    --text: #161D2B;
    --text-muted: #667085;
    --text-subtle: #98A2B3;

    --success: #17A063;
    --success-soft: #E7F7EF;
    --warning: #D98A0B;
    --warning-soft: #FDF3E2;
    --danger: #D8453B;
    --danger-soft: #FDECEB;
    --info: #3A7BD5;
    --info-soft: #EBF2FD;

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;

    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-sm: 0 2px 6px rgba(16, 24, 40, .07);
    --shadow: 0 6px 20px rgba(16, 24, 40, .10);
    --shadow-lg: 0 18px 44px rgba(16, 24, 40, .18);

    --header-h: 56px;
    --bottombar-h: 72px;

    --font: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --ease: 220ms cubic-bezier(.4, 0, .2, 1);

    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
}

[data-theme="dark"] {
    --bg: #0F1319;
    --surface: #171C24;
    --surface-2: #1E242E;
    --border: #2A313C;
    --border-strong: #3A424F;

    --text: #E9ECF2;
    --text-muted: #98A2B3;
    --text-subtle: #6B7585;

    --brand-soft: #33200F;
    --success-soft: #11291D;
    --warning-soft: #2B2210;
    --danger-soft: #2C1818;
    --info-soft: #16203A;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, .5);
    --shadow: 0 6px 20px rgba(0, 0, 0, .55);
    --shadow-lg: 0 18px 44px rgba(0, 0, 0, .65);
}

/* ---------- Temel ---------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: none;
    padding-bottom: calc(var(--bottombar-h) + var(--safe-bottom));
}

body.is-modal-open { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 16px; }

.hidden { display: none !important; }
/* display değeri atanmış bileşenlerde de hidden niteliği çalışsın */
[hidden] { display: none !important; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.strike { text-decoration: line-through; }
.tabular { font-variant-numeric: tabular-nums; }
.text-center { text-align: center; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.noscript { padding: 20px; max-width: 720px; margin: 0 auto; }
.noscript h2 { margin-top: 24px; font-size: 18px; }
.noscript ul { padding-left: 18px; }
.noscript li { margin-bottom: 10px; font-size: 14px; }

.app { max-width: 720px; margin: 0 auto; position: relative; }

/* ==========================================================================
   Üst başlık / kapak
   ========================================================================== */

.cover {
    position: relative;
    height: 190px;
    background: linear-gradient(135deg, #2B3446, #161D2B);
    overflow: hidden;
}
.cover__bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.cover::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .72) 100%);
}

/* Görsel taşımayan sade başlıklar (sipariş takibi, kampanyalar, iletişim) */
.cover--plain {
    height: auto;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.cover--plain::after { display: none; }

.cover__bar {
    position: absolute; top: 0; left: 0; right: 0;
    padding: calc(10px + var(--safe-top)) 12px 10px;
    display: flex; align-items: center; gap: 8px;
    z-index: 2;
}

.icon-btn {
    width: 38px; height: 38px;
    border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(8px);
    color: #fff;
    display: grid; place-items: center;
    font-size: 18px;
    transition: background var(--ease), transform 80ms;
    position: relative;
}
.icon-btn:active { transform: scale(.93); }
.icon-btn--solid { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.cover__info {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 16px;
    z-index: 2;
    color: #fff;
    display: flex; gap: 12px; align-items: flex-end;
}

.cover__logo {
    width: 58px; height: 58px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
    flex-shrink: 0;
    object-fit: cover;
}

.cover__text { min-width: 0; flex: 1; }
.cover__text h1 { font-size: 22px; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.cover__meta {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-top: 5px; font-size: 12.5px;
    color: rgba(255, 255, 255, .92);
}

.pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11.5px; font-weight: 650;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(6px);
    white-space: nowrap;
}
.pill--open { background: rgba(23, 160, 99, .92); }
.pill--closed { background: rgba(216, 69, 59, .92); }
.pill--table { background: rgba(var(--brand-rgb), .95); }

/* Masa şeridi */
.table-strip {
    background: var(--brand-soft);
    border-bottom: 1px solid var(--border);
    padding: 9px 16px;
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600;
    color: var(--brand-dark);
}
[data-theme="dark"] .table-strip { color: #FFB088; }

/* ==========================================================================
   Kategori şeridi
   ========================================================================== */

.catbar {
    position: sticky; top: 0; z-index: 30;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.catbar__scroll {
    display: flex; gap: 8px;
    padding: 10px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}
.catbar__scroll::-webkit-scrollbar { display: none; }

.chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    border-radius: 22px;
    padding: 8px 14px;
    font-size: 13.5px; font-weight: 650;
    white-space: nowrap;
    transition: all var(--ease);
    display: inline-flex; align-items: center; gap: 6px;
}
.chip:active { transform: scale(.96); }
.chip.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--brand-rgb), .32);
}
.chip__count {
    background: var(--surface-2);
    border-radius: 12px;
    padding: 0 6px;
    font-size: 11px;
}
.chip.is-active .chip__count { background: rgba(255, 255, 255, .24); }

/* ==========================================================================
   Bölüm & ürün kartları
   ========================================================================== */

.section { padding: 18px 16px 4px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section__head h2 { font-size: 18px; }
.section__head span { font-size: 12.5px; color: var(--text-subtle); }

/* Izgara görünüm */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    display: flex; flex-direction: column;
    transition: transform 100ms, box-shadow var(--ease);
    position: relative;
    text-align: left;
    padding: 0;
    width: 100%;
}
.card { cursor: pointer; }
.card:active { transform: scale(.98); }
.card.is-out { opacity: .62; }

.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card__badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.tag {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 3px 7px; border-radius: 8px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
    color: #fff;
    box-shadow: var(--shadow-xs);
}
.tag--new { background: var(--info); }
.tag--popular { background: var(--warning); }
.tag--discount { background: var(--danger); }
.tag--vegan { background: var(--success); }
.tag--out { background: #495363; }

.card__body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__title { font-size: 14px; font-weight: 650; line-height: 1.3; }
.card__desc {
    font-size: 12px; color: var(--text-muted); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-subtle); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { font-size: 15px; font-weight: 750; color: var(--text); }
.price--old { font-size: 11.5px; color: var(--text-subtle); text-decoration: line-through; font-weight: 500; }

.add-btn {
    width: 34px; height: 34px;
    border: 0; border-radius: 11px;
    background: var(--brand); color: #fff;
    display: grid; place-items: center;
    font-size: 17px;
    box-shadow: 0 3px 10px rgba(var(--brand-rgb), .3);
    transition: transform 80ms;
    flex-shrink: 0;
}
.add-btn:active { transform: scale(.9); }
.add-btn:disabled { background: var(--border-strong); box-shadow: none; }

/* Liste görünüm */
.list { display: flex; flex-direction: column; gap: 10px; }

.row-card {
    display: flex; gap: 12px; align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow-xs);
    width: 100%;
    text-align: left;
    transition: transform 100ms;
    position: relative;
}
.row-card { cursor: pointer; }
.row-card:active { transform: scale(.99); }
.row-card.is-out { opacity: .62; }
.row-card__media {
    width: 86px; height: 86px; flex-shrink: 0;
    border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2);
    position: relative;
}
.row-card__media img { width: 100%; height: 100%; object-fit: cover; }
.row-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }

/* ==========================================================================
   Alt çubuk (sepet / garson / hesap)
   ========================================================================== */

.bottombar {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 40;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 10px 12px calc(10px + var(--safe-bottom));
    display: flex; gap: 8px; align-items: center;
    box-shadow: 0 -4px 20px rgba(16, 24, 40, .08);
}
.bottombar__inner { max-width: 720px; margin: 0 auto; width: 100%; display: flex; gap: 8px; }

.btn {
    border: 0; border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14.5px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    transition: transform 80ms, background var(--ease), opacity var(--ease);
    text-decoration: none;
    line-height: 1.2;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(var(--brand-rgb), .32); }
.btn--ghost { background: var(--surface-2); color: var(--text); }
.btn--outline { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--success { background: var(--success); color: #fff; }
.btn--block { width: 100%; }
.btn--lg { padding: 15px 18px; font-size: 15.5px; border-radius: var(--radius); }
.btn--sm { padding: 8px 12px; font-size: 13px; }
.btn--icon { width: 46px; padding: 12px 0; flex-shrink: 0; }

.cart-btn { flex: 1; position: relative; }
.cart-btn__count {
    background: rgba(255, 255, 255, .26);
    border-radius: 20px;
    padding: 1px 8px;
    font-size: 12.5px;
}

/* ==========================================================================
   Arama
   ========================================================================== */

.search-screen {
    position: fixed; inset: 0; z-index: 60;
    background: var(--bg);
    display: flex; flex-direction: column;
}
.search-screen__bar {
    display: flex; gap: 8px; align-items: center;
    padding: calc(10px + var(--safe-top)) 12px 10px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.search-input {
    flex: 1;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    padding: 0 12px;
    color: var(--text);
}
.search-input:focus {
    outline: 0;
    border-color: var(--brand);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .14);
}
.search-screen__results { flex: 1; overflow-y: auto; padding: 12px; }
.search-suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 12px; }

/* ==========================================================================
   Alt sayfa (bottom sheet) & modal
   ========================================================================== */

.backdrop {
    position: fixed; inset: 0; z-index: 70;
    background: rgba(11, 15, 22, .55);
    opacity: 0; pointer-events: none;
    transition: opacity var(--ease);
    backdrop-filter: blur(2px);
}
.backdrop.is-open { opacity: 1; pointer-events: auto; }

.sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: var(--surface);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 92vh;
    display: flex; flex-direction: column;
    transform: translateY(100%);
    transition: transform var(--ease);
    box-shadow: var(--shadow-lg);
    max-width: 720px; margin: 0 auto;
}
.sheet.is-open { transform: translateY(0); }

.sheet__handle {
    width: 42px; height: 4px; border-radius: 4px;
    background: var(--border-strong);
    margin: 10px auto 2px;
    flex-shrink: 0;
}

.sheet__head {
    padding: 8px 16px 12px;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.sheet__head h2 { font-size: 17px; }
.sheet__head p { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

.sheet__body { padding: 16px; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.sheet__foot {
    padding: 12px 16px calc(12px + var(--safe-bottom));
    border-top: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
}

.close-btn {
    width: 32px; height: 32px; flex-shrink: 0;
    border: 0; border-radius: 50%;
    background: var(--surface-2); color: var(--text-muted);
    display: grid; place-items: center; font-size: 15px;
}

/* ==========================================================================
   Ürün detayı
   ========================================================================== */

.product-hero { position: relative; margin: -16px -16px 16px; }
.product-hero img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.product-title { font-size: 20px; margin-bottom: 6px; }
.product-desc { font-size: 14px; color: var(--text-muted); line-height: 1.55; }

.product-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.fact {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--surface-2);
    border-radius: 20px;
    padding: 5px 11px;
    font-size: 12px; font-weight: 600; color: var(--text-muted);
}
.fact--warn { background: var(--warning-soft); color: #96610A; }
.fact--good { background: var(--success-soft); color: var(--success); }
[data-theme="dark"] .fact--warn { color: #E8B65A; }

.opt-group { margin-bottom: 18px; }
.opt-group__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.opt-group__head strong { font-size: 14.5px; }
.opt-group__rule { font-size: 11.5px; color: var(--text-subtle); }
.opt-group.has-error .opt-group__rule { color: var(--danger); font-weight: 650; }

.opt {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    margin-bottom: 7px;
    transition: all var(--ease);
    cursor: pointer;
}
.opt.is-selected { border-color: var(--brand); background: var(--brand-soft); }
.opt input { width: 20px; height: 20px; accent-color: var(--brand); flex-shrink: 0; margin: 0; }
.opt__name { flex: 1; font-size: 14px; }
.opt__price { font-size: 13px; font-weight: 650; color: var(--text-muted); }
.opt.is-selected .opt__price { color: var(--brand-dark); }
[data-theme="dark"] .opt.is-selected .opt__price { color: #FFB088; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 5px; }
.field input:not([type="checkbox"]):not([type="radio"]),
.field textarea, .field select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    padding: 11px 12px;
}
.field input:not([type="checkbox"]):not([type="radio"]):focus,
.field textarea:focus, .field select:focus {
    outline: 0; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .14);
}
.field textarea { min-height: 72px; resize: vertical; }
.field__hint { font-size: 11.5px; color: var(--text-subtle); margin-top: 4px; }
.field__error { font-size: 12px; color: var(--danger); margin-top: 4px; display: none; }
.field.has-error input:not([type="checkbox"]):not([type="radio"]),
.field.has-error textarea { border-color: var(--danger); }
.field.has-error .field__error { display: block; }

/* Adet sayacı */
.stepper {
    display: inline-flex; align-items: center; gap: 2px;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    padding: 3px;
}
.stepper button {
    width: 34px; height: 34px;
    border: 0; border-radius: 8px;
    background: var(--surface); color: var(--text);
    font-size: 17px; font-weight: 700;
    display: grid; place-items: center;
    box-shadow: var(--shadow-xs);
}
.stepper button:disabled { opacity: .4; box-shadow: none; }
.stepper span { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Sepet
   ========================================================================== */

.cart-line {
    display: flex; gap: 11px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.cart-line:last-child { border-bottom: 0; }
.cart-line__media {
    width: 62px; height: 62px; flex-shrink: 0;
    border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2);
}
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__body { flex: 1; min-width: 0; }
.cart-line__title { font-size: 14px; font-weight: 650; }
.cart-line__opts { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; line-height: 1.45; }
.cart-line__note { font-size: 11.5px; color: #96610A; background: var(--warning-soft); border-radius: 6px; padding: 2px 6px; display: inline-block; margin-top: 4px; }
.cart-line__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }

.totals { margin-top: 4px; }
.totals__row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 13.5px; }
.totals__row--muted { color: var(--text-muted); }
.totals__row--discount { color: var(--success); font-weight: 650; }
.totals__row--total {
    border-top: 1px solid var(--border);
    margin-top: 6px; padding-top: 11px;
    font-size: 17px; font-weight: 750;
}

.coupon-row { display: flex; gap: 8px; margin: 12px 0; }
.coupon-row input { flex: 1; text-transform: uppercase; }

.tip-row { display: flex; gap: 7px; margin-top: 6px; flex-wrap: wrap; }
.tip-btn {
    flex: 1; min-width: 62px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    padding: 9px 4px;
    font-size: 13px; font-weight: 650;
}
.tip-btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ==========================================================================
   Sipariş takibi
   ========================================================================== */

.track { padding: 16px; }

.track__hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 18px;
    text-align: center;
    box-shadow: var(--shadow-xs);
    margin-bottom: 14px;
}
.track__icon {
    width: 74px; height: 74px; margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--brand-soft); color: var(--brand);
    display: grid; place-items: center; font-size: 34px;
}
.track__icon--done { background: var(--success-soft); color: var(--success); }
.track__icon--cancel { background: var(--danger-soft); color: var(--danger); }
.track__status { font-size: 20px; margin-bottom: 5px; }
.track__eta { font-size: 13.5px; color: var(--text-muted); }
.track__no {
    display: inline-block; margin-top: 12px;
    background: var(--surface-2); border-radius: 20px;
    padding: 5px 14px; font-size: 12.5px; font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.steps { display: flex; align-items: flex-start; margin: 18px 0 4px; }
.step { flex: 1; text-align: center; position: relative; }
.step::before {
    content: ""; position: absolute; top: 13px; left: 0; right: 50%;
    height: 3px; background: var(--border);
}
.step::after {
    content: ""; position: absolute; top: 13px; left: 50%; right: 0;
    height: 3px; background: var(--border);
}
.step:first-child::before, .step:last-child::after { display: none; }
.step.is-done::before, .step.is-done::after,
.step.is-current::before { background: var(--brand); }

.step__dot {
    width: 29px; height: 29px; margin: 0 auto 6px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--border);
    display: grid; place-items: center;
    font-size: 12px; color: var(--text-subtle);
    position: relative; z-index: 1;
}
.step.is-done .step__dot { border-color: var(--brand); background: var(--brand); color: #fff; }
.step.is-current .step__dot {
    border-color: var(--brand); color: var(--brand);
    box-shadow: 0 0 0 5px rgba(var(--brand-rgb), .16);
    animation: pulse 1.8s infinite;
}
.step__label { font-size: 10.5px; font-weight: 650; color: var(--text-muted); line-height: 1.25; }
.step.is-current .step__label { color: var(--brand); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb), .32); }
    70% { box-shadow: 0 0 0 10px rgba(var(--brand-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0); }
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    margin-bottom: 14px;
    overflow: hidden;
}
.panel__head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.panel__head h3 { font-size: 15px; }
.panel__body { padding: 16px; }
.panel__body--flush { padding: 0; }

.timeline { position: relative; padding-left: 22px; }
.timeline::before {
    content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px;
    width: 2px; background: var(--border);
}
.timeline__item { position: relative; padding-bottom: 14px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
    content: ""; position: absolute; left: -22px; top: 3px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--surface); border: 3px solid var(--brand);
}
.timeline__title { font-size: 13.5px; font-weight: 650; }
.timeline__time { font-size: 11.5px; color: var(--text-subtle); }

/* ==========================================================================
   Kampanya kartları
   ========================================================================== */

.promo {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    margin-bottom: 12px;
}
.promo__media { aspect-ratio: 21 / 9; background: var(--surface-2); }
.promo__media img { width: 100%; height: 100%; object-fit: cover; }
.promo__body { padding: 14px 15px; }
.promo__body h3 { font-size: 16px; margin-bottom: 5px; }
.promo__body p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.promo__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.coupon-code {
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 13.5px; font-weight: 700;
    background: var(--brand-soft); color: var(--brand-dark);
    border: 1px dashed var(--brand);
    border-radius: 8px; padding: 6px 11px;
}
[data-theme="dark"] .coupon-code { color: #FFB088; }

/* Yatay kampanya şeridi */
.promo-strip {
    display: flex; gap: 10px;
    overflow-x: auto;
    padding: 0 16px 4px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.promo-mini { scroll-snap-align: center; }

/* Kampanya şeridi sayfa noktaları */
.promo-dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0 0; }
.promo-dots span {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--border-strong);
    transition: all var(--ease);
}
.promo-dots span.is-active { width: 18px; background: var(--brand); border-radius: 4px; }
.promo-strip::-webkit-scrollbar { display: none; }
.promo-mini {
    flex: 0 0 250px;
    background: linear-gradient(135deg, var(--brand), #FF9A5A);
    color: #fff;
    border-radius: var(--radius);
    padding: 13px 15px;
    box-shadow: 0 4px 14px rgba(var(--brand-rgb), .28);
}
.promo-mini strong { display: block; font-size: 14px; }
.promo-mini span { display: block; font-size: 11.5px; opacity: .92; margin-top: 3px; line-height: 1.4; }

/* ==========================================================================
   Boş durum, yükleniyor, hata
   ========================================================================== */

.empty { text-align: center; padding: 46px 22px; }
.empty__icon {
    width: 76px; height: 76px; margin: 0 auto 14px;
    border-radius: 24px;
    background: var(--surface-2); color: var(--text-subtle);
    display: grid; place-items: center; font-size: 32px;
}
.empty h3 { font-size: 16.5px; margin-bottom: 6px; }
.empty p { font-size: 13.5px; color: var(--text-muted); max-width: 320px; margin: 0 auto 18px; }

.skeleton {
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 37%, var(--surface-2) 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
    border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skeleton--card { aspect-ratio: 4 / 3; border-radius: var(--radius) var(--radius) 0 0; }
.skeleton--text { height: 11px; margin: 8px 10px; }
.skeleton--chip { height: 34px; width: 92px; border-radius: 22px; flex: 0 0 auto; }

.spinner {
    width: 26px; height: 26px;
    border: 3px solid var(--border);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toasts {
    position: fixed; left: 12px; right: 12px;
    bottom: calc(var(--bottombar-h) + var(--safe-bottom) + 12px);
    z-index: 200;
    display: flex; flex-direction: column; gap: 8px;
    pointer-events: none;
    max-width: 696px; margin: 0 auto;
}
.toast {
    background: #161D2B; color: #fff;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 13.5px; font-weight: 600;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 9px;
    animation: toast-in 240ms cubic-bezier(.2, .9, .3, 1);
}
.toast--success { background: var(--success); }
.toast--error { background: var(--danger); }
.toast--warning { background: var(--warning); }
@keyframes toast-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Bağlantı durumu şeridi */
.offline-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 150;
    background: var(--danger); color: #fff;
    text-align: center; font-size: 12.5px; font-weight: 650;
    padding: 7px 12px;
    transform: translateY(-100%);
    transition: transform var(--ease);
}
.offline-bar.is-visible { transform: none; }
.offline-bar--cached { background: var(--warning); }

/* Kurulum çağrısı (PWA) */
.install-card {
    margin: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 13px 14px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: var(--shadow-xs);
}
.install-card__icon {
    width: 40px; height: 40px; flex-shrink: 0;
    border-radius: 11px; background: var(--brand-soft); color: var(--brand);
    display: grid; place-items: center; font-size: 19px;
}

/* İletişim / bilgi listeleri */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.info-list li:last-child { border-bottom: 0; }
.info-list i { width: 20px; text-align: center; color: var(--brand); font-size: 16px; }
.info-list__value { margin-left: auto; color: var(--text-muted); font-size: 13px; text-align: right; }

.hours-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13.5px; border-bottom: 1px dashed var(--border); }
.hours-row:last-child { border-bottom: 0; }
.hours-row.is-today { font-weight: 700; color: var(--brand); }

/* Dil / tema seçimi */
.option-row {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    background: none; border-left: 0; border-right: 0; border-top: 0;
    width: 100%; text-align: left; font-size: 14.5px; color: var(--text);
}
.option-row:last-child { border-bottom: 0; }
.option-row.is-active { color: var(--brand); font-weight: 700; }
.option-row i:first-child { width: 22px; text-align: center; font-size: 17px; }
.option-row .check { margin-left: auto; color: var(--brand); }

/* ==========================================================================
   Geniş ekran (tablet / masaüstü)
   ========================================================================== */

@media (min-width: 560px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
    body { font-size: 15.5px; }
}

@media (min-width: 760px) {
    body { background: #EBEDF1; }
    [data-theme="dark"] body { background: #0A0D12; }

    .app {
        background: var(--bg);
        min-height: 100vh;
        box-shadow: 0 0 44px rgba(16, 24, 40, .12);
    }
    .cover { height: 230px; }
    .bottombar { border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}

/* Yazdırma: menüyü kağıda dökme */
@media print {
    .cover__bar, .bottombar, .catbar, .toasts, .install-card, .offline-bar { display: none !important; }
    body { background: #fff; padding: 0; }
    .card, .row-card { break-inside: avoid; box-shadow: none; }
}
