/* 7u8.su — design tokens */
:root {
  /* Base surfaces */
  --page: #F7F5F0;
  --card: #FFFFFF;
  --hover: #F2EFE9;
  --border: #E8E4DB;
  --border-strong: #D9D4C8;

  /* Text */
  --ink: #1A1A1F;
  --muted: #7B7B85;
  --placeholder: #A8A8B0;

  /* Top bar */
  --bar: #13141A;
  --bar-ink: #E8E8EE;
  --bar-muted: #8E8E98;

  /* Accents */
  --yellow: #FFE066;
  --yellow-hover: #F5D24E;
  --yellow-ink: #1A1A1F;

  /* Pastels */
  --lav-bg: #DDD6FE;   --lav-ink: #5B21B6;
  --mint-bg: #A7F3D0;  --mint-ink: #065F46;
  --sky-bg: #BAE6FD;   --sky-ink: #075985;
  --pink-bg: #FBCFE8;  --pink-ink: #9D174D;
  --peach-bg: #FED7AA; --peach-ink: #9A3412;
  --lemon-bg: #FEF08A; --lemon-ink: #854D0E;

  /* Functional */
  --success: #22C55E;
  --danger: #EF4444;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(20, 20, 30, 0.04);
  --shadow: 0 1px 3px rgba(20, 20, 30, 0.04), 0 1px 2px rgba(20, 20, 30, 0.03);
  --shadow-md: 0 4px 16px rgba(20, 20, 30, 0.06), 0 1px 2px rgba(20, 20, 30, 0.04);
  --shadow-lg: 0 20px 50px rgba(20, 20, 30, 0.12), 0 4px 12px rgba(20, 20, 30, 0.06);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Easing */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
body { font-family: 'Inter', sans-serif; }
.mono { font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace; }

button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--r-sm);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), box-shadow 150ms var(--ease);
  cursor: pointer;
  user-select: none;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn-md { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 18px; font-size: 14px; }

.btn-primary { background: var(--yellow); color: var(--yellow-ink); }
.btn-primary:hover:not(:disabled) { background: var(--yellow-hover); }
.btn-primary:active:not(:disabled) { background: #EBC739; }

.btn-secondary { background: var(--card); color: var(--ink); border: 1px solid var(--border); }
.btn-secondary:hover:not(:disabled) { background: var(--hover); border-color: var(--border-strong); }

.btn-ghost { color: var(--ink); }
.btn-ghost:hover:not(:disabled) { background: var(--hover); }

.btn-danger { color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: #FEF2F2; }

.btn-icon { width: 32px; height: 32px; padding: 0; border-radius: 8px; }
.btn-icon.btn-ghost:hover { background: var(--hover); }

.btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* ========== Inputs ========== */
.input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: 13px;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
  outline: none;
}
.input::placeholder { color: var(--placeholder); }
.input:hover { border-color: var(--border-strong); }
.input:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 224, 102, 0.3); }
.input.error { border-color: var(--danger); }

.input-lg { height: 44px; padding: 0 14px; font-size: 14px; }
.input-xl { height: 64px; padding: 0 20px; font-size: 16px; border-radius: var(--r-md); }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .input { padding-left: 36px; }
.input-wrap .input-icon {
  position: absolute; left: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--muted); pointer-events: none;
}

select.input {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2399A3B0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center;
  cursor: pointer;
}

/* ========== Pills/Badges ========== */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.pill-sm { height: 20px; font-size: 11px; padding: 0 8px; }
.pill-outline { background: var(--card); color: var(--ink); border: 1px solid var(--border); }

.pill-lav { background: var(--lav-bg); color: var(--lav-ink); }
.pill-mint { background: var(--mint-bg); color: var(--mint-ink); }
.pill-sky { background: var(--sky-bg); color: var(--sky-ink); }
.pill-pink { background: var(--pink-bg); color: var(--pink-ink); }
.pill-peach { background: var(--peach-bg); color: var(--peach-ink); }
.pill-lemon { background: var(--lemon-bg); color: var(--lemon-ink); }
.pill-yellow { background: var(--yellow); color: var(--yellow-ink); }

.pill-dot { width: 6px; height: 6px; border-radius: 999px; display: inline-block; flex-shrink: 0; }

/* ========== Checkbox ========== */
.cb {
  width: 16px; height: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--card);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 120ms var(--ease);
  flex-shrink: 0;
}
.cb:hover { border-color: var(--ink); }
.cb.checked { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.cb.checked svg { display: block; }
.cb svg { display: none; }
.cb.indeterminate { background: var(--yellow); border-color: var(--yellow); }
.cb.indeterminate::after { content: ''; width: 8px; height: 2px; background: var(--ink); border-radius: 1px; }
.cb.indeterminate svg { display: none; }

/* ========== Bulk action bar ========== */
.bulkbar {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-lg);
  box-shadow: 0 14px 40px rgba(0,0,0,0.18);
  z-index: 90;
  min-width: 360px;
  animation: bulkbar-in 180ms var(--ease);
}
.bulkbar .btn-secondary { background: rgba(255,255,255,0.1); color: #fff; border-color: transparent; }
.bulkbar .btn-secondary:hover { background: rgba(255,255,255,0.18); }
.bulkbar .btn-ghost { color: rgba(255,255,255,0.7); }
.bulkbar .btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.bulkbar .menu { background: var(--card); color: var(--ink); }
@keyframes bulkbar-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ========== Card / table ========== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

/* ========== Top bar ========== */
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: 56px;
  background: var(--bar);
  color: var(--bar-ink);
  display: flex; align-items: center;
  padding: 0 24px;
  gap: 16px;
  letter-spacing: 0.01em;
}
.topbar .brand { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; color: var(--bar-ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.topbar .brand .dot { color: var(--bar-muted); font-weight: 500; }
.topbar .brand-logo { color: var(--yellow); display: block; }

.tab-group { display: inline-flex; align-items: center; gap: 2px; background: rgba(255,255,255,0.04); padding: 4px; border-radius: var(--r-pill); }
.tab {
  height: 32px; padding: 0 16px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500;
  color: var(--bar-muted);
  border-radius: var(--r-pill);
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms var(--ease), color 150ms var(--ease);
}
.tab:hover { color: var(--bar-ink); }
.tab.active { background: #FFFFFF; color: var(--bar); font-weight: 600; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar-icon {
  width: 34px; height: 34px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--bar-ink);
  transition: background 150ms var(--ease);
  cursor: pointer;
  position: relative;
}
.topbar-icon:hover { background: rgba(255,255,255,0.08); }

.plan-badge {
  height: 26px; padding: 0 10px;
  font-size: 11px; font-weight: 600;
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.plan-free { background: var(--lav-bg); color: var(--lav-ink); }
.plan-paid { background: var(--yellow); color: var(--yellow-ink); }

.avatar {
  width: 32px; height: 32px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  flex-shrink: 0;
  cursor: pointer;
}

/* ========== Page layout ========== */
.page-shell { min-height: 100vh; background: var(--page); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* Banner */
.banner {
  background: var(--yellow);
  color: var(--yellow-ink);
  padding: 10px 24px;
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 500;
}
.banner .close {
  margin-left: auto;
  width: 24px; height: 24px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 120ms var(--ease);
}
.banner .close:hover { background: rgba(0,0,0,0.08); }

/* Divider */
.hr { height: 1px; background: var(--border); border: none; margin: 0; }

/* Table */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: #FAFAF7;
}
.tbl thead th:first-child { border-top-left-radius: var(--r-md); }
.tbl thead th:last-child { border-top-right-radius: var(--r-md); }
.tbl tbody tr:last-child td:first-child { border-bottom-left-radius: var(--r-md); }
.tbl tbody tr:last-child td:last-child { border-bottom-right-radius: var(--r-md); }
.tbl thead th.sort { cursor: pointer; }
.tbl thead th.sort:hover { color: var(--ink); }
.tbl tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle;
}
.tbl tbody tr { transition: background 120ms var(--ease); position: relative; }
.tbl tbody tr:hover { background: var(--hover); }
.tbl tbody tr.selected { background: #FFFBE6; }
.tbl tbody tr.selected td:first-child { box-shadow: inset 3px 0 0 var(--yellow); }
.tbl tbody tr:last-child td { border-bottom: none; }

/* QR thumb */
.qr-thumb {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Skeleton */
@keyframes skel-pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.75; } }
.skel { background: var(--border); border-radius: 6px; animation: skel-pulse 1.2s ease-in-out infinite; }

/* Tooltip */
.tip-wrap { position: relative; display: inline-flex; }
.tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bar);
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms var(--ease);
  z-index: 50;
}
.tip-wrap:hover .tip { opacity: 1; }

/* Sheet */
.sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(20, 20, 30, 0.32);
  backdrop-filter: blur(4px);
  z-index: 100;
  animation: fade-in 120ms var(--ease);
}
.sheet {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 440px; max-width: 100vw;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  z-index: 101;
  display: flex; flex-direction: column;
  animation: slide-in 250ms var(--ease);
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(20, 20, 30, 0.4);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  animation: fade-in 100ms var(--ease);
}
.modal {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  width: 420px; max-width: 92vw;
  animation: modal-pop 150ms var(--ease);
}
@keyframes modal-pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

/* Toast */
.toast-stack { position: fixed; top: 72px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 110; pointer-events: none; }
.toast {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 10px 14px 10px 12px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  min-width: 240px;
  max-width: 360px;
  pointer-events: auto;
  animation: toast-slide 200ms var(--ease);
}
.toast .dot { width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0; }
.toast.success .dot { background: var(--success); }
.toast.error .dot { background: var(--danger); }
.toast.info .dot { background: #3B82F6; }
@keyframes toast-slide { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* Row appear */
@keyframes row-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.tbl tbody tr.new { animation: row-in 300ms var(--ease); }

/* Ghost line (table) */
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }

/* Empty state */
.empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
}
.empty-art {
  margin: 0 auto 20px;
  width: 96px; height: 96px;
  color: var(--border-strong);
}

/* Focus ring universal */
*:focus { outline: none; }
*:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }

/* Link-like */
.link { color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--border-strong); }
.link:hover { border-bottom-color: var(--ink); }

/* Clickable group for short link cell */
.slug-cell { display: inline-flex; align-items: center; gap: 8px; }
.slug-cell .slug { font-size: 13px; font-weight: 500; }
.slug-cell .copy {
  width: 24px; height: 24px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: background 120ms var(--ease), color 120ms var(--ease);
  cursor: pointer;
  opacity: 0;
}
.tbl tbody tr:hover .slug-cell .copy { opacity: 1; }
.slug-cell .copy:hover { background: var(--hover); color: var(--ink); }
.slug-cell .copy.copied { opacity: 1; color: var(--success); }

/* Dropdown */
.menu {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 4px;
  min-width: 180px;
  z-index: 50;
  animation: fade-in 100ms var(--ease);
}
.menu-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
  transition: background 100ms var(--ease);
  text-align: left;
}
.menu-item:hover { text-decoration: none; }
.menu-item:hover { background: var(--hover); }
.menu-item.danger { color: var(--danger); }
.menu-item.danger:hover { background: #FEF2F2; }
.menu-sep { height: 1px; background: var(--border); margin: 4px 0; }

/* Bulk bar */
.bulk-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: #FFFBE6;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  animation: fade-in 150ms var(--ease);
}
.bulk-bar .count { font-weight: 600; }

/* Util */
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.ink-muted { color: var(--muted); }
.text-11 { font-size: 11px; } .text-12 { font-size: 12px; } .text-13 { font-size: 13px; } .text-14 { font-size: 14px; } .text-16 { font-size: 16px; } .text-18 { font-size: 18px; } .text-24 { font-size: 24px; } .text-28 { font-size: 28px; } .text-32 { font-size: 32px; }
.fw-5 { font-weight: 500; } .fw-6 { font-weight: 600; } .fw-7 { font-weight: 700; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }

/* Dashboard grid: sidebar + content */
.dashboard-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 32px 48px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1px;
  position: sticky;
  top: 80px;
  align-self: start;
}

.proj {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 120ms var(--ease);
}
.proj:hover { background: var(--hover); text-decoration: none; }
.proj.active { background: var(--hover); }
.proj.active .proj-name { font-weight: 600; }
.proj-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-count { color: var(--muted); font-size: 12px; font-weight: 400; min-width: 16px; text-align: right; }
.proj.active .proj-count { color: var(--ink); }
.proj-dot { width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0; display: inline-block; }

.content { min-width: 0; }

/* Project picker (chips inside create-link sheet) */
.proj-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  transition: background 120ms var(--ease), border-color 120ms var(--ease);
}
.proj-chip:hover { background: var(--hover); border-color: var(--border-strong); }
.proj-chip.active { background: var(--ink); color: var(--bar-ink); border-color: var(--ink); }
.proj-chip.active .proj-dot { opacity: 0.9; }

/* Color picker (project editor) */
.color-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.color-swatch { cursor: pointer; display: inline-block; }
.color-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.color-swatch .color-dot {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 120ms var(--ease), border-color 120ms var(--ease);
}
.color-swatch:hover .color-dot { transform: scale(1.05); }
.color-swatch input:checked + .color-dot { border-color: var(--ink); transform: scale(1.1); }
.color-swatch:has(input:disabled) { cursor: not-allowed; }
.color-swatch:has(input:disabled) .color-dot { opacity: 0.35; }
.color-swatch:has(input:disabled):hover .color-dot { transform: none; }

/* Mobile: stack sidebar above content */
@media (max-width: 768px) {
  .dashboard-grid { grid-template-columns: 1fr; gap: 16px; padding: 16px 12px; }
  .sidebar { position: static; flex-direction: row; gap: 6px; overflow-x: auto; padding-bottom: 8px; }
  .sidebar .hr, .sidebar .row { display: none; }
  .proj { flex: 0 0 auto; padding: 6px 12px; }
  .topbar { padding: 0 14px; }
  .topbar .tab-group { display: none; }
  .topbar .brand { font-size: 14px; }
  .page-shell { padding-bottom: 64px; }
  .container { padding: 0 14px; }
  .tbl tbody td { padding: 10px 8px; font-size: 12px; }
  .tbl thead th { padding: 8px 8px; font-size: 11px; }
  .tbl tbody td:nth-child(4) { display: none; }
  .tbl thead th:nth-child(4) { display: none; }
  .sheet { width: 100% !important; max-width: 100% !important; }
  .bulkbar { left: 12px; right: 12px; bottom: 76px; transform: none; min-width: 0; }
  @keyframes bulkbar-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
  .bulkbar { animation: bulkbar-in 180ms var(--ease); }
}

/* Bottom navigation (mobile only) */
.bottom-nav { display: none; }
@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bar);
    color: var(--bar-ink);
    z-index: 70;
    padding: 6px 8px;
    gap: 4px;
    box-shadow: 0 -2px 14px rgba(0,0,0,0.08);
  }
  .bn-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px; color: var(--bar-muted); text-decoration: none;
    font-size: 11px; border-radius: 8px; background: none; border: none; cursor: pointer;
  }
  .bn-item.active, .bn-item:hover { color: var(--bar-ink); background: rgba(255,255,255,0.06); }
  .bn-item svg { width: 22px; height: 22px; }
}

/* Yellow halo for login bg */
.yellow-halo {
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255, 224, 102, 0.35) 0%, rgba(255, 224, 102, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* Label + field hint (hint must be smaller than label) */
.label { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 6px; display: block; }
.hint, .field-hint { font-size: 11px; color: var(--muted); margin-top: 4px; display: block; line-height: 1.4; }

/* Segmented control */
.seg {
  display: inline-flex;
  background: #F0EDE5;
  padding: 3px;
  border-radius: var(--r-pill);
  gap: 2px;
}
.seg-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--r-pill);
  color: var(--muted);
  cursor: pointer;
  transition: all 150ms var(--ease);
}
.seg-btn:hover { color: var(--ink); }
.seg-btn.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 600; }

/* ============================================================
   LANDING PAGE
   ============================================================ */
.lp { background: var(--page); color: var(--ink); }
.lp h1, .lp h2, .lp h3 { letter-spacing: -0.02em; line-height: 1.15; margin: 0; font-weight: 700; }
.lp h1 { font-size: clamp(36px, 5vw, 64px); }
.lp h2 { font-size: clamp(28px, 3.5vw, 42px); }
.lp h3 { font-size: 18px; font-weight: 600; }
.lp p { margin: 0; color: var(--muted); line-height: 1.55; }
.lp .hl { color: var(--ink); background: linear-gradient(120deg, var(--yellow) 0%, #FFD03A 100%); padding: 0 0.18em; border-radius: 0.18em; }
.lp a:not(.btn) { color: inherit; text-decoration: none; }
.lp .btn-primary { color: var(--yellow-ink); }
.lp .btn-secondary { color: var(--ink); }
.lp .lp-eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }

/* Top nav */
.lp-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 16px 32px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(247, 245, 240, 0.78);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.lp-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--yellow); }
.lp-brand span { color: var(--ink); }
.lp-brand .muted { color: var(--muted); font-weight: 500; }
.lp-nav-links { display: flex; gap: 24px; margin-left: 24px; }
.lp-nav-links a { font-size: 13px; color: var(--muted); transition: color 120ms; }
.lp-nav-links a:hover { color: var(--ink); }
.lp-nav-cta { margin-left: auto; display: flex; gap: 8px; }

/* Hero */
.lp-hero { position: relative; padding: 80px 32px 100px; max-width: 1280px; margin: 0 auto; }
.lp-hero-bg {
  position: absolute; inset: -40px -40px 0 -40px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(700px 400px at 18% 20%, rgba(255, 224, 102, 0.55), transparent 70%),
    radial-gradient(500px 380px at 88% 30%, rgba(173, 216, 230, 0.35), transparent 70%);
  filter: blur(2px);
}
.lp-hero-inner { position: relative; z-index: 1; max-width: 720px; }
.lp-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.06);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; color: var(--ink); margin-bottom: 24px;
}
.lp-lead { font-size: 17px; color: var(--muted); margin-top: 18px; max-width: 580px; }
.lp-cta-row { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.lp-trust { font-size: 12px; margin-top: 18px; }
.lp-hero-mock {
  position: absolute; right: -40px; top: 100px;
  width: 540px; max-width: 50vw; z-index: 1;
  transform: rotate(-2deg);
}

/* Browser-like mock window */
.mock-window {
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.12), 0 6px 18px rgba(0,0,0,0.06);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
}
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: #FAFAF7;
  border-bottom: 1px solid var(--border);
}
.mock-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #E5E2D8; }
.mock-bar > span:nth-child(1) { background: #FF6259; }
.mock-bar > span:nth-child(2) { background: #FFBE2E; }
.mock-bar > span:nth-child(3) { background: #2ACA44; }
.mock-bar .mock-url { margin-left: 14px; font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.mock-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.mock-toolbar { display: flex; gap: 8px; margin-bottom: 6px; }
.mock-input {
  flex: 1; padding: 8px 12px; background: var(--hover);
  border-radius: 8px; font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.mock-pill { padding: 6px 12px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; font-size: 12px; }
.mock-pill-yellow { background: var(--yellow); border-color: var(--yellow); font-weight: 600; }
.mock-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--card);
}
.mock-row-tall { padding: 16px; }
.mock-row-dim { opacity: 0.55; }
.mock-qr {
  width: 36px; height: 36px;
  background:
    linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%) 0 0/12px 12px,
    linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%) 6px 6px/12px 12px;
  border-radius: 4px;
  flex-shrink: 0;
}
.mock-cell { flex: 1; min-width: 0; }
.mock-slug { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 13px; }
.mock-pills { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.mock-tag { font-size: 10px; padding: 2px 8px; border-radius: 999px; font-weight: 500; }
.mock-tag-mint { background: var(--mint-bg); color: var(--mint-ink); }
.mock-tag-lav { background: var(--lav-bg); color: var(--lav-ink); }
.mock-tag-pink { background: var(--pink-bg); color: var(--pink-ink); }
.mock-tag-sky { background: var(--sky-bg); color: var(--sky-ink); }
.mock-stat { font-weight: 600; font-size: 13px; }
.mock-stat-stack { text-align: right; }
.mock-big { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.mock-small { font-size: 11px; color: var(--muted); }
.mock-spark { padding: 16px 12px 8px; }
.mock-sm { max-width: 360px; }

/* Chat mock */
.mock-chat {
  background: var(--card); border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.12);
  overflow: hidden; max-width: 360px;
  border: 1px solid rgba(0,0,0,0.04);
}
.mock-chat-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--bar); color: var(--bar-ink); }
.mock-chat-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.mock-chat-name { font-size: 13px; font-weight: 600; }
.mock-chat-meta { font-size: 11px; }
.mock-chat-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #F4F1EC; }
.mock-msg {
  max-width: 78%; padding: 10px 12px; border-radius: 14px;
  font-size: 13px; line-height: 1.4;
}
.mock-msg.me { align-self: flex-end; background: var(--yellow); color: var(--ink); border-bottom-right-radius: 4px; word-break: break-all; }
.mock-msg.bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.mock-msg-img { padding: 8px; }
.mock-qr-big {
  width: 96px; height: 96px;
  background:
    linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%) 0 0/16px 16px,
    linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%) 8px 8px/16px 16px;
  border-radius: 8px;
}

/* Sections */
.lp-section { max-width: 1280px; margin: 0 auto; padding: 80px 32px; }
.lp-section-head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.lp-section-head .lp-lead { margin: 16px auto 0; }

/* Features grid */
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.lp-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,0.06); }
.lp-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.lp-card h3 { margin-bottom: 8px; }
.lp-card p { font-size: 14px; }

/* Feature alternating rows */
.lp-feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
.lp-feature-rev .lp-feature-row { direction: rtl; }
.lp-feature-rev .lp-feature-row > * { direction: ltr; }
.lp-feature-text h2 { margin-bottom: 16px; }
.lp-feature-text p { font-size: 16px; margin-bottom: 16px; }
.lp-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-list li { font-size: 14px; color: var(--ink); padding-left: 22px; position: relative; }
.lp-list li::before { content: ''; position: absolute; left: 4px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }

/* Steps */
.lp-how .lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-step {
  text-align: center; padding: 28px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
}
.lp-step-n {
  width: 40px; height: 40px; margin: 0 auto 16px;
  background: var(--yellow); color: var(--ink);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.lp-step h3 { margin-bottom: 8px; }
.lp-step p { font-size: 13px; }

/* Pricing */
.lp-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 720px; margin: 0 auto; }
.lp-plan {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 32px;
  position: relative;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.lp-plan-paid { background: var(--ink); color: var(--bar-ink); border: none; box-shadow: 0 14px 60px rgba(0,0,0,0.18); }
.lp-plan-paid p, .lp-plan-paid .lp-plan-features li { color: rgba(255,255,255,0.85); }
.lp-plan-paid svg { color: var(--yellow); }
.lp-plan-name { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7; }
.lp-plan-price { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; margin: 12px 0 24px; }
.lp-plan-price span { font-size: 14px; font-weight: 500; opacity: 0.55; margin-left: 4px; }
.lp-plan-features { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.lp-plan-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.lp-plan-badge {
  position: absolute; top: -10px; right: 24px;
  background: var(--yellow); color: var(--ink);
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}

/* Final CTA */
.lp-cta { padding: 80px 32px; }
.lp-cta-inner {
  max-width: 720px; margin: 0 auto;
  background: linear-gradient(135deg, var(--yellow) 0%, #FFD03A 100%);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
}
.lp-cta-inner h2 { font-size: 36px; }
.lp-cta-inner p { color: rgba(0,0,0,0.65); margin: 12px 0 28px; }

/* Footer */
.lp-footer { padding: 40px 32px; border-top: 1px solid var(--border); }
.lp-footer-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--delay, 0ms); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Mobile */
@media (max-width: 960px) {
  .lp-hero { padding: 48px 20px 60px; }
  .lp-hero-mock { display: none; }
  .lp-grid { grid-template-columns: 1fr; }
  .lp-feature-row { grid-template-columns: 1fr; gap: 32px; }
  .lp-feature-rev .lp-feature-row { direction: ltr; }
  .lp-how .lp-steps { grid-template-columns: 1fr; }
  .lp-plans { grid-template-columns: 1fr; }
  .lp-section { padding: 56px 20px; }
  .lp-nav { padding: 12px 20px; gap: 12px; }
  .lp-nav-links { display: none; }
  .lp-cta-inner { padding: 48px 24px; }
}
