/* apps.veezenart.com */
:root {
  --bg: #151b24;
  --bg-2: #1a212c;
  --card: #1d2531;
  --card-hover: #222b39;
  --line: #2a3442;
  --line-2: #364254;
  --text: #e6e9ef;
  --muted: #8d97a7;
  --accent: #ff3d5f;
  --accent-hover: #ff5a77;
  --accent-soft: rgba(255, 61, 95, .12);
  --ok: #3ccf8e;
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--font);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow {
  font: 600 13px/1 var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.lead { font-size: 18px; color: var(--muted); max-width: 620px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(21, 27, 36, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo {
  font: 700 22px/1 var(--display);
  letter-spacing: .03em;
  color: var(--text);
  white-space: nowrap;
}
.logo span { color: var(--accent); }
.logo-sm { font-size: 16px; }
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 8px;
  color: var(--muted); font-weight: 500; font-size: 15px;
  transition: color .15s, background .15s;
}
.nav a:hover, .nav a.is-current { color: var(--text); background: var(--bg-2); }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-2);
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { padding: 80px 0 48px; }
.hero h1 { font-size: clamp(36px, 5.5vw, 60px); font-weight: 700; max-width: 820px; margin-bottom: 18px; }

/* Tło nagłówka (strona główna i podstrony aplikacji) */
.has-bg { position: relative; isolation: isolate; overflow: hidden; }
.has-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--hero-img) center / cover no-repeat;
}
.has-bg::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(21, 27, 36, var(--dim)) 0%, rgba(21, 27, 36, var(--dim)) 55%, var(--bg) 100%);
}
.has-bg h1, .has-bg .lead, .has-bg .eyebrow, .has-bg .meta-line, .has-bg .price-line { text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.has-bg .lead, .has-bg .meta-line { color: #c4cbd6; }
.hero.has-bg { padding: 128px 0 112px; margin-bottom: 8px; }
.has-bg .btn-ghost { background: rgba(21, 27, 36, .5); border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(8px); }
.has-bg .btn-ghost:hover { background: rgba(21, 27, 36, .7); }
.has-bg .back { color: #c4cbd6; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 600 15px/1 var(--display); letter-spacing: .01em;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); background: var(--bg-2); }
.btn-danger { background: transparent; border-color: rgba(255, 61, 95, .5); color: var(--accent); }
.btn-danger:hover { background: var(--accent-soft); }
.btn-disabled { background: var(--bg-2); color: var(--muted); cursor: default; }
.btn-block { width: 100%; }
.btn-lg { height: 54px; padding: 0 34px; font-size: 17px; border-radius: 12px; min-width: 220px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }

.badge {
  display: inline-block; padding: 5px 10px; border-radius: 6px;
  font: 600 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
}
.badge-accent { background: var(--accent-soft); color: var(--accent); }

/* Icons */
.icon {
  width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex-shrink: 0;
  background: var(--bg-2);
}
.icon-sm { width: 40px; height: 40px; border-radius: 10px; }
.icon-lg { width: 72px; height: 72px; border-radius: 18px; }
.icon-xl { width: 96px; height: 96px; border-radius: 22px; }
.icon-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2a3443, #1f2733);
  border: 1px solid var(--line-2);
  font: 700 20px/1 var(--display); color: var(--accent);
}
.icon-sm.icon-fallback { font-size: 14px; }
.icon-xl.icon-fallback { font-size: 32px; }

/* Featured */
.feature {
  display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 40px;
  padding: 36px; margin-bottom: 72px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; position: relative;
  transition: border-color .2s;
}
.feature::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent);
}
.feature:hover { border-color: var(--line-2); }
.feature-body { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.feature-head { display: flex; align-items: center; gap: 18px; }
.feature h2 { font-size: 30px; }
.feature-tagline { font-size: 18px; color: var(--text); opacity: .9; }
.feature-solo { grid-template-columns: 1fr; }
.feature-shot img {
  border-radius: 12px; border: 1px solid var(--line-2);
  aspect-ratio: 16/9; object-fit: cover; width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

/* Catalog */
.catalog { padding-bottom: 96px; }
.catalog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-title { font-size: 26px; display: flex; align-items: center; gap: 12px; }
.count {
  font: 600 13px/1 var(--display); padding: 5px 9px; border-radius: 20px;
  background: var(--bg-2); color: var(--muted); border: 1px solid var(--line);
}
.search {
  display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 14px; width: min(320px, 100%);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--muted); transition: border-color .15s;
}
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; border: 0; background: none; outline: none; min-width: 0; color: var(--text); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  font-size: 14px; font-weight: 500; transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  transition: background .15s, border-color .15s, transform .15s;
}
.card:hover { background: var(--card-hover); border-color: var(--line-2); transform: translateY(-2px); }
.card-thumb { aspect-ratio: 16/9; background: var(--bg-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-thumb img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px 22px; flex: 1; }
.card-top { display: flex; align-items: center; gap: 14px; }
.card-title { min-width: 0; }
.card h3 { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-tagline {
  color: var(--muted); font-size: 15px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font: 600 15px/1 var(--display); }
.price s { color: var(--muted); font-weight: 500; margin-right: 6px; font-size: 13px; }
.price-paid { color: var(--text); }
.price-free { color: var(--ok); }

.empty {
  text-align: center; padding: 72px 24px;
  border: 1px dashed var(--line-2); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.empty .btn { margin-top: 16px; }
.empty-title { font: 600 20px/1.3 var(--display); }
.empty-page { margin: 80px auto; }
.empty-inline { padding: 40px 0; text-align: center; }

/* App page */
.app-top { padding: 32px 0 56px; }
.app-top.has-bg { padding-bottom: 96px; }
.app-top.has-bg + .app-page { margin-top: -24px; }
.app-page { padding-bottom: 96px; }
.back { display: inline-block; color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.back:hover { color: var(--text); }
.notice {
  padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 24px;
  background: rgba(255, 196, 61, .1); color: #ffcf6b; border: 1px solid rgba(255, 196, 61, .25); font-size: 14px;
}
.app-hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 760px; margin: 0 auto;
}
.app-hero .icon-xl { margin-bottom: 22px; }
.app-hero .eyebrow { margin-bottom: 12px; }
.app-hero h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 14px; }
.app-hero .lead { margin: 0 auto; }
.price-line { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 28px 0 22px; }
.price-line strong { font: 700 32px/1 var(--display); }
.price-line s { font-size: 17px; }
.cta { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.meta-line { margin-top: 18px; }
.price-gap { height: 28px; }

.gallery { margin-bottom: 64px; }
.stage {
  aspect-ratio: 16/9; border-radius: 16px; overflow: hidden;
  background: #0d1218; border: 1px solid var(--line);
}
.stage-item, .stage-zoom { width: 100%; height: 100%; }
.stage-zoom { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; }
.stage img, .stage video { width: 100%; height: 100%; object-fit: contain; display: block; background: #0d1218; }
.stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.thumbs {
  display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.thumb {
  flex: 0 0 132px; aspect-ratio: 16/9; padding: 0; border-radius: 9px; overflow: hidden; cursor: pointer;
  background: var(--bg-2); border: 2px solid transparent; opacity: .6; position: relative;
  transition: opacity .15s, border-color .15s;
}
.thumb:hover { opacity: .9; }
.thumb.is-active { opacity: 1; border-color: var(--accent); }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.thumb.is-video::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%; background: rgba(0,0,0,.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 7v10l8-5z'/%3E%3C/svg%3E") center/18px no-repeat;
}
.thumb-label { display: grid; place-items: center; height: 100%; font: 600 13px var(--display); color: var(--muted); }

.spec { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.spec li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.spec li:last-child { border-bottom: 0; padding-bottom: 0; }
.spec li span { color: var(--muted); }
.side-sub { font-size: 16px; margin: 24px 0 12px; }

.cta-bottom {
  margin-top: 72px; padding: 48px 24px; text-align: center;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.cta-bottom h2 { font-size: 28px; }
.cta-bottom .cta { margin-top: 18px; }

.app-content { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.prose h2, .side-card h2 { font-size: 22px; margin-bottom: 16px; }
.prose h3 { font-size: 18px; margin: 28px 0 10px; }
.prose p { margin-bottom: 14px; color: #c9cfd9; }
.prose ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 22px; color: #c9cfd9; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.prose strong { color: var(--text); }
.prose.small p, .prose.small li { font-size: 14px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.side-card h2 { font-size: 18px; }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(8, 11, 16, .88); }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 10px; }
.lightbox-close {
  position: absolute; top: -44px; right: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line-2); font-size: 22px; line-height: 1; cursor: pointer;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-inner p { color: var(--muted); font-size: 14px; }

/* ---------- Admin ---------- */
.admin-tag {
  font: 600 11px/1 var(--display); font-style: normal; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-2); padding: 4px 7px; border-radius: 5px;
  vertical-align: middle; margin-left: 8px;
}
.admin-main { padding-top: 36px; padding-bottom: 80px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.admin-head h1 { font-size: 30px; margin-bottom: 6px; }
.admin-head .back { margin-bottom: 12px; }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 15px; }
.alert-ok { background: rgba(60, 207, 142, .1); border: 1px solid rgba(60, 207, 142, .3); color: #7be3b4; }
.alert-err { background: var(--accent-soft); border: 1px solid rgba(255, 61, 95, .35); color: #ff8ca0; }

.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: var(--card); }
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; padding: 12px 18px; font: 600 12px/1 var(--display);
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(255, 255, 255, .015); }
.row-app { display: flex; align-items: center; gap: 14px; line-height: 1.35; }
.row-app:hover strong { color: var(--accent); }
.actions { text-align: right; white-space: nowrap; }
.actions .btn + .btn { margin-left: 6px; }
.inline { display: inline; }
.pill {
  display: inline-block; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; background: none;
}
.pill-on { background: rgba(60, 207, 142, .12); color: var(--ok); }
.pill-off { border-color: var(--line-2); color: var(--muted); }
.pill-accent { background: var(--accent-soft); color: var(--accent); cursor: default; margin-left: 4px; }

.edit-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.edit-main { display: grid; gap: 24px; min-width: 0; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin: 0; min-width: 0; display: grid; gap: 18px;
}
.legend-opt { font: 400 13px var(--font); color: var(--muted); font-style: normal; margin-left: 6px; }
fieldset.panel legend {
  float: left; width: 100%; padding: 0;
  font: 600 17px/1.2 var(--display);
}
.panel-title { font-size: 17px; }
.sticky { position: sticky; top: 92px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 14px; font-weight: 500; }
.field > span em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input:not([type=checkbox]):not([type=file]), .field textarea {
  width: 100%; padding: 11px 13px;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; line-height: 1.55; }
.field select.select {
  width: 100%; padding: 11px 13px; background: var(--bg); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); outline: none;
}
.field select.select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input::placeholder, .field textarea::placeholder { color: #5d6878; }
.field input[type=file] {
  padding: 10px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm);
  background: var(--bg); font-size: 14px; color: var(--muted); width: 100%;
}
.field input[type=file]::file-selector-button {
  margin-right: 12px; padding: 7px 12px; border-radius: 7px; border: 0;
  background: var(--line-2); color: var(--text); font: 600 13px var(--display); cursor: pointer;
}
.hint { font-size: 13px; color: var(--muted); }
.hint code { background: var(--bg); padding: 1px 5px; border-radius: 4px; color: var(--text); }
.check-inline { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; cursor: pointer; color: var(--muted); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.media-row { display: flex; gap: 20px; align-items: center; }
.grow { flex: 1; min-width: 0; }
.bg-preview {
  position: relative; aspect-ratio: 12/5; border-radius: 12px; overflow: hidden;
  background: var(--bg); border: 1px dashed var(--line-2); display: grid; place-items: center;
}
.bg-preview > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bg-preview > .muted { position: absolute; top: 12px; left: 14px; }
.bg-dim { position: absolute; inset: 0; background: var(--bg); pointer-events: none; }
.bg-preview:not(:has(> img)) .bg-dim { display: none; }
.bg-sample { position: relative; font: 700 clamp(20px, 3vw, 30px)/1 var(--display); text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.field output { color: var(--accent); font-weight: 600; margin-left: 6px; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.thumb-preview {
  width: 160px; aspect-ratio: 16/9; flex-shrink: 0; border-radius: 10px; overflow: hidden;
  background: var(--bg); border: 1px dashed var(--line-2); display: grid; place-items: center;
}
.thumb-preview img { width: 100%; height: 100%; object-fit: cover; }
.icon-preview { width: 160px; display: flex; justify-content: center; flex-shrink: 0; }
.media-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.media-item { display: grid; gap: 8px; }
.media-prev {
  position: relative; aspect-ratio: 16/9; border-radius: 9px; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line-2); display: grid; place-items: center;
}
.media-prev img, .media-prev video { width: 100%; height: 100%; object-fit: cover; }
.media-type {
  position: absolute; left: 6px; top: 6px; padding: 3px 7px; border-radius: 5px;
  background: rgba(10, 14, 20, .8); font: 600 11px/1 var(--display); letter-spacing: .04em;
}
.media-item:has(input[type=checkbox]:checked) .media-prev { opacity: .35; border-color: var(--accent); }
.media-tools { display: flex; align-items: center; gap: 6px; }
.media-tools .check-inline { margin-left: auto; }
.mini {
  width: 30px; height: 28px; border-radius: 7px; border: 1px solid var(--line-2);
  background: var(--bg-2); cursor: pointer; font-size: 14px; line-height: 1;
}
.mini:hover { border-color: var(--muted); }
.shot-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.shot-thumb { display: grid; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.shot-thumb img { aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-2); }
.shot-thumb span { display: flex; gap: 6px; align-items: center; }
.shot-thumb:has(input:checked) img { opacity: .35; border-color: var(--accent); }

.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span {
  width: 40px; height: 22px; border-radius: 11px; background: var(--line-2); position: relative; flex-shrink: 0;
  transition: background .15s;
}
.switch span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: transform .15s;
}
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.side-meta { text-align: center; }

.danger-zone {
  margin-top: 24px; padding: 20px 24px; border-radius: var(--radius);
  border: 1px solid rgba(255, 61, 95, .25);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  max-width: calc(100% - 324px);
}
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.settings-grid .btn { justify-self: start; }
.settings-col { display: grid; gap: 24px; }
.texts-panel { margin-top: 24px; }
.texts-panel > .btn { justify-self: start; }
.texts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px 18px; }
.menu-rows { display: grid; gap: 10px; }
.menu-row { display: grid; grid-template-columns: 1fr 1.4fr auto auto; gap: 8px; align-items: center; }
.menu-row input, .menu-row select {
  width: 100%; min-width: 0; padding: 9px 11px; font-size: 14px;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; outline: none;
}
.menu-row input:focus, .menu-row select:focus { border-color: var(--accent); }
.menu-tools { display: flex; gap: 4px; }
.mini-x:hover { color: var(--accent); border-color: var(--accent); }
.row-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.settings-grid .row-actions .btn { justify-self: auto; }

/* Login */
.login-body { align-items: center; justify-content: center; padding: 24px; }
.login-card {
  width: 100%; max-width: 400px; padding: 36px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  display: grid; gap: 18px;
}
.login-card .logo { font-size: 18px; margin-bottom: 8px; }
.login-card h1 { font-size: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .app-content { grid-template-columns: 1fr; gap: 32px; }
  .edit-grid { grid-template-columns: 1fr; }
  .edit-side { order: -1; }
  .sticky { position: static; }
  .danger-zone { max-width: none; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .logo { font-size: 17px; }
  #siteHeader .nav-toggle { display: flex; }
  #siteHeader .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 10px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .35);
  }
  #siteHeader.is-open .nav { display: flex; }
  #siteHeader .nav a { padding: 12px 12px; font-size: 16px; }
  .admin .nav a { padding: 8px 10px; font-size: 14px; }
  .menu-row { grid-template-columns: 1fr 1fr; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .menu-row .menu-tools { justify-content: flex-end; }
  .hero { padding: 48px 0 32px; }
  .hero.has-bg { padding: 72px 0 64px; }
  .app-top.has-bg { padding-bottom: 64px; }
  .lead { font-size: 16px; }
  .feature { padding: 22px; margin-bottom: 48px; }
  .feature h2 { font-size: 24px; }
  .catalog-head { flex-direction: column; align-items: stretch; }
  .search { width: 100%; }
  .btn-lg { width: 100%; min-width: 0; }
  .cta { flex-direction: column; align-items: stretch; width: 100%; }
  .thumb { flex-basis: 104px; }
  .stage { border-radius: 10px; }
  .media-row { flex-direction: column; align-items: stretch; }
  .thumb-preview, .icon-preview { width: 100%; max-width: 240px; }
  .icon-preview { justify-content: flex-start; }
  .icon-xl { width: 80px; height: 80px; border-radius: 18px; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .table td, .table th { padding: 12px; }
  .actions .btn-ghost:first-child { display: none; }
  .admin .nav a[target] { display: none; }
  .admin .admin-tag { display: none; }
  .danger-zone { flex-direction: column; align-items: flex-start; }
  .panel { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
