/* Venu: organizer panel, landing and system pages. Clean light UI with the brand gradient as accent. */
:root {
  --bg: #f6f6fa;
  --card: #ffffff;
  --ink: #0b0f17;
  --muted: #5d6275;
  --subtle: #9094a6;
  --line: #e7e7ef;
  --line-2: #d9d9e4;
  --blue: #2563eb;
  --violet: #7c3aed;
  --pink: #ec4899;
  --grad: linear-gradient(120deg, #2563eb 0%, #7c3aed 52%, #ec4899 100%);
  --ok: #16a34a;
  --warn: #b45309;
  --err: #dc2626;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 18, 40, .04), 0 8px 24px -16px rgba(16, 18, 40, .18);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.15; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.icon { flex-shrink: 0; }
.muted { color: var(--muted); }
.hint { color: var(--subtle); font-size: 13.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.link { color: var(--violet); font-weight: 600; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
code { font: 600 13.5px ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .04em; }

/* ---- Brand --------------------------------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 23px; letter-spacing: -0.05em; }
.brand img { width: 30px; height: 30px; }
.brand small { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: var(--subtle); text-transform: uppercase; margin-left: 2px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Buttons and inputs --------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 11px; border: 1px solid transparent; font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap; transition: background-color .15s, box-shadow .2s, transform .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 18px -8px rgba(11, 15, 23, .6); }
.btn-primary:hover { background: #1c2130; }
.btn-secondary { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-secondary:hover { border-color: #c4c4d2; background: #fbfbfd; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: #efeff5; color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn.danger { color: var(--err); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15.5px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.locked { opacity: .55; }
.btn[disabled] { pointer-events: none; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: #efeff5; color: var(--ink); }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > span, .field legend { font-size: 13.5px; font-weight: 600; color: #2b2f3d; padding: 0; }
.field em { font-style: normal; font-weight: 400; color: var(--subtle); }
.field small { color: var(--subtle); font-size: 12.5px; }
.field input:not([type=checkbox]):not([type=radio]):not([type=color]), .field select, .field textarea, .copy-row input, .search input, .code-form input {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 14.5px; transition: border-color .15s, box-shadow .15s; }
.field textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .copy-row input:focus, .search input:focus, .code-form input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 58, 237, .15); }
.field input[type=file] { height: auto; padding: 8px; font-size: 13px; }
.color-input { width: 64px; height: 42px; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; }
.input-affix { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; overflow: hidden; }
.input-affix:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 58, 237, .15); }
.input-affix input { border: 0 !important; box-shadow: none !important; min-width: 0; flex: 1; border-radius: 0 !important; }
.input-affix em { display: grid; place-items: center; padding: 0 10px; background: #f6f6fa; color: var(--muted); font-style: normal; font-size: 13.5px; white-space: nowrap; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .row-2 { grid-template-columns: 1fr; } }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--violet); }
.seg { display: inline-flex; padding: 4px; border-radius: 11px; background: #efeff5; gap: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16, 18, 40, .12); }
.seg input:focus-visible + span { outline: 2px solid var(--violet); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.chip:hover { border-color: var(--violet); color: var(--violet); }
.chip-ok { background: #ecfdf3; border-color: #bbf0cf; color: var(--ok); }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; border: 1px solid; }
.alert .icon { margin-top: 1px; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.flashes { display: grid; gap: 8px; margin-bottom: 18px; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #efeff5; color: var(--muted); white-space: nowrap; }
.badge-ok { background: #ecfdf3; color: var(--ok); }
.badge-warn { background: #fffbeb; color: var(--warn); }
.badge-pro { background: linear-gradient(120deg, rgba(124, 58, 237, .12), rgba(236, 72, 153, .12)); color: #7c2d92; }
.badge-offer { background: #ecfdf3; color: var(--ok); }
.callout { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: linear-gradient(120deg, rgba(37, 99, 235, .06), rgba(236, 72, 153, .06)); border: 1px solid #e4defa; margin-bottom: 18px; }
.callout > .icon { color: var(--violet); }
.callout div { flex: 1; }
.callout p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.callout-sm { padding: 12px 14px; margin: 0; }
@media (max-width: 640px) { .callout { flex-wrap: wrap; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.form, .card > .form, .form-section { padding: 22px; }
.card-title { font-size: 16px; }
.card-head { display: flex; justify-content: space-between; gap: 12px; }
.card-head p { margin-top: 4px; font-size: 14px; }

/* ---- Panel layout ------------------------------------------------------------------------------ */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 20px 14px; background: #fff; border-right: 1px solid var(--line); }
.side-top { display: grid; gap: 16px; padding: 0 6px; }
.org-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s; }
.org-chip:hover { border-color: var(--line-2); }
.org-chip .icon { color: var(--subtle); }
.org-logo { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; background: var(--c, var(--violet)); color: #fff; font-weight: 700; overflow: hidden; }
.org-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.org-logo.big { width: 72px; height: 72px; border-radius: 18px; font-size: 26px; }
.org-text { display: grid; min-width: 0; flex: 1; line-height: 1.3; }
.org-text b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-text small { color: var(--subtle); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--muted); transition: background-color .15s, color .15s; }
.side-nav a:hover { background: #f4f4f8; color: var(--ink); }
.side-nav a.active { background: #f1effd; color: var(--violet); }
.side-nav em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; color: var(--ok); }
.nav-pro .icon { color: #c026d3; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 12px 6px 0; border-top: 1px solid var(--line); }
.who { flex: 1; min-width: 0; display: grid; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.who small { font-weight: 400; color: var(--subtle); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main { padding: 30px clamp(16px, 3vw, 40px) 60px; max-width: 1160px; width: 100%; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-top { display: flex; align-items: center; gap: 10px; padding: 0; flex: 1; min-width: 0; }
  .org-chip { min-width: 0; padding: 5px 8px; }
  .org-chip .org-text small, .org-chip > .icon { display: none; }
  .side-nav { order: 3; width: 100%; display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .side-nav a { padding: 7px 10px; white-space: nowrap; font-size: 13.5px; }
  .side-nav em { display: none; }
  .side-foot { margin: 0; padding: 0; border: 0; }
  .who { display: none; }
  .main { padding-top: 20px; }
}
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(24px, 3vw, 30px); }
.page-head p { color: var(--muted); margin-top: 6px; }
.narrow { max-width: 640px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.back:hover { color: var(--ink); }
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 48px 20px; color: var(--muted); }
.empty h2 { color: var(--ink); font-size: 20px; margin-top: 6px; }
.empty p { max-width: 420px; }
.empty .btn { margin-top: 8px; }

/* Events list */
.event-list { display: grid; gap: 10px; margin-top: 12px; }
.event-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 220px auto; align-items: center; gap: 16px; padding: 14px 16px; transition: border-color .15s, transform .2s var(--ease); }
.event-row:hover { border-color: var(--line-2); transform: translateY(-1px); }
.event-row.past { opacity: .7; }
.date-tile { display: grid; place-items: center; width: 52px; height: 56px; border-radius: 12px; background: #f4f2fe; color: var(--violet); line-height: 1.05; }
.date-tile b { font-size: 21px; }
.date-tile small { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.event-row-main { display: grid; min-width: 0; }
.event-row-main b { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-row-main small, .event-row-stats small { color: var(--subtle); font-size: 13px; }
.event-row-stats { display: grid; gap: 6px; }
.bar { display: block; height: 6px; border-radius: 99px; background: #efeff5; overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: var(--grad); }
@media (max-width: 760px) { .event-row { grid-template-columns: auto minmax(0, 1fr) auto; } .event-row-stats { grid-column: 2 / -1; } }

/* Event header and tabs */
.event-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.event-head h1 { font-size: clamp(22px, 3vw, 28px); }
.event-head .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 14px; }
.event-head .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); margin: 0 4px; }
.event-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 2px; margin: 22px 0 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); border-bottom-color: var(--violet); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stats:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .stats, .stats:has(> :nth-child(3):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 16px; display: grid; gap: 6px; }
.stat span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 600; }
.stat b { font-size: 26px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.cols > .card { padding: 20px; display: grid; gap: 14px; align-content: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
.copy-row { display: flex; gap: 8px; }
.share-row { display: flex; gap: 6px; flex-wrap: wrap; }
.type-progress { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.type-progress li { display: grid; gap: 6px; }
.type-progress li.off { opacity: .5; }
.type-progress li div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.type-progress small { color: var(--subtle); }
.checklist { padding: 20px; }
.checklist ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); }
.checklist li.ok { color: var(--ink); }
.checklist .check { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #efeff5; color: var(--subtle); }
.checklist li.ok .check { background: var(--ok); color: #fff; }
.danger-zone { margin-top: 18px; }

/* Event details */
.cover-field { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
.cover-preview { aspect-ratio: 16 / 9; border-radius: 12px; background: #f1f1f6 center / cover no-repeat; display: grid; place-items: center; color: var(--subtle); border: 1px dashed var(--line-2); }
.cover-preview span { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
@media (max-width: 640px) { .cover-field { grid-template-columns: 1fr; } }

/* Ticket types */
.type-rows { display: grid; gap: 12px; }
.type-row { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fcfcfe; }
.type-row-grid { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .type-row-grid { grid-template-columns: 1fr 1fr; } }
.type-row-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.type-row-foot .btn { margin-left: auto; }

/* Page editor */
.editor { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .editor { grid-template-columns: 1fr; } }
.editor-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.editor-bar { display: flex; justify-content: space-between; align-items: center; }
.save-state { font-size: 12.5px; font-weight: 600; color: var(--subtle); }
.save-state.saving { color: var(--violet); }
.save-state.error { color: var(--err); }
.blocks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.block { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .2s; }
.block.open { border-color: #cfc5f7; box-shadow: 0 0 0 3px rgba(124, 58, 237, .08); }
.block-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; cursor: pointer; user-select: none; }
.block-head .b-ic { color: var(--violet); display: grid; }
.block-head b { font-size: 14px; }
.block-head small { color: var(--subtle); font-size: 12.5px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block-tools { display: flex; gap: 2px; }
.block-tools .icon-btn { width: 30px; height: 30px; }
.block-body { display: grid; gap: 12px; padding: 4px 14px 16px; }
.block:not(.open) .block-body { display: none; }
.block-body .img-pick { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.block-body .thumb { width: 84px; height: 56px; border-radius: 8px; object-fit: cover; background: #f1f1f6; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.thumbs span { position: relative; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.thumbs button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(11, 15, 23, .75); color: #fff; display: grid; place-items: center; cursor: pointer; }
.faq-items { display: grid; gap: 10px; }
.faq-item { display: grid; gap: 6px; padding: 10px; border-radius: 10px; background: #f8f8fb; }
.add-menu { padding: 14px; border: 1px dashed var(--line-2); border-radius: 14px; background: #fff; }
.add-title { display: block; font-size: 12.5px; font-weight: 700; color: var(--subtle); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.add-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.add-btn { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: border-color .15s, color .15s; }
.add-btn:hover { border-color: var(--violet); color: var(--violet); }
.add-btn em { font-style: normal; display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; color: #a21caf; }
.add-btn.locked { opacity: .6; }
.editor-preview { position: sticky; top: 20px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.preview-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafafc; }
.preview-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #e2e2ea; }
.preview-bar small { margin-left: 8px; color: var(--subtle); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.device-toggle { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: #efeff5; }
.device-toggle button { border: 0; background: none; padding: 4px 10px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.device-toggle button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.preview-frame { height: calc(100vh - 120px); min-height: 560px; display: flex; justify-content: center; background: #ececf2; }
.preview-frame iframe { width: 100%; height: 100%; border: 0; background: #fff; transition: width .3s var(--ease); }
.preview-frame.mobile iframe { width: 390px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
@media (max-width: 1100px) { .editor-preview { position: static; } .preview-frame { height: 640px; } }

/* Email editor */
.cols-email { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.email-preview { overflow: hidden; position: sticky; top: 20px; padding: 0 !important; }
.email-preview iframe { width: 100%; height: 720px; border: 0; display: block; }
.vars { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.quota { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }

/* Attendees */
.toolbar { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin: 4px 0 14px; }
.toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.search { position: relative; flex: 1; max-width: 380px; min-width: 220px; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--subtle); }
.search input { padding-left: 36px !important; }
.orders { display: grid; gap: 10px; }
.order { padding: 14px 16px; }
.order-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.order-head > div:first-child { display: grid; }
.order-head small { color: var(--subtle); font-size: 13px; }
.order-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tickets { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.tickets li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; background: #f8f8fb; font-size: 14px; }
.tickets li span { flex: 1; color: var(--muted); }
.tickets li.in code { color: var(--ok); }
.modal { width: min(560px, calc(100% - 32px)); border: 0; border-radius: 18px; padding: 22px; box-shadow: 0 30px 80px -20px rgba(16, 18, 40, .45); }
.modal::backdrop { background: rgba(11, 15, 23, .45); backdrop-filter: blur(2px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h2 { font-size: 19px; }

/* Check-in */
.checkin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .checkin { grid-template-columns: 1fr; } }
.checkin-cam { padding: 18px; display: grid; gap: 14px; }
.camera { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #0b0f17; }
.camera video { width: 100%; height: 100%; object-fit: cover; }
.camera-idle { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: #9aa0b4; }
.camera .frame { position: absolute; inset: 18%; border: 3px solid rgba(255, 255, 255, .85); border-radius: 18px; box-shadow: 0 0 0 999px rgba(11, 15, 23, .35); pointer-events: none; }
.camera-idle:not([hidden]) ~ .frame { display: none; }
.code-form { display: flex; gap: 8px; }
.code-form input { text-transform: uppercase; font-family: ui-monospace, Menlo, monospace; }
.code-form input::placeholder { text-transform: none; font-family: var(--font); }
.checkin-result { min-height: 320px; padding: 24px; display: grid; place-items: center; text-align: center; transition: background-color .3s; }
.result-idle { display: grid; justify-items: center; gap: 10px; color: var(--subtle); }
.result { display: grid; justify-items: center; gap: 8px; animation: pop .35s var(--ease); }
.result .r-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.result h2 { font-size: 26px; }
.result p { color: var(--muted); }
.result b.name { font-size: 18px; }
.checkin-result.ok { background: #f0fdf4; } .checkin-result.ok .r-ic { background: var(--ok); }
.checkin-result.used, .checkin-result.other { background: #fffbeb; } .checkin-result.used .r-ic, .checkin-result.other .r-ic { background: #d97706; }
.checkin-result.invalid { background: #fef2f2; } .checkin-result.invalid .r-ic { background: var(--err); }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }

/* Settings */
.form-section { margin-bottom: 16px; display: grid; gap: 18px; scroll-margin-top: 80px; }
.section-head h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.section-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.logo-field { display: flex; align-items: center; gap: 18px; }
.providers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 860px) { .providers { grid-template-columns: 1fr; } }
.provider { display: grid; gap: 12px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fcfcfe; }
.provider-head { display: flex; justify-content: space-between; align-items: center; }
.provider-head b { font-size: 16px; }
.provider > p { font-size: 13.5px; }
.domain-status { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.steps-list b, .steps-list code { color: var(--ink); }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.grow { flex: 1; min-width: 220px; }

/* Pro */
.pro-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 26px; align-items: start; }
@media (max-width: 960px) { .pro-hero { grid-template-columns: 1fr; } }
.pro-hero h2 { font-size: 24px; margin: 12px 0 6px; }
.pro-hero .form-actions { margin-top: 16px; }
.pro-hero .hint { margin-top: 10px; }
.price-line { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 10px; }
.price-line .was { color: var(--subtle); text-decoration: line-through; font-size: 18px; }
.price-line .now { font-size: 42px; font-weight: 800; letter-spacing: -0.04em; }
.price-line .per { color: var(--muted); }
.compare { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 13.5px; }
.compare-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px 80px; gap: 8px; padding: 9px 14px; border-top: 1px solid var(--line); align-items: center; }
.compare-row.head { border-top: 0; background: #fafafc; font-size: 12.5px; }
.compare-row em { font-style: normal; text-align: center; color: var(--subtle); }
.compare-row em.yes { color: var(--ink); font-weight: 600; }
.compare-row b { text-align: center; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { padding: 18px; }
.feature h3 { font-size: 15.5px; margin-top: 12px; }
.feature p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.feature-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, rgba(37, 99, 235, .1), rgba(236, 72, 153, .12)); color: var(--violet); }

/* ---- Error page ------------------------------------------------------------------------------------- */
.error-body { background: #fff; }
.error-page { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; }
.error-page .brand { margin-bottom: 24px; }
.error-code { font-size: 64px; font-weight: 800; letter-spacing: -0.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.error-page h1 { font-size: 24px; }
.error-page p { color: var(--muted); max-width: 420px; margin-bottom: 10px; }

/* ---- Landing --------------------------------------------------------------------------------------- */
.landing { background: #fff; overflow-x: clip; }
.l-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.l-top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.l-top.scrolled { border-bottom-color: var(--line); }
.l-top .l-wrap { display: flex; justify-content: space-between; align-items: center; height: 68px; }
.l-top nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 14.5px; color: var(--muted); }
.l-top nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 640px) { .hide-sm { display: none; } }
.l-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 40px; }
@media (max-width: 940px) { .l-hero { grid-template-columns: 1fr; padding-top: 36px; } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 99px; background: #f6f4fe; border: 1px solid #e6e0fb; font-size: 13px; color: var(--muted); }
.pill span { padding: 2px 9px; border-radius: 99px; background: var(--grad); color: #fff; font-weight: 700; font-size: 11.5px; }
.l-hero h1 { margin-top: 20px; font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -0.05em; line-height: 1.02; }
.lead { margin-top: 18px; font-size: clamp(16.5px, 1.7vw, 19px); color: var(--muted); max-width: 540px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-points { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14px; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .icon { color: var(--ok); }

.l-mock { position: relative; padding: 20px 20px 50px; }
.l-mock::before { content: ''; position: absolute; inset: 10% 0 0 10%; border-radius: 40px; background: var(--grad); opacity: .14; filter: blur(50px); }
.mock-browser { position: relative; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(40, 30, 90, .35); overflow: hidden; animation: float 7s ease-in-out infinite; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #fafafc; border-bottom: 1px solid var(--line); }
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: #e2e2ea; }
.mock-bar small { margin-left: 6px; font-size: 11.5px; color: var(--subtle); }
.mock-cover { position: relative; height: 150px; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: linear-gradient(135deg, #1e1b4b, #4c1d95 50%, #be185d); overflow: hidden; }
.mock-glow { position: absolute; width: 180px; height: 180px; right: -40px; top: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .35), transparent 65%); }
.mock-cover b { font-size: 24px; letter-spacing: -0.03em; }
.mock-cover small { opacity: .85; font-size: 12.5px; }
.mock-body { padding: 16px; display: grid; gap: 10px; }
.mock-line { height: 8px; border-radius: 99px; background: #eeeef4; }
.w80 { width: 80%; } .w60 { width: 60%; }
.mock-type { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.mock-type span:first-child { display: grid; }
.mock-type small { color: var(--muted); }
.mock-qty { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.mock-qty i { font-style: normal; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: #f1f1f6; }
.mock-buy { display: flex; justify-content: space-between; align-items: center; padding-top: 4px; font-size: 13px; }
.mock-buy em { font-style: normal; padding: 9px 14px; border-radius: 10px; background: #7c3aed; color: #fff; font-weight: 700; }
.mock-ticket { position: absolute; right: -14px; bottom: -22px; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px -20px rgba(40, 30, 90, .4); animation: float 6s ease-in-out -2s infinite; }
.mock-qr { display: grid; grid-template-columns: repeat(7, 7px); gap: 1px; }
.mock-qr i { width: 7px; height: 7px; background: #eeeef4; }
.mock-qr i.on { background: var(--ink); }
.mock-ticket div:last-child { display: grid; font-size: 12px; }
.mock-ticket b { font: 700 14px ui-monospace, Menlo, monospace; letter-spacing: .06em; }
.mock-ticket .ok { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 700; }
.mock-toast { position: absolute; left: -4px; top: 46%; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 13px; box-shadow: 0 20px 40px -18px rgba(11, 15, 23, .6); animation: float 6s ease-in-out -4s infinite; }
@media (max-width: 560px) { .mock-toast { left: 6px; top: auto; bottom: 0; } .mock-ticket { right: 4px; bottom: -36px; } }
@keyframes float { 50% { transform: translateY(-8px); } }

.l-section { padding-top: 100px; scroll-margin-top: 60px; }
.l-head { text-align: center; max-width: 660px; margin: 0 auto 40px; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.l-head h2 { margin-top: 10px; font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.04em; }
.l-head p { margin-top: 12px; color: var(--muted); font-size: 16.5px; }
.l-steps, .l-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .l-steps, .l-features { grid-template-columns: 1fr; } }
.l-step, .l-feature { padding: 24px; }
.l-step .num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--grad); color: #fff; font-weight: 800; }
.l-step h3, .l-feature h3 { margin-top: 16px; font-size: 18px; }
.l-step p, .l-feature p { margin-top: 8px; color: var(--muted); }
.l-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 880px; margin: 0 auto; }
@media (max-width: 760px) { .l-plans { grid-template-columns: 1fr; } }
.l-plan { position: relative; padding: 28px; display: grid; gap: 12px; align-content: start; }
.l-plan h3 { display: flex; align-items: center; gap: 8px; font-size: 22px; }
.l-plan ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.l-plan li { display: flex; gap: 8px; align-items: flex-start; }
.l-plan li .icon { color: var(--ok); margin-top: 3px; }
.l-plan-pro { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }
.ribbon { position: absolute; top: -13px; left: 24px; padding: 4px 12px; border-radius: 99px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; }
.faq { display: grid; gap: 10px; max-width: 760px; margin: 0 auto; }
.faq details { padding: 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--subtle); transition: transform .3s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }
.l-cta { margin-top: 100px; padding: 56px 24px; border-radius: 28px; text-align: center; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #2563eb, transparent 55%), radial-gradient(120% 140% at 100% 100%, #ec4899, transparent 55%), #4c1d95; }
.l-cta h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -0.04em; }
.l-cta p { margin: 10px 0 24px; opacity: .85; }
.l-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 48px; padding-bottom: 40px; color: var(--subtle); font-size: 13.5px; }
.l-foot a:hover { color: var(--ink); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
