:root {
  --bg: #F5F2ED;
  --paper: #FFFFFF;
  --linen: #ECE6DC;
  --ink: #1D1B19;
  --ink-2: #3A3632;
  --muted: #7B746C;
  --line: #E4DDD2;
  --soft: #EFEAE2;
  --ok: #4C6A4A;
  --ok-bg: #E5ECE2;
  --warn: #9C4F38;
  --warn-bg: #F5E6DF;
  --radius: 20px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(40, 30, 20, .04), 0 10px 30px rgba(40, 30, 20, .07);
  --tabs-h: 64px;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .36 0 0 0 0 .28 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0;
  font: 15px/1.45 var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
body.noscroll { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }

.ic { display: inline-flex; width: 20px; height: 20px; flex: none; }
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic.flip { transform: rotate(180deg); }

.view {
  max-width: 520px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 18px) 18px calc(var(--tabs-h) + env(safe-area-inset-bottom) + 28px);
}
.view-onb { padding-bottom: 32px; }

/* ---------- Ürün görselleri ---------- */
.pimg { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; opacity: 0; transition: opacity .25s ease; user-select: none; -webkit-user-drag: none; }
.pimg.in { opacity: 1; }

/* ---------- Başlık ---------- */
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.top-r { display: flex; align-items: center; gap: 6px; flex: none; }
h1 { font: 500 30px/1.08 var(--serif); letter-spacing: -.01em; margin: 2px 0 0; }
.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.h2 { font: 500 21px/1.2 var(--serif); margin: 30px 0 6px; }
.h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 22px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.hint { color: var(--muted); font-size: 13px; margin: 8px 0 10px; }
.opt { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.privacy { color: var(--muted); font-size: 12.5px; background: var(--soft); border-radius: 12px; padding: 10px 12px; margin: 12px 0; }

.wx { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; padding: 6px 10px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow); white-space: nowrap; }
.wx .ic { width: 18px; height: 18px; }
.wx .rain { font-size: 12px; color: #3E6A8A; margin-left: 2px; }
.wx-btn { font-size: 13px; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); font-weight: 600; font-size: 15px;
}
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: #FBF8F3; border-color: var(--ink); }
.btn-ghost { background: transparent; }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-wide { width: 100%; margin-top: 10px; }
.btn-go { min-height: 54px; font-size: 16px; margin-top: 16px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; color: var(--ink-2); flex: none; }
.icon-btn:active { background: var(--soft); }
.icon-btn-lg { width: 46px; height: 46px; border: 1px solid var(--line); background: var(--paper); }
.link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.link .ic { width: 16px; height: 16px; }
.danger { color: var(--warn); }
.center-block { display: block; margin: 22px auto 6px; }
.file-btn { cursor: pointer; }

/* ---------- Adımlar (Bugün) ---------- */
.steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.step { background: var(--paper); border-radius: var(--radius); padding: 14px 16px 12px; box-shadow: var(--shadow); }
.step-h { display: flex; align-items: center; gap: 10px; font: 500 18px/1.2 var(--serif); margin-bottom: 10px; }
.step-h .opt { font-family: var(--sans); }
.num { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #FBF8F3; display: inline-grid; place-items: center; font: 600 12.5px var(--sans); flex: none; }
.summary { display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: var(--radius); padding: 10px 12px; box-shadow: var(--shadow); margin-bottom: 16px; }
.sum-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.sum-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--soft); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sum-chip .ic { width: 13px; height: 13px; }
.sum-chip .dot { width: 11px; height: 11px; }
.results { scroll-margin-top: 14px; }

.strip { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
.strip::-webkit-scrollbar { display: none; }
.strip-it { position: relative; flex: 0 0 96px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border-radius: 14px; border: 1.5px solid transparent; font-size: 11.5px; line-height: 1.2; text-align: center; scroll-snap-align: start; }
.strip-it.on { border-color: var(--ink); background: var(--soft); }
.strip-img { width: 82px; height: 82px; display: grid; place-items: center; background: var(--linen) var(--noise); border-radius: 12px; padding: 6px; }
.strip-img .pimg { filter: drop-shadow(0 5px 5px rgba(60, 45, 30, .16)); }
.strip-check { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.strip-check .ic { width: 13px; height: 13px; }

/* ---------- Denge ---------- */
.balance { padding: 2px 0 2px; }
.balance-ends { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.balance-label { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; min-height: 22px; }
.balance-label strong { font: 500 18px var(--serif); }
.balance-label span { color: var(--muted); font-size: 13px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; margin: 0; touch-action: pan-y; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, #C9C1B5 0%, var(--ink) 100%); }
.range::-moz-range-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, #C9C1B5 0%, var(--ink) 100%); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }

/* ---------- Alanlar ---------- */
.field-label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 7px; }
.input { width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 11px 12px; font-size: 16px; outline: none; resize: vertical; }
.input:focus { border-color: var(--ink-2); background: var(--paper); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px 12px; padding: 0 18px 2px; scrollbar-width: none; }
.step .chips-scroll { margin: 10px -16px 8px; padding: 0 16px 2px; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 13.5px; white-space: nowrap; }
.chip.on { background: var(--ink); color: #FBF8F3; border-color: var(--ink); }
.chip-static { padding: 3px 10px; font-size: 12.5px; background: var(--soft); border: 0; }
.color-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; }
.cchip.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.memory { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px; background: var(--soft); border-radius: 12px; font-size: 13px; color: var(--ink-2); }
.memory .mini { flex: none; }

.switch-row { display: flex; align-items: center; gap: 10px; padding: 14px 0 10px; font-size: 14px; cursor: pointer; user-select: none; }
.small-row { justify-content: center; font-size: 13px; color: var(--muted); padding-top: 12px; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 40px; height: 24px; border-radius: 999px; background: #D6CFC4; position: relative; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch-row input:checked + .switch { background: var(--ink); }
.switch-row input:checked + .switch::after { transform: translateX(16px); }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Kombin kartları ---------- */
.looks { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 2px 18px 8px; scrollbar-width: none; }
.looks::-webkit-scrollbar { display: none; }
.look { flex: 0 0 88%; scroll-snap-align: center; background: var(--paper); border-radius: 24px; box-shadow: var(--shadow); padding: 10px; display: flex; flex-direction: column; }
.looks .look:only-child { flex-basis: 100%; }
.dots { display: flex; justify-content: center; gap: 6px; margin: 8px 0 0; }
.dots span { width: 6px; height: 6px; border-radius: 50%; background: #D3CBBF; transition: all .2s; }
.dots span.on { background: var(--ink); width: 18px; border-radius: 3px; }

.board {
  position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden;
  background-color: var(--linen);
  background-image: var(--noise), radial-gradient(120% 90% at 30% 20%, #F4EFE7 0%, var(--linen) 55%, #E3DCD0 100%);
}
.slot { position: absolute; display: flex; align-items: center; justify-content: center; }
.slot .pimg { filter: drop-shadow(0 14px 14px rgba(60, 45, 30, .20)) drop-shadow(0 2px 3px rgba(60, 45, 30, .14)); }
.slot.is-ghost .pimg { opacity: .55; filter: grayscale(.2) drop-shadow(0 8px 8px rgba(60, 45, 30, .12)); }
.slot.is-ghost::after { content: ""; position: absolute; inset: 0; border: 1.5px dashed rgba(90, 80, 68, .45); border-radius: 14px; pointer-events: none; }
.ghost-tag { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); font-size: 10.5px; background: rgba(255, 255, 255, .92); padding: 2px 8px; border-radius: 999px; white-space: nowrap; color: var(--ink-2); z-index: 2; }
.board-md { max-width: 300px; margin: 0 auto; }

.pieces { list-style: none; margin: 8px 2px 0; padding: 0; }
.pieces li { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--soft); }
.pieces li:last-child { border-bottom: 0; }
.piece { flex: 1; display: flex; align-items: center; gap: 10px; padding: 9px 2px; text-align: left; min-width: 0; }
.piece-add { color: var(--muted); }
.piece-add .ic { width: 16px; height: 16px; margin: 0 1px; }
.pname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; min-width: 0; }
.pname small { color: var(--muted); font-size: 12.5px; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); flex: none; display: inline-block; }
.dot2 { background: linear-gradient(135deg, var(--c) 0 50%, var(--c2) 50% 100%); }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; padding: 3px 8px; border-radius: 999px; background: var(--soft); color: var(--ink-2); white-space: nowrap; flex: none; }
.pill .ic { width: 12px; height: 12px; }
.pill-ghost { background: #F3E9D9; color: #7A5A2E; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-soft { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.why { font: italic 15px/1.45 var(--serif); color: var(--ink-2); margin: 10px 4px 12px; }
.look-actions { display: flex; gap: 8px; margin-top: auto; }
.look-actions .btn-primary { flex: 1; }
.empty { text-align: center; color: var(--muted); padding: 30px 18px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty-actions { display: flex; flex-direction: column; gap: 8px; align-items: center; margin-top: 14px; }

.banner { display: flex; align-items: center; gap: 12px; background: var(--paper); border-radius: var(--radius); padding: 10px 12px; box-shadow: var(--shadow); margin-bottom: 12px; }
.banner > div:nth-child(2) { flex: 1; min-width: 0; }
.banner-t { font: 500 17px var(--serif); }

.mini { display: flex; gap: 3px; }
.mini-pc { width: 36px; height: 36px; display: grid; place-items: center; background: var(--linen); border-radius: 9px; padding: 3px; }
.mini-pc .pimg { filter: drop-shadow(0 2px 2px rgba(60, 45, 30, .15)); }
.mini-pc.is-ghost { opacity: .55; }

/* ---------- Hafta ---------- */
.days { display: flex; flex-direction: column; gap: 8px; }
.day { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 10px; background: var(--paper); border-radius: 16px; padding: 10px 12px; text-align: left; box-shadow: var(--shadow); }
.day.is-today { outline: 1.5px solid var(--ink); }
.day-d { display: flex; flex-direction: column; }
.day-n { font: 500 17px var(--serif); text-transform: capitalize; }
.day-date { font-size: 12px; color: var(--muted); }
.day-wx { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; margin-top: 3px; color: var(--ink-2); }
.day-wx .ic { width: 15px; height: 15px; }
.day-m { min-width: 0; overflow: hidden; }
.day-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.lvl { font-size: 12.5px; font-weight: 600; }
.day-tag { font-size: 12px; color: var(--muted); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Dolap ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { background: var(--paper); border-radius: 18px; padding: 8px 8px 10px; display: flex; flex-direction: column; align-items: stretch; gap: 6px; box-shadow: var(--shadow); text-align: left; }
.tile-img { aspect-ratio: 1; background: var(--linen) var(--noise); border-radius: 13px; display: grid; place-items: center; padding: 12px; }
.tile-img .pimg { filter: drop-shadow(0 10px 10px rgba(60, 45, 30, .18)) drop-shadow(0 2px 2px rgba(60, 45, 30, .12)); }
.tile-name { font-size: 13.5px; line-height: 1.25; padding: 0 4px; }
.tile-meta { font-size: 11.5px; color: var(--muted); padding: 0 4px; margin-top: -4px; }
.tile.is-off .tile-img { opacity: .45; }
.backup-card { display: flex; align-items: center; gap: 12px; background: #F3ECDD; border-radius: 16px; padding: 12px 14px; margin: 0 0 14px; }
.backup-card > div { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink-2); }
.backup-card strong { font: 500 16px var(--serif); color: var(--ink); }
.shop-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.shop { display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: 14px; padding: 8px 10px; box-shadow: var(--shadow); }
.shop-img { width: 50px; height: 50px; background: var(--linen); border-radius: 10px; display: grid; place-items: center; flex: none; padding: 4px; }
.shop-n { flex: 1; font-size: 14px; display: flex; flex-direction: column; min-width: 0; }
.shop-n small { color: var(--ok); font-size: 12.5px; font-weight: 600; }

.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.type { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; line-height: 1.2; text-align: center; padding: 6px 4px 8px; border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); border: 1.5px solid transparent; }
.type.has { border-color: var(--ink); }
.type-img { width: 100%; aspect-ratio: 1; background: var(--linen) var(--noise); border-radius: 11px; padding: 9px; display: grid; place-items: center; }
.type-img .pimg { filter: drop-shadow(0 6px 6px rgba(60, 45, 30, .16)); }
.type-badge { position: absolute; top: 9px; right: 9px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }

/* Renk kartelası */
.ce-hero { width: 120px; height: 120px; margin: 0 auto 6px; background: var(--linen) var(--noise); border-radius: 18px; padding: 12px; display: grid; place-items: center; }
.palette { display: flex; flex-direction: column; gap: 10px; }
.pal-label { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 2px 0 6px; }
.pal-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px 4px; }
.sw { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 2px 0; }
.sw-dot { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); display: grid; place-items: center; transition: transform .12s; }
.sw.on .sw-dot { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.sw-dot .ic { width: 20px; height: 20px; color: #fff; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .55)); }
.sw-name { font-size: 10.5px; line-height: 1.15; text-align: center; color: var(--ink-2); }
.palette.compact .pal-row { grid-template-columns: repeat(8, 1fr); }
.palette.compact .sw-dot { width: 30px; height: 30px; }
.palette.compact .pal-label { display: none; }
.palette.compact { gap: 6px; }
.sel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sel-row { background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); padding: 8px 10px; }
.sel-main { display: flex; align-items: center; gap: 10px; }
.sel-img { width: 54px; height: 54px; background: var(--linen); border-radius: 11px; display: grid; place-items: center; padding: 4px; flex: none; }
.sel-n { flex: 1; display: flex; flex-direction: column; font-size: 14px; min-width: 0; }
.sel-n small { color: var(--muted); font-size: 12px; }
.two-tone { border-top: 1px solid var(--soft); margin-top: 10px; padding-top: 2px; }
.two-tone .link { margin-top: 10px; font-size: 13px; }

/* ---------- Günlük ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 8px; margin-bottom: 14px; }
.stats:not(:has(.stat-wide)) { grid-template-columns: 1fr 1fr; }
.stats > div { background: var(--paper); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.stats strong { font: 500 22px var(--serif); line-height: 1.15; }
.stats .stat-wide strong { font-size: 15px; font-family: var(--sans); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats span { font-size: 12px; color: var(--muted); }
.entries { display: flex; flex-direction: column; gap: 8px; }
.entry { display: grid; grid-template-columns: 40px auto 1fr; align-items: center; gap: 12px; background: var(--paper); border-radius: 14px; padding: 10px 12px; text-align: left; box-shadow: var(--shadow); }
.entry-d { display: flex; flex-direction: column; align-items: center; }
.entry-day { font: 500 22px/1 var(--serif); }
.entry-m { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.entry-t { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.entry-note { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* ---------- Sekmeler ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: center; gap: 4px;
  padding: 6px 10px calc(env(safe-area-inset-bottom) + 6px);
  background: rgba(245, 242, 237, .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--line);
}
.tab { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 11.5px; color: var(--muted); border-radius: 12px; }
.tab .ic { width: 23px; height: 23px; }
.tab.on { color: var(--ink); font-weight: 600; }

/* ---------- Alt sayfa ---------- */
#sheet { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
#sheet.open { pointer-events: auto; }
.backdrop { position: absolute; inset: 0; background: rgba(30, 25, 20, .35); animation: fade .2s ease; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 560px;
  max-height: 93dvh; background: var(--bg); border-radius: 24px 24px 0 0;
  display: flex; flex-direction: column; animation: up .26s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .12);
}
.grab { width: 40px; height: 5px; border-radius: 3px; background: #D3CBBF; margin: 8px auto 0; flex: none; }
.sheet-body { overflow-y: auto; padding: 4px 18px calc(env(safe-area-inset-bottom) + 22px); overscroll-behavior: contain; }
.sheet-head { display: flex; align-items: flex-start; gap: 6px; padding: 8px 0 10px; position: sticky; top: 0; background: var(--bg); z-index: 3; }
.sheet-title { flex: 1; min-width: 0; padding-top: 4px; }
.sheet-head h2 { font: 500 23px/1.2 var(--serif); margin: 0; }
.sheet-head h2::first-letter { text-transform: uppercase; }
.sheet .looks { margin: 0 -18px; }
.sheet-foot { margin-top: 16px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.wear-board { margin: 4px 0 6px; }
.item-hero { width: 200px; height: 200px; margin: 4px auto 12px; background: var(--linen) var(--noise); border-radius: 24px; padding: 18px; display: grid; place-items: center; }
.item-hero .pimg { filter: drop-shadow(0 12px 12px rgba(60, 45, 30, .18)); }
.item-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.item-stats > div { background: var(--paper); border-radius: 14px; padding: 10px; text-align: center; display: flex; flex-direction: column; }
.item-stats strong { font: 500 20px var(--serif); }
.item-stats span { font-size: 12px; color: var(--muted); }

.menu { display: flex; flex-direction: column; gap: 8px; }
.menu-btn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--paper); border-radius: 14px; text-align: left; box-shadow: var(--shadow); }
.menu-btn span { display: flex; flex-direction: column; }
.menu-btn small { color: var(--muted); font-size: 12.5px; }
.sub-list { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px; padding: 0 18px 4px; scrollbar-width: none; }
.sub { flex: 0 0 108px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; background: var(--paper); border-radius: 14px; font-size: 12px; text-align: center; border: 1.5px solid transparent; }
.sub.on { border-color: var(--ink); }
.sub-img { width: 72px; height: 72px; background: var(--linen); border-radius: 10px; display: grid; place-items: center; padding: 5px; }
.verdict { margin-top: 12px; padding: 12px 14px; border-radius: 14px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.verdict strong { font: 500 18px var(--serif); }
.verdict .btn { margin-top: 6px; }
.v-olur { background: var(--ok-bg); }
.v-degistir { background: #F3ECDD; }
.v-onermem { background: var(--warn-bg); }

.seg { display: flex; background: var(--soft); border-radius: 999px; padding: 3px; margin: 2px 0 4px; }
.seg button { flex: 1; padding: 9px 0; border-radius: 999px; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.sticky-cta { position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 28%); padding: 22px 0 8px; margin-top: 12px; z-index: 2; }
.onb .sticky-cta { bottom: 0; }

.city { margin: 8px 0; }
.city-sel { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--ok-bg); border-radius: 12px; margin-bottom: 8px; font-size: 14px; }
.city-sel .ic { color: var(--ok); width: 18px; height: 18px; }
.city-res { display: flex; flex-direction: column; margin-top: 6px; }
.city-opt { display: flex; align-items: baseline; gap: 8px; padding: 11px 4px; border-bottom: 1px solid var(--line); text-align: left; }

/* ---------- Karşılama ---------- */
.onb { display: flex; flex-direction: column; min-height: calc(100dvh - 60px); }
.onb-hero { justify-content: center; text-align: center; }
.onb-build { min-height: auto; }
.logo { font: italic 500 30px var(--serif); letter-spacing: -.01em; margin-bottom: 16px; }
.hero-board { width: 78%; max-width: 300px; margin: 0 auto 24px; }
.hero-board .board { box-shadow: var(--shadow); }
.onb-h { font: 500 29px/1.18 var(--serif); margin: 6px 0 10px; }
.onb-p { color: var(--muted); margin: 0 0 18px; }
.onb-step { font-size: 12px; letter-spacing: .1em; color: var(--muted); margin: 8px 0 6px; }
.choice { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.choice-btn { padding: 16px 18px; border-radius: 16px; background: var(--paper); border: 1.5px solid var(--line); text-align: left; font-size: 16px; font-weight: 500; }
.choice-btn.on { border-color: var(--ink); }

/* ---------- Kayıt formu ---------- */
.reg { display: flex; flex-direction: column; }
.field { display: flex; flex-direction: column; margin-bottom: 2px; }
.field .field-label { margin: 12px 0 6px; }
.field .hint { margin: 6px 0 0; font-size: 12.5px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.input.bad { border-color: var(--warn); background: #FBF3EF; }
.err { color: var(--warn); font-size: 12.5px; margin: 5px 0 0; }
.nick-wrap { position: relative; display: block; }
.nick-wrap .at { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; pointer-events: none; }
.nick-wrap .input { padding-left: 28px; }
.seg-3 button { font-size: 13px; padding: 9px 4px; }
.gbtn { gap: 10px; color: var(--ink-2); }
.gbtn .g { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.gbtn .pill { margin-left: 2px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; margin: 16px 0 2px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.checks { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 14px; line-height: 1.4; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #BDB4A7; background: var(--paper); display: grid; place-items: center; flex: none; margin-top: 0; color: transparent; transition: all .15s; }
.check .box .ic { width: 15px; height: 15px; }
.check input:checked + .box { background: var(--ink); border-color: var(--ink); color: #fff; }
.check input:focus-visible + .box { outline: 2px solid var(--ink); outline-offset: 2px; }
.check .link { font-weight: 600; }
.check-consent { background: var(--soft); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; font-size: 13px; color: var(--ink-2); }
.input:disabled { opacity: .55; }
.small-link { font-size: 13px; margin-top: 6px; }
.onb-reg { min-height: auto; padding-bottom: 20px; }
.reg-card { display: flex; align-items: center; gap: 12px; background: var(--ink); color: #FBF8F3; border-radius: 18px; padding: 12px 14px; margin-bottom: 12px; }
.reg-card > div { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: rgba(251, 248, 243, .78); }
.reg-card strong { font: 500 17px var(--serif); color: #FBF8F3; }
.reg-card .btn-primary { background: #FBF8F3; color: var(--ink); border-color: #FBF8F3; flex: none; }

.move-card { display: flex; flex-direction: column; gap: 10px; background: #E9F0E6; border-radius: 18px; padding: 14px; margin-bottom: 12px; }
.move-card > div:first-child { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--ink-2); }
.move-card strong { font: 500 17px var(--serif); color: var(--ink); }
.move-actions { display: flex; gap: 8px; }
.import-sum { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.import-sum li { background: var(--paper); border-radius: 12px; padding: 8px 12px; box-shadow: var(--shadow); font-size: 14px; }

/* ---------- Hesap ve yasal ---------- */
.account { display: flex; align-items: center; gap: 12px; background: var(--paper); border-radius: 16px; padding: 10px 12px; box-shadow: var(--shadow); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #FBF8F3; display: grid; place-items: center; font: 500 16px var(--serif); text-transform: uppercase; flex: none; }
.account-n { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.account-n small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.consents { list-style: none; margin: 12px 0 0; padding: 0; font-size: 12.5px; }
.consents li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.consents li span:last-child { color: var(--muted); text-align: right; }
.legal { font-size: 14px; line-height: 1.55; color: var(--ink-2); padding-bottom: 12px; }
.legal h4 { font: 500 17px var(--serif); color: var(--ink); margin: 18px 0 6px; }
.legal p { margin: 6px 0; }
.legal ul { margin: 6px 0; padding-left: 18px; }
.legal li { margin: 4px 0; }
.legal-meta { font-size: 12px; color: var(--muted); }
mark.blank { background: #F6E3A9; color: var(--ink); padding: 0 4px; border-radius: 4px; }

/* ---------- Çerez bandı ---------- */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 12px); z-index: 45;
  max-width: 520px; margin: 0 auto; background: var(--paper); border-radius: 18px; padding: 14px;
  box-shadow: 0 10px 40px rgba(30, 25, 20, .18); border: 1px solid var(--line);
}
body.has-tabs .cookie { bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 10px); }
.cookie p { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-2); }
.cookie p strong { display: block; font: 500 17px var(--serif); color: var(--ink); margin-bottom: 2px; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-actions .btn { min-height: 44px; padding: 0 10px; font-size: 13.5px; }

/* ---------- Statik tanıtım ve yasal sayfalar ---------- */
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 18px 0 4px; font-size: 12.5px; }
.legal-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.static-features { text-align: left; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; margin: 0 auto 10px; padding-left: 20px; max-width: 420px; }
.static-features li { margin: 6px 0; }
.table-wrap { overflow-x: auto; margin: 8px 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.legal-table th { font-weight: 600; color: var(--ink); }
.legal a { color: var(--ink); }
.page { max-width: 720px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 20px) 20px 48px; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.page-head .logo { margin: 0; font-size: 24px; color: var(--ink); text-decoration: none; }
.page-head .btn { text-decoration: none; color: var(--ink); }
.page h1 { font-size: 32px; margin-bottom: 6px; }
.page .legal { font-size: 15px; }
.page-foot { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }

/* ---------- Bildirim ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 14px); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #FBF8F3; padding: 11px 16px; border-radius: 14px; font-size: 14px;
  max-width: calc(100% - 36px); width: max-content; text-align: center; transition: all .25s ease;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 640px) {
  .look { flex-basis: 70%; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
