:root {
  --sea: #0f5e6b;
  --sea-dark: #0a434d;
  --sea-soft: #e3f0f1;
  --sun: #f0a032;
  --sun-soft: #fdf1de;
  --bg: #fbf8f3;
  --card: #ffffff;
  --text: #1f2a2e;
  --muted: #5f6b70;
  --line: #e4e0d8;
  --danger: #c0392b;
  --ok: #1e8449;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 50, 60, 0.08);
  --on-sea: #ffffff;
  --on-sun: #2b1a00;
  --err-bg: #fdecea; --err-fg: #8e2418; --err-line: #f5c6c0;
  --ok-bg: #e7f6ec; --ok-fg: #145c30; --ok-line: #bfe5cc;
  --warn-fg: #9a5b00;
  --gray-bg: #eceff1; --gray-fg: #455a64;
  --campaign-a: #0f5e6b; --campaign-b: #0a434d;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sea: #4fb3c0;
    --sea-dark: #7fcfd9;
    --sea-soft: #16333a;
    --sun: #f4b050;
    --sun-soft: #3a2c16;
    --bg: #111719;
    --card: #1a2225;
    --text: #e8eef0;
    --muted: #9aa8ad;
    --line: #2b373b;
    --ok: #7ee0a0;
    --danger: #ff8a7a;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    --on-sea: #06262b;
    --err-bg: #3a1a17; --err-fg: #ffb4a9; --err-line: #5c2a25;
    --ok-bg: #15301f; --ok-fg: #9fe0b5; --ok-line: #24503a;
    --warn-fg: #f4b050;
    --gray-bg: #263034; --gray-fg: #b0bec5;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --sea: #4fb3c0;
  --sea-dark: #7fcfd9;
  --sea-soft: #16333a;
  --sun: #f4b050;
  --sun-soft: #3a2c16;
  --bg: #111719;
  --card: #1a2225;
  --text: #e8eef0;
  --muted: #9aa8ad;
  --line: #2b373b;
  --ok: #7ee0a0;
  --danger: #ff8a7a;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --on-sea: #06262b;
  --err-bg: #3a1a17; --err-fg: #ffb4a9; --err-line: #5c2a25;
  --ok-bg: #15301f; --ok-fg: #9fe0b5; --ok-line: #24503a;
  --warn-fg: #f4b050;
  --gray-bg: #263034; --gray-fg: #b0bec5;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sea); }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.section { padding: 64px 0; }
.section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--sun); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  background: url(../logo-mark.svg) center / contain no-repeat;
}
.brand-name { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.brand-name small { display: block; font-family: 'Inter', sans-serif; font-weight: 500; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: 4px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; color: var(--text); font-weight: 500; font-size: .92rem;
  padding: 8px 12px; border-radius: 999px;
}
.nav-links a:hover, .nav-links a[aria-current] { background: var(--sea-soft); color: var(--sea); }
.nav-links a.cta { background: var(--sea); color: var(--on-sea); }
.nav-links a.cta:hover { background: var(--sea-dark); color: var(--on-sea); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; padding: 0; position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; right: 18px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle:focus-visible, .drawer a:focus-visible, .drawer button:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; }
}

/* ---------- Mobile drawer ---------- */
html.no-scroll { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(6, 24, 28, .5); opacity: 0; transition: opacity .25s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 360px);
  background: var(--bg); box-shadow: -12px 0 40px rgba(0, 0, 0, .25);
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 18px calc(env(safe-area-inset-bottom, 0px) + 18px);
  display: flex; flex-direction: column; gap: 16px; overflow-y: auto;
  transform: translateX(100%); transition: transform .25s ease;
}
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-close {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  color: var(--text); font-size: 1rem; cursor: pointer;
}
.drawer-cta { gap: 10px; padding: 14px 20px; }
.drawer-links { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.drawer-links li + li { border-top: 1px solid var(--line); }
.drawer-links a {
  display: flex; align-items: center; gap: 14px; padding: 13px 14px; min-height: 54px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 1rem;
}
.drawer-links a > span:nth-child(2) { flex: 1; }
.drawer-links a > svg:last-child { color: var(--muted); }
.drawer-links .di {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--sea-soft); color: var(--sea);
}
.drawer-links a:hover, .drawer-links a[aria-current] { background: var(--sea-soft); }
.drawer-links a[aria-current] .di { background: var(--sea); color: var(--on-sea); }
.drawer-contact { display: grid; gap: 10px; }
.drawer-contact a {
  display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--card);
  border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: .88rem; min-width: 0;
}
.drawer-contact a svg { color: var(--sun); flex-shrink: 0; }
.drawer-contact small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; }
.drawer-contact span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-admin {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px; align-self: center;
  color: var(--muted); font-size: .85rem; text-decoration: none; padding: 8px 12px;
}
@media (prefers-reduced-motion: reduce) { .drawer-panel, .drawer-backdrop { transition: none; } }

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  background: var(--sea); color: var(--on-sea); transition: transform .1s, background .15s;
}
.btn:hover { background: var(--sea-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.sun { background: var(--sun); color: var(--on-sun); }
.btn.sun:hover { background: #e08f1f; }
.btn.ghost { background: transparent; border-color: var(--sea); color: var(--sea); }
.btn.ghost:hover { background: var(--sea-soft); }
.btn.danger { background: var(--danger); }
.btn.small { padding: 7px 14px; font-size: .88rem; }
.btn.block { width: 100%; }

label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-soft); }
textarea { min-height: 90px; resize: vertical; }
.field { margin-bottom: 16px; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.checkbox { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.checkbox input { width: auto; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .95rem; }
.alert.error { background: var(--err-bg); color: var(--err-fg); border: 1px solid var(--err-line); }
.alert.success { background: var(--ok-bg); color: var(--ok-fg); border: 1px solid var(--ok-line); }
.alert.info { background: var(--sea-soft); color: var(--text); border: 1px solid var(--line); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 88px 0 96px;
  background:
    radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--sun) 35%, transparent) 0, transparent 40%),
    radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--sea) 30%, transparent) 0, transparent 45%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-visual { position: relative; height: 380px; }
.polaroid {
  position: absolute; background: #fff; padding: 12px 12px 42px; border-radius: 4px;
  box-shadow: 0 14px 40px rgba(0,0,0,.18); width: 210px;
}
.polaroid .ph { height: 190px; border-radius: 2px; }
.polaroid span { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-family: 'Playfair Display', serif; color: #333; font-size: .95rem; }
.polaroid.p1 { left: 0; top: 30px; transform: rotate(-8deg); }
.polaroid.p1 .ph { background: linear-gradient(160deg, #f6d365, #fda085); }
.polaroid.p2 { left: 150px; top: 0; transform: rotate(6deg); z-index: 2; }
.polaroid.p2 .ph { background: linear-gradient(160deg, #84fab0, #0f5e6b); }
.polaroid.p3 { left: 70px; top: 170px; transform: rotate(-2deg); z-index: 3; }
.polaroid.p3 .ph { background: linear-gradient(160deg, #a1c4fd, #c2e9fb); }
@media (max-width: 860px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* ---------- Services ---------- */
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.service { display: flex; flex-direction: column; gap: 8px; }
.service .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sun-soft); color: var(--sun); margin-bottom: 8px;
}
.service .icon svg { width: 28px; height: 28px; }
.service p { color: var(--muted); margin: 0; }
.service a { margin-top: auto; padding-top: 10px; font-weight: 600; text-decoration: none; }

/* ---------- Campaigns ---------- */
.campaign {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--campaign-a) 0%, var(--campaign-b) 100%); color: #fff; border: none;
}
.campaign::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
  background: var(--sun); opacity: .35;
}
.campaign h3 { color: #fff; position: relative; }
.campaign p { color: rgba(255,255,255,.88); margin: 0; position: relative; }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  padding: 4px 10px; border-radius: 999px; background: var(--sun); color: var(--on-sun); margin-bottom: 10px; position: relative;
}

/* ---------- App store buttons ---------- */
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 12px;
  background: #111; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; line-height: 1.1;
  border: 1px solid rgba(255, 255, 255, .15);
}
.store-btn small { display: block; font-weight: 500; font-size: .7rem; opacity: .8; }
.store-btn:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }

/* ---------- Notification opt-in ---------- */
.notify-box {
  margin-top: 24px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center;
  background: var(--card); border: 1.5px dashed var(--sun); border-radius: var(--radius); padding: 20px;
}
.notify-box.is-on { border-style: solid; border-color: var(--line); }
.notify-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--sun-soft); color: var(--sun); }
.notify-text h3 { margin-bottom: 4px; }
.notify-text p { margin: 0; color: var(--muted); }
.notify-text .notify-hint { margin-top: 8px; color: var(--text); font-weight: 600; font-size: .9rem; }
@media (max-width: 640px) {
  .notify-box { grid-template-columns: auto minmax(0, 1fr); }
  .notify-box .btn { grid-column: 1 / -1; }
}

.order-notify {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 14px; border-radius: 12px; background: var(--sun-soft); margin-bottom: 16px;
}
@media (max-width: 480px) { .order-notify { grid-template-columns: auto minmax(0, 1fr); } .order-notify > .btn, .order-notify > .flex { grid-column: 1 / -1; } }

/* ---------- Legal ---------- */
.legal-note { font-size: .8rem; color: var(--muted); margin: 0 0 16px; }
.legal { max-width: 860px; padding-bottom: 32px; }
.legal section { margin-bottom: 16px; }
.legal section h2 { font-size: 1.3rem; }
.legal section p:last-child { margin-bottom: 0; }
.legal-list { margin: 0 0 1em; padding-left: 1.2em; display: grid; gap: 8px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 60px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--sea); color: var(--on-sea); display: grid; place-items: center; font-weight: 700;
}
.step p { color: var(--muted); margin: 0; }

/* ---------- Price table ---------- */
.price-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.price-chip { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.price-chip b { display: block; font-size: 1.1rem; }
.price-chip span { color: var(--sea); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: #0b2429; color: #cfdcdf; padding: 48px 0 24px; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-family: 'Playfair Display', serif; font-size: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 16px; font-size: .85rem; text-align: center; color: #8fa4a9; }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Page header ---------- */
.page-head { padding: 48px 0 24px; }
.page-head p { color: var(--muted); max-width: 700px; }

/* ---------- Upload / order ---------- */
.dropzone {
  border: 2.5px dashed var(--line); border-radius: var(--radius); padding: 40px 20px; text-align: center;
  background: var(--card); cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone.drag, .dropzone:hover { border-color: var(--sea); background: var(--sea-soft); }
.dropzone svg { display: block; width: 48px; height: 48px; color: var(--sea); margin: 0 auto 8px; }
.dropzone input { display: none; }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: end; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 20px 0;
}
.toolbar .field { margin: 0; min-width: 130px; flex: 1; }
.toolbar .btn { flex-shrink: 0; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.photo {
  background: var(--card); border: 2px solid var(--line); border-radius: 12px; overflow: hidden; position: relative;
  display: flex; flex-direction: column;
}
.photo.selected { border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-soft); }
.photo .thumb { aspect-ratio: 1 / 1; background: var(--sea-soft); position: relative; cursor: pointer; }
.photo .thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo .thumb .progress { position: absolute; left: 0; bottom: 0; height: 5px; background: var(--sun); transition: width .2s; }
.photo .thumb .state {
  position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff;
  font-size: .85rem; font-weight: 600; text-align: center; padding: 8px;
}
.photo .remove, .photo .check {
  position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 1rem; display: grid; place-items: center;
}
.photo .check { left: 6px; right: auto; background: rgba(255,255,255,.9); color: transparent; border: 2px solid var(--sea); }
.photo.selected .check { background: var(--sea); color: var(--on-sea); }
.photo .warn { position: absolute; left: 6px; bottom: 10px; background: var(--sun); color: var(--on-sun); font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.photo .meta { padding: 8px; display: grid; gap: 6px; }
.photo .meta .name { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo .meta .controls { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.photo .meta select, .photo .meta input { padding: 6px 8px; font-size: .85rem; border-radius: 8px; }
.photo .meta .controls .qty { grid-column: span 2; display: flex; align-items: center; gap: 6px; }
.photo .meta .controls .qty button {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 8px; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); font-size: 1.1rem; cursor: pointer;
}
.photo .meta .controls .qty input { text-align: center; }
.photo.disabled .meta .controls { opacity: .4; pointer-events: none; }
@media (max-width: 480px) {
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .photo .meta .controls { grid-template-columns: 1fr; }
  .photo .meta .controls .qty { grid-column: auto; }
}

.summary-bar {
  position: sticky; bottom: 0; z-index: 40; background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(0,0,0,.08); padding: 12px 0; margin-top: 32px;
}
.summary-bar .inner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.summary-bar .total { font-size: 1.3rem; font-weight: 800; color: var(--sea); }

.order-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .order-layout { grid-template-columns: 1fr; } .order-layout > aside { position: static !important; } }

table.simple { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.simple th, table.simple td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.simple th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
table.simple td.num, table.simple th.num { text-align: right; }
.table-wrap { overflow-x: auto; }

.iban-box { background: var(--sun-soft); border: 1px dashed var(--sun); border-radius: 12px; padding: 16px; }
.iban-box .iban { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 1.05rem; font-weight: 700; word-break: break-all; }
.code-big { font-family: ui-monospace, Menlo, monospace; font-size: 1.8rem; font-weight: 800; letter-spacing: .06em; color: var(--sea); }

.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--sea-soft); color: var(--sea); white-space: nowrap; }
.status-pill.odeme_bekleniyor { background: var(--sun-soft); color: var(--warn-fg); }
.status-pill.hazir { background: var(--ok-bg); color: var(--ok-fg); }
.status-pill.teslim_edildi { background: var(--gray-bg); color: var(--gray-fg); }
.status-pill.iptal { background: var(--err-bg); color: var(--err-fg); }

.timeline { display: flex; gap: 0; margin: 24px 0; }
.timeline .t { flex: 1; text-align: center; position: relative; font-size: .78rem; color: var(--muted); }
.timeline .t::before { content: ''; display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--line); margin: 0 auto 6px; position: relative; z-index: 1; }
.timeline .t::after { content: ''; position: absolute; top: 8px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.timeline .t:first-child::after { display: none; }
.timeline .t.done { color: var(--text); font-weight: 600; }
.timeline .t.done::before, .timeline .t.done::after { background: var(--sea); }

/* ---------- Biometric page ---------- */
.spec-grid { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
@media (max-width: 820px) { .spec-grid { grid-template-columns: 1fr; } }
.bio-diagram { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { padding-left: 32px; position: relative; }
.check-list li::before { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.check-list.yes li::before { content: '✓'; background: var(--ok-bg); color: var(--ok-fg); }
.check-list.no li::before { content: '✕'; background: var(--err-bg); color: var(--err-fg); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 100; display: grid; place-items: center; padding: 16px; }
.lightbox img { max-height: 86vh; max-width: 100%; border-radius: 6px; }
.lightbox .close { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.15); color: #fff; border: none; width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lightbox .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); color: #fff; border: none; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lightbox .prev { left: 14px; }
.lightbox .next { right: 14px; }

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.admin-side {
  background: #0b2429; color: #cfdcdf; padding: 20px 12px;
  display: flex; flex-direction: column; gap: 20px; position: sticky; top: 0; height: 100vh;
}
.admin-top { display: flex; flex-direction: column; gap: 16px; }
.admin-side .brand { color: #fff; margin: 0 8px; }
.admin-side .brand-name small { color: #8fa4a9; }
.admin-actions { display: flex; gap: 6px; margin: 0 4px; }
.admin-icon-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14); background: transparent; color: #cfdcdf;
  font: inherit; font-size: .82rem; text-decoration: none; cursor: pointer;
}
.admin-icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-icon-btn svg { width: 16px; height: 16px; }
#admin-nav { display: flex; flex-direction: column; gap: 4px; }
#admin-nav a {
  display: flex; align-items: center; gap: 12px; color: #cfdcdf; text-decoration: none;
  padding: 11px 14px; border-radius: 10px; font-weight: 500;
}
#admin-nav a svg { width: 20px; height: 20px; flex-shrink: 0; }
#admin-nav a .short { display: none; }
#admin-nav a.active, #admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
#admin-nav a.active svg { color: var(--sun); }
#admin-nav a:focus-visible, .admin-icon-btn:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
.admin-main { padding: 24px; min-width: 0; }
.admin-main h1 { font-size: 1.7rem; }
.only-mobile { display: none !important; }

@media (max-width: 800px) {
  .admin-shell { display: block; min-height: 0; }
  .admin-side { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; height: auto; padding: 10px 16px; }
  .admin-top { flex-direction: row; align-items: center; justify-content: space-between; }
  .admin-side .brand { margin: 0; }
  .admin-side .brand-mark { width: 34px; height: 34px; }
  .admin-actions { margin: 0; }
  .admin-icon-btn { padding: 8px; }
  .admin-icon-btn span { display: none; }
  .admin-icon-btn svg { width: 20px; height: 20px; }
  #admin-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; flex-direction: row; gap: 0;
    background: #0b2429; border-top: 1px solid rgba(255,255,255,.1);
    padding: 6px 4px calc(env(safe-area-inset-bottom, 0px) + 6px);
  }
  #admin-nav a { flex: 1; flex-direction: column; gap: 3px; padding: 6px 2px; font-size: .7rem; text-align: center; min-width: 0; }
  #admin-nav a .long { display: none; }
  #admin-nav a .short { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  #admin-nav a.active { background: transparent; color: #fff; }
  #admin-nav a { position: relative; }
  #admin-nav a .nav-badge { position: absolute; top: 0; left: calc(50% + 6px); margin: 0; height: 18px; min-width: 18px; font-size: .68rem; }
  .admin-main { padding: 16px 16px calc(env(safe-area-inset-bottom, 0px) + 88px); }
  .admin-main h1 { font-size: 1.45rem; }
  .only-desktop { display: none !important; }
  .only-mobile { display: block !important; }
  .admin-main .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .admin-main .tabs button { flex-shrink: 0; }
  .admin-main .card { padding: 16px; }
  .admin-main .btn { padding: 10px 16px; }
}

/* Order / album cards on phones */
.list-cards { display: grid; gap: 10px; }
.list-card {
  display: grid; gap: 6px; padding: 14px; border-radius: 12px; background: var(--card);
  border: 1px solid var(--line); text-decoration: none; color: var(--text); cursor: pointer;
}
.list-card:active { background: var(--sea-soft); }
.list-card .row1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.list-card .code { font-weight: 800; font-variant-numeric: tabular-nums; }
.list-card .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: .85rem; }
.list-card .amount { font-weight: 700; color: var(--text); }
.price-table input { min-width: 0; }
.album-login { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.album-login > div { display: grid; gap: 2px; min-width: 0; }
.album-login .muted { font-size: .8rem; }
@media (max-width: 560px) {
  .price-table thead { display: none; }
  .price-table tr { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.simple.price-table td { padding: 0; border: none; }
  .price-table td:nth-child(-n+2)::before { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
  .price-table td:nth-child(1)::before { content: 'Ölçü (cm)'; }
  .price-table td:nth-child(2)::before { content: 'Fiyat (₺)'; }
  .price-table td:nth-child(4) { align-self: end; }
  .price-table td:nth-child(3) { grid-column: 1 / 3; grid-row: 2; }
  .price-table td:nth-child(4) { grid-column: 3; grid-row: 1; }
}
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs button { border: 1.5px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .88rem; cursor: pointer; }
.tabs button.active { background: var(--sea); color: var(--on-sea); border-color: var(--sea); }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--sea-soft); }
.admin-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.admin-thumbs .item { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: .8rem; }
.admin-thumbs .item img { aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.admin-thumbs .item div { padding: 6px 8px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat b { display: block; font-size: 1.6rem; color: var(--sea); }
.stat span { font-size: .82rem; color: var(--muted); }
.flex { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spread { justify-content: space-between; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-wrap .card { width: 100%; max-width: 380px; }

/* Album: customer picks favourites */
.photo .fav {
  position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; padding: 0;
}
.photo .fav svg, .lightbox .lb-fav svg { width: 20px; height: 20px; }
.photo.selected .fav { background: #e0245e; }
.photo.selected .fav svg path, .lightbox .lb-fav[aria-pressed="true"] svg path { fill: currentColor; }
.album-grid.only-selected .photo:not(.selected) { display: none; }
.lightbox .lb-fav {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px;
  border: none; border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 700; cursor: pointer;
  background: rgba(255,255,255,.92); color: #1f2a2e;
}
.lightbox .lb-fav[aria-pressed="true"] { background: #e0245e; color: #fff; }
#sel-bar .inner { justify-content: space-between; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #e0245e; color: #fff; font-size: .75rem; font-weight: 800; display: inline-grid; place-items: center; }
.sel-tag { display: inline-block; font-size: .8rem; font-weight: 700; color: #e0245e; }
.sel-tag.new { background: #e0245e; color: #fff; padding: 2px 8px; border-radius: 999px; }
.sel-card { border-color: #e0245e; }
.admin-thumbs .item { position: relative; }
.admin-thumbs .item.picked { outline: 3px solid #e0245e; outline-offset: -3px; border-radius: 10px; }
.admin-thumbs .item.picked::before { content: '♥'; position: absolute; top: 6px; left: 8px; color: #fff; background: #e0245e; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; z-index: 1; }
.admin-thumbs.only-picked .item:not(.picked) { display: none; }

/* Keep the floating WhatsApp button clear of the album's selection bar. */
body:has(#sel-bar:not(.hidden)) .wa-float { bottom: 96px; }
