/* ============================================
   LOCAFUN · Design Original — Não Genérico
   Paleta extraída da logo oficial
   ============================================ */
:root {
  --blue:    #0B63CE;
  --blue-dk: #074CA3;
  --blue-lt: #D6E9FF;
  --orange:  #FF6E00;
  --orange-lt: #FFF1E6;
  --yellow:  #FFBA00;
  --purple:  #60289B;
  --red:     #E63946;
  --green:   #25D366;
  --ink:     #0D1B2A;
  --muted:   #5A6E84;
  --smoke:   #F0F4F9;
  --white:   #FFFFFF;
  --border:  #D8E4F0;

  --font-display: 'Fredoka', 'Comic Sans MS', cursive;
  --font-body:    'Nunito', system-ui, sans-serif;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-pill: 999px;
  --max-w: 1180px;

  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
  --ease-out: cubic-bezier(.22,1,.36,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
}
p { line-height: 1.65; }
img { display: block; max-width: 100%; }
a { text-decoration: none; }

/* ---- Skip link ---- */
.skip {
  position: absolute;
  left: -100%;
  top: 1rem;
  background: var(--blue);
  color: #fff;
  padding: .5rem 1rem;
  font-weight: 700;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  z-index: 999;
  transition: left .2s;
}
.skip:focus { left: 0; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--border);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: .6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform .2s var(--ease-bounce);
}
.brand-link:hover { transform: scale(1.04) rotate(-1deg); }
.brand-logo {
  height: 54px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-link {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  padding: .45rem .9rem;
  border-radius: var(--r-pill);
  transition: all .15s;
}
.nav-link:hover { background: var(--blue-lt); color: var(--blue-dk); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: .7rem 1.5rem;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  transition: transform .18s var(--ease-bounce), box-shadow .18s, background .15s;
}
.btn:hover  { transform: translateY(-3px) scale(1.02); }
.btn:active { transform: translateY(0) scale(.98); }

.btn-cta {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255,110,0,.35);
  position: relative;
  overflow: hidden;
}
.btn-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.18) 0%, transparent 60%);
}
.btn-cta:hover { box-shadow: 0 10px 28px rgba(255,110,0,.45); background: #e85f00; }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2.5px solid var(--blue);
  box-shadow: none;
}
.btn-outline:hover { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(11,99,206,.25); }

.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(11,99,206,.28);
}
.btn-blue:hover { background: var(--blue-dk); box-shadow: 0 10px 24px rgba(11,99,206,.38); }

.btn-wpp {
  background: var(--green);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 6px 18px rgba(37,211,102,.3);
}
.btn-wpp:hover { background: #1db954; }

.btn-sm { padding: .45rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--red); color: #fff; }

/* ============================================
   MAIN WRAPPER
   ============================================ */
#main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ============================================
   HERO SECTION — Assimétrico + Wave
   ============================================ */
.hero-section {
  background: var(--blue);
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem 7rem;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(255,110,0,.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(96,40,155,.2) 0%, transparent 60%);
}
/* Confetti dots */
.hero-section::after {
  content: '🎈 🎉 ⭐ 🎊 🎈 🌟';
  position: absolute;
  font-size: 2rem;
  top: 2rem;
  right: 3rem;
  letter-spacing: 1.5rem;
  opacity: .18;
  transform: rotate(10deg);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9);
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  padding: .35rem 1rem;
  border-radius: var(--r-pill);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  color: #fff;
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.hero-title em {
  font-style: normal;
  color: var(--yellow);
  position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 5px;
  background: var(--orange);
  border-radius: 999px;
}
.hero-sub {
  color: rgba(255,255,255,.78);
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: 2.25rem;
  font-weight: 500;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual {
  flex-shrink: 0;
  width: 280px;
  opacity: .08;
  font-size: 11rem;
  line-height: 1;
  user-select: none;
}
/* Wave SVG divider */
.wave-down {
  display: block;
  width: 100%;
  height: 80px;
  background: var(--blue);
}
.wave-up {
  display: block;
  width: 100%;
  height: 80px;
}

/* ============================================
   PILL STAT BAR
   ============================================ */
.stat-bar {
  background: var(--yellow);
  padding: 1.1rem 1.5rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.stat-item strong { font-size: 1.5rem; }

/* ============================================
   FEATURES — Layout Editorial Alternado
   ============================================ */
.features-section {
  background: var(--white);
  padding: 5rem 1.5rem 4rem;
}
.section-label {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
  margin-bottom: .75rem;
}
.section-title span { color: var(--blue); }
.section-sub {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 580px;
  margin-bottom: 3.5rem;
  font-weight: 500;
}
.features-stagger {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.feature-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.75rem 2rem;
  border-radius: var(--r-lg);
  border: 2px solid transparent;
  transition: all .2s var(--ease-out);
  position: relative;
}
.feature-row:hover {
  border-color: var(--blue-lt);
  background: var(--blue-lt);
  transform: translateX(6px);
}
.feature-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--blue-lt);
  line-height: 1;
  transition: color .2s;
}
.feature-row:hover .feature-num { color: var(--blue); }
.feature-text h3 {
  font-size: 1.3rem;
  margin-bottom: .4rem;
  color: var(--ink);
}
.feature-text p {
  color: var(--muted);
  font-size: .98rem;
}
@media (max-width: 600px) {
  .feature-row { grid-template-columns: 1fr; gap: .5rem; }
  .feature-num { font-size: 2rem; }
}

/* ============================================
   HOW IT WORKS — Passos visuais
   ============================================ */
.steps-section {
  background: var(--smoke);
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.steps-section::before {
  content: '';
  position: absolute;
  left: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background: var(--blue-lt);
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
}
.steps-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.step-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  position: relative;
  box-shadow: 0 2px 12px rgba(11,99,206,.06);
  transition: transform .2s var(--ease-bounce), box-shadow .2s;
  border: 2px solid transparent;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(11,99,206,.12);
  border-color: var(--blue-lt);
}
.step-bubble {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.step-bubble.orange { background: var(--orange-lt); color: var(--orange); }
.step-bubble.blue   { background: var(--blue-lt);   color: var(--blue);   }
.step-bubble.purple { background: #F4EDFA;           color: var(--purple); }
.step-bubble.green  { background: #E8FBF0;           color: #198754;       }
.step-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.step-card p  { font-size: .93rem; color: var(--muted); }

/* ============================================
   CATALOG HEADER
   ============================================ */
.catalog-hero {
  background: var(--ink);
  color: #fff;
  padding: 2.5rem 1.5rem 2rem;
}
.catalog-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.catalog-store-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.catalog-store-name {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #fff;
}
.catalog-store-city {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.6);
  font-size: .95rem;
  font-weight: 600;
  margin-top: .3rem;
}
.catalog-wpp-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--green);
  color: #fff;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  padding: .6rem 1.2rem;
  border-radius: var(--r-pill);
  transition: all .15s;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37,211,102,.25);
}
.catalog-wpp-btn:hover { background: #1db954; transform: translateY(-2px); }

.catalog-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) { .catalog-controls { grid-template-columns: 1fr; } }

.ctrl-group { display: flex; flex-direction: column; gap: .4rem; }
.ctrl-label {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ctrl-row { display: flex; gap: .6rem; }
.ctrl-row input, .ctrl-row select {
  flex: 1;
  padding: .7rem 1rem;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: var(--r-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  transition: all .15s;
  appearance: none;
}
.ctrl-row select option { background: var(--ink); color: #fff; }
.ctrl-row input::placeholder { color: rgba(255,255,255,.4); }
.ctrl-row input:focus,
.ctrl-row select:focus {
  border-color: var(--yellow);
  background: rgba(255,186,0,.1);
}

/* ============================================
   FILTER PILLS
   ============================================ */
.pills-bar {
  background: var(--smoke);
  border-bottom: 1px solid var(--border);
  padding: .85rem 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.pills-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: .5rem;
}
.fpill {
  flex-shrink: 0;
  padding: .45rem 1.1rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  background: var(--white);
  border: 2px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
}
.fpill:hover { border-color: var(--blue); color: var(--blue); }
.fpill.on { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 4px 10px rgba(11,99,206,.22); }
.fpill.on[data-cat="combos"] { background: var(--orange); border-color: var(--orange); box-shadow: 0 4px 10px rgba(255,110,0,.22); }

/* ============================================
   CATALOG GRID — Masonry-like
   ============================================ */
.catalog-body {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 2.5rem 1.5rem 4rem;
}
.toys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
/* Combo cards span 2 cols on wide screens */
@media (min-width: 900px) {
  .toy-card.is-combo { grid-column: span 2; }
}

.toy-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform .2s var(--ease-bounce), box-shadow .2s, border-color .2s;
  cursor: default;
  position: relative;
}
.toy-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(11,99,206,.1);
  border-color: rgba(11,99,206,.25);
}
.toy-card.unavailable { opacity: .6; filter: grayscale(20%); }
.toy-card.is-combo {
  flex-direction: row;
  min-height: 220px;
}
@media (max-width: 899px) {
  .toy-card.is-combo { flex-direction: column; }
}

/* Photo */
.toy-thumb {
  width: 100%;
  padding-top: 60%;
  position: relative;
  background: linear-gradient(135deg, var(--smoke) 0%, var(--blue-lt) 100%);
  flex-shrink: 0;
  overflow: hidden;
}
.toy-card.is-combo .toy-thumb {
  width: 46%;
  padding-top: 0;
  min-height: 100%;
}
@media (max-width: 899px) {
  .toy-card.is-combo .toy-thumb { width: 100%; padding-top: 52%; }
}
.toy-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s var(--ease-out);
}
.toy-card:hover .toy-thumb img { transform: scale(1.04); }
.toy-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
/* Status chip */
.avail-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: var(--r-pill);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.avail-chip.yes { background: var(--green);  color: #fff; }
.avail-chip.no  { background: var(--red);    color: #fff; }
/* Combo badge */
.combo-ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: var(--r-pill);
  letter-spacing: .5px;
}

/* Card body */
.toy-body {
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .6rem;
}
.toy-name {
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1.25;
}
.toy-desc {
  font-size: .92rem;
  color: var(--muted);
  flex: 1;
  line-height: 1.55;
}
/* Spec tags */
.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.stag {
  font-size: .78rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 6px;
  background: var(--smoke);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.stag.volt { background: var(--blue-lt); color: var(--blue-dk); }
.stag.mon  { background: #F4EDFA; color: var(--purple); }
/* Price row */
.toy-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .25rem;
}
.toy-price {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--blue);
}
.toy-price small {
  font-size: .75rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: .25rem;
}
/* Combo items list */
.combo-items-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: -.2rem;
}
.combo-item-tag {
  background: var(--orange-lt);
  color: var(--orange);
  font-size: .8rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 6px;
}
/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--smoke);
  border-radius: var(--r-lg);
  color: var(--muted);
  font-size: 1.05rem;
}

/* ============================================
   RESERVE MODAL
   ============================================ */
#modal {
  border: none;
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(13,27,42,.22);
  padding: 0;
  max-width: 580px;
  width: 94%;
  margin: auto;
  background: transparent;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#modal[open] { display: flex; flex-direction: column; }
#modal::backdrop { background: rgba(13,27,42,.55); backdrop-filter: blur(5px); }

.modal-box {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(13,27,42,.22);
  width: 100%;
}

.modal-topbar {
  background: var(--blue);
  padding: 1.5rem 1.75rem 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.modal-close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  margin-top: .1rem;
}
.modal-close:hover { background: rgba(255,255,255,.32); }
.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
}
.modal-subtitle { font-size: .9rem; color: rgba(255,255,255,.7); margin-top: .15rem; }

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.summary-block {
  background: var(--blue-lt);
  border-radius: var(--r-md);
  padding: 1.1rem 1.25rem;
}
.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: .95rem;
  font-weight: 600;
  padding: .25rem 0;
  color: var(--ink);
}
.sum-row.total {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--orange);
  border-top: 2px dashed var(--blue-lt);
  margin-top: .5rem;
  padding-top: .75rem;
}

.field-label {
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
  color: var(--muted);
  display: block;
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.field-input {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  background: var(--white);
}
.field-input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-lt); }

.terms-scroll {
  background: #FFF9E6;
  border: 1.5px solid rgba(255,186,0,.5);
  border-radius: var(--r-md);
  padding: .9rem 1rem;
  font-size: .85rem;
  color: #6B4A00;
  max-height: 120px;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.6;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}
.check-label input[type="checkbox"] {
  margin-top: .25rem;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--orange);
}

/* ============================================
   DASHBOARD / PANEL
   ============================================ */
.panel-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  gap: 2rem;
}
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.panel-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--ink);
}
.panel-link {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .25rem;
  transition: color .15s;
}
.panel-link:hover { color: var(--orange); }
.panel-tabs {
  display: flex;
  gap: .25rem;
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ptab {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  padding: .75rem 1.25rem;
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.ptab:hover { color: var(--blue); }
.ptab.on { color: var(--blue); border-bottom-color: var(--blue); }
.tab-content { display: flex; flex-direction: column; gap: 1.5rem; }

/* Table */
.tbl-wrap {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  overflow-x: auto;
  box-shadow: 0 2px 8px rgba(11,99,206,.04);
}
.dtbl {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  text-align: left;
}
.dtbl th, .dtbl td { padding: .9rem 1.1rem; border-bottom: 1px solid var(--border); }
.dtbl th { background: var(--smoke); font-family: var(--font-display); color: var(--muted); font-size: .88rem; }
.dtbl tr:last-child td { border-bottom: none; }

/* Panel cards grid */
.pcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.pcard {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: border-color .2s, box-shadow .2s;
}
.pcard:hover { border-color: rgba(11,99,206,.25); box-shadow: 0 6px 20px rgba(11,99,206,.07); }
.pcard-name { font-size: 1.1rem; color: var(--ink); }
.pcard-meta { font-size: .88rem; color: var(--muted); font-weight: 600; }
.pcard-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; }

/* Form fields in panel */
.pform { display: flex; flex-direction: column; gap: 1rem; max-width: 640px; }
.pform label { font-family: var(--font-display); font-size: .88rem; font-weight: 700; color: var(--muted); display: block; margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .5px; }
.pform input, .pform select, .pform textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.pform input:focus, .pform select:focus, .pform textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-lt);
}
.pform textarea { resize: vertical; min-height: 110px; }
.pform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .pform-row { grid-template-columns: 1fr; } }

/* Chip status */
.chip {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  padding: .22rem .65rem;
  border-radius: var(--r-pill);
  letter-spacing: .3px;
}
.chip-green  { background: #E8FBF0; color: #198754; }
.chip-red    { background: #FEE2E2; color: var(--red); }
.chip-muted  { background: var(--smoke); color: var(--muted); }

/* Auth box */
.auth-box {
  max-width: 420px;
  margin: 3rem auto;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(11,99,206,.08);
}
.auth-top {
  background: var(--blue);
  padding: 2rem 2rem 1.75rem;
  text-align: center;
  color: #fff;
}
.auth-top h2 { font-size: 1.75rem; margin-top: .5rem; }
.auth-top p  { opacity: .75; font-size: .9rem; margin-top: .4rem; }
.auth-body { padding: 2rem; }
.auth-body form { display: flex; flex-direction: column; gap: 1rem; }

/* Pricing */
.pricing-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1.5rem 5rem;
  background: var(--smoke);
}
.pricing-eyebrow {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.pricing-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
  margin-bottom: .75rem;
}
.pricing-title span { color: var(--blue); }
.pricing-sub { color: var(--muted); font-size: 1.08rem; text-align: center; margin-bottom: 3rem; }
.pricing-card {
  background: var(--white);
  border: 3px solid var(--blue);
  border-radius: var(--r-lg);
  padding: 2.75rem 2.25rem;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: 0 10px 40px rgba(11,99,206,.12);
}
.pricing-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  padding: .35rem 1.25rem;
  border-radius: var(--r-pill);
  box-shadow: 0 4px 12px rgba(255,110,0,.3);
  white-space: nowrap;
}
.price-display {
  text-align: center;
  margin: 1.5rem 0;
}
.price-display strong {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.price-display span { font-size: 2rem; vertical-align: super; color: var(--muted); }
.price-display small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.price-trial {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 2rem;
}
.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-bottom: 2.25rem;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .97rem;
  font-weight: 600;
}
.price-features li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--blue-lt);
  color: var(--blue);
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05rem;
}
.price-footnote { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 1rem; }

/* Terms page */
.terms-wrap {
  max-width: 760px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}
.terms-wrap h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.25rem; }
.terms-wrap h3 { font-size: 1.2rem; margin: 2rem 0 .6rem; color: var(--blue); }
.terms-wrap p  { color: var(--muted); line-height: 1.7; }

/* Toast */
#toast {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  background: var(--ink);
  color: #fff;
  padding: .85rem 1.4rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(13,27,42,.22);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  z-index: 999;
  transition: opacity .22s, transform .22s var(--ease-out);
}
#toast.show { opacity: 1; transform: translateY(0); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  padding: 3.5rem 1.5rem 2.5rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 2rem; } }
.footer-logo { height: 48px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .9; }
.footer-tagline { font-size: .92rem; line-height: 1.65; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  margin-bottom: .9rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .55rem;
  transition: color .15s;
}
.footer-col a:hover { color: var(--yellow); }
.footer-price-tag {
  background: rgba(255,186,0,.12);
  border: 1px solid rgba(255,186,0,.25);
  border-radius: var(--r-md);
  padding: .9rem 1rem;
  margin-bottom: 1rem;
  font-size: .88rem;
  line-height: 1.6;
}
.footer-price-tag strong { color: var(--yellow); font-family: var(--font-display); font-size: 1.1rem; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}

/* Utility */
.fw { width: 100%; }
.mt1 { margin-top: .5rem; }
.mt2 { margin-top: 1rem; }
.mt3 { margin-top: 1.5rem; }
.flex { display: flex; gap: .75rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-center { align-items: center; }
.flex-between { justify-content: space-between; }
