:root {
  --ground: #f0eee6;
  --surface: #F7F6F0;
  --ink: #1E2619;
  --muted: #5A6552;
  --faint: #5A6552;
  --line: #DAD9CC;
  --line-strong: #DAD8D0;
  --dash: #C9C5B9;
  --coffee: #5A3A22;
  --matcha: #56761F;
  --matcha-soft: #E9EEDF;
  --matcha-deep: #33461E;
  --coffee-soft: #F1E8E0;
  --danger: #A23B2A;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 20px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
}
body.dark { background: var(--ink); color: var(--ground); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 500; }
[hidden] { display: none !important; }

.shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Üst bar */
.topbar {
  padding: calc(20px + var(--safe-t)) 24px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.brand { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: -0.5px; }
.brand small {
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--faint); margin-left: 10px;
}
body.dark .brand small { color: #A8A498; }
.avatar {
  width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line-strong);
  background: var(--surface); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px; overflow: hidden; padding: 0; flex-shrink: 0; color: var(--ink);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.greeting { padding: 0 24px 16px; color: var(--muted); font-size: 15px; }

main.content { flex: 1; padding: 0 20px 24px; display: flex; flex-direction: column; gap: 14px; }

/* Kartlar */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 14px;
}
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-head h2 { font-family: var(--serif); font-size: 24px; }
.count { font-size: 14px; color: var(--muted); white-space: nowrap; }
.count strong { font-size: 16px; }
.coffee .count strong { color: var(--coffee); }
.matcha .count strong { color: var(--matcha); }
.hint { font-size: 13px; color: var(--muted); }

.stamps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.stamp {
  aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed var(--dash);
  display: flex; align-items: center; justify-content: center;
}
.stamp.on { border: 0; }
.coffee .stamp.on { background: var(--coffee); }
.matcha .stamp.on { background: var(--matcha); }
.stamp svg { width: 46%; height: 46%; }

.gift-ready {
  display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px;
  font-size: 14px; font-weight: 600;
}
.coffee .gift-ready { background: var(--coffee-soft); color: var(--coffee); }
.matcha .gift-ready { background: var(--matcha-soft); color: var(--matcha-deep); }

/* QR kartı */
.qr-card {
  background: var(--ink); color: var(--ground); border-radius: var(--radius); padding: 18px 20px;
  display: flex; align-items: center; gap: 18px; border: 0; text-align: left; width: 100%;
}
.qr-box {
  width: 112px; height: 112px; flex-shrink: 0; background: #fff; border-radius: 12px; padding: 8px;
  display: flex; align-items: center; justify-content: center;
}
.qr-box svg, .qr-box img { width: 100%; height: 100%; display: block; }
.qr-card .title { font-family: var(--serif); font-size: 20px; }
.qr-card .sub { font-size: 13px; color: #CFCCC2; line-height: 1.45; margin-top: 4px; }

.qr-full {
  position: fixed; inset: 0; z-index: 50; background: var(--ground);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px;
}
.qr-full .qr-big {
  width: min(78vw, 340px); aspect-ratio: 1; background: #fff; border-radius: 20px; padding: 18px;
  border: 1px solid var(--line);
}
.qr-full .qr-big svg { width: 100%; height: 100%; display: block; }
.qr-full .name { font-family: var(--serif); font-size: 24px; }
.timer { font-size: 13px; color: var(--muted); }
.bar { width: min(78vw, 340px); height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.bar > div { height: 100%; background: var(--ink); transition: width 1s linear; }

/* Butonlar */
.btn {
  min-height: 52px; border: 0; border-radius: 14px; padding: 0 20px; font-size: 16px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
}
.btn-ink { background: var(--ink); color: var(--ground); }
.btn-coffee { background: var(--coffee); color: #FAFAF7; }
.btn-matcha { background: var(--matcha); color: #FAFAF7; }
.btn-line { background: transparent; border: 1.5px solid currentColor; }
.btn-ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid #E3C6BF; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
.btn svg { width: 22px; height: 22px; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 20px; line-height: 1; display: inline-flex;
  align-items: center; justify-content: center; padding: 0; color: var(--ink);
}

/* Alt menü */
.tabbar {
  position: sticky; bottom: 0; border-top: 1px solid var(--line); background: var(--surface);
  display: grid; grid-template-columns: repeat(var(--tabs, 2), minmax(0, 1fr));
  padding: 6px 0 calc(10px + var(--safe-b));
}
.tabbar button {
  min-height: 52px; border: 0; background: transparent; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px; font-size: 12px; color: var(--faint);
}
.tabbar button[aria-current="page"] { color: var(--ink); font-weight: 600; }
.tabbar svg { width: 22px; height: 22px; }

/* Menü */
.page-title { font-family: var(--serif); font-size: 34px; letter-spacing: -0.5px; padding: 4px 24px 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 24px 6px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 14px;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); font-weight: 600; }
.menu-list { padding: 0 24px; }
.menu-item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.menu-item .name { font-family: var(--serif); font-size: 20px; }
.menu-item .note { font-size: 13px; color: var(--muted); }
.menu-item .price { font-weight: 600; white-space: nowrap; }
.empty { padding: 40px 24px; text-align: center; color: var(--muted); }

/* Giriş */
.welcome {
  flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: 40px 28px;
}
.welcome h1 { font-family: var(--serif); font-size: 44px; line-height: 1.05; letter-spacing: -1px; }
.welcome p { margin: 0; color: var(--muted); font-size: 17px; }
.gbtn {
  min-height: 56px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface);
  display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 600; font-size: 16px;
  width: 100%; color: var(--ink);
}
.gbtn svg { width: 20px; height: 20px; }
body.dark .gbtn { border-color: #3A3A35; }
.fineprint { font-size: 12px; color: var(--faint); }

/* Açılır profil menüsü */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(27,27,24,.35); z-index: 40; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--surface); color: var(--ink);
  border-radius: 22px 22px 0 0; padding: 22px 22px calc(22px + var(--safe-b)); max-width: 480px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
.sheet .who { display: flex; gap: 12px; align-items: center; }
.sheet .who .n { font-weight: 600; }
.sheet .who .e { font-size: 13px; color: var(--muted); }

/* Personel (koyu) */
body.dark .panel {
  background: #2A2A26; border-radius: 16px; padding: 16px 18px; display: flex; align-items: center; gap: 14px;
}
body.dark .panel .avatar { background: var(--ground); border: 0; }
body.dark .panel .n { font-size: 18px; font-weight: 600; }
body.dark .panel .m { font-size: 13px; color: #A8A498; }
body.dark .card { background: var(--ground); color: var(--ink); border: 0; }
.progress { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress > div { height: 100%; }
.coffee .progress > div { background: var(--coffee); }
.matcha .progress > div { background: var(--matcha); }
.stepper { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 14px; }
.stepper button { width: 48px; height: 56px; border: 0; background: transparent; font-size: 22px; color: var(--ink); }
.stepper output { width: 28px; text-align: center; font-size: 18px; font-weight: 600; }
.row { display: flex; gap: 10px; align-items: stretch; }
.row > .btn { flex: 1; }

.scanner { position: relative; border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 3 / 4; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner .frame {
  position: absolute; inset: 18%; border: 3px solid rgba(250,250,247,.9); border-radius: 18px;
  box-shadow: 0 0 0 999px rgba(0,0,0,.35);
}
.scanner .msg { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 14px; color: #fff; }
.note-box { padding: 14px 16px; border-radius: 14px; background: #2A2A26; color: #CFCCC2; font-size: 14px; }

/* Yönetim */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 12px; color: var(--ink); }
.stat .v { font-size: 24px; font-weight: 600; }
.stat .l { font-size: 12px; color: var(--muted); }
.section-label { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); font-weight: 600; }
body.dark .section-label { color: #A8A498; }
.list-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid #EFEDE6;
}
.list-row:last-child { border-bottom: 0; }
.badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 10px; border: 1px solid var(--line-strong); white-space: nowrap; }
.badge.ink { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.field input, .field select {
  min-height: 48px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 14px;
  background: #fff; color: var(--ink); font-size: 16px;
}
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.link-btn { background: none; border: 0; padding: 8px 4px; color: var(--muted); font-size: 14px; text-decoration: underline; min-height: 44px; }

.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--ground); padding: 12px 18px; border-radius: 12px; font-size: 15px;
  font-weight: 500; opacity: 0; pointer-events: none; transition: all .2s ease; z-index: 60; max-width: 90vw;
}
body.dark .toast { background: var(--ground); color: var(--ink); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); color: #fff; }

.loading { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--muted); padding: 40px; }
.gift-ready svg { width: 20px; height: 20px; flex-shrink: 0; }
.list-row strong { white-space: nowrap; }

/* ---------- Açılış ekranı: Menü. / Kart. ----------
   Üstte beyaz, altta siyah; ekranı kenardan kenara kaplar, aralarında boşluk yok. */
body.giris-acik { background: #ffffff; }
.giris {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.giris-kutu {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Newsreader', serif;
  font-size: clamp(3rem, 15vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
}
/* Dokunulabilir alan: yazı + çevresinde biraz pay */
.giris-link {
  padding: 28px 36px; color: inherit; text-decoration: none;
  transition: opacity .15s ease;
}
.giris-link:active { opacity: .55; }
.giris-link:focus-visible { outline: 2px solid currentColor; outline-offset: -6px; }
.giris-kutu--menu { background: #ffffff; color: #171717; padding-top: var(--safe-t); }
/* Menü. altındaki küçük, soluk satır — bağlantının içinde, dokununca menüye gider */
.giris-link--menu { display: flex; flex-direction: column; align-items: center; }
.giris-alt {
  margin-top: 4px;
  font-size: 17px; line-height: 1.2; letter-spacing: 0.01em;
  color: rgba(23, 23, 23, .4);
}
/* Kart. altındaki satır: siyah zeminde aynı soluk ton */
.giris-kutu--kart .giris-alt { color: rgba(240, 238, 230, .45); }
.giris-kutu--kart {
  /* Yükseklik kart oranında (85,6 x 54 mm), genişlik ekran kadar */
  flex: none;
  /* kart oranı + 55px: çerez şeridi gidince de bu yükseklikte kalır */
  height: calc(min(calc(100vw * 54 / 85.6), 45dvh) + 55px + var(--safe-b));
  padding-bottom: var(--safe-b);
  font-size: clamp(2.4rem, 12vw, 4.5rem);
  background: #171717;
  color: #f0eee6;
}
.brand-btn { background: none; border: 0; padding: 0; color: inherit; }

/* Menü görünümü: beyaz zemin, #171717 yazı */
body.menu-acik { --ground: #ffffff; --surface: #ffffff; --ink: #171717; --faint: #171717; --line: #171717; background: #ffffff; color: #171717; }

/* Kart bölümü — Google ile giriş sayfası: #171717 zemin */
body.kart-giris { --ink: #f0eee6; --muted: rgba(240, 238, 230, .72); --faint: rgba(240, 238, 230, .6); background: #171717; color: #f0eee6; }
body.kart-giris .gbtn { background: #ffffff; color: #171717; border-color: #ffffff; }

/* Açılış ekranı — üst kısım: solda iki çizgi (açılır menü), sağda göz kırpan logo */
.giris-ust {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(var(--safe-t) + 12px) 10px 0;
  pointer-events: none;
}
.giris-ust > * { pointer-events: auto; }
.giris-cizgi {
  position: relative; width: 52px; height: 52px; padding: 0; border: 0; background: none; cursor: pointer;
}
.giris-cizgi span {
  position: absolute; left: 11px; height: 2.5px; background: #171717; transition: width .3s;
}
.giris-cizgi span:first-child { top: 18px; width: 18px; }
.giris-cizgi span:last-child { top: 31px; width: 30px; }
.giris.panel-acik .giris-cizgi span:first-child { width: 30px; }
.giris-cizgi:focus-visible { outline: 2px solid #171717; outline-offset: -4px; }

.giris-goz { position: relative; width: 52px; height: 52px; display: block; }
.giris-goz span {
  position: absolute; left: 20.5px; width: 11px; height: 11px; border-radius: 50%; background: #171717;
}
/* Logo oranı: boşluk = çapın %46'sı (11 px nokta, 5 px boşluk) */
.giris-goz span:first-child { top: 12.5px; animation: konuGoz1 6s ease-in-out 1s infinite; }
.giris-goz span:last-child { top: 28.5px; animation: konuGoz2 6s ease-in-out 1s infinite; }
@keyframes konuGoz1 {
  0%, 36%, 100% { transform: none; }
  7%, 11%, 15%, 18%, 22%, 28% { transform: translate(8px, 8px); }
  13%, 20% { transform: translate(8px, 8px) scaleY(.12); }
}
@keyframes konuGoz2 {
  0%, 36%, 100% { transform: none; }
  7%, 11%, 15%, 18%, 22%, 28% { transform: translate(-8px, -8px); }
  13%, 20% { transform: translate(-8px, -8px) scaleY(.12); }
}
@media (prefers-reduced-motion: reduce) { .giris-goz span { animation: none; } }

/* Açılır menü: Konum, Instagram, İletişim, Gizlilik */
.giris-panel {
  position: absolute; left: 0; right: 0; top: calc(var(--safe-t) + 60px); z-index: 2;
  padding: 0 20px 12px; background: #ffffff;
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(-6px); visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
}
.giris.panel-acik .giris-panel { opacity: 1; transform: none; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
.giris-panel > a, .giris-iletisim {
  margin: 0; padding: 18px 0 8px; border-bottom: 1px solid #171717;
  font-family: 'Newsreader', serif; font-size: 22px; line-height: 1.3; color: #171717; text-decoration: none;
}
/* İletişim satırı: dokununca sağında e-posta adresi açılır */
.giris-iletisim { display: flex; align-items: baseline; justify-content: flex-start; gap: 20px; }
.giris-iletisim-dugme {
  margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: inherit; text-align: left; flex: none;
}
.giris-iletisim-dugme:focus-visible { outline: 2px solid #171717; outline-offset: 2px; }
.giris-iletisim-alt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0;
  opacity: 0; visibility: hidden; transform: translateX(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
}
.giris-iletisim.acik .giris-iletisim-alt { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
.giris-iletisim-alt a {
  font-size: 16px; line-height: 1.35; color: #171717; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
/* Künye (bağlantı değil): ince "Konu Kafe" + altında soluk adres; çizgi yok */
.giris-panel-kunye { padding: 16px 0 8px; display: flex; flex-direction: column; gap: 4px; }
.giris-panel-ad {
  margin: 0; font-family: 'Newsreader', serif; font-size: 32px; font-weight: 400;
  line-height: 1.05; letter-spacing: -.015em; color: #171717;
}
.giris-panel-adres { margin: 0; font-family: 'Newsreader', serif; font-size: 16px; line-height: 1.3; color: #6f6d68; }
/* Künyeden sonraki ilk bağlantı (Konum) yukarı yakın */
.giris-panel-kunye + a { padding-top: 8px; }
.giris-perde { position: absolute; inset: 0; z-index: 1; display: none; }
.giris.panel-acik .giris-perde { display: block; }

/* Kartlar sayfası üst kısmı — menü sayfasıyla aynı hizada */
.kart-ust { position: relative; }
.kart-baslik {
  margin: 0; padding: calc(28px + var(--safe-t)) 20px 20px;
  font-family: 'Newsreader', serif; font-size: 40px; font-weight: 700; line-height: 1.1; letter-spacing: -.015em;
  color: #171717;
}
/* Profil fotoğrafı: "Kartlarım" başlığıyla dikeyde ortalı, sağda kartların kenarıyla aynı hizada */
.kart-ust .avatar { position: absolute; top: calc(28px + var(--safe-t)); right: 20px; }
.kart-ust .greeting { padding: 0 20px 16px; margin-top: -8px; }

/* Kasada göster kartı */
.qr-card { background: #171717; color: #ffffff; }

/* Kart: solda damgalar (iki sıra), sağda noktalı bardak = son damga */
.kart-govde { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.kart-govde .stamps { grid-template-columns: repeat(var(--sutun, 3), minmax(0, 56px)); gap: 12px; }
.bardak { display: flex; flex-direction: column; align-items: center; }
.bardak svg { width: 100%; max-width: 110px; height: auto; overflow: visible; }
.bardak-cizgi {
  fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 0 7.5;   /* noktalı çizgi */
}
.coffee .bardak-cizgi { stroke: var(--coffee); }
.matcha .bardak-cizgi { stroke: var(--matcha); }
.bardak-ic { fill: none; }
.bardak-parilti { fill: none; stroke: none; }
.bardak.dolu .bardak-cizgi { stroke-dasharray: none; stroke-width: 2.6; }
.coffee .bardak.dolu .bardak-ic { fill: var(--coffee); }
.matcha .bardak.dolu .bardak-ic { fill: var(--matcha); }
.bardak.dolu .bardak-parilti { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; opacity: .7; }
.bardak-etiket { margin-top: 6px; font-family: 'Newsreader', serif; font-size: 13px; color: #171717; text-align: center; }

/* Dolu damgadaki fincan/yaprak ikonu beyaz */
.stamp.on svg { color: #FAFAF7; }

/* Misafir kartlar sayfası: QR kutusunun yerinde Google ile giriş */
.google-kart { cursor: pointer; }
.google-kart .qr-box { padding: 30px; }
.google-kart:disabled { opacity: .6; }

/* Kartlar sayfası tek ekran: iki kart + QR/Google kutusu kaydırmadan sığar.
   Ölçüler ekran yüksekliğine göre küçülüp büyür. */
body.kartlar-acik {
  --damga: clamp(30px, 5.4dvh, 50px);   /* damga çapı */
  --qr: clamp(72px, 12dvh, 116px);    /* QR / Google kutusu */
}
body.kartlar-acik .shell { height: 100vh; height: 100dvh; min-height: 0; }
body.kartlar-acik main.content {
  flex: 1; min-height: 0; overflow: auto;
  padding: 0 20px clamp(8px, 1.4dvh, 14px); gap: clamp(8px, 1.4dvh, 14px);
}
body.kartlar-acik .kart-ust .greeting { padding: 0 20px clamp(6px, 1.2dvh, 12px); font-size: 14px; }
body.kartlar-acik .card { padding: clamp(10px, 1.7dvh, 18px) 18px; gap: clamp(6px, 1dvh, 12px); }
body.kartlar-acik .card-head h2 { font-size: clamp(19px, 2.6dvh, 24px); }
body.kartlar-acik .kart-govde { gap: 14px; }
body.kartlar-acik .kart-govde .stamps { grid-template-columns: repeat(var(--sutun, 3), var(--damga)); gap: clamp(6px, 1dvh, 12px); }
body.kartlar-acik .bardak-etiket { font-size: 12px; margin-top: 2px; }
body.kartlar-acik .hint { font-size: 12px; }
body.kartlar-acik .gift-ready { padding: 8px 12px; font-size: 13px; }
body.kartlar-acik .qr-card { padding: clamp(12px, 1.9dvh, 20px) 20px; gap: 18px; }
body.kartlar-acik .qr-box { width: var(--qr); height: var(--qr); padding: 6px; border-radius: 10px; }
body.kartlar-acik .google-kart .qr-box { padding: calc(var(--qr) * .24); }
body.kartlar-acik .qr-card .title { font-size: clamp(17px, 2.3dvh, 20px); }
body.kartlar-acik .qr-card .sub { font-size: 13.5px; }
body.kartlar-acik .fineprint { font-size: 11px; }

/* Yedinci damga halkası (bardağın yerine) — damgadan biraz büyük */
.coffee .bardak { color: var(--coffee); }
.matcha .bardak { color: var(--matcha); }
.bardak .halka {
  width: calc(var(--damga, 48px) * 1.3); height: calc(var(--damga, 48px) * 1.3);
  border-radius: 50%; border: 1.6px dashed currentColor;
  display: flex; align-items: center; justify-content: center;
}
.bardak .halka svg { width: 44%; height: 44%; max-width: none; }
.bardak.dolu .halka { border-style: solid; background: currentColor; }
.bardak.dolu .halka svg { color: #ffffff; }

/* Halkanın altındaki yazı iki satır: "7. kahve" / "hediye" */
.bardak-etiket { white-space: pre-line; line-height: 1.25; }

/* Çerez onayı şeridi: açılış ekranının en altında, siyah alanın üstünde ince */
.cerez-serit {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + var(--safe-b));
  background: #171717; border-top: 1px solid rgba(240, 238, 230, .18);
  color: rgba(240, 238, 230, .78); font-size: 12px; line-height: 1.35;
}
.cerez-dugmeler { display: flex; gap: 6px; flex-shrink: 0; }
/* Çerez şeridi açıkken "Kart." görünen siyah alanın ortasında kalır; karar verilince yumuşakça ortaya iner.
   Alanın yüksekliği her durumda aynı. */
.giris { --cerez-h: calc(55px + var(--safe-b)); }
.giris-kutu--kart { transition: padding-bottom .35s ease; }
.giris.cerez-var .giris-kutu--kart { padding-bottom: var(--cerez-h); }
.cerez-serit button {
  min-height: 34px; padding: 0 12px; border: 1px solid rgba(240, 238, 230, .5); border-radius: 999px;
  background: transparent; color: #f0eee6; font-size: 12px; font-weight: 500;
}
.cerez-serit button:first-child { background: #f0eee6; color: #171717; border-color: #f0eee6; }
