/* أطبخ إيه؟ — مطبخ مصري: كروت وصفات بطابع لافتات الأكل الشعبي، وشريط تنقل تحت الإبهام */
:root {
  --bg: #F4F5EE;
  --surface: #FFFFFF;
  --surface-2: #EBEEE3;
  --ink: #1D281E;
  --muted: #5D6A5C;
  --line: #DEE3D5;
  --green: #2B6A3C;      /* ملوخية */
  --green-ink: #FFFFFF;
  --green-soft: #E1EEDC;
  --saffron: #D99A1B;    /* كركم */
  --saffron-soft: #FBF0D6;
  --tomato: #C9432A;     /* صلصة */
  --tomato-soft: #FAE3DC;
  --shadow: 0 1px 2px rgba(29, 40, 30, .06), 0 6px 18px rgba(29, 40, 30, .06);
  --display: 'Lalezar', 'Readex Pro', Tahoma, sans-serif;
  --body: 'Readex Pro', 'Segoe UI', Tahoma, 'Noto Sans Arabic', sans-serif;
  --r: 18px;
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10150F; --surface: #19201A; --surface-2: #222B22; --ink: #EDF1E8; --muted: #A2AE9F; --line: #2D372C;
    --green: #78BF86; --green-ink: #0E1A10; --green-soft: #1E3321; --saffron: #EDB547; --saffron-soft: #3A2E12;
    --tomato: #EE7759; --tomato-soft: #3B1D16; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10150F; --surface: #19201A; --surface-2: #222B22; --ink: #EDF1E8; --muted: #A2AE9F; --line: #2D372C;
  --green: #78BF86; --green-ink: #0E1A10; --green-soft: #1E3321; --saffron: #EDB547; --saffron-soft: #3A2E12;
  --tomato: #EE7759; --tomato-soft: #3B1D16; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.65;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 calc(var(--nav-h) + 24px + env(safe-area-inset-bottom, 0px));
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.25; }
p { margin: 0; }
a { color: var(--green); }
.wrap { max-width: 720px; margin: 0 auto; }

/* ===== رأس الصفحة ===== */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px 6px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--green); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 24px; height: 24px; }
.brand b { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1; display: block; }
.brand small { color: var(--muted); font-size: 11px; display: block; }
.icon-btn { border: 1px solid var(--line); background: var(--surface); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; flex: none; }

/* ===== عناوين ===== */
.screen { display: grid; gap: 18px; padding-block: 8px 0; }
.eyebrow { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.h-display { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 8vw, 44px); line-height: 1.15; }
.h2 { font-family: var(--display); font-weight: 400; font-size: 23px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sec-head .link { background: none; border: 0; color: var(--green); font-weight: 600; font-size: 13px; padding: 4px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ===== بطاقة الاقتراح ===== */
.pick {
  position: relative; overflow: hidden; border-radius: 24px; padding: 20px; color: var(--green-ink);
  background: var(--green); display: grid; gap: 12px; box-shadow: var(--shadow);
}
.pick::after {
  content: ""; position: absolute; inset: auto -40px -60px auto; width: 190px; height: 190px; border-radius: 50%;
  border: 26px solid color-mix(in srgb, var(--saffron) 70%, transparent); opacity: .45; pointer-events: none;
}
.pick .slot { font-size: 12px; opacity: .85; }
.pick .dish { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 9vw, 46px); line-height: 1.1; min-height: 1.1em; }
.pick .dish.rolling { filter: blur(.6px); opacity: .8; }
.pick .why { font-size: 13px; opacity: .92; display: flex; flex-wrap: wrap; gap: 6px; }
.pick .why span { background: rgba(255,255,255,.16); padding: 2px 10px; border-radius: 999px; }
:root[data-theme="dark"] .pick .why span { background: rgba(0,0,0,.18); }
.pick .row { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.pick .plate-big { position: absolute; top: 14px; inset-inline-end: 16px; font-size: 46px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.2)); }

/* ===== أزرار ===== */
.btn { border: 0; border-radius: 14px; padding: 11px 16px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; }
.btn-main { background: var(--green); color: var(--green-ink); }
.btn-light { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-saffron { background: var(--saffron); color: #2A1D00; }
.btn-ghost { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.btn-danger { background: var(--tomato-soft); color: var(--tomato); }
.btn-block { width: 100%; }
.pick .btn-light { border-color: transparent; }
.btn:disabled { opacity: .5; }

/* ===== رقائق ===== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-inline: -4px; padding-inline: 4px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 7px 13px; border-radius: 999px; font-size: 13.5px; white-space: nowrap; }
.chip.on { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.chip.have { background: var(--green-soft); border-color: var(--green-soft); color: var(--ink); }
.chip.have::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* ===== المزاج ===== */
.moods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mood { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 12px 4px 10px; display: grid; justify-items: center; gap: 2px; font-size: 12.5px; text-align: center; }
.mood i { font-style: normal; font-size: 24px; line-height: 1.2; }


/* ===== كروت الوصفات ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.rcard { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; text-align: start; width: 100%; }
.plate { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 30px; background: var(--saffron-soft); }
.plate.p-green { background: var(--green-soft); } .plate.p-red { background: var(--tomato-soft); } .plate.p-gray { background: var(--surface-2); }
.rcard h3 { font-size: 15.5px; font-weight: 600; }
.rcard .meta { color: var(--muted); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.badge { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--green-soft); color: var(--green); }
.badge.warn { background: var(--saffron-soft); color: color-mix(in srgb, var(--saffron) 60%, var(--ink)); }
.badge.bad { background: var(--tomato-soft); color: var(--tomato); }
.heart { font-size: 18px; color: var(--tomato); }

.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 46%); gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.hscroll::-webkit-scrollbar { display: none; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 8px; text-align: start; }
.tile .plate { width: 46px; height: 46px; font-size: 24px; border-radius: 14px; }
.tile h3 { font-size: 14.5px; font-weight: 600; }

/* ===== لوحات ===== */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: grid; gap: 12px; }
.panel.soft { background: var(--saffron-soft); border-color: transparent; }
.panel.greenish { background: var(--green-soft); border-color: transparent; }
.empty { text-align: center; padding: 26px 12px; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.empty i { font-style: normal; font-size: 40px; }

/* ===== حقول ===== */
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 11px 13px; min-height: 46px; }
textarea.input { resize: vertical; min-height: 96px; line-height: 1.7; }
.search { position: relative; }
.search .input { padding-inline-start: 40px; }
.search::before { content: "⌕"; position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-52%); color: var(--muted); font-size: 20px; pointer-events: none; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.stepper button { border: 0; background: var(--surface-2); width: 42px; height: 42px; font-size: 20px; }
.stepper b { min-width: 46px; text-align: center; font-variant-numeric: tabular-nums; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 4px; }
.switch { appearance: none; width: 48px; height: 28px; border-radius: 999px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch:checked { background: var(--green); }
.switch:checked::after { inset-inline-start: 23px; }

/* ===== الأسبوع ===== */
.days { display: grid; gap: 8px; }
.day { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.day.today { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft); }
.day .dname { font-family: var(--display); font-size: 18px; line-height: 1.1; text-align: center; }
.day .dname small { display: block; font-family: var(--body); font-size: 11px; color: var(--muted); }
.day .dish-btn { background: none; border: 0; padding: 0; text-align: start; min-width: 0; }
.day .dish-btn b { display: block; font-weight: 600; }
.day .acts { display: flex; gap: 4px; }
.day .acts button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-size: 15px; }
.day .acts button.locked { background: var(--saffron-soft); border-color: var(--saffron); }
.sum-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.big-num { font-family: var(--display); font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }

/* ===== المشتريات ===== */
.aisle { display: grid; gap: 2px; }
.aisle h3 { font-size: 13px; color: var(--muted); font-weight: 600; padding-block: 6px 2px; }
.item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--green); }
.item.done span.nm { text-decoration: line-through; color: var(--muted); }
.item .q { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; text-align: end; }
.item .x { border: 0; background: none; color: var(--muted); font-size: 16px; width: 30px; height: 30px; }

/* ===== صفحة الوصفة ===== */
.sheet { position: fixed; inset: 0; z-index: 40; background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: calc(env(safe-area-inset-top, 0px) + 8px) calc(env(safe-area-inset-bottom, 0px) + 100px); animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-top { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-block: 8px; background: var(--bg); }
.hero-r { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; }
.hero-r .plate { width: 84px; height: 84px; font-size: 46px; border-radius: 24px; }
.hero-r h1 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 7vw, 36px); line-height: 1.15; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; text-align: center; }
.fact b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.fact span { font-size: 11.5px; color: var(--muted); }
.ings { display: grid; gap: 0; }
.ing { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 2px; border-bottom: 1px dashed var(--line); }
.ing:last-child { border-bottom: 0; }
.ing .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--surface-2); color: var(--muted); }
.ing.have .dot { background: var(--green-soft); color: var(--green); }
.ing.miss .dot { background: var(--tomato-soft); color: var(--tomato); }
.ing .amt { color: var(--muted); font-size: 13px; text-align: end; font-variant-numeric: tabular-nums; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; counter-increment: s; }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 10px; background: var(--saffron-soft); color: color-mix(in srgb, var(--saffron) 55%, var(--ink)); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.tip { background: var(--saffron-soft); border-radius: 16px; padding: 12px 14px; font-size: 14px; }
.dock { position: fixed; z-index: 41; inset: auto 0 0 0; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.dock .wrap { display: flex; gap: 8px; }
.dock .btn-main { flex: 1; }

/* ===== وضع الطبخ ===== */
.cook { position: fixed; inset: 0; z-index: 60; background: var(--surface); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: calc(env(safe-area-inset-top, 0px) + 10px) calc(env(safe-area-inset-bottom, 0px) + 14px); }
.cook .bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-block: 10px; }
.progress i { display: block; height: 100%; background: var(--saffron); border-radius: 999px; transition: width .3s; }
.cook .stage { overflow-y: auto; display: grid; align-content: center; gap: 18px; padding-block: 10px; }
.cook .stepno { font-family: var(--display); font-size: 22px; color: var(--green); }
.cook .steptext { font-size: clamp(22px, 6vw, 30px); line-height: 1.6; font-weight: 500; }
.cook .nav { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.cook .nav .btn { min-height: 56px; font-size: 17px; }
.timers { display: flex; gap: 6px; flex-wrap: wrap; }
.timer { background: var(--saffron-soft); border-radius: 999px; padding: 6px 12px; font-variant-numeric: tabular-nums; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; border: 0; }
.timer.done { background: var(--tomato); color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.05); } }

/* ===== شريط التنقل ===== */
.nav-bar { position: fixed; z-index: 30; inset: auto 0 0 0; background: var(--surface); border-top: 1px solid var(--line);
  padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
.nav-bar .wrap { display: grid; grid-template-columns: repeat(5, 1fr); }
.nav-bar a { text-decoration: none; color: var(--muted); display: grid; justify-items: center; gap: 1px; font-size: 11px; padding: 4px 2px; border-radius: 12px; position: relative; }
.nav-bar a i { font-style: normal; font-size: 21px; line-height: 1.25; filter: grayscale(.6); }
.nav-bar a.on { color: var(--green); font-weight: 600; }
.nav-bar a.on i { filter: none; }
.nav-bar a .count { position: absolute; top: 0; inset-inline-end: 18%; background: var(--tomato); color: #fff; font-size: 10px; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }

/* ===== جداول الأدوات ===== */
.tbl { overflow-x: auto; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl td, .tbl th { padding: 9px 6px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.tbl th { font-size: 12px; color: var(--muted); font-weight: 600; }
.acc { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.acc summary { padding: 13px 14px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; color: var(--muted); font-size: 18px; }
.acc[open] summary::after { content: "–"; }
.acc .body { padding: 0 14px 14px; display: grid; gap: 8px; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; text-align: start; display: grid; gap: 4px; }
.tool i { font-style: normal; font-size: 26px; }
.tool b { font-weight: 600; }
.tool span { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

/* ===== رسائل ===== */
.toast { position: fixed; z-index: 90; inset-inline: 16px; bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom, 0px)); margin: auto; max-width: 420px; background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 14px; text-align: center; font-size: 14px; transform: translateY(20px); opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { transform: none; opacity: 1; }
.modal-back { position: fixed; inset: 0; z-index: 80; background: rgba(10, 15, 10, .45); display: grid; align-items: end; padding: 0; }
.modal { background: var(--bg); border-radius: 24px 24px 0 0; padding: 18px max(16px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 12px; max-height: 85vh; overflow-y: auto; animation: up .2s ease-out; }
.modal .wrap { display: grid; gap: 12px; width: 100%; }
.pick-list { display: grid; gap: 6px; }
.pick-list button { text-align: start; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 11px 14px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 720px) { .moods { grid-template-columns: repeat(9, minmax(0, 1fr)); } .hscroll { grid-auto-columns: minmax(160px, 30%); } }

/* ===== شاشة الدخول ===== */
body.locked .nav-bar, body.locked > .wrap { display: none; }
.auth { position: fixed; inset: 0; z-index: 100; background: var(--bg); overflow-y: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: calc(env(safe-area-inset-top, 0px) + 20px) calc(env(safe-area-inset-bottom, 0px) + 24px); }
.auth-box { display: grid; gap: 18px; max-width: 460px; }
.auth .brand { display: flex; align-items: center; gap: 10px; }
.link-btn { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--surface-2); color: var(--green); border-radius: 10px; padding: 6px 10px; font-size: 13px; font-weight: 600; }
.auth-err { background: var(--tomato-soft); color: var(--tomato); border-radius: 12px; padding: 10px 12px; font-size: 14px; }

/* ===== بانر الإعلانات ===== */
.ad { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); border-radius: 20px; padding: 16px 14px 14px; background: var(--saffron-soft); border: 1px solid color-mix(in srgb, var(--saffron) 35%, transparent); }
.ad i { font-style: normal; font-size: 30px; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); }
.ad-txt { display: grid; gap: 2px; min-width: 0; }
.ad-txt b { font-size: 15.5px; }
.ad-txt span { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.ad-cta { background: var(--saffron); color: #2A1D00; font-weight: 700; font-size: 13px; padding: 8px 12px; border-radius: 12px; white-space: nowrap; }
.ad-tag { position: absolute; top: 6px; inset-inline-end: 12px; font-size: 10px; color: var(--muted); letter-spacing: .03em; }
.ad-green { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.ad-green .ad-cta { background: var(--green); color: var(--green-ink); }
.ad-tomato { background: var(--tomato-soft); border-color: color-mix(in srgb, var(--tomato) 30%, transparent); }
.ad-tomato .ad-cta { background: var(--tomato); color: #fff; }
.ad-ink { background: var(--ink); color: var(--bg); border-color: transparent; }
.ad-ink .ad-txt span, .ad-ink .ad-tag { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.ad-ink i { background: color-mix(in srgb, var(--bg) 12%, transparent); }
.ad-ink .ad-cta { background: var(--saffron); }
@media (max-width: 380px) { .ad { grid-template-columns: 44px minmax(0, 1fr); } .ad i { width: 44px; height: 44px; font-size: 24px; } .ad-cta { grid-column: 1 / -1; text-align: center; } }

/* ===== زرار الإضافة في مطبخي ===== */
.add-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.add-row .btn { min-height: 46px; padding-inline: 16px; white-space: nowrap; }
.chip.just { animation: justadd 1.2s ease-out; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
@keyframes justadd { 0% { transform: scale(.7); background: var(--green); color: var(--green-ink); } 40% { transform: scale(1.12); } 100% { transform: none; } }

/* ===== التثبيت ===== */
.install { background: var(--green-soft); border-color: transparent; }
.install-row { display: flex; gap: 12px; align-items: center; }
.install-row img { border-radius: 14px; flex: none; }
html[dir="ltr"] .sheet-top .icon-btn, html[dir="ltr"] .toolHead { direction: ltr; }
