/* ============================================================
   EVERSCAN v3 - Liquid Glass design system
   One material everywhere: translucent, softly refractive,
   lit from above. White canvas, blue light, capsule controls,
   concentric radii. Same class catalog as v2, new physics.
   ============================================================ */

/* Type system:
   Manrope 800    -> the wordmark only
   Lexend 500-700 -> every heading, display and title
   --font-mono    -> GTINs, Digital Links, DNS records, element strings (system mono today) */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@800&family=Lexend:wght@500;600;700&display=swap');

:root {
  --bg:           #FBFCFE;
  --ink:          #101828;
  --ink-2:        #51586A;
  --ink-3:        #8A93A6;

  /* the glass material */
  --glass:        rgba(255, 255, 255, 0.46);
  --glass-strong: rgba(255, 255, 255, 0.66);
  --glass-well:   rgba(255, 255, 255, 0.35);
  --blur:         22px;
  --rim:          inset 0 1px 1px rgba(255, 255, 255, 0.85), inset 0 -1px 1px rgba(12, 22, 60, 0.05);
  --float:        0 2px 8px rgba(16, 24, 40, 0.05), 0 20px 50px -18px rgba(16, 24, 40, 0.16);
  --float-soft:   0 1px 4px rgba(16, 24, 40, 0.04), 0 12px 34px -16px rgba(16, 24, 40, 0.12);
  --edge:         1px solid rgba(255, 255, 255, 0.55);
  --hairline:     rgba(16, 24, 40, 0.07);

  --blue:         #3D6BF3;
  --blue-hover:   #2C55D4;
  --blue-soft:    rgba(61, 107, 243, 0.14);
  --blue-border:  rgba(61, 107, 243, 0.35);
  --on-blue:      #FFFFFF;
  --blue-grad:    linear-gradient(160deg, rgba(94, 134, 255, 0.94), rgba(44, 85, 212, 0.94));
  --blue-glow:    0 10px 26px -8px rgba(61, 107, 243, 0.55);

  --ok:           #178A43;
  --ok-soft:      rgba(52, 199, 123, 0.16);
  --ok-border:    rgba(23, 138, 67, 0.3);
  --warn:         #9A6D14;
  --warn-soft:    rgba(250, 190, 80, 0.2);
  --warn-border:  rgba(154, 109, 20, 0.3);
  --bad:          #C23B3B;
  --bad-soft:     rgba(226, 90, 90, 0.14);
  --bad-border:   rgba(194, 59, 59, 0.3);

  /* pastel support, now as tinted light */
  --p-blue-bg:  rgba(94, 134, 255, 0.16);  --p-blue-fg:  #2C55D4;
  --p-mint-bg:  rgba(24, 190, 175, 0.15);  --p-mint-fg:  #0E7C74;
  --p-lav-bg:   rgba(150, 100, 255, 0.14); --p-lav-fg:   #7A3FE0;
  --p-pink-bg:  rgba(240, 80, 160, 0.13);  --p-pink-fg:  #C42D74;
  --p-peach-bg: rgba(255, 150, 60, 0.16);  --p-peach-fg: #C96A15;
  --p-lemon-bg: rgba(240, 200, 40, 0.2);   --p-lemon-fg: #95740C;
  --p-grass-bg: rgba(60, 200, 110, 0.16);  --p-grass-fg: #1E8F47;

  /* validated dataviz palette (series colors unchanged) */
  --viz-surface:  #fcfcfb;
  --series-1:     #2a78d6;
  --series-2:     #eb6834;
  --series-3:     #1baf7a;
  --viz-grid:     rgba(16, 24, 40, 0.08);
  --viz-axis:     rgba(16, 24, 40, 0.18);
  --viz-muted:    #8A93A6;

  --font-ui: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'JetBrains Mono', monospace;
  /* headings and display: same family as the wordmark, normal width */
  --font-display: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* concentric radius scale */
  --r-sm: 16px;
  --r-md: 22px;
  --r-lg: 30px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
::selection { background: rgba(61, 107, 243, 0.2); }
a { color: var(--blue); }

/* ============ ambient light (injected by shells) ============ */

.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; will-change: transform; }
.ambient .a1 { width: 560px; height: 560px; background: #BBD0FF; top: -180px; left: -120px; animation: drift1 26s ease-in-out infinite alternate; }
.ambient .a2 { width: 480px; height: 480px; background: #C9F1FF; top: 180px; right: -160px; animation: drift2 31s ease-in-out infinite alternate; }
.ambient .a3 { width: 520px; height: 520px; background: #DCD4FF; bottom: -220px; left: 20%; animation: drift3 37s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(70px, 50px) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-60px, 70px) scale(0.94); } }
@keyframes drift3 { to { transform: translate(50px, -60px) scale(1.05); } }

svg.glass-defs { position: absolute; width: 0; height: 0; }

/* ============ the material ============ */

.card {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  border: var(--edge);
  border-radius: var(--r-md);
  box-shadow: var(--rim), var(--float-soft);
  position: relative;
}
.card-pad { padding: 26px; }
.card-hover { transition: box-shadow .2s, transform .2s; cursor: pointer; }
.card-hover:hover { box-shadow: var(--rim), var(--float); transform: translateY(-1px); }

/* pointer tracked sheen (vars set by app.js delegation) */
.card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, -40%), rgba(255,255,255,0.45), transparent 55%);
  opacity: 0; transition: opacity .35s;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }

/* ============ layout shells ============ */

.shell { display: flex; min-height: 100vh; gap: 0; }

.sidebar {
  width: 240px;
  flex-shrink: 0;
  margin: 14px 0 14px 14px;
  padding: 18px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: sticky; top: 14px;
  height: calc(100vh - 28px);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  border: var(--edge);
  border-radius: var(--r-lg);
  box-shadow: var(--rim), var(--float-soft);
  z-index: 40;
}

.main { flex: 1; min-width: 0; padding: 44px 48px 90px; }
.main-inner { max-width: 1020px; margin: 0 auto; }
.narrow { max-width: 760px; margin: 0 auto; }

.public-shell { min-height: 100vh; display: flex; flex-direction: column; }
.pub-nav { position: sticky; top: 14px; z-index: 50; padding: 0 20px; }
.pub-nav-inner {
  max-width: 1024px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 10px 12px 10px 22px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  border: var(--edge);
  border-radius: 999px;
  box-shadow: var(--rim), var(--float-soft);
}
.pub-nav-inner .spacer { flex: 1; }
.pub-main { flex: 1; }
.pub-foot { margin-top: 90px; padding: 0 20px 26px; }
.pub-foot-inner {
  max-width: 1024px; margin: 0 auto;
  padding: 20px 28px;
  display: flex; align-items: center; gap: 22px;
  font-size: 12.5px; color: var(--ink-2);
  flex-wrap: wrap;
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  border: var(--edge);
  border-radius: var(--r-md);
  box-shadow: var(--rim), var(--float-soft);
}
.pub-foot-inner a { color: var(--ink-2); text-decoration: none; }
.pub-foot-inner a:hover { color: var(--blue); }
.pub-foot-inner .spacer { flex: 1; }

/* ============ sidebar pieces ============ */

.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 16px; user-select: none; cursor: pointer; }
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 11px;
  background: var(--blue-grad);
  color: var(--on-blue);
  display: grid; place-items: center;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.55), var(--blue-glow);
}
.brand-mark svg { width: 16px; height: 16px; }
/* image logo variant: the artwork carries its own shape and shading */
.brand-mark.img { background: none; box-shadow: none; border-radius: 0; }
.brand-mark.img img { width: 32px; height: 32px; display: block; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(61, 107, 243, 0.3)); }
.brand-name {
  font-family: 'Manrope', var(--font-ui);
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

/* headings run on Lexend, the wordmark's own family at normal width */
.hero-title, .page-title, .section-title, .form-section-title,
.chart-title, .modal-title, .dest-title, .plan-name, .plan-price,
.stat-val, .kpi-val, .lp-title, .dpp-title, h1, h2, h3 {
  font-family: var(--font-display);
}
.hero-title { letter-spacing: -0.038em; }
.page-title, .modal-title, .section-title { letter-spacing: -0.028em; }
.brand-name i { font-style: normal; color: var(--blue); }

.nav-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
  padding: 16px 12px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: background .18s, color .18s;
  text-decoration: none;
}
.nav-item svg { width: 16px; height: 16px; opacity: 0.75; }
.nav-item:hover { background: rgba(255, 255, 255, 0.6); color: var(--ink); }
.nav-item.active {
  background: linear-gradient(160deg, rgba(94,134,255,0.2), rgba(61,107,243,0.12));
  color: var(--blue-hover);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.7);
}
.nav-item.active svg { opacity: 1; }

.nav-create { margin: 8px 0 4px; }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
.usage-card {
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.4);
  border-radius: var(--r-sm);
  padding: 13px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.7);
}
.usage-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); margin-bottom: 8px; }
.usage-row b { color: var(--ink); font-weight: 700; }
.usage-track { height: 6px; background: rgba(16,24,40,0.08); border-radius: 99px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(16,24,40,0.06); }
.usage-fill { height: 100%; background: var(--blue-grad); border-radius: 99px; transition: width .3s; box-shadow: 0 1px 4px rgba(61,107,243,0.4); }
.usage-plan { font-size: 11.5px; color: var(--ink-3); margin-top: 9px; display: flex; justify-content: space-between; align-items: center; }
.usage-plan a { color: var(--blue); font-weight: 700; text-decoration: none; cursor: pointer; }

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  position: relative;
  transition: background .18s;
}
.user-chip:hover { background: rgba(255,255,255,0.6); }
.user-chip svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--ink-3); }
.user-chip .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(160deg, rgba(150,100,255,0.3), rgba(120,80,220,0.2));
  color: var(--p-lav-fg);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.7);
}
.user-chip .u-name { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip .u-mail { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu {
  position: absolute; bottom: calc(100% + 8px); left: 6px; right: 6px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: var(--edge);
  border-radius: var(--r-sm);
  box-shadow: var(--rim), var(--float);
  padding: 6px;
  z-index: 60;
}
.user-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  font-size: 13px; font-weight: 600;
  border-radius: 11px;
  cursor: pointer;
  color: var(--ink-2);
}
.user-menu-item:hover { background: rgba(255,255,255,0.7); color: var(--ink); }
.user-menu-item svg { width: 14px; height: 14px; }

/* ============ typography ============ */

.page-title { font-size: 27px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.18; }
.page-sub { color: var(--ink-2); font-size: 14px; margin-top: 6px; max-width: 60ch; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.section-title { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 14px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--blue-hover); }
.mono { font-family: var(--font-mono); }

/* ============ buttons: capsules with gel press ============ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-ui);
  font-size: 13.5px; font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--rim), 0 8px 22px -10px rgba(16, 24, 40, 0.18);
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), background .18s, box-shadow .18s;
}
.btn:hover { background: rgba(255, 255, 255, 0.82); }
.btn:active { transform: scale(0.965); }
.btn svg { width: 14px; height: 14px; }

.btn-primary {
  background: var(--blue-grad);
  color: var(--on-blue);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.5), inset 0 -6px 14px rgba(20,40,120,0.22), var(--blue-glow);
  text-shadow: 0 1px 2px rgba(20, 40, 120, 0.25);
}
.btn-primary:hover { background: linear-gradient(160deg, rgba(104,142,255,0.97), rgba(52,93,220,0.97)); }

.btn-danger {
  background: linear-gradient(160deg, rgba(230,100,95,0.94), rgba(185,55,55,0.94));
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.45), 0 10px 24px -8px rgba(194,59,59,0.5);
  text-shadow: 0 1px 2px rgba(120,20,20,0.25);
}
.btn-danger:hover { background: linear-gradient(160deg, rgba(238,110,105,0.97), rgba(196,62,62,0.97)); }

.btn-ghost { border-color: transparent; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.6); color: var(--ink); }

.btn-lg { padding: 13px 26px; font-size: 14.5px; }
.btn-sm { padding: 7px 15px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.btn:focus-visible, .input:focus-visible, .seg button:focus-visible,
.nav-item:focus-visible, .chip:focus-visible, .tab:focus-visible {
  outline: 2px solid rgba(61, 107, 243, 0.55);
  outline-offset: 2px;
}

/* ============ forms ============ */

.field { margin-bottom: 26px; }

/* form section headers: must visibly outrank the field labels below them */
.form-section-title { font-size: 16.5px; font-weight: 700; letter-spacing: -0.015em; margin: 2px 0 6px; }
.form-section-sub { font-size: 12.5px; color: var(--ink-3); margin-bottom: 18px; line-height: 1.55; max-width: 60ch; }
.field-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--ink);
  margin-bottom: 8px;
}
.field-hint { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; line-height: 1.6; max-width: 58ch; }
.field-optional { font-size: 11px; color: var(--ink-3); font-weight: 600; margin-left: auto; }

.input, select.input, textarea.input {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink);
  padding: 12px 17px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.7);
  outline: none;
  transition: box-shadow .22s, border-color .22s, background .22s;
}
.input:hover { background: rgba(255, 255, 255, 0.65); }
.input:focus {
  border-color: rgba(61, 107, 243, 0.55);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 4px rgba(61, 107, 243, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}
.input.mono { font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 0.02em; }
.input.input-ok { border-color: rgba(23, 138, 67, 0.5); }
.input.input-bad { border-color: rgba(194, 59, 59, 0.5); }
.input::placeholder { color: #A2ABBE; }
textarea.input { resize: vertical; min-height: 74px; border-radius: var(--r-sm); }
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238A93A6' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
  padding-right: 36px; cursor: pointer;
}

.input-msg { display: flex; align-items: center; gap: 6px; font-size: 12.5px; margin-top: 8px; font-weight: 600; }
.input-msg.ok { color: var(--ok); }
.input-msg.bad { color: var(--bad); }
.input-msg svg { width: 13px; height: 13px; flex-shrink: 0; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 11px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch-track {
  width: 44px; height: 26px; border-radius: 99px;
  background: rgba(16, 24, 40, 0.12);
  box-shadow: inset 0 1px 3px rgba(16, 24, 40, 0.12);
  transition: background .3s;
  flex-shrink: 0;
  position: relative;
}
.switch-track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(160deg, #FFFFFF, #F0F3F9);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.9), 0 2px 6px rgba(16, 24, 40, 0.28);
  transition: transform .3s cubic-bezier(.3, 1.4, .5, 1);
}
.switch input:checked + .switch-track { background: var(--blue-grad); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch-label { font-size: 13.5px; font-weight: 600; }

.seg {
  display: inline-flex;
  background: rgba(16, 24, 40, 0.06);
  border-radius: 999px;
  padding: 4px;
  gap: 3px;
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.05);
}
.seg button {
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  border: none; background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s cubic-bezier(.3, 1.3, .5, 1);
}
.seg button.active {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.9), 0 3px 10px rgba(16, 24, 40, 0.12);
}

.ai-chip {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 99px;
  padding: 2px 9px;
  letter-spacing: 0.03em;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.7);
}

/* interactive AI chips + hover explainer */
.ai-chip-live { cursor: pointer; transition: all .18s; }
.ai-chip-live:hover { background: var(--blue-soft); color: var(--blue-hover); border-color: var(--blue-border); }
.tip-pop {
  position: fixed;
  z-index: 200;
  max-width: 290px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: var(--edge);
  border-radius: var(--r-sm);
  box-shadow: var(--rim), var(--float);
  padding: 13px 15px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
  display: flex; flex-direction: column; gap: 6px;
  pointer-events: none;
  animation: fadeIn .15s ease-out;
}
.tip-pop b { color: var(--ink); font-size: 13px; }
.tip-pop .tip-meta { font-size: 11.5px; color: var(--ink-3); }

/* card variants: subtle tinted glass so screens are not a wall of white */
.card-tinted { background: linear-gradient(160deg, rgba(94, 134, 255, 0.08), rgba(255, 255, 255, 0.4)); }
.card-tinted-mint { background: linear-gradient(160deg, rgba(24, 190, 175, 0.07), rgba(255, 255, 255, 0.4)); }

/* grid children stretch to equal heights */
.row-2 > .card, .row-3 > .card, .grid-2 > .card { height: 100%; }
.tiles > .tile { height: 100%; }

/* ============ badges, chips, tiles ============ */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700;
  padding: 3.5px 11px;
  border-radius: 99px;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.5);
}
.badge-live { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-border); }
.badge-draft { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-border); }
.badge-neutral { background: rgba(16, 24, 40, 0.06); color: var(--ink-2); border-color: rgba(16, 24, 40, 0.08); }
.badge-blue { background: var(--blue-soft); color: var(--blue-hover); border-color: var(--blue-border); }
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge svg { width: 11px; height: 11px; }

.chip {
  font-size: 12.5px; font-weight: 600;
  padding: 7px 16px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(12px) saturate(180%);
  color: var(--ink-2);
  cursor: pointer;
  font-family: var(--font-ui);
  transition: all .2s cubic-bezier(.3, 1.4, .5, 1);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.7), 0 4px 12px -6px rgba(16,24,40,0.12);
}
.chip:hover { background: rgba(255, 255, 255, 0.85); color: var(--ink); }
.chip:active { transform: scale(0.96); }
.chip.active {
  background: var(--blue-grad);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.45), 0 6px 16px -6px rgba(61,107,243,0.5);
  text-shadow: 0 1px 2px rgba(20,40,120,0.2);
}
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.tile { padding: 20px 22px; }
.tile-label { font-size: 12px; font-weight: 700; color: var(--ink-3); display: flex; align-items: center; gap: 7px; }
.tile-label svg { width: 13px; height: 13px; }
.tile-value {
  font-size: 27px; font-weight: 700; letter-spacing: -0.025em;
  margin-top: 7px; line-height: 1.1;
  display: flex; align-items: baseline; gap: 9px;
}
.tile-delta { font-size: 11.5px; font-weight: 700; }
.tile-delta.up { color: var(--ok); }
.tile-delta.down { color: var(--bad); }
.tile-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }

.icon-chip {
  width: 38px; height: 38px;
  border-radius: 13px;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.6);
}
.icon-chip svg { width: 17px; height: 17px; }
.c-blue  { background: var(--p-blue-bg);  color: var(--p-blue-fg); }
.c-mint  { background: var(--p-mint-bg);  color: var(--p-mint-fg); }
.c-lav   { background: var(--p-lav-bg);   color: var(--p-lav-fg); }
.c-pink  { background: var(--p-pink-bg);  color: var(--p-pink-fg); }
.c-peach { background: var(--p-peach-bg); color: var(--p-peach-fg); }
.c-lemon { background: var(--p-lemon-bg); color: var(--p-lemon-fg); }
.c-grass { background: var(--p-grass-bg); color: var(--p-grass-fg); }

/* ============ tables ============ */

.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  padding: 13px 18px;
  border-bottom: 1px solid var(--hairline);
}
.table td { padding: 14px 18px; border-bottom: 1px solid var(--hairline); font-size: 13.5px; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .15s; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover { background: rgba(255, 255, 255, 0.55); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.row-new { animation: rowNew 2.4s ease-out; }
@keyframes rowNew { 0% { background: var(--blue-soft); } 100% { background: transparent; } }

.qr-thumb {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
  padding: 3px;
  display: grid; place-items: center;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.9), 0 3px 8px -3px rgba(16,24,40,0.15);
}
.qr-thumb svg { display: block; width: 100%; height: 100%; }
.detail-qr svg { display: block; width: 100%; height: auto; }
.qr-frame svg { display: block; margin: 0 auto; }
.code-name { font-weight: 700; font-size: 13.5px; }
.code-gtin { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; margin-top: 1px; }

/* ============ wizard ============ */

.wizard-steps { display: flex; align-items: center; gap: 10px; margin: 0 0 36px; justify-content: center; }
.wstep {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; color: var(--ink-3);
  padding: 7px 15px 7px 8px;
  border-radius: 999px;
  transition: all .25s;
}
.wstep.current {
  color: var(--ink);
  background: var(--glass-strong);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.8), 0 6px 16px -8px rgba(16,24,40,0.18);
  border: 1px solid rgba(255,255,255,0.6);
}
.wstep-num {
  width: 25px; height: 25px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 700;
  color: var(--ink-3);
  background: rgba(16, 24, 40, 0.06);
  box-shadow: inset 0 1px 2px rgba(16,24,40,0.06);
  transition: all .25s;
}
.wstep-num svg { width: 12px; height: 12px; }
.wstep.current .wstep-num { background: var(--blue-grad); color: #fff; box-shadow: inset 0 1px 1px rgba(255,255,255,0.5), 0 4px 10px -3px rgba(61,107,243,0.5); }
.wstep.done { color: var(--ink-2); }
.wstep.done .wstep-num { background: var(--ok-soft); color: var(--ok); }
.wstep-line { width: 30px; height: 1.5px; background: rgba(16, 24, 40, 0.1); border-radius: 2px; }

.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.mode-card {
  border: var(--edge);
  border-radius: var(--r-md);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  padding: 22px;
  cursor: pointer;
  transition: box-shadow .2s, transform .18s cubic-bezier(.3,1.4,.5,1);
  box-shadow: var(--rim), var(--float-soft);
}
.mode-card:hover { box-shadow: var(--rim), var(--float); }
.mode-card:active { transform: scale(0.985); }
.mode-card.selected {
  background: linear-gradient(160deg, rgba(94,134,255,0.16), rgba(61,107,243,0.08)), var(--glass);
  box-shadow: var(--rim), 0 0 0 3px rgba(61, 107, 243, 0.22), var(--float-soft);
}
.mode-card .mc-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.mode-card .mc-desc { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.55; }
.mode-card .mc-radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid rgba(16, 24, 40, 0.2);
  margin-left: auto; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.6);
}
.mode-card.selected .mc-radio { border-color: var(--blue); }
.mode-card.selected .mc-radio::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--blue-grad); }

.dest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dest-card {
  border: var(--edge);
  border-radius: var(--r-md);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  padding: 19px;
  cursor: pointer;
  transition: box-shadow .2s, transform .18s cubic-bezier(.3,1.4,.5,1);
  display: flex; gap: 15px; align-items: flex-start;
  box-shadow: var(--rim), var(--float-soft);
}
.dest-card:hover { box-shadow: var(--rim), var(--float); }
.dest-card:active { transform: scale(0.985); }
.dest-card.selected {
  background: linear-gradient(160deg, rgba(94,134,255,0.16), rgba(61,107,243,0.08)), var(--glass);
  box-shadow: var(--rim), 0 0 0 3px rgba(61, 107, 243, 0.22), var(--float-soft);
}
.dest-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  display: grid; place-items: center;
  color: var(--ink-2);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.8);
}
.dest-card.selected .dest-icon { background: var(--blue-soft); color: var(--blue-hover); }
.dest-icon svg { width: 17px; height: 17px; }
.dest-title { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.dest-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.55; margin-top: 3px; }

/* ============ preview pieces ============ */

.preview-card { overflow: hidden; }
.qr-frame {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--r-md);
  padding: 15px;
  display: inline-block;
  box-shadow: inset 0 1px 1px rgba(255,255,255,1), 0 12px 32px -14px rgba(16,24,40,0.28);
}
.qr-caption {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.15em;
  color: var(--ink);
  margin-top: 9px;
  text-align: center;
}
.url-box {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  word-break: break-all;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  box-shadow: inset 0 1px 2px rgba(16,24,40,0.04), inset 0 1px 1px rgba(255,255,255,0.7);
}
.seg-scheme { color: var(--ink-3); }
.seg-domain { color: var(--ink); font-weight: 700; }
.seg-ai { color: var(--blue-hover); font-weight: 700; }
.seg-val { color: var(--ink); }
.seg-q { color: var(--ink-3); }
.elem-string { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 9px; word-break: break-all; }
.elem-string b { color: var(--ink-2); font-weight: 600; }
.url-preview-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 9px;
  display: flex; align-items: center; justify-content: space-between;
}
.url-preview-label button { border: none; background: none; color: var(--blue); font-size: 11.5px; font-weight: 700; cursor: pointer; font-family: var(--font-ui); }

/* ============ builders ============ */

.lp-grid { display: grid; grid-template-columns: minmax(0,1fr) 268px; gap: 28px; align-items: start; }
.phone {
  width: 268px;
  border: var(--edge);
  border-radius: 40px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  box-shadow: var(--rim), var(--float);
  padding: 12px;
  position: sticky; top: 30px;
}
.phone-screen {
  border-radius: 30px;
  overflow: hidden;
  min-height: 470px;
  padding: 30px 18px 24px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(16,24,40,0.05);
}
.lp-logo {
  width: 62px; height: 62px; border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  display: block;
  border: 2px solid rgba(255,255,255,.75);
  box-shadow: 0 2px 10px rgba(0,0,0,.14);
  background: #fff;
}
.lp-logo-ph {
  width: 62px; height: 62px; border-radius: 50%;
  margin: 0 auto 10px;
  display: grid; place-items: center;
  font-size: 24px; font-weight: 700;
  background: rgba(255,255,255,0.9);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.9), 0 2px 10px rgba(0,0,0,.12);
}
.lp-name { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.lp-bio { font-size: 12px; opacity: .75; margin-top: 4px; line-height: 1.5; }
.lp-socials { display: flex; justify-content: center; gap: 10px; margin: 14px 0 6px; }
.lp-socials .s-ico, .s-ico {
  width: 29px; height: 29px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.4);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.5);
}
.s-ico svg { width: 13px; height: 13px; }
.lp-btn {
  display: block;
  margin: 10px 0;
  padding: 13px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  font-size: 13px; font-weight: 700;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.9), 0 3px 10px rgba(0,0,0,.1);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform .18s cubic-bezier(.3,1.5,.5,1);
}
.lp-btn:hover { transform: scale(1.02); }
.lp-footer { font-size: 10px; opacity: .5; margin-top: 20px; }

.link-row {
  display: grid;
  grid-template-columns: 130px 1fr 36px;
  gap: 10px; align-items: center;
  margin-bottom: 10px;
}
.theme-dots { display: flex; gap: 10px; }
.theme-dot {
  width: 30px; height: 30px; border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: inset 0 1px 2px rgba(16,24,40,0.08), 0 3px 8px -2px rgba(16,24,40,0.2);
  transition: transform .15s cubic-bezier(.3,1.5,.5,1);
}
.theme-dot:hover { transform: scale(1.12); }
.theme-dot.selected { box-shadow: 0 0 0 3px rgba(61,107,243,0.4), inset 0 1px 2px rgba(16,24,40,0.08); }

.rule-row {
  display: grid;
  grid-template-columns: 140px 170px 1fr 36px;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.rule-del {
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.4); cursor: pointer;
  color: var(--ink-3);
  display: grid; place-items: center;
  transition: all .18s;
}
.rule-del:hover { background: var(--bad-soft); color: var(--bad); }
.rule-del svg { width: 14px; height: 14px; }

.drop-zone {
  border: 1.5px dashed rgba(16, 24, 40, 0.15);
  border-radius: var(--r-md);
  padding: 32px 22px;
  text-align: center;
  cursor: pointer;
  transition: all .22s;
  color: var(--ink-2);
  background: rgba(255,255,255,0.3);
}
.drop-zone:hover { border-color: rgba(61,107,243,0.5); background: rgba(94,134,255,0.08); }
.drop-zone .dz-icon {
  width: 44px; height: 44px; margin: 0 auto 12px;
  border-radius: 15px;
  background: var(--blue-soft); color: var(--blue-hover);
  display: grid; place-items: center;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.6);
}
.drop-zone .dz-icon svg { width: 19px; height: 19px; }
.drop-zone b { font-size: 13.5px; font-weight: 700; color: var(--ink); display: block; }
.drop-zone span { font-size: 12px; color: var(--ink-3); }
.drop-zone.has-file { border-style: solid; border-color: var(--ok-border); background: var(--ok-soft); cursor: default; }
.file-meta { display: flex; align-items: center; gap: 13px; text-align: left; }
.file-meta .fm-name { font-weight: 700; font-size: 13.5px; word-break: break-all; }
.file-meta .fm-sub { font-size: 12px; color: var(--ink-3); }

.style-opts { display: flex; gap: 10px; }
.style-opt {
  border: var(--edge);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.45);
  padding: 11px;
  cursor: pointer;
  display: grid; place-items: center; gap: 5px;
  transition: all .2s cubic-bezier(.3,1.4,.5,1);
  min-width: 64px;
  font-size: 10.5px; font-weight: 700; color: var(--ink-3);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.7);
}
.style-opt:hover { background: rgba(255,255,255,0.7); }
.style-opt:active { transform: scale(0.95); }
.style-opt.selected {
  background: linear-gradient(160deg, rgba(94,134,255,0.18), rgba(61,107,243,0.1));
  color: var(--blue-hover);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.7), 0 0 0 3px rgba(61,107,243,0.2);
}
.style-opt svg { width: 26px; height: 26px; }

.color-dots { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.color-dot {
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.25), 0 4px 10px -2px rgba(16,24,40,0.25);
  transition: transform .15s cubic-bezier(.3,1.5,.5,1);
  position: relative;
}
.color-dot:hover { transform: scale(1.12); }
.color-dot.selected { box-shadow: 0 0 0 3px rgba(61,107,243,0.4), inset 0 1px 2px rgba(255,255,255,0.25); }

.compliance {
  border: 1px solid var(--ok-border);
  background: var(--ok-soft);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: var(--r-md);
  padding: 17px 19px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.5);
}
.compliance.failing { border-color: var(--warn-border); background: var(--warn-soft); }
.compliance-title { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.compliance-title svg { width: 14px; height: 14px; }
.comp-item { display: flex; align-items: center; gap: 9px; font-size: 13px; padding: 3.5px 0; color: var(--ink-2); }
.comp-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.comp-item.ok svg { color: var(--ok); }
.comp-item.no svg { color: var(--warn); }

.logo-tile {
  display: flex; align-items: center; gap: 14px;
  border: var(--edge);
  border-radius: var(--r-sm);
  padding: 12px 15px;
  background: rgba(255,255,255,0.45);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.7);
}
.logo-tile img { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; border: 1px solid rgba(255,255,255,0.7); box-shadow: 0 3px 8px -2px rgba(16,24,40,0.2); }

/* ============ charts ============ */

.chart-card { position: relative; }
.chart-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 4px; }
.chart-title { font-size: 14px; font-weight: 700; }
.chart-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.chart-body { padding: 10px 24px 22px; position: relative; }
.chart-body svg { display: block; overflow: visible; }

.viz-tip {
  position: absolute;
  pointer-events: none;
  background: rgba(16, 24, 40, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #F7F8FA;
  border-radius: 12px;
  padding: 9px 13px;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 12px 30px -8px rgba(16,24,40,0.4);
  opacity: 0;
  transition: opacity .1s;
  z-index: 30;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 12px));
}
.viz-tip b { font-weight: 700; }
.viz-tip .tip-muted { opacity: .65; }

.hbar-row { display: grid; grid-template-columns: 130px 1fr 52px; align-items: center; gap: 12px; padding: 6px 0; font-size: 13px; }
.hbar-label { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-track { height: 16px; border-radius: 99px; position: relative; background: rgba(16,24,40,0.04); }
.hbar-fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--series-1); min-width: 3px; transition: width .5s cubic-bezier(.2,.7,.3,1); box-shadow: inset 0 1px 1px rgba(255,255,255,0.3); }
.hbar-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 700; font-size: 12.5px; }

.legend { display: flex; gap: 16px; flex-wrap: wrap; padding: 0 24px 18px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.legend-swatch { width: 9px; height: 9px; border-radius: 3px; }

/* ============ misc app ============ */

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .spacer, .spacer { flex: 1; }
.search-box { position: relative; width: 260px; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--ink-3); z-index: 1; }
.search-box .input { padding-left: 38px; border-radius: 999px; }

.divider { height: 1px; background: var(--hairline); margin: 22px 0; }

.note {
  display: flex; gap: 11px;
  font-size: 13px; color: var(--ink-2); line-height: 1.55;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.6);
}
.note svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2.5px; color: var(--ink-3); }
.note.note-blue { background: rgba(94, 134, 255, 0.12); border-color: rgba(94, 134, 255, 0.25); color: #2A45A0; }
.note.note-blue svg { color: var(--blue); }

.empty { text-align: center; padding: 54px 24px; color: var(--ink-3); font-size: 13.5px; }
.empty .icon-chip { margin: 0 auto 16px; width: 48px; height: 48px; border-radius: 16px; }
.empty b { color: var(--ink); font-size: 15px; display: block; margin-bottom: 4px; }

.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.crumb a { color: var(--ink-3); text-decoration: none; cursor: pointer; font-weight: 600; }
.crumb a:hover { color: var(--blue); }
.crumb svg { width: 11px; height: 11px; }

.detail-head { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 26px; }
.detail-qr {
  width: 114px; height: auto; flex-shrink: 0;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--r-md);
  padding: 10px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,1), 0 12px 30px -12px rgba(16,24,40,0.25);
}
.detail-meta { flex: 1; min-width: 0; }
.detail-props { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.detail-props .prop { display: flex; gap: 6px; align-items: center; }
.detail-props .prop b { color: var(--ink); font-weight: 700; }
.detail-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }

.footer-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }

.dns-table {
  font-family: var(--font-mono); font-size: 12.5px;
  background: rgba(255,255,255,0.45);
  border: var(--edge);
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.6);
}
.dns-row { display: grid; grid-template-columns: 76px 1fr 1.5fr; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--hairline); }
.dns-row:last-child { border-bottom: none; }
.dns-row.head { font-family: var(--font-ui); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); background: rgba(16,24,40,0.03); }

.attn-item { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--hairline); font-size: 13px; }
.attn-item:last-child { border-bottom: none; }
.attn-ico {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--warn-soft);
  color: var(--warn);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.5);
}
.attn-ico svg { width: 15px; height: 15px; }
.attn-ico.ok { background: var(--ok-soft); color: var(--ok); }
.attn-ico.blue { background: var(--blue-soft); color: var(--blue-hover); }
.attn-item .grow { flex: 1; min-width: 0; }
.attn-item b { font-weight: 700; display: block; }
.attn-item span { color: var(--ink-3); font-size: 12px; }

.success-wrap { max-width: 560px; margin: 30px auto; text-align: center; }
.success-seal {
  width: 60px; height: 60px; margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(52,199,123,0.25), rgba(23,138,67,0.18));
  color: var(--ok);
  display: grid; place-items: center;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.7), 0 10px 24px -8px rgba(23,138,67,0.35);
  animation: sealIn .5s cubic-bezier(.2, 1.4, .4, 1);
}
.success-seal svg { width: 26px; height: 26px; }
@keyframes sealIn { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.fade-in { animation: fadeIn .3s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ============ modal & toast ============ */

.modal-back {
  position: fixed; inset: 0;
  background: rgba(16, 20, 32, 0.3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  z-index: 100;
  animation: fadeIn .15s ease-out;
  padding: 20px;
}
.modal {
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(34px) saturate(180%);
  backdrop-filter: blur(34px) saturate(180%);
  border: var(--edge);
  border-radius: var(--r-lg);
  box-shadow: var(--rim), 0 30px 80px -20px rgba(16, 24, 40, 0.4);
  padding: 28px;
  width: 100%; max-width: 440px;
  animation: modalIn .24s cubic-bezier(.2, 1.3, .4, 1);
}
@keyframes modalIn { from { transform: scale(.94) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-title { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 10px; }
.modal-body { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

.toast-wrap { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: var(--edge);
  color: var(--ink);
  font-size: 13px; font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: var(--rim), var(--float);
  display: flex; align-items: center; gap: 9px;
  animation: toastIn .28s cubic-bezier(.2, 1.3, .4, 1);
}
.toast svg { width: 15px; height: 15px; color: var(--ok); }
.toast.bad svg { color: var(--bad); }
@keyframes toastIn { from { transform: translateY(16px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============ tabs & settings ============ */

.tabs {
  display: inline-flex; gap: 3px;
  background: rgba(16, 24, 40, 0.05);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 32px;
  overflow-x: auto;
  box-shadow: inset 0 1px 2px rgba(16,24,40,0.05);
  max-width: 100%;
}
.tab {
  font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  padding: 8px 18px;
  border: none; background: none; cursor: pointer;
  border-radius: 999px;
  font-family: var(--font-ui);
  white-space: nowrap;
  transition: all .25s cubic-bezier(.3, 1.3, .5, 1);
}
.tab:hover { color: var(--ink); }
.tab.active {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.9), 0 3px 10px rgba(16, 24, 40, 0.12);
}

.kv { display: flex; flex-direction: column; gap: 0; }
.kv-row { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--hairline); font-size: 13.5px; }
.kv-row:last-child { border-bottom: none; }
.kv-row .k { color: var(--ink-3); }
.kv-row .v { font-weight: 700; text-align: right; }

/* ============ plans ============ */

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan-card {
  border: var(--edge);
  border-radius: var(--r-lg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  padding: 28px;
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: var(--rim), var(--float-soft);
}
.plan-card.featured { box-shadow: var(--rim), 0 0 0 3px rgba(61, 107, 243, 0.25), var(--float); }
.plan-card.current { background: var(--glass-well); }
.plan-card .plan-name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.plan-price { font-size: 33px; font-weight: 700; letter-spacing: -0.03em; margin: 13px 0 2px; }
.plan-price span { font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.plan-sub { font-size: 12px; color: var(--ink-3); margin-bottom: 16px; }
.plan-feat { font-size: 13px; color: var(--ink-2); padding: 5px 0; display: flex; gap: 9px; align-items: center; }
.plan-feat svg { width: 13px; height: 13px; color: var(--ok); flex-shrink: 0; }
.plan-card .btn { margin-top: auto; }
.plan-card .plan-cta-space { margin-top: 18px; }

/* ============ landing ============ */

.hero { text-align: center; padding: 96px 24px 64px; max-width: 800px; margin: 0 auto; }
.hero-title { font-size: 54px; font-weight: 700; letter-spacing: -0.034em; line-height: 1.05; }
.hero-title i {
  font-style: normal;
  background: linear-gradient(120deg, #5E86FF, #2C55D4 55%, #6BB6FF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 17px; color: var(--ink-2); margin: 22px auto 32px; max-width: 56ch; line-height: 1.6; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; }

.stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 920px; margin: 20px auto 0; padding: 0 24px;
}
.stat-strip .card { padding: 20px 22px; text-align: center; font-size: 13px; color: var(--ink-2); }
.stat-strip b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 3px; font-weight: 700; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.55), var(--float-soft);
  transition: transform .22s cubic-bezier(.3,1.4,.5,1), box-shadow .22s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: inset 0 1px 1px rgba(255,255,255,0.55), var(--float); }
.feature-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.feature-card p { font-size: 13.5px; line-height: 1.55; opacity: .85; }
.feature-card .fc-link { margin-top: auto; padding-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.feature-card .fc-link svg { width: 14px; height: 14px; }
.feature-card.c-blue  { background: var(--p-blue-bg);  color: var(--p-blue-fg); }
.feature-card.c-mint  { background: var(--p-mint-bg);  color: var(--p-mint-fg); }
.feature-card.c-lav   { background: var(--p-lav-bg);   color: var(--p-lav-fg); }
.feature-card.c-pink  { background: var(--p-pink-bg);  color: var(--p-pink-fg); }
.feature-card.c-peach { background: var(--p-peach-bg); color: var(--p-peach-fg); }
.feature-card.c-lemon { background: var(--p-lemon-bg); color: var(--p-lemon-fg); }
.feature-card.c-grass { background: var(--p-grass-bg); color: var(--p-grass-fg); }

.faq-item {
  border: var(--edge);
  border-radius: var(--r-md);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--rim), var(--float-soft);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 22px;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 18px; color: var(--ink-3); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body { padding: 0 22px 19px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; max-width: 65ch; }

.landing-section { max-width: 1020px; margin: 0 auto; padding: 46px 28px; }
.landing-section > .section-title { font-size: 28px; letter-spacing: -0.025em; text-align: center; margin-bottom: 8px; }
.landing-section > .section-sub { text-align: center; color: var(--ink-2); font-size: 14.5px; margin-bottom: 36px; }

/* ============ auth ============ */

.auth-wrap { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 404px; }
.auth-card .card-pad { padding: 36px; }
.auth-card h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.auth-card .page-sub { margin-bottom: 24px; }
.auth-alt { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 18px; }
.auth-alt a { font-weight: 700; text-decoration: none; cursor: pointer; }

/* ============ onboarding card ============ */

.onb-card {
  background: linear-gradient(160deg, rgba(94,134,255,0.12), rgba(61,107,243,0.05)), var(--glass);
  margin-bottom: 24px;
}
.onb-item { display: flex; align-items: center; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 13.5px; }
.onb-item:last-child { border-bottom: none; }
.onb-item .onb-tick {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid rgba(16, 24, 40, 0.15);
  background: rgba(255,255,255,0.5);
  display: grid; place-items: center;
  color: transparent;
  transition: all .3s cubic-bezier(.3,1.4,.5,1);
}
.onb-item .onb-tick svg { width: 12px; height: 12px; }
.onb-item.done .onb-tick { background: linear-gradient(160deg, #34C77B, #178A43); border-color: transparent; color: #fff; box-shadow: inset 0 1px 1px rgba(255,255,255,0.4), 0 3px 8px -2px rgba(23,138,67,0.4); }
.onb-item.done { color: var(--ink-3); }
.onb-item.done .onb-t { text-decoration: line-through; }
.onb-item .grow { flex: 1; }

/* ============ public product pages ============ */

.pp-canvas {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 46px 18px;
  background:
    radial-gradient(600px circle at 15% 10%, rgba(187,208,255,0.5), transparent 60%),
    radial-gradient(560px circle at 85% 25%, rgba(201,241,255,0.5), transparent 55%),
    radial-gradient(640px circle at 50% 95%, rgba(220,212,255,0.4), transparent 60%),
    var(--bg);
}
.pp-card {
  width: 100%; max-width: 480px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: var(--edge);
  border-radius: var(--r-lg);
  box-shadow: var(--rim), var(--float);
  padding: 34px;
}
.pp-card.wide { max-width: 660px; }
.pp-section { padding: 19px 0; border-bottom: 1px solid var(--hairline); }
.pp-section:last-child { border-bottom: none; }
.pp-section h3 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.pp-row { display: flex; justify-content: space-between; gap: 18px; padding: 5px 0; font-size: 13.5px; }
.pp-row .k { color: var(--ink-3); flex-shrink: 0; }
.pp-row .v { font-weight: 700; text-align: right; }
.pp-foot { margin-top: 22px; font-size: 11.5px; color: var(--ink-3); text-align: center; }
.pp-foot a { color: var(--ink-3); }

/* ============ responsive ============ */

@media (max-width: 1100px) {
  .main { padding: 32px 22px 70px; }
  .sidebar { margin: 10px 0 10px 10px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .hero-title { font-size: 38px; }
  .lp-grid { grid-template-columns: 1fr; }
  .phone { position: static; margin: 0 auto; }
  .row-2, .row-3 { grid-template-columns: 1fr !important; }
  .dest-grid, .mode-cards { grid-template-columns: 1fr; }
  .rule-row { grid-template-columns: 1fr 1fr; }
  .rule-row .input:nth-child(3) { grid-column: 1 / -1; }
}
