/* BIRKA — shared look (colours of the iPhone app, Theme.swift), light and dark */
@font-face { font-family: Onest; src: url(/birka/static/Onest.ttf); font-weight: 100 900; }
@font-face { font-family: Unbounded; src: url(/birka/static/Unbounded.ttf); font-weight: 100 900; }
:root {
  --bg:#FCEFE6; --surface:#FFF9F4; --surface2:#FBEDE3; --line:#F0DACB; --ink:#2B1F18; --ink2:#6F5C50; --ink3:#9E8A7D;
  --accent:#23604F; --accentSoft:#FBE3D3; --logo:#E2A93B; --logoLine:#2A1E05; --logoGlow:rgba(226,169,59,.35); --tag:#E2A93B; --tagInk:#2A1E05; --ok:#2E7D4F; --okSoft:#E1F1E7;
  --warn:#B7791F; --warnSoft:#FBEFD9; --bad:#B42318; --badSoft:#FBE3E0;
  --green: linear-gradient(180deg, #3E8A6F, #23604F 55%, #1B4D40);
  --orange: linear-gradient(180deg, #F5C970, #E2A93B 55%, #CF8F25);
  --sheen: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 50%);
  --card: rgba(255,249,244,.88); --glass: rgba(255,249,244,.6); --edge: rgba(240,218,203,.8); --shadow: rgba(0,0,0,.07);
  --warm: linear-gradient(180deg, #FFE6D5, #FDF0E7 50%, #F8E4D6);
  --glow1: rgba(246,167,126,.45); --glow2: rgba(244,194,161,.55); --glow3: rgba(255,211,184,.5);
  --veil: rgba(252,239,230,.97); --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg:#0F1311; --surface:#181D1A; --surface2:#1F2521; --line:#2C3430; --ink:#E7ECE8; --ink2:#A6B0AA; --ink3:#77827B;
  --accent:#6CC2A4; --accentSoft:#1D3229; --logo:#6CC2A4; --logoLine:#0F1311; --logoGlow:rgba(108,194,164,.25); --tag:#E9B24A; --tagInk:#1E1403; --ok:#6FCF97; --okSoft:#18301F;
  --warn:#E3B55A; --warnSoft:#33280F; --bad:#F2877A; --badSoft:#3A1A16;
  --card: rgba(24,29,26,.88); --glass: rgba(24,29,26,.6); --edge: rgba(44,52,48,.9); --shadow: rgba(0,0,0,.35);
  --warm: linear-gradient(180deg, #1E1710, #0F1311 50%, #0E1A15);
  --glow1: rgba(233,178,74,.22); --glow2: rgba(108,194,164,.30); --glow3: rgba(233,178,74,.10);
  --veil: rgba(15,19,17,.97);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--ink); font: 15px/1.4 Onest, -apple-system, system-ui, sans-serif;
  padding: calc(env(safe-area-inset-top) + 10px) 16px calc(env(safe-area-inset-bottom) + 40px); overflow-x: hidden; }
button { font-family: inherit; cursor: pointer; }
.warm { position: fixed; inset: 0; z-index: -1; background: var(--warm); overflow: hidden; }
.warm i { position: absolute; border-radius: 50%; filter: blur(90px); }
.warm i:nth-child(1) { width: 420px; height: 420px; background: var(--glow1); left: -260px; top: -320px; }
.warm i:nth-child(2) { width: 460px; height: 460px; background: var(--glow2); right: -300px; bottom: -240px; }
.warm i:nth-child(3) { width: 300px; height: 300px; background: var(--glow3); right: -140px; top: 20%; }
main { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

/* header (RootView.header) */
.top { display: flex; align-items: center; gap: 8px; padding: 4px 0 2px; }
.top .logo { width: 32px; height: 32px; flex: none; }
.top .word { font: 700 19px Unbounded, Onest, sans-serif; letter-spacing: .03em; }
.tabs { margin-left: auto; display: flex; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; }
.tabs a { font-weight: 600; font-size: 13.5px; color: var(--ink2); text-decoration: none; padding: 7px 11px; border-radius: 99px; white-space: nowrap; }
.tabs a.on { background: var(--ink); color: var(--bg); }
.round { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: flex; align-items: center; justify-content: center; padding: 0; font: 700 14px Onest, sans-serif; }
.round svg { width: 18px; height: 18px; }
/* the header always fits the column: the tabs shrink, and on narrow screens (folded phones) the word BIRKA hides */
html, body { max-width: 100%; overflow-x: hidden; }
.tabs { min-width: 0; flex-shrink: 1; }
.tabs a { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 400px) {
  .top .word { display: none; }
  .tabs a { padding: 7px 9px; font-size: 13px; }
}
@media (max-width: 330px) { .tabs a { padding: 6px 7px; font-size: 12px; } }

.sun { display: none; } :root[data-theme="dark"] .sun { display: block; } :root[data-theme="dark"] .moon { display: none; }

/* cards, fields, controls */
.card { background: var(--card); border: 1px solid var(--edge); border-radius: 26px; padding: 18px;
  box-shadow: 0 6px 16px var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.card h2 { margin: 0; font: 700 15px Unbounded, Onest, sans-serif; letter-spacing: .02em; }
.cap { font-size: 13px; font-weight: 500; color: var(--ink2); margin-bottom: -4px; }
.hint { font-size: 12.5px; color: var(--ink3); }
.field { width: 100%; font: 16px Onest, sans-serif; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 13px 14px; outline: none; -webkit-appearance: none; resize: none; }
.field::placeholder { color: var(--ink3); }
.field:focus { border-color: var(--accent); }
.mono { font-family: var(--mono); }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--surface2); border: 1px solid var(--line); border-radius: 99px; }
.seg button { flex: 1; white-space: nowrap; border: 0; background: transparent; color: var(--ink2); font: 600 15px Onest, sans-serif; padding: 11px 6px; border-radius: 99px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px var(--shadow); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; font: 600 13px Onest, sans-serif; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink2); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 52px; border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px; font: 600 16px Onest, sans-serif; color: #fff; background: var(--sheen), var(--green); box-shadow: 0 6px 12px rgba(35,96,79,.35);
  text-decoration: none; transition: transform .1s, opacity .1s; }
.btn:active { transform: scale(.98); opacity: .85; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.tag { color: var(--tagInk); background: var(--sheen), var(--orange); border-color: rgba(255,255,255,.25); box-shadow: 0 6px 12px rgba(226,169,59,.4); }
.btn.dark { color: var(--bg); background: var(--ink); border-color: transparent; box-shadow: none; }
.btn.plain { color: var(--ink); background: var(--surface); border-color: var(--line); box-shadow: none; }
.link { background: none; border: 0; color: var(--ink2); font: 600 13px Onest, sans-serif; padding: 10px; }
.link.bad { color: var(--bad); }
.err { background: var(--badSoft); color: var(--bad); border-radius: 12px; padding: 11px 12px; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 30px); transform: translateX(-50%); background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: 12px; display: none; z-index: 30; }
.price { flex: none; position: relative; font: 600 17px var(--mono); color: var(--tagInk); background: var(--tag); padding: 7px 12px 7px 22px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); border-radius: 0 8px 8px 0; }
.price::before { content: ''; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--surface); }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-draft { color: var(--ink2); background: var(--surface2); }
.st-approved { color: var(--accent); background: var(--accentSoft); }
.st-published { color: var(--ok); background: var(--okSoft); }
.st-sold { color: var(--warn); background: var(--warnSoft); }

/* BIRKA Pro offer */
.pro-card { background: var(--sheen), var(--green); color: #fff; border-radius: 26px; padding: 18px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 10px 24px rgba(35,96,79,.3); }
.pro-card h3 { margin: 0; font: 700 16px Unbounded, Onest, sans-serif; }
.pro-card p { margin: 0; font-size: 14px; opacity: .9; }
.pro-card .cost { display: flex; align-items: baseline; gap: 10px; }
.pro-card .cost s { opacity: .65; font: 500 15px var(--mono); }
.pro-card .cost b { font: 700 26px var(--mono); }
.pro-card .cost span { font-size: 13px; opacity: .85; }
.pro-card .btn { background: #fff; color: #1B4D40; box-shadow: none; border-color: transparent; }
.pro-card .later { background: none; border: 0; color: #fff; opacity: .8; font: 600 13px Onest, sans-serif; padding: 4px; }
.pro-card .soon { font-size: 13px; background: rgba(255,255,255,.15); border-radius: 12px; padding: 10px 12px; }
