@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/amiri-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}

:root {
  --brand: #0f3d3e;
  --brand-2: #155e5f;
  --brand-soft: #e6f0ef;
  --gold: #c9a24f;
  --gold-soft: #f6eedb;
  --bg: #f4f6f5;
  --card: #ffffff;
  --text: #13201f;
  --muted: #64716f;
  --line: #e2e8e6;
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --warn: #d97706;
  --warn-soft: #fef3c7;
  --bad: #dc2626;
  --bad-soft: #fee2e2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 40, 40, .06), 0 4px 16px rgba(16, 40, 40, .06);
  --shadow-lg: 0 10px 40px rgba(16, 40, 40, .18);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --arabic: 'Amiri', 'Noto Naskh Arabic', 'Traditional Arabic', 'Geeza Pro', serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
body { min-height: 100vh; min-height: 100dvh; font-size: 15px; line-height: 1.45; overscroll-behavior-y: contain; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea { font: inherit; color: inherit; }
a { color: var(--brand-2); }
.hidden { display: none !important; }

.boot { display: grid; place-items: center; min-height: 100dvh; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%;
  animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- layout */
.shell { padding: 0 0 calc(84px + var(--safe-b)); }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--brand); color: #fff;
  padding: calc(var(--safe-t) + 14px) max(18px, calc((100% - 1100px) / 2 + 18px)) 16px; display: flex; align-items: center; gap: 12px; }
.topbar h1 { font-size: 18px; margin: 0; font-weight: 650; letter-spacing: .2px; flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .sub { font-size: 12.5px; opacity: .8; font-weight: 400; display: block; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none;
  transition: background .15s; }
.icon-btn:hover { background: rgba(255, 255, 255, .12); }
.icon-btn svg { width: 22px; height: 22px; }
.page { padding: 16px; max-width: 1100px; margin: 0 auto; }
@media (min-width: 900px) { .page { padding: 24px; } }

.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: flex; justify-content: center;
  padding-bottom: var(--safe-b); }
.nav-in { display: flex; width: 100%; max-width: 560px; }
.nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 10px;
  color: var(--muted); font-size: 11.5px; font-weight: 550; transition: color .15s; min-height: 58px; }
.nav button svg { width: 24px; height: 24px; }
.nav button.on { color: var(--brand); }
.nav button.on svg { stroke-width: 2.2; }

/* ---------- cards */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card + .card { margin-top: 12px; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 700;
  margin: 22px 4px 10px; display: flex; align-items: center; gap: 8px; }
.section-title .count { background: var(--brand-soft); color: var(--brand); border-radius: 99px; padding: 1px 8px;
  font-size: 11.5px; letter-spacing: 0; }
.grid { display: grid; gap: 12px; }
.grid > * { min-width: 0; }
@media (min-width: 760px) { .grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- hero */
.hero { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; border-radius: 20px;
  padding: 18px; display: flex; gap: 18px; align-items: center; box-shadow: var(--shadow); }
.hero .ring { flex: none; }
.hero h2 { margin: 0 0 2px; font-size: 18px; }
.hero p { margin: 0; opacity: .85; font-size: 13.5px; }
.hero .hijri { margin-top: 6px; font-size: 12.5px; opacity: .75; }
.ring-txt { font-weight: 750; font-size: 20px; fill: #fff; }
.ring-dark { font-weight: 750; font-size: 16px; fill: var(--text); }

/* ---------- zikir list */
.zl { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .zl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.zi { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 14px 12px;
  display: flex; flex-direction: column; gap: 8px; text-align: left; width: 100%; min-width: 0; overflow: hidden; transition: transform .12s, box-shadow .15s;
  border: 1.5px solid transparent; }
.zi:hover { box-shadow: 0 2px 4px rgba(16, 40, 40, .06), 0 8px 24px rgba(16, 40, 40, .1); }
.zi:active { transform: scale(.985); }
.zi.done { border-color: #bbe6c8; }
.zi-top { display: flex; align-items: flex-start; gap: 10px; }
.zi-name { font-weight: 650; font-size: 15.5px; flex: 1; min-width: 0; }
.zi-ar { font-family: var(--arabic); font-size: 21px; line-height: 1.6; color: var(--brand); direction: rtl; text-align: right;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.zi-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.zi-num { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px; white-space: nowrap; }
.zi-num small { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.bar { height: 8px; background: #edf1f0; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--gold); transition: width .35s ease; }
.zi.done .bar > i { background: var(--ok); }
.chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 99px; padding: 2px 9px; font-size: 11.5px;
  font-weight: 650; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: #15803d; }
.chip.warn { background: var(--warn-soft); color: #b45309; }
.chip.bad { background: var(--bad-soft); color: #b91c1c; }
.chip.gold { background: var(--gold-soft); color: #8a6a22; }
.chip.gray { background: #eef1f0; color: var(--muted); }
.check { width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; }
.check svg { width: 16px; height: 16px; }

.banner { display: flex; gap: 12px; align-items: center; background: var(--gold-soft); border-radius: var(--radius);
  padding: 12px 14px; margin-top: 12px; }
.banner svg { width: 26px; height: 26px; flex: none; color: #8a6a22; }
.banner .t { flex: 1; font-size: 13.5px; }
.banner .t b { display: block; font-size: 14.5px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 12px; font-weight: 650; background: var(--brand); color: #fff; transition: filter .15s, transform .1s, background .15s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.sec { background: var(--brand-soft); color: var(--brand); }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--line); }
.btn.gold { background: var(--gold); color: #2b2105; }
.btn.danger { background: var(--bad-soft); color: #b91c1c; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn.block { width: 100%; }
a.btn { text-decoration: none; }
.btn svg { width: 18px; height: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }

/* ---------- segment & chips */
.seg { display: inline-flex; background: #e9eeed; border-radius: 12px; padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto;
  scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { padding: 8px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap;
  min-height: 38px; transition: background .15s, color .15s; }
.seg button.on { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.seg.block { display: flex; width: 100%; }
.seg.block button { flex: 1; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.pick { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 14px; font-size: 13.5px;
  font-weight: 600; color: var(--text); white-space: nowrap; min-height: 38px; transition: all .15s; }
.pick:hover { border-color: var(--brand-2); }
.pick.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pick:disabled { opacity: .4; }

/* toggle */
.toggle { position: relative; width: 50px; height: 30px; border-radius: 99px; background: #cfd8d6; flex: none; transition: background .2s; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.toggle.on { background: var(--brand-2); }
.toggle.on::after { transform: translateX(20px); }

/* list rows */
.list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; min-height: 56px; border-bottom: 1px solid var(--line);
  width: 100%; text-align: left; transition: background .12s; }
.li:last-child { border-bottom: 0; }
button.li:hover { background: #f8faf9; }
.li .main { flex: 1; min-width: 0; }
.li .main b { display: block; font-weight: 600; }
.li .main span { font-size: 12.5px; color: var(--muted); }
.li svg.chev { width: 18px; height: 18px; color: #9aa6a4; flex: none; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid;
  place-items: center; font-weight: 750; flex: none; font-size: 14px; }

/* ---------- login */
.login { min-height: 100dvh; background: radial-gradient(circle at 20% 0%, #1d6b6b 0%, var(--brand) 55%, #0a2b2c 100%);
  color: #fff; padding: calc(var(--safe-t) + 34px) 18px 30px; }
.login-in { max-width: 520px; margin: 0 auto; }
.login .logo { width: 74px; height: 74px; border-radius: 20px; display: block; margin: 0 auto 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .3); }
.login h1 { text-align: center; margin: 0; font-size: 23px; }
.login .lead { text-align: center; opacity: .8; margin: 6px 0 26px; font-size: 14px; }
.names { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 480px) { .names { grid-template-columns: repeat(3, 1fr); } }
.names button { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); color: #fff; border-radius: 14px;
  padding: 14px 10px; font-weight: 650; font-size: 15px; min-height: 54px; transition: background .15s, transform .1s; }
.names button:hover { background: rgba(255, 255, 255, .18); }
.names button:active { transform: scale(.97); }
.ar-basmala { font-family: var(--arabic); font-size: 26px; text-align: center; color: #f0d696; margin-bottom: 16px; direction: rtl; }

/* PIN pad */
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 14px 0 18px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--brand); transition: background .12s; }
.pin-dots i.on { background: var(--brand); }
.pin-dots.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 320px; margin: 0 auto; }
.pad button { height: 60px; border-radius: 16px; background: #f1f5f4; font-size: 24px; font-weight: 600; transition: background .1s, transform .08s; }
.pad button:active { background: #dfe8e6; transform: scale(.96); }
.pad button.fn { background: transparent; font-size: 15px; color: var(--muted); }
.pad button svg { width: 24px; height: 24px; }
.err { color: var(--bad); font-size: 13.5px; text-align: center; min-height: 20px; }

/* ---------- counter */
.counter-wrap { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "ar" "tap" "info"; }
.counter-wrap .c-ar { grid-area: ar; } .counter-wrap .c-tap { grid-area: tap; } .counter-wrap .c-info { grid-area: info; }
@media (min-width: 900px) { .counter-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "ar tap" "info tap"; align-items: start; } }
.ar-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.ar-text { font-family: var(--arabic); font-size: 27px; line-height: 2; direction: rtl; text-align: center; color: var(--brand); }
.ar-text.long { font-size: 22px; max-height: 32vh; overflow-y: auto; padding: 0 6px; }
@media (min-width: 900px) { .ar-text.long { max-height: 340px; } }
.ar-text + .ar-text { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 8px; }
.ar-note { font-size: 13.5px; color: var(--muted); margin-top: 8px; text-align: center; }
.tap { position: relative; width: min(68vw, 320px); aspect-ratio: 1; margin: 6px auto 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #1b6e6f 0%, var(--brand) 70%); color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 40px rgba(15, 61, 62, .35), inset 0 -6px 18px rgba(0, 0, 0, .2); user-select: none; -webkit-user-select: none;
  touch-action: manipulation; transition: transform .07s; }
.tap:active, .tap.hit { transform: scale(.965); }
.tap svg.prog { position: absolute; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); transform: rotate(-90deg); pointer-events: none; }
.tap .num { font-size: clamp(56px, 18vw, 84px); font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -1px; }
.tap .of { font-size: 15px; opacity: .8; margin-top: 6px; text-align: center; }
.tap .hint { position: absolute; bottom: 18%; font-size: 12px; opacity: .6; }
.tap.complete { background: radial-gradient(circle at 50% 35%, #22a35a 0%, #127a3c 70%); }
.c-tap { position: relative; }
#hundred { position: absolute; left: 0; right: 0; top: -6px; z-index: 3; pointer-events: none; }
.hundred { box-shadow: var(--shadow-lg); background: var(--gold-soft); border: 1.5px solid var(--gold); border-radius: var(--radius); padding: 10px 14px; text-align: center;
  animation: pop .25s ease; }
.hundred .ar-text { font-size: 25px; color: #6d521a; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ctl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.ctl .btn { flex-direction: column; gap: 2px; min-height: 62px; font-size: 13px; }
.ctl .btn svg { width: 22px; height: 22px; }
.info { display: grid; gap: 10px; }
.info .k { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; }
.info .v { font-size: 14.5px; }
.prev-line { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }

/* ---------- sheet / modal */
.sheet-bg { position: fixed; inset: 0; background: rgba(10, 25, 25, .45); z-index: 60; display: flex; align-items: flex-end;
  justify-content: center; animation: fade .18s; }
@media (min-width: 700px) { .sheet-bg { align-items: center; } }
@keyframes fade { from { opacity: 0; } }
.sheet { background: #fff; width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto; border-radius: 22px 22px 0 0;
  padding: 10px 18px calc(20px + var(--safe-b)); box-shadow: var(--shadow-lg); animation: up .22s ease; }
@media (min-width: 700px) { .sheet { border-radius: 22px; padding-bottom: 20px; } }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
.sheet .grab { width: 40px; height: 5px; border-radius: 99px; background: #d6dedc; margin: 0 auto 12px; }
.sheet h3 { margin: 0 0 4px; font-size: 18px; }
.sheet .desc { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label, .field > .lbl { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.input { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; background: #fff; min-height: 46px;
  outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(21, 94, 95, .14); }
textarea.input { min-height: 80px; resize: vertical; }
textarea.input.ar { font-family: var(--arabic); font-size: 20px; direction: rtl; line-height: 1.8; }
.big-num { font-size: 40px; font-weight: 750; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.stepper { display: flex; gap: 8px; align-items: center; }
.stepper .input { text-align: center; }
.summary { background: var(--brand-soft); color: var(--brand); border-radius: 12px; padding: 10px 13px; font-size: 13.5px; margin-bottom: 14px; }

/* calendar */
.cal { user-select: none; }
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cal-head b { flex: 1; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-grid .dow { font-size: 11px; color: var(--muted); text-align: center; font-weight: 700; padding: 4px 0; }
.cal-grid button { aspect-ratio: 1; border-radius: 10px; font-size: 14px; font-weight: 550; min-height: 38px; transition: background .12s; }
.cal-grid button:hover:not(:disabled) { background: var(--brand-soft); }
.cal-grid button.today { box-shadow: inset 0 0 0 1.5px var(--gold); }
.cal-grid button.in { background: var(--brand-soft); border-radius: 0; }
.cal-grid button.sel { background: var(--brand); color: #fff; }
.cal-grid button:disabled { color: #c3cbc9; }

/* toast */
#toast-root { position: fixed; left: 0; right: 0; bottom: calc(92px + var(--safe-b)); z-index: 80; display: flex; flex-direction: column;
  align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { background: #13201f; color: #fff; border-radius: 12px; padding: 11px 16px; font-size: 14px; box-shadow: var(--shadow-lg);
  animation: up .2s ease; max-width: 480px; pointer-events: auto; }
.toast.ok { background: #14532d; }
.toast.bad { background: #7f1d1d; }

/* ---------- report */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.kpi span { font-size: 12px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .5px; }
.kpi b { display: block; font-size: 26px; font-weight: 750; color: var(--brand); font-variant-numeric: tabular-nums; margin-top: 2px; }
.kpi small { color: var(--muted); font-size: 12px; }
.chart-box { position: relative; height: 240px; }
.chart-box.tall { height: auto; }
.pr { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pr:last-child { border-bottom: 0; }
.pr-top { display: flex; gap: 10px; align-items: baseline; }
.pr-top b { flex: 1; font-weight: 600; font-size: 14.5px; min-width: 0; }
.pr-top span { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pr-top em { font-style: normal; font-weight: 750; font-size: 14px; min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; }
.heat { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.heat table { border-collapse: collapse; font-size: 12.5px; min-width: 100%; }
.heat th, .heat td { padding: 7px 8px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.heat th { background: #f7faf9; color: var(--muted); font-weight: 700; font-size: 11.5px; position: sticky; top: 0; }
.heat th.zn { white-space: normal; min-width: 76px; max-width: 110px; line-height: 1.25; }
.heat td:first-child, .heat th:first-child { position: sticky; left: 0; background: #fff; text-align: left; font-weight: 650; z-index: 1;
  box-shadow: 1px 0 0 var(--line); }
.heat th:first-child { background: #f7faf9; z-index: 2; }
.heat tr.click { cursor: pointer; }
.heat tr.click:hover td { filter: brightness(.97); }
.heat td.c { font-weight: 700; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -2px; }
.export { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.export .btn { min-height: 52px; flex-direction: column; gap: 0; font-size: 13px; }
.export .btn small { font-weight: 500; opacity: .75; font-size: 11px; }

.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mt { margin-top: 14px; }
.mt-s { margin-top: 8px; }
.pin-show { font-size: 38px; font-weight: 800; letter-spacing: 8px; text-align: center; background: var(--gold-soft);
  border-radius: 14px; padding: 14px; font-variant-numeric: tabular-nums; color: #5f4814; }
.kbd { font-family: ui-monospace, monospace; background: #eef1f0; border-radius: 6px; padding: 1px 6px; font-size: 12.5px; }
.steps { margin: 0; padding-left: 20px; font-size: 14px; }
.steps li { margin-bottom: 6px; }
.offline-dot { width: 9px; height: 9px; border-radius: 50%; background: #fbbf24; display: inline-block; margin-left: 6px; }

/* ================= Zikirlerim listesi (eski Zikirmatik "Zikirlerim" deseni) ================= */
.zlist { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 760px) { .zlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.zrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow);
  width: 100%; min-width: 0; text-align: left; transition: transform .15s, box-shadow .2s; border: 0; }
.zrow:hover { box-shadow: 0 2px 4px rgba(16,40,40,.06), 0 10px 26px rgba(16,40,40,.10); }
.zrow:active { transform: scale(.985); }
.zrow.done { box-shadow: 0 0 0 2px #22a35a, var(--shadow); }
.zrow .t { min-width: 0; flex: 1; }
.zrow .n { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.zrow .n > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zrow .a { font-family: var(--arabic); direction: rtl; text-align: left; font-size: 18px; line-height: 1.7; color: var(--muted); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; display: block; }
.zrow .s { font-size: 13px; color: var(--muted); margin-top: 1px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zrow .s b { color: var(--text); }
.zrow svg.chev { width: 18px; height: 18px; color: #9aa6a4; flex: none; }
.mini { width: 50px; height: 50px; flex: none; position: relative; display: grid; place-items: center; font-weight: 750; font-size: 12px;
  font-variant-numeric: tabular-nums; }
.mini svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.mini circle { fill: none; stroke-width: 4; }
.mini .trk { stroke: #ecefee; } .mini .prg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .3s; }
.zrow.done .mini .prg { stroke: #22a35a; }
.hero.compact { padding: 14px 16px; gap: 14px; }

/* ================= Zikirmatik cihazi (eski Zikirmatik tasarimi, bu uygulamaya kopya) ================= */
.zkm { --zbg: #f3f1ec; --zchip: #e9e6de; --zink: #1b1c1f; --zmuted: #6d6a63; --zaccent: #17885a; --ease: cubic-bezier(.2,.8,.2,1);
  --dev-hi: #45484f; --dev-1: #26282d; --dev-2: #0c0d10; --dev-edge: rgba(255,255,255,.10);
  --dev-ink: rgba(255,255,255,.55); --btn-hi: #5a5e66; --btn-1: #2c2f35; --btn-2: #121317;
  --ring: #3ddc97; --ring-track: rgba(255,255,255,.08);
  --lcd-1: #bfcaa7; --lcd-2: #a7b38e; --seg: #1b2416; --seg-ghost: rgba(27,36,22,.075); --lcd-glow: none;
  background: var(--zbg); color: var(--zink); min-height: 100dvh; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.zkm[data-device="lacivert"] { --dev-hi:#3f5288; --dev-1:#22325e; --dev-2:#0b1430; --btn-hi:#56689c; --btn-1:#28396a; --btn-2:#101a3a; --ring:#7cc0ff; }
.zkm[data-device="bordo"]    { --dev-hi:#8c3446; --dev-1:#5f1d2b; --dev-2:#260910; --btn-hi:#9c4758; --btn-1:#66222f; --btn-2:#2c0c13; --ring:#ffbf75; }
.zkm[data-device="zumrut"]   { --dev-hi:#2f7a63; --dev-1:#1b5141; --dev-2:#082219; --btn-hi:#3f8a72; --btn-1:#1f5a48; --btn-2:#0a2a20; --ring:#f2d675; }
.zkm[data-device="sedef"]    { --dev-hi:#ffffff; --dev-1:#ece7dc; --dev-2:#c9c1b1; --dev-edge: rgba(255,255,255,.7); --dev-ink: rgba(60,50,35,.55);
  --btn-hi:#ffffff; --btn-1:#e6e0d3; --btn-2:#b9b09e; --ring:#b98336; --ring-track: rgba(60,50,35,.12); }
.zkm[data-lcd="isikli"] { --lcd-1:#0d2a1f; --lcd-2:#071a13; --seg:#6dffb6; --seg-ghost: rgba(109,255,182,.07); --lcd-glow: drop-shadow(0 0 4px rgba(109,255,182,.55)); }
.zkm[data-lcd="isikli"][data-device="lacivert"] { --lcd-1:#0c1d36; --lcd-2:#060f20; --seg:#8fd0ff; --seg-ghost: rgba(143,208,255,.08); --lcd-glow: drop-shadow(0 0 4px rgba(143,208,255,.55)); }
.zkm[data-lcd="isikli"][data-device="bordo"] { --lcd-1:#2a1408; --lcd-2:#170a03; --seg:#ffc27a; --seg-ghost: rgba(255,194,122,.08); --lcd-glow: drop-shadow(0 0 4px rgba(255,194,122,.55)); }
.zkm-in { min-height: 100dvh; display: flex; flex-direction: column; padding: calc(var(--safe-t) + 8px) 16px 0; max-width: 720px; margin: 0 auto;
  animation: zfade .28s var(--ease); }
@keyframes zfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.zkm svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.zkm .main-head { display: flex; align-items: center; gap: 6px; padding-top: 6px; }
.zkm .zbtn { width: 44px; height: 44px; border-radius: 14px; display: inline-grid; place-items: center; flex: none; transition: background .15s, transform .12s var(--ease); }
.zkm .zbtn:hover { background: var(--zchip); }
.zkm .zbtn:active { transform: scale(.92); }
.zkm .zk-title { flex: 1; min-width: 0; text-align: left; padding: 6px 8px; border-radius: 14px; transition: background .15s; }
.zkm .zk-title:hover { background: var(--zchip); }
.zkm .zk-title .name { display: flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 750; letter-spacing: -.01em; }
.zkm .zk-title .name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zkm .zk-title .name svg { width: 18px; height: 18px; opacity: .55; }
.zkm .pill { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06); font-weight: 600; font-size: 15px; flex: none; transition: transform .12s var(--ease); }
.zkm .pill:active { transform: scale(.96); }
.zkm .zk-meta { font-size: 13.5px; color: var(--zmuted); margin: 0 0 0 4px; display: flex; gap: 6px; flex-wrap: wrap; min-height: 20px; }
.zkm .zk-meta b { color: var(--zink); font-weight: 650; }
.zkm .main-text { text-align: center; min-height: 34px; margin: 4px 8px 0; color: var(--zmuted); overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-family: var(--arabic); direction: rtl; font-size: 23px; line-height: 1.65; cursor: pointer; }
.zkm .main-text.hundred-on { color: #8a6a22; background: var(--gold-soft); border-radius: 14px; padding: 2px 10px; -webkit-line-clamp: 3; }
.zkm .main-text.empty { cursor: default; }
.zkm .stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 6px 0 10px; min-height: 0; }
.zkm .under { display: flex; gap: 8px; align-items: center; justify-content: center; min-height: 44px; flex-wrap: wrap; }
.zkm .chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--zchip);
  font-size: 14px; font-weight: 600; color: var(--zmuted); transition: transform .12s var(--ease), opacity .2s, color .15s; }
.zkm .chip-btn:hover { color: var(--zink); }
.zkm .chip-btn:active { transform: scale(.94); }
.zkm .chip-btn[disabled] { opacity: .4; pointer-events: none; }
.zkm .chip-btn svg { width: 18px; height: 18px; }
.zkm .chip-btn.gold { background: var(--gold-soft); color: #8a6a22; }
.zkm .today-chip { font-size: 13px; color: var(--zmuted); }
.zkm .today-chip b { color: var(--zink); }

.device { --w: min(336px, 86vw, calc((100dvh - 330px) / 1.32)); width: var(--w); height: calc(var(--w) * 1.32); position: relative; flex: none;
  border-radius: 47% 47% 50% 50% / 37% 37% 63% 63%;
  background: radial-gradient(120% 80% at 30% 12%, var(--dev-hi) 0%, var(--dev-1) 38%, var(--dev-2) 100%);
  box-shadow: inset 0 2px 1px var(--dev-edge), inset 0 -10px 24px rgba(0,0,0,.35), 0 2px 3px rgba(0,0,0,.25), 0 24px 50px -10px rgba(0,0,0,.45), 0 10px 18px -8px rgba(0,0,0,.3);
  transition: background .4s var(--ease); }
.device::before { content: ""; position: absolute; inset: 3.2%; border-radius: inherit; border: 1px solid rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; }
.zkm[data-device="sedef"] .device::before { border-color: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.lcd { position: absolute; left: 13%; right: 13%; top: 12%; height: 24%; border-radius: 12px 12px 10px 10px / 12px;
  background: linear-gradient(170deg, var(--lcd-1), var(--lcd-2));
  box-shadow: inset 0 2px 6px rgba(0,0,0,.45), inset 0 0 0 2px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.12);
  display: flex; flex-direction: column; justify-content: center; padding: 4% 6%; overflow: hidden; transition: background .3s; }
.lcd::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 38%); pointer-events: none; }
.lcd-top { display: flex; justify-content: space-between; font: 700 calc(var(--w) * .036)/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--seg);
  letter-spacing: .08em; opacity: .85; filter: var(--lcd-glow); height: calc(var(--w) * .045); }
.digits { display: flex; justify-content: flex-end; gap: 3%; height: 66%; margin-top: 2%; filter: var(--lcd-glow); }
.digits svg { height: 100%; width: auto; overflow: visible; }
.digits .on { fill: var(--seg); }
.digits .ghost { fill: var(--seg-ghost); }
.lcd.flash { animation: lcdFlash .9s ease; }
@keyframes lcdFlash { 0%,100% { filter: none; } 20%,60% { filter: brightness(1.35) saturate(1.2); } 40%,80% { filter: brightness(.85); } }
.side-btn { position: absolute; top: 40%; width: 16%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; }
.side-btn.left { left: 8%; } .side-btn.right { right: 8%; }
.side-btn .knob { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(80% 80% at 35% 25%, var(--btn-hi), var(--btn-1) 55%, var(--btn-2));
  box-shadow: inset 0 1px 1px rgba(255,255,255,.18), 0 2px 0 rgba(0,0,0,.45), 0 4px 8px rgba(0,0,0,.35);
  display: grid; place-items: center; color: var(--dev-ink); transition: transform .08s, box-shadow .08s; }
.side-btn .knob svg.i { width: 44%; height: 44%; }
.side-btn:active .knob, .side-btn.holding .knob { transform: translateY(2px); box-shadow: inset 0 1px 1px rgba(255,255,255,.1), 0 0 0 rgba(0,0,0,.45), 0 1px 3px rgba(0,0,0,.35); }
.side-btn .lbl { margin-top: 7px; font-size: calc(var(--w) * .033); font-weight: 750; letter-spacing: .12em; color: var(--dev-ink); white-space: nowrap; }
.hold-ring { position: absolute; inset: -14%; width: 128%; height: 128%; transform: rotate(-90deg); pointer-events: none; }
.hold-ring circle { fill: none; stroke-width: 3.2; }
.hold-ring .trk { stroke: transparent; }
.hold-ring .prg { stroke: #ff6b57; stroke-linecap: round; opacity: 0; transition: opacity .15s; }
.holding .hold-ring .prg { opacity: 1; }
.big-wrap { position: absolute; left: 50%; bottom: 9%; width: 53%; aspect-ratio: 1; transform: translateX(-50%); }
.big-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.big-ring circle { fill: none; stroke-width: 3.5; }
.big-ring .trk { stroke: var(--ring-track); }
.big-ring .prg { stroke: var(--ring); stroke-linecap: round; transition: stroke-dashoffset .18s var(--ease), stroke .3s; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--ring) 60%, transparent)); }
.big-ring.complete .prg { animation: ringPulse .9s ease; }
@keyframes ringPulse { 50% { stroke-width: 6; } }
.big-btn { position: absolute; inset: 9%; border-radius: 50%; touch-action: none;
  background: radial-gradient(75% 75% at 35% 25%, var(--btn-hi), var(--btn-1) 55%, var(--btn-2));
  box-shadow: inset 0 2px 2px rgba(255,255,255,.16), inset 0 -6px 14px rgba(0,0,0,.35), 0 5px 0 rgba(0,0,0,.45), 0 10px 20px rgba(0,0,0,.4), 0 0 0 5px rgba(0,0,0,.22);
  transition: transform .07s ease-out, box-shadow .07s ease-out; }
.big-btn::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(60% 60% at 40% 30%, rgba(255,255,255,.10), rgba(255,255,255,0) 70%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.big-btn.pressed { transform: translateY(4px) scale(.985); box-shadow: inset 0 2px 2px rgba(255,255,255,.1), inset 0 -3px 10px rgba(0,0,0,.4), 0 1px 0 rgba(0,0,0,.45), 0 3px 8px rgba(0,0,0,.35), 0 0 0 5px rgba(0,0,0,.22); }
.big-btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 4px; }
.brand { position: absolute; left: 0; right: 0; top: 38.2%; text-align: center; font-size: calc(var(--w) * .03); letter-spacing: .32em; font-weight: 700; color: var(--dev-ink); opacity: .55; pointer-events: none; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; border: 2px solid var(--ring); opacity: .55; animation: rip .5s ease-out forwards; }
@keyframes rip { from { transform: scale(.85); opacity: .55; } to { transform: scale(1.12); opacity: 0; } }
.dock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 -8px; padding: 8px 8px calc(var(--safe-b) + 10px); }
.dock button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 58px; padding: 6px 2px; border-radius: 16px; font-size: 12px; font-weight: 600; color: var(--zmuted); transition: background .15s, color .15s, transform .12s var(--ease); }
.dock button:hover { background: var(--zchip); color: var(--zink); }
.dock button:active { transform: scale(.93); }
.dock button.on { color: var(--zaccent); }
.zbanner { position: fixed; left: 50%; top: calc(var(--safe-t) + 12px); transform: translate(-50%, -160%); z-index: 60; background: var(--zaccent, #17885a); color: #fff;
  padding: 12px 18px; border-radius: 16px; font-weight: 700; box-shadow: 0 12px 30px rgba(0,0,0,.25); display: flex; gap: 10px; align-items: center;
  transition: transform .45s cubic-bezier(.2,.8,.2,1); max-width: calc(100vw - 32px); }
.zbanner.show { transform: translate(-50%, 0); }
.zbanner svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.sw { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 2px; border-radius: 14px; font-size: 12.5px; font-weight: 600; border: 2px solid transparent; transition: border-color .15s; }
.sw i { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.25); display: block; }
.sw.on { border-color: var(--brand-2); }
.login-quick { text-align: center; margin-top: 18px; }
.login-quick button { color: #f0d696; font-weight: 650; padding: 10px 14px; border-radius: 12px; }
.login-quick button:hover { background: rgba(255,255,255,.08); }

.zrow.cur { box-shadow: 0 0 0 2px var(--brand-2), var(--shadow); }
@media (max-width: 440px) { .zkm .pill { width: 44px; padding: 0; justify-content: center; } .zkm .pill span { display: none; } }
