/* ==========================================================================
   Fotoprodej — design systém
   Písma jsou hostovaná lokálně (bez Google Fonts kvůli GDPR).
   ========================================================================== */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/instrument-serif-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/instrument-serif-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/static/fonts/instrument-serif-latin-ext-400-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/static/fonts/instrument-serif-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #f1efeb;
  --text: #16130f;
  --muted: #7a746b;
  --line: #e7e3dc;
  --line-strong: #d6d0c6;
  --ink: #16130f;          /* hlavní tlačítka */
  --ink-text: #ffffff;
  --accent: #1d7a5f;        /* výběr, zaplaceno */
  --accent-soft: #e3f1ec;
  --warn: #a96a00;
  --warn-soft: #fbf0dc;
  --danger: #b42318;
  --danger-soft: #fdeceb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(22,19,15,.05);
  --shadow: 0 1px 2px rgba(22,19,15,.04), 0 8px 28px -6px rgba(22,19,15,.10);
  --shadow-lg: 0 24px 60px -12px rgba(22,19,15,.28);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e0c; --surface: #191714; --surface-2: #221f1b; --text: #f3f0ea; --muted: #9a9389;
    --line: #2a2723; --line-strong: #3a3631; --ink: #f3f0ea; --ink-text: #14120f;
    --accent: #4cc39b; --accent-soft: #15352b; --warn: #e7b04a; --warn-soft: #362a12;
    --danger: #ff8a80; --danger-soft: #3a1b18;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 28px -6px rgba(0,0,0,.5);
    --shadow-lg: 0 24px 60px -12px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--sans); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.02em; font-weight: 650; }
h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.icon { flex: none; display: block; }
.hidden { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 32px 20px 140px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 16px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.page-head h1 { margin: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; }
.back:hover { color: var(--text); }

/* ---------- Karty ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.card-head h2 { margin: 0; }
.card-head .icon-tile { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text); }

/* ---------- Tlačítka ---------- */
button, .btn {
  font: inherit; font-weight: 550; font-size: .92rem; cursor: pointer; text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
button:hover, .btn:hover { border-color: var(--text); }
button:active, .btn:active { transform: scale(.98); }
button.primary, .btn.primary { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
button.primary:hover, .btn.primary:hover { box-shadow: 0 6px 18px -6px rgba(22,19,15,.45); }
button.accent, .btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
button.ghost, .btn.ghost { border-color: transparent; background: transparent; }
button.ghost:hover, .btn.ghost:hover { background: var(--surface-2); }
button.danger, .btn.danger { color: var(--danger); }
button.danger:hover { border-color: var(--danger); background: var(--danger-soft); }
button.link { border: 0; background: none; height: auto; padding: 4px 2px; color: var(--muted); font-weight: 500; }
button.link:hover { color: var(--text); }
button.sm, .btn.sm { height: 32px; padding: 0 12px; font-size: .84rem; }
button.lg, .btn.lg { height: 48px; padding: 0 22px; font-size: 1rem; }
button.icon-btn, .btn.icon-btn { width: 40px; padding: 0; }
button.icon-btn.sm, .btn.icon-btn.sm { width: 32px; }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Formuláře ---------- */
label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
  width: 100%; font: inherit; color: var(--text);
  padding: 10px 14px; min-height: 42px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
select { width: auto; padding-right: 32px; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a746b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .7; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 10%, transparent); }
button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; align-items: end; }
.hint { color: var(--muted); font-size: .82rem; margin-top: 6px; }
.error { color: var(--danger); font-size: .88rem; min-height: 1.2em; }
.error:empty { min-height: 0; }
label.check { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: 500; font-size: .92rem; cursor: pointer; }
input[type=checkbox], input[type=range] { accent-color: var(--text); }
input[type=checkbox] { width: 18px; height: 18px; }
input[type=range] { width: 100%; }

/* ---------- Štítky a oznámení ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.paid { background: var(--accent-soft); color: var(--accent); }
.badge.pending { background: var(--warn-soft); color: var(--warn); }
.demo-note { display: flex; gap: 12px; align-items: flex-start; background: var(--warn-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); padding: 12px 16px; border-radius: 12px; font-size: .9rem; margin: 0; }
.demo-note .icon { color: var(--warn); margin-top: 2px; }
.demo-note a { font-weight: 600; }

/* ---------- Horní lišta (administrace) ---------- */
.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.topbar .inner { max-width: 1240px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; font-size: 1.02rem; }
.brand .mark { width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: var(--ink-text); display: grid; place-items: center; }
.nav { display: flex; gap: 4px; }
.nav a, .nav button { height: 36px; padding: 0 12px; border-radius: 999px; border: 0; background: none; color: var(--muted); font-weight: 550; font-size: .9rem; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.nav a:hover, .nav button:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--surface-2); }

/* ---------- Statistiky ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat .label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .84rem; font-weight: 500; }
.stat .value { font-size: 1.75rem; font-weight: 650; letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ---------- Karty galerií ---------- */
.gallery-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.gcard { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.gcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gcard .cover { aspect-ratio: 4 / 3; background: var(--surface-2) center / cover; display: grid; place-items: center; color: var(--muted); }
.gcard .info { padding: 14px 16px 16px; }
.gcard .title { font-weight: 600; font-size: 1rem; letter-spacing: -.01em; }
.gcard .meta { display: flex; gap: 14px; color: var(--muted); font-size: .84rem; margin-top: 4px; }
.gcard .revenue { font-weight: 600; color: var(--text); }
.gcard.new { height: auto; padding: 0; border-radius: var(--radius); white-space: normal; font-weight: 500; width: 100%; }
.gcard.new .icon { margin: 0 auto 8px; }
.gcard.new { display: grid; place-items: center; text-align: center; min-height: 260px; border-style: dashed; border-width: 1.5px; background: transparent; color: var(--muted); }
.gcard.new:hover { color: var(--text); border-color: var(--text); }

/* ---------- Mřížka fotek (administrace) ---------- */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.photo { position: relative; border-radius: 12px; overflow: hidden; background: var(--surface-2); aspect-ratio: 3 / 2; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .corner { position: absolute; inset: auto 8px 8px 8px; display: flex; justify-content: space-between; align-items: center; gap: 6px; opacity: 0; transform: translateY(4px); transition: .2s; }
.photo:hover .corner, .photo:focus-within .corner { opacity: 1; transform: none; }
@media (hover: none) { .photo .corner { opacity: 1; transform: none; } }
.photo .corner .btn, .photo .corner button { height: 30px; padding: 0 10px; font-size: .78rem; background: rgba(255,255,255,.94); color: #16130f; border: 0; backdrop-filter: blur(6px); }
.photo .corner .icon-btn { width: 30px; padding: 0; }
.photo .corner .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 30px; cursor: default; }
.photo .corner .danger { color: var(--danger); }

/* ---------- Nahrávání ---------- */
.dropzone { display: grid; place-items: center; gap: 6px; text-align: center; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 36px 20px; color: var(--muted); cursor: pointer; transition: .15s; background: var(--bg); margin: 0; font-weight: 400; font-size: .92rem; }
.dropzone strong { color: var(--text); font-weight: 600; }
.dropzone .icon-tile { width: 48px; height: 48px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); margin-bottom: 6px; }
.dropzone:hover, .dropzone.over { border-color: var(--text); color: var(--text); background: var(--surface-2); }
.progress { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.progress > div { height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .3s; }

/* ---------- Tabulka objednávek ---------- */
.table-wrap { overflow-x: auto; margin: 0 -24px -24px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { padding-right: 24px; }
th { color: var(--muted); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; background: var(--bg); }
td.num { font-variant-numeric: tabular-nums; }
tr:hover td { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ---------- Odkaz pro zákazníka ---------- */
.share { display: flex; gap: 8px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 5px 5px 5px 16px; }
.share .icon { color: var(--muted); }
.share input { border: 0; background: transparent; padding: 0; min-height: 0; box-shadow: none !important; font-size: .9rem; }

/* ==========================================================================
   Zákaznická galerie
   ========================================================================== */
.hero { position: relative; min-height: min(68vh, 620px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #1a1714; }
.hero .bg { position: absolute; inset: 0; background: center / cover no-repeat; transform: scale(1.04); animation: heroIn 1.2s ease-out forwards; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.65) 100%); }
.hero .content { position: relative; z-index: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 40px 20px 44px; }
.hero .eyebrow { color: rgba(255,255,255,.8); }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 7vw, 5.2rem); letter-spacing: -.02em; line-height: 1; margin: 10px 0 14px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px; }
.hero .chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); font-size: .86rem; font-weight: 500; }
@keyframes heroIn { from { transform: scale(1.1); opacity: .6; } to { transform: scale(1.04); opacity: 1; } }

.toolbar { position: sticky; top: 0; z-index: 15; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.toolbar .inner { max-width: 1240px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.segmented { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.segmented button { height: 32px; border: 0; background: none; color: var(--muted); padding: 0 14px; font-size: .86rem; }
.segmented button[aria-pressed=true] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* Mozaika — zachovává poměr stran fotek */
.masonry { columns: 3 300px; column-gap: 14px; }
.masonry .tile { break-inside: avoid; margin-bottom: 14px; }
.tile { position: relative; border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.tile img { width: 100%; height: auto; display: block; transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .4s; opacity: 0; }
.tile img.loaded { opacity: 1; }
.tile:hover img { transform: scale(1.03); }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0 var(--accent); transition: box-shadow .2s; pointer-events: none; }
.tile.selected { transform: scale(.965); }
.tile.selected::after { box-shadow: inset 0 0 0 3px var(--accent); }
.tile .pick {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; padding: 0; border-radius: 50%;
  background: rgba(15,14,12,.35); border: 2px solid rgba(255,255,255,.9); color: transparent; backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .2s, background .2s, transform .15s; z-index: 2;
}
.tile:hover .pick, .tile.selected .pick { opacity: 1; }
@media (hover: none) { .tile .pick { opacity: 1; } }
.tile .pick:hover { transform: scale(1.08); border-color: #fff; }
.tile.selected .pick { background: var(--accent); border-color: var(--accent); color: #fff; }
.tile .num { position: absolute; left: 10px; bottom: 10px; font-size: .74rem; font-weight: 600; color: #fff; background: rgba(15,14,12,.4); backdrop-filter: blur(6px); padding: 2px 8px; border-radius: 999px; opacity: 0; transition: opacity .2s; }
.tile:hover .num { opacity: 1; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

/* Plovoucí košík */
.cartbar {
  position: fixed; left: 50%; bottom: 20px; z-index: 30; width: min(560px, calc(100vw - 24px));
  transform: translate(-50%, 140%); transition: transform .35s cubic-bezier(.2,.9,.25,1.1);
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-lg); padding: 8px 8px 8px 10px;
}
.cartbar.show { transform: translate(-50%, 0); }
.cartbar .inner { display: flex; align-items: center; gap: 12px; }
.cartbar .count { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.cartbar .count.bump { animation: bump .3s; }
.cartbar .meta { flex: 1; min-width: 0; line-height: 1.25; }
.cartbar .total { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cartbar .sub { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cartbar button.primary { height: 44px; padding: 0 20px; }
@keyframes bump { 50% { transform: scale(1.15); } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: #0b0a09; display: none; flex-direction: column; color: #fff; }
.lightbox.open { display: flex; animation: fadeIn .2s; }
.lightbox .lb-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.lightbox .lb-count { font-size: .88rem; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.lightbox .lb-stage { flex: 1; position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 4px; user-select: none; -webkit-user-drag: none; }
.lightbox .lb-bottom { display: flex; justify-content: center; padding: 16px 16px 24px; }
.lightbox button { color: #fff; background: rgba(255,255,255,.1); border-color: transparent; }
.lightbox button:hover { background: rgba(255,255,255,.18); border-color: transparent; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; padding: 0; }
.lightbox .lb-prev { left: 12px; }
.lightbox .lb-next { right: 12px; }
.lightbox #lbPick { height: 48px; padding: 0 24px; background: #fff; color: #16130f; }
.lightbox #lbPick.on { background: var(--accent); color: #fff; }
@media (max-width: 640px) { .lightbox .lb-stage { padding: 0 8px; } .lightbox .lb-nav { top: auto; bottom: -64px; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }

/* Dialog platby */
dialog { border: 0; padding: 0; border-radius: 24px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); width: min(480px, calc(100vw - 24px)); max-height: calc(100vh - 32px); }
dialog[open] { animation: dialogIn .25s cubic-bezier(.2,.9,.25,1); }
dialog::backdrop { background: rgba(10,9,8,.55); backdrop-filter: blur(4px); }
dialog .body { padding: 28px; }
dialog .dlg-head { display: flex; align-items: flex-start; gap: 12px; }
dialog .dlg-head h2 { font-size: 1.4rem; margin: 0; }
.summary-box { display: flex; align-items: center; justify-content: space-between; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.summary-box .amount { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
@media (max-width: 560px) {
  dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  dialog[open] { animation: sheetIn .3s cubic-bezier(.2,.9,.25,1); }
}
@keyframes dialogIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes sheetIn { from { transform: translateY(100%); } }

.paymethods { display: grid; gap: 10px; }
.paymethod { height: auto; justify-content: flex-start; text-align: left; padding: 14px 16px; border-radius: 14px; gap: 14px; font-weight: 600; white-space: normal; }
.paymethod .pm-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.paymethod small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.paymethod .radio { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; transition: .15s; }
.paymethod[aria-pressed=true] { border-color: var(--text); box-shadow: 0 0 0 1px var(--text) inset; }
.paymethod[aria-pressed=true] .radio { border: 6px solid var(--text); }
.wallets { display: flex; gap: 6px; margin-top: 6px; }
.wallets span { font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line-strong); color: var(--muted); letter-spacing: .02em; }
details.billing { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
details.billing summary { cursor: pointer; font-weight: 550; font-size: .9rem; list-style: none; display: flex; align-items: center; gap: 8px; }
details.billing summary::-webkit-details-marker { display: none; }
details.billing summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 1.2rem; line-height: 1; }
details.billing[open] summary::after { content: "–"; }
details.billing[open] summary { margin-bottom: 14px; }
details.billing .stack > * + * { margin-top: 12px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: .8rem; }

/* ==========================================================================
   Stránka objednávky
   ========================================================================== */
.order-wrap { max-width: 880px; margin: 0 auto; padding: 32px 20px 80px; }
.order-hero { text-align: center; padding: 28px 0 8px; }
.order-hero .seal { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; }
.order-hero .seal.ok { background: var(--accent-soft); color: var(--accent); animation: pop .5s cubic-bezier(.2,.9,.25,1.3); }
.order-hero .seal.wait { background: var(--warn-soft); color: var(--warn); }
.order-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -.02em; margin-bottom: 8px; }
.order-hero p { color: var(--muted); max-width: 520px; margin: 0 auto; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.order-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 24px 0 8px; }
.order-meta { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.order-meta .chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.order-meta .chip strong { color: var(--text); font-weight: 600; }
.qrbox { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.qrbox .qr { background: #fff; padding: 10px; border-radius: 16px; border: 1px solid var(--line); }
.qrbox img { width: 220px; height: 220px; display: block; }
@media (max-width: 600px) { .qrbox { grid-template-columns: 1fr; justify-items: center; } }
.kv { display: grid; grid-template-columns: auto 1fr auto; gap: 10px 16px; align-items: center; margin: 0; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-all; font-variant-numeric: tabular-nums; }
.kv .copy { height: 28px; width: 28px; padding: 0; border: 0; background: var(--surface-2); border-radius: 8px; color: var(--muted); }
.kv .copy:hover { color: var(--text); }
.waiting { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .88rem; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--warn) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.dl-grid .photo { aspect-ratio: 4 / 3; }

/* ---------- Nastavení vodoznaku ---------- */
.wm-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; align-items: start; }
.wm-preview { margin: 0; position: sticky; top: 84px; }
.wm-preview img { width: 100%; border-radius: 14px; display: block; background: var(--surface-2); aspect-ratio: 3 / 2; object-fit: cover; box-shadow: var(--shadow); }
.wm-preview figcaption { margin-top: 10px; }
@media (max-width: 800px) { .wm-layout { grid-template-columns: 1fr; } .wm-preview { position: static; } }

/* ---------- Přihlášení ---------- */
.login { min-height: calc(100vh - 140px); display: grid; place-items: center; }
.login .card { width: min(400px, 100%); padding: 32px; }
.login .brand { margin-bottom: 22px; }

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
  .wrap { padding: 20px 16px 140px; }
  .card { padding: 18px; }
  .table-wrap { margin: 0 -18px -18px; }
  th:first-child, td:first-child { padding-left: 18px; }
  .masonry { columns: 2; column-gap: 8px; }
  .masonry .tile { margin-bottom: 8px; border-radius: 8px; }
  .tile .pick { width: 30px; height: 30px; top: 6px; right: 6px; }
  .photos { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cartbar { bottom: 12px; }
  .cartbar .count { width: 40px; height: 40px; }
  .cartbar button.primary { padding: 0 16px; height: 40px; }
  .nav .label, .toolbar .label { display: none; }
  .toolbar .inner { flex-wrap: nowrap; gap: 6px; padding: 8px 12px; }
  .segmented button { padding: 0 10px; }
  .toolbar #clearSel { width: 32px; padding: 0; }
}

/* ==========================================================================
   Úvodní stránka, přihlášení a registrace
   ========================================================================== */
.site-head { max-width: 1240px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; gap: 12px; }
.landing-hero { max-width: 1240px; margin: 0 auto; padding: 56px 20px 40px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.landing-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 6vw, 4.8rem); line-height: 1; letter-spacing: -.02em; margin: 14px 0 18px; }
.landing-hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 520px; margin: 0 0 26px; }
.hero-art { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: linear-gradient(135deg, #d9c7b2, #8a9a8f 55%, #3d4a52); box-shadow: var(--shadow-lg); }
.hero-art .mock { position: absolute; inset: auto 18px 18px 18px; background: rgba(255,255,255,.92); color: #16130f; border-radius: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); }
.hero-art .mock .count { width: 40px; height: 40px; border-radius: 50%; background: #1d7a5f; color: #fff; display: grid; place-items: center; font-weight: 700; }
.hero-art .grid { position: absolute; inset: 18px 18px 96px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-art .grid span { border-radius: 12px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25); position: relative; }
.hero-art .grid span.sel::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: #1d7a5f; color: #fff; display: grid; place-items: center; font-size: 13px; }
@media (max-width: 860px) { .landing-hero { grid-template-columns: 1fr; padding-top: 28px; } .hero-art { aspect-ratio: 16 / 11; } }
.section { max-width: 1240px; margin: 0 auto; padding: 48px 20px; }
.section h2.big { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.02em; margin: 8px 0 28px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature .icon-tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); margin-bottom: 14px; }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 760px; }
.price-card { position: relative; }
.price-card .amount { font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em; margin: 8px 0 2px; }
.price-card .per { color: var(--muted); font-size: .9rem; }
.price-card ul { padding: 0; margin: 18px 0 22px; list-style: none; }
.price-card li { display: flex; gap: 10px; align-items: center; padding: 5px 0; font-size: .92rem; }
.price-card li .icon { color: var(--accent); }
.price-card.featured { border-color: var(--text); box-shadow: var(--shadow); }
.price-card .ribbon { position: absolute; top: -11px; left: 22px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; }
.site-foot .inner { max-width: 1240px; margin: 0 auto; padding: 26px 20px; display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .86rem; }

.auth { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: 20px 16px 60px; }
.auth .card { width: min(520px, 100%); padding: 32px; }
.auth .card.narrow { width: min(420px, 100%); }
.auth h1 { font-family: var(--serif); font-weight: 400; font-size: 2.4rem; margin: 6px 0 4px; }
.steps { display: flex; gap: 6px; margin-bottom: 20px; }
.steps span { flex: 1; height: 4px; border-radius: 99px; background: var(--line); }
.steps span.on { background: var(--text); }
.tariffs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tariff { height: auto; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border-radius: 14px; white-space: normal; text-align: left; }
.tariff strong { font-size: 1.15rem; }
.tariff small { color: var(--muted); font-weight: 400; }
.tariff[aria-pressed=true] { border-color: var(--text); box-shadow: 0 0 0 1px var(--text) inset; }
.company-box { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: .92rem; }
.company-box strong { display: block; font-size: 1rem; }
.devlink { background: var(--warn-soft); border-radius: 12px; padding: 12px 14px; font-size: .86rem; overflow-wrap: anywhere; }
.banner { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; font-size: .9rem; margin: 0; }
.banner.warn { background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.banner.danger { background: var(--danger-soft); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }
.banner.info { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.banner .icon { flex: none; }
.banner a { font-weight: 600; }
.banners { display: grid; gap: 8px; }
.card-head { flex-wrap: wrap; row-gap: 10px; }
