:root {
  --teal: #007782;
  --teal-dark: #00646d;
  --teal-soft: #e6f2f3;
  --ink: #171717;
  --muted: #5a5a5a;
  --faint: #6b6b6b;
  --line: #e0e0e0;
  --line-soft: #ececec;
  --surface: #f4f4f5;
  --bg: #f7f7f8;
  --white: #fff;
  --radius: 8px;
  --shadow-pop: 0 12px 40px rgba(0, 0, 0, .22);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --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%; }

@media (max-width: 899px) { body.has-cta { padding-bottom: calc(96px + var(--safe-b)); } }

body {
  margin: 0;
  padding-bottom: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }

.grow { flex: 1; }
.small { font-size: 13px; color: var(--muted); }
.tiny { font-size: 12px; color: var(--faint); }
.center { text-align: center; }

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
  padding-top: var(--safe-t);
}

.top-in {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.9px;
  color: var(--teal);
  flex: none;
  padding-top: 2px;
}

.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border-radius: 22px;
  background: var(--surface);
  color: var(--faint);
  font-size: 14px;
  min-width: 0;
  margin: 0;
}

.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  outline: none;
}

.search input::placeholder { color: #6b6b6b; }
.search:focus-within { background: #eceff0; box-shadow: inset 0 0 0 1px var(--line); }

.top-icons { display: flex; gap: 4px; flex: none; }

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
}

.icon-btn:hover { background: var(--surface); }
.icon-btn:active { background: var(--line-soft); }

/* ---------- page frame ---------- */

.page {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 0 8px;
}

.page-narrow {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.page-narrow .sheet-card .pad { text-align: center; }
.page-narrow .steps { justify-content: center; }
.page-narrow .input { text-align: left; }
.page-narrow .field label,
.page-narrow .checkline,
.page-narrow .field .hint,
.page-narrow .err-msg { text-align: left; }
.page-narrow .cta-bar .btn { max-width: 100%; }

.sheet-card { background: var(--white); }

.page-mid { width: 100%; max-width: 900px; margin: 0 auto; }

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 8px;
  border-bottom: 1px solid var(--line-soft);
}

.crumb-title { font-size: 17px; font-weight: 600; }
.crumb a { display: grid; place-items: center; width: 40px; height: 40px; }
.crumb-step { font-size: 12px; color: var(--faint); padding-right: 10px; white-space: nowrap; }

h1, h2, h3 { margin: 0; }
.h2 { font-size: 19px; line-height: 1.3; margin-bottom: 6px; }

/* ---------- banner ---------- */

.banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--teal);
  color: #fff;
}

.banner svg { flex: none; margin-top: 1px; }
.banner strong { display: block; font-size: 15px; }
.banner span { font-size: 13px; opacity: .85; }

/* ---------- payment strip ---------- */

.pay-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--teal-soft);
  border-bottom: 1px solid #d3e6e8;
  color: var(--teal-dark);
}

.pay-ic { width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; flex: none; }
.pay-txt { min-width: 0; }
.pay-txt strong { display: block; font-size: 14px; line-height: 1.25; }
.pay-txt span { font-size: 12px; color: #3f6f74; }
.pay-amount { margin-left: auto; font-weight: 700; font-size: 15px; white-space: nowrap; }

/* ---------- gallery ---------- */

.gallery { position: relative; background: var(--surface); width: 100%; height: min(80vw, 340px); }
.gallery-col { min-width: 0; width: 100%; }

.track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  height: 100%;
}

.track::-webkit-scrollbar { display: none; }

.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 100%;
}

.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }


.gal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  display: none;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .2);
}

.gal-nav:hover { background: #fff; }
.gal-nav.prev { left: 12px; }
.gal-nav.next { right: 12px; }

.gal-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(23, 23, 23, .62);
  color: #fff;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: .02em;
}

.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
}

.hero-dots button {
  pointer-events: auto;
  position: relative;
  width: 30px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.hero-dots button::after {
  content: "";
  position: absolute;
  inset: 19px 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .65);
}

.hero-dots button.on { width: 36px; }
.hero-dots button.on::after { inset: 9px 13px; border-radius: 3px; background: #fff; }

/* ---------- item ---------- */

.item-info { padding: 16px 16px 0; max-width: 480px; }

.item-title-row { display: flex; gap: 12px; align-items: flex-start; }
.item-title { font-size: 18px; font-weight: 600; line-height: 1.3; flex: 1; }
.item-price { font-size: 26px; font-weight: 700; margin: 8px 0 2px; letter-spacing: -.4px; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }

.badge {
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 600;
}

.badge.grey { background: var(--surface); color: var(--muted); font-weight: 500; }

.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 16px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.meta dt { font-size: 12px; color: var(--faint); }
.meta dd { margin: 2px 0 0; font-size: 14px; font-weight: 500; }

.desc { white-space: pre-line; font-size: 14px; color: #333; }

.seller {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  margin-top: 16px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #d9e8ea;
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  flex: none;
}

.trust {
  list-style: none;
  display: grid;
  gap: 13px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line-soft);
}

.trust li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.trust li svg { flex: none; margin-top: 1px; color: var(--teal); }
.trust li strong { display: block; font-size: 13px; color: var(--ink); font-weight: 600; }
.trust li span { display: block; line-height: 1.4; }

.thumbs { display: none; }

/* ---------- steps ---------- */

.steps {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
}

.step b {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  font-size: 11px;
  font-weight: 700;
}

.step.on { color: var(--ink); font-weight: 600; }
.step.on b { background: var(--teal); color: #fff; }
.step.done b { background: var(--teal-soft); color: var(--teal); }
.step-line { width: 14px; height: 1px; background: var(--line); flex: none; }

/* ---------- forms ---------- */

.pad { padding: 18px 16px; }
.pad-b { padding-bottom: 8px; }

.lede { margin: 6px 0 20px; font-size: 14px; color: var(--muted); }

.field { margin-bottom: 16px; }

.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }

.field .hint { font-size: 12px; color: var(--faint); margin-top: 5px; }

.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d5d5d5;
  border-radius: var(--radius);
  font-size: 16px;
  background: var(--white);
  color: var(--ink);
  appearance: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}

.input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 119, 130, .16); }
.input::placeholder { color: #6b6b6b; }
.input.err { border-color: #c62828; background: #fdf3f3; }

.row-2 { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }

.err-msg { font-size: 12px; color: #c62828; margin-top: 5px; font-weight: 500; }

.opt { font-weight: 400; color: var(--faint); }

.checkline {
  display: flex;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 16px 0 4px;
}

.checkline { align-items: flex-start; min-height: 44px; }
.checkline input { margin-top: 2px; flex: none; accent-color: var(--teal); width: 20px; height: 20px; }

/* ---------- buttons ---------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .12s ease;
}

.btn:hover { background: var(--teal-dark); }
.btn.ghost { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--surface); }
.btn.small { height: 40px; font-size: 14px; width: auto; padding: 0 16px; }
.btn:disabled { opacity: .6; }

.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: #fff;
  border-top: 1px solid var(--line-soft);
  padding: 12px 16px calc(12px + var(--safe-b));
}

.cta-bar .btn { max-width: 540px; margin: 0 auto; }

.cta-note { text-align: center; font-size: 12px; color: var(--faint); margin: 8px 0 0; }

/* ---------- bank list ---------- */

.bank-card { padding-bottom: 90px; }
.bank-head { padding: 18px 16px 14px; }
.bank-head .lede { margin: 6px 0 14px; }
.q { padding: 0; border: 0; }
.bank-head .q, .bank-head .tabs { padding-left: 0; padding-right: 0; }
.tabs { padding: 12px 0 2px; border-bottom: 0; }
.aside-back { display: block; text-align: center; font-size: 13px; color: var(--muted); padding: 10px 0 12px; text-decoration: underline; }
.bank-aside { display: none; }

.q { padding: 0; border: 0; }
.bank-head .q, .bank-head .tabs { padding-left: 0; padding-right: 0; }
.q .search { height: 44px; }
.q-note { margin: 8px 0 0; font-size: 12px; color: var(--faint); display: flex; gap: 5px; align-items: center; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: none;
  padding: 9px 11px;
  min-height: 40px;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.tab:hover { background: var(--line-soft); }
.tab.on { background: var(--ink); color: #fff; font-weight: 600; }

.list { padding: 4px 0 24px; border-top: 1px solid var(--line-soft); }

.list h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--faint);
  padding: 20px 16px 10px;
  font-weight: 600;
  text-align: center;
}

.bank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 6px;
}

.tile {
  min-height: 146px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}

.tile:hover { border-color: #b9c2c6; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.tile:active { transform: scale(.98); }
.tile:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.tile-logo {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #eef0f1;
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  color: #445;
}

.tile-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }

.tile-spk {
  background: #e8102e;
  color: #fff;
  border-color: #d20e29;
  font-size: 20px;
}

.tile-n {
  font-size: 12.5px;
  line-height: 1.25;
  font-weight: 500;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 46px;
  width: 100%;
  overflow-wrap: anywhere;
}

.tile-p { font-size: 11px; color: var(--faint); margin-top: -4px; width: 100%; }

.bank {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bank:hover { background: #fafafa; }
.bank:active { background: var(--surface); }

.bank-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  background: #eef1f2;
  color: #445;
  overflow: hidden;
  border: 1px solid #eef0f1;
}

.bank-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 4px; }

.bank-logo[data-g="sparkasse"] { background: #fdeceb; color: #c8102e; }
.bank-logo[data-g="vr"] { background: #fff0e2; color: #cf5b00; }
.bank-logo[data-g="privat"] { background: #eef0f6; color: #33406b; }
.bank-logo[data-g="direkt"] { background: #e9f4ef; color: #1a6b4a; }
.bank-logo[data-g="neobank"] { background: #f0ecfa; color: #4b3b8f; }

.bank-mid { flex: 1; min-width: 0; display: block; }
.bank-name { display: block; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bank-sub { display: block; font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bank svg { color: #b9b9b9; flex: none; }

.more { padding: 16px 16px 8px; }

.empty { padding: 30px 16px; text-align: center; color: var(--faint); font-size: 14px; }

/* ---------- done ---------- */

.done-wrap { max-width: 480px; margin: 0 auto; padding: 40px 20px 60px; text-align: center; }

.done-ic {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}

.done-wrap h1 { font-size: 22px; margin-bottom: 10px; }
.done-wrap p { color: var(--muted); font-size: 14px; }

.receipt {
  text-align: left;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 22px 0;
  font-size: 14px;
}

.receipt div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.receipt .k { color: var(--muted); }
.receipt .v { font-weight: 600; text-align: right; }

/* ---------- generic login ---------- */

.bankcard { margin: 18px 16px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.bankcard-head { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.bc-title { font-size: 15px; font-weight: 600; }
.page-narrow .bankcard-head { flex-direction: column; text-align: center; gap: 8px; }
.page-narrow .bankcard-title { text-align: center; }

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
  padding: 26px 16px 34px;
  margin-top: 26px;
  font-size: 12px;
  color: var(--faint);
}

.foot-in { max-width: 640px; margin: 0 auto; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; margin-bottom: 18px; }
.foot h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; color: var(--muted); }
.foot a { display: block; padding: 10px 0; min-height: 44px; }
.foot a:hover { color: var(--ink); }

/* ---------- transition popup ---------- */

.ovl {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(17, 17, 17, .45);
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}

.ovl.show { opacity: 1; pointer-events: auto; }
html.modal-open, html.modal-open body { overflow: hidden; }
.ovl[hidden] { display: none; }

.ovl[data-skin="ios"] { align-items: flex-end; }
.ovl[data-skin^="android"], .ovl[data-skin="desktop"], .ovl[data-skin="edge"],
.ovl[data-skin="brave"], .ovl[data-skin="opera"], .ovl[data-skin="vivaldi"],
.ovl[data-skin="firefox"] { align-items: center; justify-content: center; padding: 20px; }

.pop {
  display: flex;
  flex-direction: column;
  --acc: var(--teal);
  --tint: var(--teal-soft);
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
  max-height: calc(100dvh - 40px);
  transform: translateY(12px);
  transition: transform .2s ease;
}

.ovl.show .pop { transform: none; }

.ovl[data-skin="ios"] .pop {
  max-width: none;
  border-radius: 18px 18px 0 0;
  padding-bottom: var(--safe-b);
}

.grab { width: 36px; height: 5px; border-radius: 3px; background: #d9d9d9; margin: 9px auto 1px; }

.pop-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--tint);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.pop-dots { display: flex; gap: 4px; flex: none; }
.pop-dots i { width: 8px; height: 8px; border-radius: 50%; background: #cbd1d5; }
.ovl[data-skin="ios"] .pop-dots { display: none; }

.urlpill {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .09);
  border-radius: 999px;
  font-size: 11.5px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
}

.urlpill svg { flex: none; color: #6b7278; }
.urlpill .u { font-weight: 600; }
.urlpill .up { color: #62686e; overflow: hidden; text-overflow: ellipsis; }

.pop-x {
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5f6368;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.pop-x:hover { background: rgba(0, 0, 0, .06); }

.pop-body { padding: 20px 22px 8px; text-align: center; overflow-y: auto; }

.pop-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  color: #445;
}

.pop-logo img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }

.pop-body h2 { font-size: 16.5px; line-height: 1.3; margin-bottom: 6px; }
.pop-body p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.pop-body strong { color: var(--ink); }

.pop-app {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 12px !important;
  font-size: 11.5px;
  color: var(--faint) !important;
}

.pop-actions { flex: none; display: flex; gap: 8px; padding: 14px 16px 16px; }

.pop-actions button {
  flex: 1;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.pop-actions button:hover { background: var(--surface); }
.pop-actions .go { background: var(--acc); border-color: var(--acc); color: #fff; }
.pop-actions .go:hover { filter: brightness(.94); }

.acc-chrome { --acc: #1a73e8; --tint: #eef3fb; }
.acc-edge { --acc: #0f6cbd; --tint: #eef5fb; }
.acc-brave { --acc: #c9400f; --tint: #fef1ec; }
.acc-opera { --acc: #e01b2c; --tint: #fdeef0; }
.acc-vivaldi { --acc: #d92b2b; --tint: #fdeded; }
.acc-firefox { --acc: #0060df; --tint: #eef4fd; }
.acc-samsung { --acc: #3f51b5; --tint: #eef0f9; }

/* ---------- demo index ---------- */

.demo-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line-soft); }
.demo-row:hover { background: #fafafa; }

.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--surface); color: var(--muted); }
.pill.ge { background: #e8f0fe; color: #1f4fa8; }
.pill.ko { background: #fff3e0; color: #a35a00; }
.pill.ba { background: #ede7f6; color: #5b3d9e; }
.pill.bd { background: #e6f4ec; color: #16704a; }

/* ---------- not found ---------- */

.nf { max-width: 420px; margin: 0 auto; padding: 60px 20px; text-align: center; }

/* ---------- desktop ---------- */

@media (min-width: 760px) {
  .page { padding: 22px 20px 40px; }
  .sheet-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .banner { border-radius: 10px; margin-bottom: 18px; }
  .pad { padding: 20px 22px; }
  .pad-b { padding-bottom: 22px; }
  .tabs { padding: 14px 0 2px; }
  .list h2, .bank { padding-left: 22px; padding-right: 22px; }
  .steps { padding: 14px 22px; }
  .crumb { padding: 0 4px; }
  .bank-head { padding: 22px 24px 16px; }
}

@media (min-width: 900px) {
  .bank-card { padding-bottom: 0; }
  .bank-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 288px;
    border-top: 1px solid var(--line-soft);
    align-items: start;
  }
  .list {
    max-height: 62vh;
    overflow-y: auto;
    box-shadow: inset 0 -16px 14px -14px rgba(0, 0, 0, .18);
    border-top: 0;
    border-right: 1px solid var(--line-soft);
    padding: 2px 0 14px;
    scrollbar-width: thin;
  }
  .bank-aside {
    display: grid;
    gap: 12px;
    padding: 16px;
    position: sticky;
    top: 72px;
  }
  .aside-box { background: var(--surface); border-radius: 10px; padding: 14px; }
  .aside-k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
  .aside-v { font-size: 13.5px; line-height: 1.45; margin: 6px 0 10px; }
  .aside-amount { font-size: 22px; font-weight: 700; }
  .aside-note { display: flex; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.4; }
  .aside-note svg { flex: none; margin-top: 2px; color: var(--teal); }
  .bank-cta { display: none; }
}

@media (max-width: 480px) {
  .top-icons a:first-child { display: none; }
  .top-icons a:nth-child(2) { display: none; }
  .logo { font-size: 22px; }
  .top-in { gap: 10px; }
}

@media (min-width: 480px) {
  .bank-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 760px) {
  .item-grid {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    max-width: 780px;
    margin: 0 auto;
  }
  .gallery-col { position: sticky; top: 82px; }
  .gallery {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    height: 440px;
  }
  .thumbs { display: flex; gap: 7px; margin-top: 9px; }
  .thumbs button {
    width: 50px;
    height: 62px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    cursor: pointer;
  }
  .thumbs button.on { border-color: var(--teal); }
  .thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .gal-nav { display: grid; }
  .item-info { padding: 0; }
  .cta-bar {
    position: static;
    border: 0;
    background: transparent;
    padding: 18px 0 0;
  }
  .cta-bar .btn { max-width: 100%; margin: 0; }
  .item-title { font-size: 21px; }
  .item-price { font-size: 28px; }
  .desc { font-size: 14.5px; }
  .foot-in { max-width: 980px; }
  .foot-cols { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
