:root {
  --navy: #07173f;
  --navy-2: #0c2470;
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --sky: #e7f0fb;
  --bg: #f3f7fc;
  --yellow: #ffe14a;
  --orange: #ff5a1f;
  --green: #16a34a;
  --whats: #22c55e;
  --red: #ef2b3a;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #fff;
  --shadow: 0 18px 50px rgba(15, 35, 80, .12);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: Inter, "Segoe UI", sans-serif; color: var(--ink); background: #fff; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }

.logo-mark { width: 28px; height: 28px; display: inline-flex; }
.logo-mark svg { width: 28px; height: 28px; }
.brand-logo-img {
  display: block;
  width: auto;
  max-width: 180px;
  height: 36px;
  object-fit: contain;
}
.site-brand-logo,
.auth-brand-logo { height: 38px; max-width: 168px; }
a.logo { display: inline-flex; align-items: center; text-decoration: none; }

/* LANDING */
.land-header, .hero {
  background: radial-gradient(900px 420px at 80% 0%, rgba(56,130,246,.45), transparent 60%), linear-gradient(180deg, #071433 0%, #0a1d55 55%, #0b2a78 100%);
  color: #fff;
}
.land-header { display: flex; align-items: center; gap: 18px; padding: 14px 28px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; font-size: 22px; letter-spacing: -.03em; }
.brand strong { font-weight: 800; }
.land-login { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.land-login input {
  background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff;
  border-radius: 8px; padding: 8px 12px; width: 150px;
}
.land-login input::placeholder { color: rgba(255,255,255,.75); }
.btn { border: 0; cursor: pointer; border-radius: 10px; padding: 10px 16px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-2); }
.btn-green { background: var(--whats); color: #fff; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-dark { background: #1f2937; color: #fff; }
.btn-ghost { background: #fff; color: #334155; border: 1px solid var(--line); }
.btn-red { background: var(--red); color: #fff; border-radius: 999px; padding: 14px 22px; font-size: 16px; box-shadow: 0 10px 24px rgba(239,43,58,.35); }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; padding: 18px 48px 54px; align-items: center; }
.kicker { letter-spacing: .14em; font-size: 12px; font-weight: 700; opacity: .85; margin: 0 0 8px; }
.hero h1 { font-size: 54px; line-height: .98; margin: 0 0 16px; font-weight: 800; letter-spacing: -.04em; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lead { max-width: 560px; color: #dbe7ff; line-height: 1.55; margin-bottom: 22px; }
.laptop { background: #0d1224; border-radius: 16px 16px 10px 10px; padding: 10px 10px 0; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.laptop-bar { height: 16px; display: flex; justify-content: flex-end; padding-right: 8px; color: #94a3b8; }
.laptop-screen { background: #f8fafc; color: var(--ink); border-radius: 8px 8px 0 0; min-height: 320px; display: grid; grid-template-columns: 150px 1fr; overflow: hidden; }
.lap-side { background: #0d1b3a; color: #fff; padding: 14px 10px; font-size: 12px; }
.lap-side b { display: block; margin: 0 8px 12px; }
.lap-side span { display: block; padding: 8px; border-radius: 8px; margin-bottom: 4px; color: #cbd5e1; }
.lap-side span.on { background: var(--blue); color: #fff; }
.lap-main { padding: 12px; }
.lap-main h3 { margin: 0 0 8px; font-size: 16px; }
.filters { display: flex; gap: 6px; margin-bottom: 8px; }
.filters i, .fake-row i { font-style: normal; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 11px; color: #475569; }
.table-mini { width: 100%; border-collapse: collapse; font-size: 11px; background: #fff; border-radius: 8px; overflow: hidden; }
.table-mini th { text-align: left; color: #64748b; font-weight: 600; padding: 6px; }
.table-mini td { padding: 6px; border-top: 1px solid #eef2f7; }
.dot-g { width: 14px; height: 14px; border-radius: 50%; background: #22c55e; display: inline-block; }
.section { padding: 54px 48px; }
.section h2 { text-align: center; font-size: 36px; margin: 0 0 8px; color: #123a86; }
.center { text-align: center; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.step { background: #fff; border: 1px solid #e8eef6; border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.step h3 { margin: 10px 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.mini-card { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #f8fbff; font-size: 13px; }
.income { background: linear-gradient(#fff, #f4f8fd); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr) 180px; gap: 14px; margin-top: 22px; }
.plan { background: #fff; border-radius: 16px; padding: 18px; border: 1px solid #e6eef8; box-shadow: var(--shadow); }
.plan .who { color: #64748b; font-size: 13px; }
.plan .big { font-size: 32px; font-weight: 800; color: #123a86; margin: 6px 0; }
.plan small { color: var(--muted); }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding: 12px; }
.chart span { flex: 1; background: linear-gradient(#38bdf8, #2563eb); border-radius: 8px 8px 0 0; }
.offer { margin: 8px 48px 0; background: linear-gradient(90deg, #08215f, #123a9c); color: #fff; border-radius: 18px; padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.offer .from { opacity: .8; text-decoration: line-through; }
.offer .price { font-size: 48px; font-weight: 800; margin: 0; }
.partners { display: flex; justify-content: center; gap: 28px; align-items: center; padding: 28px; flex-wrap: wrap; font-weight: 800; }
.partner { display: flex; align-items: center; gap: 8px; color: #0f172a; }
.yandex { width: 28px; height: 28px; border-radius: 50%; background: #ff2d20; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.land-footer { background: #071433; color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 18px 28px; gap: 12px; flex-wrap: wrap; }
.land-footer a { color: #dbe7ff; text-decoration: none; margin-right: 16px; }
.wa-btn { background: #25d366; color: #fff; border-radius: 999px; padding: 10px 16px; text-decoration: none; font-weight: 800; }

/* APP */
.app-body { background: #e9eef5; min-height: 100vh; }
.topbar {
  background: linear-gradient(180deg, #06122e, #0a1a45);
  color: #fff; display: grid; grid-template-columns: 220px 1fr auto;
  align-items: center; gap: 12px; padding: 10px 18px; position: sticky; top: 0; z-index: 20;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.topnav { display: flex; gap: 8px; align-items: center; justify-content: center; }
.topnav a {
  color: #dbe7ff; text-decoration: none; padding: 9px 14px; border-radius: 10px;
  font-weight: 600; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
}
.topnav a.on, .topnav a:hover { background: var(--blue); color: #fff; border-color: transparent; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.plan-pill { display: flex; align-items: center; gap: 8px; background: #0b214f; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 6px 8px 6px 10px; font-size: 13px; }
.plan-pill b { color: #fbbf24; }
.crown { color: #fbbf24; }
.badge { border-radius: 8px; padding: 4px 8px; font-size: 12px; font-weight: 800; }
.badge.ok { background: #16a34a; }
.badge.off { background: #b91c1c; }
.btn-renew { background: var(--blue); color: #fff; border: 0; border-radius: 8px; padding: 6px 10px; font-weight: 700; cursor: pointer; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 700; }
.user-menu summary::-webkit-details-marker { display: none; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: #2563eb; display: inline-flex; align-items: center; justify-content: center; }
.user-drop { position: absolute; right: 0; top: 34px; background: #fff; color: var(--ink); min-width: 180px; border-radius: 12px; box-shadow: var(--shadow); padding: 8px; }
.user-drop a { display: block; padding: 8px 10px; text-decoration: none; border-radius: 8px; }
.user-drop a:hover { background: #f1f5f9; }
.flash { margin: 12px 16px 0; padding: 10px 14px; border-radius: 10px; background: #dcfce7; color: #166534; }
.flash.err { background: #fee2e2; color: #991b1b; }
.shell { padding: 16px; }
.page-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 16px; }
.page-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.page-head h1 { margin: 0; font-size: 26px; }
.search-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.search-bar select, .search-bar input, .field input, .field select, .field textarea {
  border: 1px solid #d6e0ec; border-radius: 10px; padding: 10px 12px; background: #fff; width: 100%;
}
.grid-table { width: 100%; border-collapse: collapse; }
.grid-table th { text-align: left; font-size: 13px; color: #64748b; padding: 10px; }
.grid-table td { padding: 10px; border-top: 1px solid #eef2f7; vertical-align: middle; }
.biz { display: flex; gap: 10px; align-items: center; }
.biz img { width: 54px; height: 42px; object-fit: cover; border-radius: 8px; }
.stars { color: #f59e0b; font-weight: 700; }
.score { background: #0f172a; color: #fff; border-radius: 999px; font-size: 11px; padding: 2px 6px; margin-left: 6px; }
.tag { display: inline-block; background: #f1f5f9; color: #475569; border-radius: 999px; padding: 2px 8px; font-size: 12px; margin-right: 4px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.icon-wa { width: 34px; height: 34px; border-radius: 10px; background: #25d366; color: #fff; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 800; }

/* EDITOR */
.editor { display: grid; grid-template-columns: minmax(320px, 460px) 64px minmax(360px, 1fr); gap: 8px; align-items: start; }
.form-col, .preview-col { max-height: calc(100vh - 96px); overflow: auto; }
.form-col { padding-right: 4px; }
.block { background: #fff; border: 1px solid #e6eef8; border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.block h2 { margin: 0 0 4px; font-size: 16px; display: flex; gap: 8px; align-items: center; }
.block .hint { color: var(--muted); font-size: 12px; margin: 0 0 10px; }
.num { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.field { margin-bottom: 10px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.color-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.color-row input[type="color"] {
  width: 48px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; background: #fff;
}
.color-row input[type="text"] {
  width: 96px; font-family: ui-monospace, monospace; font-size: 13px;
  padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line);
}
.color-presets { display: flex; gap: 6px; }
.color-chip {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(15,23,42,.15); cursor: pointer; padding: 0;
}
.color-chip:hover { transform: scale(1.08); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.media-row { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: center; }
.thumb { width: 92px; height: 72px; border-radius: 12px; background: #0f172a center/cover no-repeat; border: 1px solid var(--line); }
.btn-row { display: flex; flex-direction: column; gap: 6px; }
.btn-row .btn, .btn-row button { justify-content: center; font-size: 13px; padding: 7px 10px; }
.count { text-align: right; color: #94a3b8; font-size: 12px; }
.item-row { display: grid; grid-template-columns: 54px 1fr 90px 28px; gap: 6px; align-items: center; margin-bottom: 6px; }
.item-row img { width: 54px; height: 40px; object-fit: cover; border-radius: 8px; background: #e2e8f0; }
.bridge { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #64748b; font-size: 12px; padding-top: 80px; gap: 8px; }
.bridge .arrow { font-size: 28px; color: var(--blue); }
.preview-switch { display: flex; justify-content: space-between; margin-bottom: 8px; }
.preview-switch button { background: #fff; border: 1px solid #dbe5f1; border-radius: 10px; padding: 8px 12px; cursor: pointer; font-weight: 700; }
.preview-switch button.on { background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.stage { display: flex; justify-content: center; gap: 12px; }
.desktop-frame { width: min(100%, 560px); background: #111827; border-radius: 16px; padding: 10px; box-shadow: var(--shadow); }
.phone-frame { width: 180px; background: #111827; border-radius: 22px; padding: 8px; box-shadow: var(--shadow); align-self: flex-end; }
.phone-frame .pub { font-size: 8px; }
.phone-frame .pub-hero { min-height: 90px; }
.desktop-frame.solo { width: min(100%, 420px); }
.pub { background: #fff; color: #111; border-radius: 8px; overflow: hidden; }
.pub-top { background: #1f2937; color: #fff; display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 12px; }
.pub-top nav { margin-left: auto; display: flex; gap: 8px; opacity: .9; }
.pub-top .wa { background: #22c55e; color: #fff; border-radius: 999px; padding: 4px 8px; text-decoration: none; font-weight: 700; }
.pub-logo { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: #111; }
.pub-hero { min-height: 180px; background: #222 center/cover no-repeat; display: flex; align-items: flex-end; padding: 16px; color: #fff; }
.pub-hero h3 { margin: 0; font-size: 28px; line-height: 1.05; text-shadow: 0 8px 24px rgba(0,0,0,.45); max-width: 280px; }
.pub h4 { margin: 12px 12px 8px; }
.dishes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 10px 10px; }
.dish { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #eee; font-size: 11px; }
.dish img { height: 58px; width: 100%; object-fit: cover; }
.dish b, .dish span { display: block; padding: 2px 6px; }
.dish span { color: #dc2626; font-weight: 800; }
.shot { margin: 0 10px 10px; height: 120px; border-radius: 10px; background: #ddd center/cover no-repeat; }
.editor-actions { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.modal { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal.show { display: flex; }
.modal-card { background: #fff; border-radius: 16px; padding: 16px; width: min(560px, 100%); max-height: 86vh; overflow: auto; }
.gallery-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery-pick button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.gallery-pick img { height: 72px; width: 100%; object-fit: cover; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.project-card { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #e6eef8; box-shadow: var(--shadow); }
.project-card .cover { height: 120px; background: #ddd center/cover no-repeat; }
.project-card .body { padding: 12px; }
.project-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.project-remove-form { margin: 0; display: inline; }
.btn-danger-text { color: #dc2626 !important; border-color: #fecaca !important; }
.btn-danger-text:hover { background: #fef2f2 !important; }
.project-trash-section { margin-top: 28px; padding: 18px 20px; }
.project-trash-title { margin: 0 0 6px; font-size: 1.05rem; }
.project-trash-lead { margin: 0 0 14px; font-size: 13px; }
.project-trash-list { list-style: none; margin: 0; padding: 0; }
.project-trash-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid #e2e8f0;
}
.project-trash-item:first-child { border-top: 0; padding-top: 0; }
.project-recover-form { margin: 0; }
.admin-section--alert { border-color: #fcd34d; background: linear-gradient(180deg, #fffbeb 0%, #fff 40%); }
.muted { color: var(--muted); }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(700px 300px at 70% 0%, rgba(37,99,235,.35), transparent 50%), #071433; padding: 24px; }
.auth-card { width: min(440px, 100%); background: #fff; border-radius: 18px; padding: 22px; }
.auth-card h1 { margin: 8px 0; }
.legal { max-width: 820px; margin: 32px auto; padding: 0 16px 40px; }
.hide-phone .phone-frame { display: none; }

@media (max-width: 1100px) {
  .hero, .steps, .plans { grid-template-columns: 1fr 1fr; }
  .editor { grid-template-columns: 1fr; }
  .bridge { display: none; }
  .plans { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .topnav a { padding: 8px; font-size: 13px; }
}
@media (max-width: 760px) {
  .land-header, .hero, .section { padding-left: 16px; padding-right: 16px; }
  .hero, .steps { grid-template-columns: 1fr; }
  .land-login { display: none; }
  .offer { margin: 0; flex-direction: column; align-items: flex-start; border-radius: 0; }
  .topbar { grid-template-columns: 1fr; }
  .top-right { width: 100%; justify-self: stretch; }
  .plan-pill { width: 100%; flex-wrap: wrap; }
  .laptop-screen { grid-template-columns: 1fr; }
  .lap-side { display: none; }
  .dishes { grid-template-columns: 1fr 1fr; }
  .phone-frame { display: none; }
  .dash-shell { grid-template-columns: 1fr; }
  .dash-side { display: none; }
}

/* === MOCKUP V2 (prints WhatsApp) === */
.landing-page { background: #fff; }
.land-hero-wrap {
  background:
    radial-gradient(900px 500px at 72% -10%, rgba(56,130,246,.55), transparent 58%),
    linear-gradient(180deg, #04102a 0%, #0a1d55 52%, #0d2a7a 100%);
  color: #fff;
}
.land-header { display: flex; align-items: center; padding: 18px 56px 8px; background: transparent; }
.land-login { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.land-login input {
  width: 170px; border-radius: 10px; border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.06); color: #fff; padding: 10px 12px;
}
.land-enter { border-radius: 10px; padding: 10px 18px; }
.hero { padding: 8px 56px 64px; gap: 36px; }
.hero h1 { font-size: clamp(36px, 4.6vw, 58px); }
.hero .lead { font-size: 15px; line-height: 1.65; }
.play { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.2); align-items: center; justify-content: center; font-size: 11px; }
.laptop { transform: perspective(1200px) rotateY(-8deg); }
.laptop-bar { display: flex; gap: 6px; padding: 6px 10px; }
.laptop-bar span { width: 8px; height: 8px; border-radius: 50%; background: #475569; display: inline-block; }
.laptop-screen { min-height: 340px; border: 1px solid #1e293b; }
.lap-side b { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 14px; }
.chip-go { background: var(--blue) !important; color: #fff !important; border-color: var(--blue) !important; }
.lap-ag { color: var(--blue); font-weight: 700; }
.section .sub { max-width: 760px; margin: 0 auto 8px; }
.mock-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.mock-row span { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 12px; }
.mock-btn { width: 100%; border: 0; background: var(--blue); color: #fff; border-radius: 8px; padding: 8px; font-weight: 700; }
.mock-lead .mock-stars { color: #f59e0b; margin: 6px 0; }
.btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.mock-site img { height: 72px; width: 100%; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.mock-chat p { margin: 0 0 6px; background: #fff; border-radius: 10px; padding: 8px; }
.mock-chat .ok { background: #dcfce7; color: #166534; font-weight: 700; }
.chart-wrap { position: relative; background: #fff; border-radius: 16px; border: 1px solid #e6eef8; box-shadow: var(--shadow); }
.chart-arrow { position: absolute; right: 12px; top: 12px; font-size: 28px; color: var(--blue); font-weight: 800; }
.foot-note { font-size: 13px; margin-top: 16px; }
.offer {
  margin: 0; border-radius: 0; padding: 28px 56px;
  background: linear-gradient(90deg, #06122e, #123a9c);
}
.offer .price { font-size: 20px; font-weight: 600; margin: 4px 0 0; }
.offer .price span { font-size: 46px; font-weight: 800; display: block; line-height: 1; }
.btn-cart { border-radius: 999px; padding: 16px 26px; font-size: 18px; box-shadow: 0 12px 28px rgba(34,197,94,.35); }
.partners-block { padding: 36px 56px 48px; text-align: center; }
.partners-block h2 { margin: 0 0 18px; color: #123a86; font-size: 28px; }
.partner.vercel { color: #111; }
.partner.host { color: #673de6; }
.land-footer .foot-links a { margin-right: 20px; }
.fab-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  background: #25d366; color: #fff; text-decoration: none; font-weight: 800;
  padding: 12px 18px; border-radius: 999px; box-shadow: 0 12px 28px rgba(37,211,102,.45);
}

.shell { padding: 14px; max-width: 1480px; margin: 0 auto; }
.shell-editor { padding: 10px 14px 20px; max-width: none; }
.dash-shell {
  display: grid; grid-template-columns: 210px 1fr; gap: 0;
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(15,35,80,.12); min-height: calc(100vh - 110px);
}
.dash-side {
  background: linear-gradient(180deg, #0b1738, #0a1530);
  color: #cbd5e1; padding: 16px 10px;
}
.dash-side-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #fff; padding: 8px 10px 16px; font-size: 14px; }
.dash-link {
  display: block; text-decoration: none; color: #cbd5e1; padding: 10px 12px; border-radius: 10px;
  margin-bottom: 4px; font-size: 13px; font-weight: 600;
}
.dash-link.on, .dash-link:hover { background: var(--blue); color: #fff; }
.dash-main { padding: 18px 20px; background: #f8fafc; }
.dash-title { margin: 0 0 14px; font-size: 22px; color: #0f172a; }
.dash-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px; }
.filter-box { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #64748b; }
.filter-box select, .filter-box input { min-width: 180px; border: 1px solid #d6e0ec; border-radius: 10px; padding: 9px 10px; background: #fff; }
.filter-box.grow { flex: 1; min-width: 200px; }
.filter-check { font-size: 13px; color: #475569; padding-bottom: 8px; }
.dash-table-wrap { background: #fff; border: 1px solid #e6eef8; border-radius: 12px; overflow: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dash-table th { text-align: left; color: #64748b; padding: 12px; background: #f8fafc; border-bottom: 1px solid #eef2f7; }
.dash-table td { padding: 12px; border-top: 1px solid #eef2f7; vertical-align: middle; }
.dash-table .empty { padding: 24px; color: #64748b; }
.wa-pill {
  display: inline-flex; background: #25d366; color: #fff; text-decoration: none;
  border-radius: 8px; padding: 6px 10px; font-weight: 700; font-size: 12px;
}

.is-editor .block { box-shadow: 0 8px 24px rgba(15,35,80,.06); border-color: #e8eef6; }
.is-editor .bridge {
  background: #fff; border-radius: 999px; width: 56px; height: 56px; padding: 0;
  box-shadow: var(--shadow); margin-top: 120px;
}
.is-editor .bridge .arrow { margin: 0; }
.is-editor .bridge div:last-child { display: none; }
.editor-actions { gap: 12px; }
.btn-vercel { background: #1f2937; color: #fff; border-radius: 12px; padding: 12px 18px; font-weight: 700; }
.btn-save { background: #2563eb; color: #fff; border-radius: 12px; padding: 12px 22px; font-weight: 700; border: 0; cursor: pointer; }
.btn-hostinger {
  background: #fff; color: #673de6; border: 2px solid #673de6; border-radius: 12px;
  padding: 12px 18px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.host-mark {
  width: 22px; height: 22px; border-radius: 6px; background: #673de6; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}
.preview-switch button.on { border-color: var(--blue); color: var(--blue); box-shadow: 0 8px 20px rgba(37,99,235,.15); }

.shell-buscar { max-width: 1180px; }
.dash-sub { margin: -6px 0 14px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.dash-section-title { margin: 22px 0 10px; font-size: 18px; color: #0f172a; }
.admin-stats { margin-bottom: 4px; }

.buscar-laptop-wrap { margin-bottom: 8px; }
.buscar-filters {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; align-items: center;
}
.buscar-filters select,
.buscar-filters input {
  flex: 1 1 120px; min-width: 0;
  border: 1px solid #d6e0ec; border-radius: 8px; padding: 7px 8px; font-size: 12px; background: #fff;
}
.buscar-table-scroll { max-height: min(52vh, 420px); overflow: auto; -webkit-overflow-scrolling: touch; }
.buscar-actions { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.buscar-actions .inline-form { display: inline; margin: 0; }
.buscar-actions .modal { text-indent: 0; }

.buscar-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px;
}
.buscar-steps article {
  background: #fff; border: 1px solid #e6eef8; border-radius: 12px; padding: 12px;
  display: flex; gap: 10px; align-items: flex-start; box-shadow: 0 8px 20px rgba(15,35,80,.05);
}
.buscar-steps article > span {
  width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff;
  font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.buscar-steps h3 { margin: 0 0 4px; font-size: 14px; }
.buscar-steps p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; }

@media (max-width: 900px) {
  .buscar-steps { grid-template-columns: 1fr 1fr; }
}
.kpi-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px;
}
.kpi-card {
  background: #fff; border: 1px solid #e6eef8; border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 8px 22px rgba(15,35,80,.06);
}
.kpi-card.kpi-warn { border-color: #fed7aa; background: linear-gradient(180deg, #fff, #fff7ed); }
.kpi-label { display: block; font-size: 12px; color: #64748b; font-weight: 600; margin-bottom: 6px; }
.kpi-val { font-size: 22px; font-weight: 800; color: #0f172a; display: block; }
.kpi-val-lg { font-size: 32px; }
.kpi-meta { font-size: 12px; color: #94a3b8; display: block; margin-top: 4px; }
.kpi-link { font-size: 12px; font-weight: 700; color: var(--blue); text-decoration: none; margin-top: 8px; display: inline-block; }
.kpi-hero { margin-top: 12px; max-width: 360px; }

.dash-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dash-two-col-form { grid-template-columns: minmax(280px, 360px) 1fr; align-items: start; }
.dash-panel {
  background: #fff; border: 1px solid #e6eef8; border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 8px 22px rgba(15,35,80,.05);
}
.dash-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; }
.dash-panel-head h2 { margin: 0; font-size: 16px; }
.dash-panel-head a { font-size: 13px; font-weight: 700; color: var(--blue); text-decoration: none; }

.rev-chart { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding: 8px 4px 0; }
.rev-bar { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.rev-fill { width: 100%; max-width: 48px; background: linear-gradient(180deg, #60a5fa, #2563eb); border-radius: 8px 8px 4px 4px; min-height: 4px; }
.rev-bar span { font-size: 10px; color: #64748b; margin-top: 6px; }

.quick-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.quick-card {
  display: block; text-decoration: none; color: #0f172a; font-weight: 700; font-size: 13px;
  padding: 14px; border-radius: 12px; border: 1px solid #e6eef8; background: #f8fafc;
}
.quick-card:hover { border-color: var(--blue); color: var(--blue); }

.admin-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.admin-form input, .admin-form select, .admin-form textarea {
  width: 100%; margin-top: 4px; border: 1px solid #d6e0ec; border-radius: 10px; padding: 9px 10px;
}
.inline-filter select { border-radius: 10px; padding: 8px 10px; border: 1px solid #d6e0ec; }
.rel-filters { background: #fff; border-radius: 12px; padding: 12px; border: 1px solid #e6eef8; margin-bottom: 12px; }
.tag-warn { background: #ffedd5; color: #c2410c; }
.modelo-grid { margin-top: 4px; }

@media (max-width: 900px) {
  .dash-two-col, .dash-two-col-form { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .buscar-laptop-wrap .ref-bg { display: none; }
  .buscar-laptop-wrap .ref-canvas { width: 100%; line-height: normal; }
  .buscar-laptop-wrap .ref-buscar-panel {
    position: static; left: auto; top: auto; width: 100%; height: auto;
    background: #fff; border-radius: 12px; border: 1px solid #e6eef8; padding: 12px;
  }
  .buscar-table-scroll { max-height: none; }
  .buscar-steps { grid-template-columns: 1fr; }
  .ref-buscar-panel .dash-table { font-size: 12px; }
  .ref-buscar-panel th:nth-child(2),
  .ref-buscar-panel td:nth-child(2) { display: none; }
}
