/* Website Builder — public + wizard + admin (uses app.css tokens) */

.web-scope {
  --web-primary: #0f766e;
  --web-accent: #d97706;
  --web-primary-soft: color-mix(in srgb, var(--web-primary) 16%, transparent);
}

.web-container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.web-muted { color: var(--muted); }
.web-step-title { font-size: 1.15rem; margin: .6rem 0 1rem; }

/* ---------- Wizard ---------- */
.web-wizard .wizard-card { max-width: 760px; }
.web-wizard .wizard-card.web-wizard-wide { max-width: 1100px; }

/* Theme picker */
.web-theme-section { margin: 1.4rem 0 0.4rem; }
.web-theme-section-head { margin-bottom: .75rem; }
.web-theme-section-head h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.web-theme-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, .9fr);
  gap: 1rem;
  align-items: start;
}
.web-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: .65rem;
  max-height: 420px;
  overflow: auto;
  padding: .15rem;
}
.web-theme-grid-admin { max-height: none; margin-top: .55rem; }
.web-theme-card {
  display: grid;
  gap: .4rem;
  padding: .45rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft, var(--bg));
  cursor: pointer;
  text-align: start;
  font: inherit;
  color: inherit;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.web-theme-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--web-primary, var(--primary)) 40%, var(--border)); }
.web-theme-card.is-selected {
  border-color: var(--web-primary, var(--primary));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--web-primary, var(--primary)) 28%, transparent);
  background: color-mix(in srgb, var(--web-primary, var(--primary)) 8%, var(--surface));
}
.web-theme-card-meta { display: grid; gap: .1rem; }
.web-theme-card-meta strong { font-size: .82rem; line-height: 1.25; }
.web-theme-card-meta small { font-size: .72rem; color: var(--muted); line-height: 1.3; }

.web-theme-thumb {
  display: block;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--web-bg, #f8fafc);
  border: 1px solid color-mix(in srgb, var(--web-primary) 18%, transparent);
  position: relative;
}
.web-theme-thumb-nav {
  display: block; height: 10px;
  background: color-mix(in srgb, var(--web-surface, #fff) 80%, var(--web-primary));
  border-bottom: 1px solid color-mix(in srgb, var(--web-primary) 20%, transparent);
}
.web-theme-thumb-hero {
  display: grid; gap: 3px; padding: 8px 8px 4px;
}
.web-theme-thumb-hero i {
  display: block; height: 5px; width: 62%; border-radius: 99px;
  background: var(--web-primary);
}
.web-theme-thumb-hero i:last-child { width: 40%; height: 3px; background: var(--web-accent); opacity: .85; }
.web-theme-thumb-rows {
  display: flex; gap: 4px; padding: 4px 8px;
}
.web-theme-thumb-rows i {
  flex: 1; height: 18px; border-radius: 4px;
  background: var(--web-surface, #fff);
  border: 1px solid color-mix(in srgb, var(--web-primary) 22%, transparent);
}

.web-theme-live {
  position: sticky; top: 5.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: .7rem;
  background: var(--surface);
}
.web-theme-live-label {
  font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: .45rem;
}
.web-live-preview {
  border-radius: 12px;
  overflow: hidden;
  min-height: 260px;
  background: var(--web-bg, #fff);
  color: #0f172a;
  font-family: var(--web-font, inherit);
  border: 1px solid color-mix(in srgb, var(--web-primary) 20%, transparent);
}
.web-live-nav {
  display: flex; gap: 6px; align-items: center;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--web-surface, #fff) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--web-primary) 16%, transparent);
}
.web-live-nav span {
  display: block; height: 6px; border-radius: 99px; background: var(--web-primary); opacity: .35;
}
.web-live-nav span:first-child { width: 42px; opacity: 1; }
.web-live-nav span:nth-child(2) { width: 28px; }
.web-live-nav span:nth-child(3) { width: 28px; margin-inline-start: auto; background: var(--web-accent); opacity: .7; }
.web-live-hero { padding: 1.2rem 1rem 1rem; }
.web-live-hero strong {
  display: block; font-size: 1.15rem; line-height: 1.25; margin-bottom: .35rem;
  color: color-mix(in srgb, var(--web-primary) 55%, #0f172a);
}
.web-live-hero em {
  display: block; font-style: normal; font-size: .82rem; color: #64748b; margin-bottom: .7rem;
}
.web-live-cta { display: flex; gap: .4rem; }
.web-live-cta b {
  display: block; height: 22px; width: 72px; border-radius: 8px;
  background: linear-gradient(135deg, var(--web-primary), var(--web-accent));
}
.web-live-cta b:last-child {
  width: 58px; background: transparent;
  border: 1px solid color-mix(in srgb, var(--web-primary) 45%, transparent);
}
.web-live-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem;
  padding: 0 .75rem 1rem;
}
.web-live-cards i {
  display: block; height: 48px; border-radius: 10px;
  background: var(--web-surface, #fff);
  border: 1px solid color-mix(in srgb, var(--web-primary) 18%, transparent);
  box-shadow: inset 0 -10px 0 color-mix(in srgb, var(--web-primary) 10%, transparent);
}
.web-mode-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1rem;
}
.web-mode-opt {
  display: grid; gap: .35rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  background: var(--bg-soft, var(--bg));
  transition: border-color .2s, transform .2s;
}
.web-mode-opt:has(input:checked) {
  border-color: var(--web-primary, var(--primary));
  background: var(--web-primary-soft, var(--primary-soft));
  transform: translateY(-1px);
}
.web-mode-opt input { accent-color: var(--web-primary, var(--primary)); }
.web-mode-opt small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.web-review {
  list-style: none; margin: 0 0 1.2rem; padding: 0;
  display: grid; gap: .55rem;
}
.web-review li {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .65rem .8rem; border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg-soft, var(--bg));
}
.web-review span { color: var(--muted); font-size: .85rem; }
.web-ready-card { text-align: center; }
.web-success { color: var(--accent); margin-bottom: .5rem; }
.web-ready-links { display: grid; gap: .45rem; text-align: start; margin-top: 1rem; }
.web-ready-links label { font-size: .8rem; color: var(--muted); }
.web-ready-links input {
  width: 100%; padding: .55rem .7rem; border: 1px solid var(--border);
  border-radius: 10px; background: var(--bg-soft); color: var(--text); font: inherit; font-size: .84rem;
}
.web-trial {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .8rem; border-radius: 999px;
  background: var(--web-primary-soft); color: var(--web-primary); font-size: .88rem;
}

/* ---------- Public nav ---------- */
.web-nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--border);
}
.web-nav-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 64px; padding-block: .55rem; flex-wrap: nowrap;
}
.web-brand { flex-shrink: 0; min-width: 0; }
.web-nav-burger { display: none; margin-inline-start: auto; flex-shrink: 0; }
.web-header-drawer {
  display: flex; align-items: center; gap: 1rem; flex: 1; min-width: 0; justify-content: flex-end;
}
.web-header-drawer > .nav-close { display: none; }
.web-brand {
  display: inline-flex; align-items: center; gap: .55rem;
  color: inherit; text-decoration: none; font-weight: 800;
}
.web-brand-mark {
  width: 36px; height: 36px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--web-primary-soft); color: var(--web-primary);
}
.web-logo { height: 36px; width: auto; border-radius: 8px; }
.web-nav-links {
  display: flex; flex-wrap: wrap; gap: .15rem .7rem;
  margin-inline-start: auto; font-size: .88rem;
}
.web-nav-links a {
  color: var(--muted); text-decoration: none; font-weight: 600;
  padding: .25rem 0; border-bottom: 2px solid transparent;
}
.web-nav-links a:hover { color: var(--web-primary); border-bottom-color: var(--web-primary); }
.web-nav-actions { display: flex; gap: .35rem; align-items: center; }

/* ---------- Hero ---------- */
.web-hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.web-hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 420px at 10% 0%, var(--web-primary-soft), transparent 55%),
    radial-gradient(700px 380px at 100% 80%, color-mix(in srgb, var(--web-accent) 18%, transparent), transparent 55%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-soft) 55%, var(--surface) 100%);
}
.web-hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--web-hero-img, none);
  background-size: cover;
  background-position: center;
  opacity: .22;
  animation: webHeroDrift 18s ease-in-out infinite alternate;
}
.web-hero-bg::after {
  content: "";
  position: absolute; inset: -20%;
  background:
    radial-gradient(circle at 30% 40%, color-mix(in srgb, var(--web-primary) 22%, transparent), transparent 42%),
    radial-gradient(circle at 70% 60%, color-mix(in srgb, var(--web-accent) 16%, transparent), transparent 40%);
  animation: webHeroGlow 12s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes webHeroDrift {
  from { transform: scale(1.05) translate3d(-1%, 0, 0); }
  to { transform: scale(1.12) translate3d(1.5%, -1%, 0); }
}
@keyframes webHeroGlow {
  from { opacity: .7; transform: translate3d(0, 0, 0); }
  to { opacity: 1; transform: translate3d(2%, -2%, 0); }
}
.web-hero-inner { padding: 4.5rem 0 3.5rem; max-width: 720px; }
.web-kicker {
  display: inline-flex; align-items: center; gap: .4rem;
  margin: 0 0 .8rem; color: var(--web-primary); font-weight: 700; font-size: .88rem;
}
.web-hero h1 {
  margin: 0 0 .7rem;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  animation: webFadeUp .7s ease both;
}
.web-hero-lead {
  margin: 0 0 1.4rem;
  font-size: 1.08rem; color: var(--muted); max-width: 36ch; line-height: 1.65;
  animation: webFadeUp .8s .08s ease both;
}
.web-hero-cta {
  display: flex; flex-wrap: wrap; gap: .6rem;
  animation: webFadeUp .85s .16s ease both;
}
.web-hero-cta .btn-primary {
  background: linear-gradient(135deg, var(--web-primary), color-mix(in srgb, var(--web-primary) 60%, var(--web-accent)));
  border-color: transparent;
}
@keyframes webFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Sections ---------- */
.web-section { padding: 4rem 0; }
.web-section-alt { background: var(--bg-soft, var(--bg)); }
.web-section-head { margin-bottom: 1.6rem; max-width: 48rem; }
.web-section-head h2 {
  margin: 0 0 .45rem;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  letter-spacing: -.01em;
}
.web-section-head p { margin: 0; color: var(--muted); line-height: 1.6; }
.web-prose { font-size: 1.02rem; line-height: 1.8; max-width: 52rem; }
.web-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .75rem; margin-top: 1.4rem;
}
.web-gallery img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--border);
}
.web-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .9rem;
}
.web-card {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  transition: transform .2s ease, border-color .2s;
}
.web-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--web-primary) 45%, var(--border));
}
.web-card-ico {
  display: inline-flex; width: 40px; height: 40px; border-radius: 12px;
  align-items: center; justify-content: center;
  background: var(--web-primary-soft); color: var(--web-primary); margin-bottom: .6rem;
  animation: webIconFloat 4.5s ease-in-out infinite;
}
.web-card:nth-child(2) .web-card-ico { animation-delay: .4s; }
.web-card:nth-child(3) .web-card-ico { animation-delay: .8s; }
.web-card:nth-child(4) .web-card-ico { animation-delay: 1.2s; }
@keyframes webIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.web-card h3 { margin: 0; font-size: 1.02rem; }
.web-card p { margin: .45rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* Gradient image placeholders */
.web-media-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--web-primary) 55%, #0f172a), color-mix(in srgb, var(--web-accent) 70%, var(--web-primary)));
  min-height: 140px;
  display: grid;
  place-items: center;
  color: #fff;
  isolation: isolate;
}
.web-media-card::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.22), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.12), transparent 45%),
    repeating-linear-gradient(-35deg, transparent, transparent 10px, rgba(255,255,255,.04) 10px, rgba(255,255,255,.04) 11px);
  animation: webHeroGlow 10s ease-in-out infinite alternate;
}
.web-media-card > * { position: relative; z-index: 1; opacity: .92; }
.web-card.has-media { padding: 0; overflow: hidden; display: grid; }
.web-card.has-media .web-media-card { border: 0; border-radius: 16px 16px 0 0; min-height: 110px; }
.web-card.has-media .web-card-body { padding: 1rem 1.15rem 1.15rem; }

.web-clients {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem;
}
.web-client-pill {
  padding: 1rem .9rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 700; font-size: .92rem;
  text-align: center;
  display: grid; gap: .45rem; place-items: center;
  transition: transform .2s, border-color .2s;
}
.web-client-pill:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--web-primary) 40%, var(--border));
}
.web-client-pill .web-client-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--web-primary-soft); color: var(--web-primary);
  animation: webIconFloat 5s ease-in-out infinite;
}

.web-news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .9rem;
}
.web-fade-up { animation: webFadeUp .7s ease both; }
.web-fade-up-delay-1 { animation-delay: .08s; }
.web-fade-up-delay-2 { animation-delay: .16s; }
.web-fade-up-delay-3 { animation-delay: .24s; }

/* Site header toggles */
.web-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.1rem; height: 2.1rem; padding: 0 .55rem;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: inherit; cursor: pointer;
  font: inherit; font-size: .8rem; font-weight: 700;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .15s;
}
.web-toggle:hover {
  border-color: color-mix(in srgb, var(--web-primary) 45%, var(--border));
  color: var(--web-primary);
  transform: translateY(-1px);
}
.web-toggle.is-active {
  background: var(--web-primary-soft);
  border-color: color-mix(in srgb, var(--web-primary) 40%, var(--border));
  color: var(--web-primary);
}

/* Demo site (lives in website.css — demo.css is shared elsewhere) */
.demo-stage:has(.web-demo-studio) {
  width: min(1480px, calc(100% - 1.25rem));
}

.web-demo-studio {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}

.web-demo-theme-panel {
  position: sticky;
  top: 5.25rem;
  max-height: calc(100vh - 6.5rem);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 42%),
    var(--surface);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
}

.web-demo-theme-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.web-demo-theme-panel-head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
}

.web-demo-theme-panel-head p {
  margin: .25rem 0 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}

.web-demo-theme-count {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 .55rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
  font-size: .82rem;
}

.web-demo-theme-grid {
  max-height: none;
  flex: 1 1 auto;
  overflow: auto;
  padding: .1rem;
  scrollbar-gutter: stable;
}

.web-demo-preview-wrap {
  min-width: 0;
  display: grid;
  gap: .65rem;
}

.web-demo-preview-bar {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  padding: .55rem .85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft, var(--bg));
}

.web-demo-live-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.web-demo-preview-bar strong {
  font-size: .92rem;
  font-weight: 800;
}

.web-demo-shell {
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  background: var(--web-surface, var(--surface));
  box-shadow: 0 24px 60px color-mix(in srgb, var(--web-primary) 12%, transparent);
}
.web-demo-themes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}
.web-demo-theme-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  transition: transform .25s, box-shadow .25s;
}
.web-demo-theme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--web-primary) 14%, transparent);
}
.web-demo-theme-card .web-demo-mini-hero {
  min-height: 120px; padding: 1.1rem;
  color: #fff; display: grid; align-content: end; gap: .25rem;
  position: relative; isolation: isolate;
}
.web-demo-theme-card .web-demo-mini-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.25), transparent 40%),
    linear-gradient(135deg, var(--web-primary), var(--web-accent));
}
.web-demo-theme-card .web-demo-mini-body { padding: .9rem 1rem 1.1rem; }
.web-demo-theme-card .web-demo-mini-icons {
  display: flex; gap: .45rem; margin-top: .65rem;
}
.web-demo-theme-card .web-demo-mini-icons span {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--web-primary-soft); color: var(--web-primary);
  animation: webIconFloat 4s ease-in-out infinite;
}
.web-demo-theme-card .web-demo-mini-icons span:nth-child(2) { animation-delay: .3s; }
.web-demo-theme-card .web-demo-mini-icons span:nth-child(3) { animation-delay: .6s; }
.web-contact { display: flex; flex-wrap: wrap; gap: .75rem; }
.web-contact-item {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.15rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: inherit; text-decoration: none; font-weight: 700;
}
.web-contact-item:hover { border-color: var(--web-primary); color: var(--web-primary); }
.web-news-item {
  padding: 0;
  overflow: hidden;
  border-inline-start: 3px solid var(--web-accent);
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  border-inline-start-width: 3px;
  display: grid;
  transition: transform .2s, border-color .2s;
}
.web-news-item:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--web-accent) 40%, var(--border));
}
.web-news-item .web-news-media {
  min-height: 88px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--web-accent) 55%, var(--web-primary)), var(--web-primary));
  display: grid; place-items: center; color: #fff;
  position: relative;
}
.web-news-item .web-news-media::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(255,255,255,.05) 8px, rgba(255,255,255,.05) 16px);
}
.web-news-item .web-news-body { padding: 1rem 1.15rem 1.15rem; }
.web-news-item time { color: var(--muted); font-size: .78rem; }
.web-news-item h3 { margin: .25rem 0 .35rem; font-size: 1.05rem; }
.web-news-item p { margin: 0; color: var(--muted); line-height: 1.55; }

.web-footer {
  border-top: 1px solid var(--border);
  padding: 1.4rem 0 2rem;
  background: var(--surface);
}
.web-footer-inner {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .88rem; color: var(--muted);
}
.web-powered { color: inherit; text-decoration: none; }
.web-powered strong { color: var(--web-primary); }

/* ---------- Admin / login ---------- */
.web-login-page {
  min-height: 100vh; display: grid; place-items: center; padding: 1.5rem;
  background:
    radial-gradient(700px 360px at 15% 0%, var(--web-primary-soft), transparent 60%),
    var(--bg);
}
.web-login-card {
  width: min(400px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.web-login-mark {
  width: 56px; height: 56px; margin: 0 auto .8rem;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--web-primary-soft); color: var(--web-primary);
}
.web-login-card form { text-align: start; display: grid; gap: .85rem; margin-top: 1rem; }
.web-login-back {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: 1rem; color: var(--muted); text-decoration: none; font-size: .86rem;
}
.web-admin-bar {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky; top: 0; z-index: 30;
}
.web-admin-bar-inner {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .9rem 0; align-items: center;
}
.web-admin-nav { display: flex; flex-wrap: wrap; gap: .35rem; }
.web-admin-nav a {
  text-decoration: none; color: var(--muted); font-size: .86rem; font-weight: 600;
  padding: .4rem .7rem; border-radius: 10px;
}
.web-admin-nav a.active,
.web-admin-nav a:hover { background: var(--web-primary-soft); color: var(--web-primary); }
.web-admin-main { padding: 1.4rem 0 2.5rem; display: grid; gap: 1rem; }
.web-admin-panel { margin: 0; }
.web-news-edit {
  border: 1px solid var(--border); border-radius: 14px;
  padding: .9rem; margin-bottom: .8rem; background: var(--bg-soft, var(--bg));
}

@media (max-width: 820px) {
  .web-nav-burger { display: inline-flex; }
  .web-header-drawer {
    position: fixed; top: 0; inset-inline-end: 0; bottom: 0;
    width: min(320px, 86vw); z-index: 80;
    background: var(--surface); border-inline-start: 1px solid var(--border);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 1rem; gap: .65rem;
    transform: translateX(110%);
    transition: transform .28s cubic-bezier(.22,.8,.36,1);
    box-shadow: var(--shadow-lg, 0 16px 36px rgba(14, 23, 38, 0.12));
    overflow-y: auto; flex: none;
  }
  [dir="rtl"] .web-header-drawer { transform: translateX(-110%); }
  body.nav-open .web-header-drawer { transform: translateX(0); }
  body.nav-open .web-nav .nav-backdrop { display: block; z-index: 70; }
  .web-header-drawer > .nav-close { display: inline-flex; align-self: flex-end; margin-bottom: .25rem; }
  .web-header-drawer .web-nav-links {
    flex-direction: column; align-items: stretch; gap: .25rem;
    margin-inline-start: 0; order: 1;
  }
  .web-header-drawer .web-nav-links a {
    width: 100%; padding: .65rem .85rem; border-radius: 10px; border-bottom: 0;
  }
  .web-header-drawer .web-nav-links a:hover {
    background: var(--web-primary-soft); border-bottom-color: transparent;
  }
  .web-header-drawer .web-nav-actions {
    flex-direction: column; align-items: stretch; width: 100%; gap: .55rem; order: 2;
  }
  .web-header-drawer .web-nav-cta { display: inline-flex; width: 100%; justify-content: center; }
  .web-header-drawer .web-toggle { width: 100%; justify-content: center; }
  .web-mode-picker { grid-template-columns: 1fr; }
  .web-hero { min-height: 70vh; }
  .web-theme-grid { max-height: 320px; }
  .web-demo-studio { grid-template-columns: 1fr; }
  .web-demo-theme-panel {
    position: static;
    max-height: none;
  }
  .web-demo-theme-grid { max-height: 280px; }
}
