/* ==========================================================================
   FÁBRICA STL — ÁREA DE MEMBROS PWA (LIGHT MINIMALIST)
   Visual limpo, fundo branco, foco total no conteúdo e nos projetos 3D.
   Tipografia: Inter | Acento: Indigo #4f46e5 (alinhado à paleta do site)
   ========================================================================== */

:root {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --surface-subtle: #f3f4f6;
  --border: #e5e7eb;
  --border-hover: #d1d5db;

  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;

  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --accent-text: #3730a3;

  --success: #059669;
  --success-hover: #047857;
  --success-soft: #ecfdf5;

  --danger: #dc2626;
  --danger-soft: #fef2f2;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;

  --sidebar-w: 72px;
  --topbar-h: 58px;
  --bottomnav-h: 62px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

.hidden { display: none !important; }

/* ==========================================================================
   BOTÕES & INPUTS
   ========================================================================== */
.input-field {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.93rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input-field::placeholder { color: #9ca3af; }
.input-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.btn-primary {
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, transform 0.12s;
}

.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: translateY(1px); }

.btn-success {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--success);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}

.btn-success:hover { background: var(--success-hover); }

.btn-ghost {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-ghost:hover {
  background: var(--surface-subtle);
  border-color: var(--border-hover);
  color: var(--text);
}

/* ==========================================================================
   LOGIN SCREEN (LIMPO E DIRETO)
   ========================================================================== */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--bg);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  box-shadow: var(--shadow-sm);
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 26px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.login-brand h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.login-brand p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.login-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  border: 1px solid #fecaca;
  color: var(--danger);
  font-size: 0.82rem;
}

.login-help {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-help a {
  color: var(--accent);
  font-weight: 600;
}

.demo-shortcuts {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: center;
}

.demo-shortcuts .demo-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

.demo-pill {
  padding: 6px 11px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}

.demo-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================================
   APP SHELL (HEADER BRANCO + SIDEBAR DISCRETA + BOTTOM NAV)
   ========================================================================== */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-width: 0;
}

.header-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
}

.header-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.install-btn {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 600;
}

.avatar-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s;
}

.avatar-btn:hover { border-color: var(--accent); color: var(--accent); }

.desktop-sidebar { display: none; }

.app-main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px calc(var(--bottomnav-h) + 28px);
}

/* Mobile Fixed Bottom Navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  height: var(--bottomnav-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 4px 8px env(safe-area-inset-bottom, 4px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.15s;
}

.nav-item svg { width: 20px; height: 20px; }
.nav-item.active { color: var(--accent); font-weight: 600; }

@media (min-width: 900px) {
  .desktop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    z-index: 50;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 8px;
    gap: 8px;
  }

  .sidebar-brand {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 14px;
    cursor: pointer;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    align-items: center;
  }

  .sidebar-btn {
    width: 52px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
  }

  .sidebar-btn svg { width: 19px; height: 19px; }
  .sidebar-btn:hover { background: var(--surface-subtle); color: var(--text); }
  .sidebar-btn.active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
  }

  .sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
  }

  .app-header {
    margin-left: var(--sidebar-w);
    padding: 0 28px;
  }

  .app-main {
    margin-left: var(--sidebar-w);
    padding: 26px 32px 48px;
    max-width: calc(100% - var(--sidebar-w));
  }

  .app-main-inner {
    max-width: 1080px;
    margin: 0 auto;
  }

  .mobile-bottom-nav { display: none; }
}

/* ==========================================================================
   BANNER EDITORIAL (LIMPO, SEM NEON)
   ========================================================================== */
.banner-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 26px;
  background: #111827;
}

.banner-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.banner-slide {
  min-width: 100%;
  min-height: 210px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 26px 24px 36px;
  background-size: cover;
  background-position: center;
}

.banner-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.84) 0%, rgba(17, 24, 39, 0.48) 58%, rgba(17, 24, 39, 0.14) 100%);
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
  color: #ffffff;
}

.banner-content h2 {
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.banner-content p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
  margin-bottom: 14px;
}

.banner-cta {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: #111827;
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.15s;
}

.banner-cta:hover { opacity: 0.92; }

.banner-dots {
  position: absolute;
  bottom: 14px;
  left: 24px;
  z-index: 5;
  display: flex;
  gap: 6px;
}

.banner-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.25s, background 0.25s;
}

.banner-dot.active {
  width: 22px;
  background: #ffffff;
}

/* ==========================================================================
   BARRA DE BUSCA E FILTROS (SUBTIL E NATURAL)
   ========================================================================== */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2, .section-head h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
}

.section-sub {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

@media (min-width: 720px) {
  .toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 380px;
}

.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #9ca3af;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-box input::placeholder { color: #9ca3af; }
.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.15s;
}

.chip:hover { border-color: var(--border-hover); color: var(--text); }

.chip.active {
  background: var(--text);
  border-color: var(--text);
  color: #ffffff;
}

/* ==========================================================================
   GRID DE MÓDULOS (FOTO EM DESTAQUE, RODAPÉ LIMPO — CARA DE PORTAL REAL)
   ========================================================================== */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 768px) {
  .modules-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.module-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  text-align: left;
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.module-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.module-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-subtle);
  overflow: hidden;
}

.module-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.module-card:hover .module-cover img {
  transform: scale(1.03);
}

.module-card.locked .module-cover img {
  filter: saturate(0.55) brightness(0.75);
}

.lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(17, 24, 39, 0.38);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  gap: 6px;
}

.lock-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.lock-overlay span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.module-body {
  padding: 13px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.module-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.module-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 4px;
}

.module-meta .price-tag {
  color: var(--accent);
  font-weight: 600;
}

/* ==========================================================================
   GRID DAS 47 CATEGORIAS (PASTAS DE PROJETOS)
   ========================================================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 680px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

@media (min-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

.cat-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  text-align: left;
  box-shadow: var(--shadow-xs);
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}

.cat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.cat-thumb {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: var(--surface-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-folder-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #6b7280;
}

.cat-folder-placeholder svg {
  width: 30px;
  height: 30px;
  color: #9ca3af;
}

.cat-lock-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.78);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 600;
}

.cat-body {
  padding: 11px 13px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cat-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.cat-count {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PÁGINAS INTERNAS (DRIVE, PRIMEIROS PASSOS, COMUNIDADE, PERFIL)
   ========================================================================== */
.back-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}

.upgrade-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.drive-sheet {
  max-width: 720px;
  margin: 0 auto;
}

.drive-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.drive-icon-box {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.drive-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.drive-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.drive-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.drive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000000;
  margin: 14px 0 24px;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.slicers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

@media (min-width: 680px) {
  .slicers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .slicers-grid { grid-template-columns: repeat(3, 1fr); }
}

.slicer-card {
  padding: 15px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.15s, background 0.15s;
}

.slicer-card:hover {
  border-color: var(--accent);
  background: var(--surface);
}

.slicer-card h4 { font-size: 0.92rem; font-weight: 600; color: var(--text); }
.slicer-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.45; }
.slicer-link { font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-top: 4px; }

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .two-col-grid { grid-template-columns: repeat(2, 1fr); }
}

.entitlement-list {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.entitlement-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
}

.entitlement-row:last-child { border-bottom: 0; }

/* ==========================================================================
   MODAL DE LIBERAÇÃO / UPSELL (LIMPO E DIRETO)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-box {
  width: 100%;
  max-width: 450px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  animation: modalIn 0.18s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-cover {
  position: relative;
  height: 155px;
  background: var(--surface-subtle);
}

.modal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.modal-body {
  padding: 20px 22px 22px;
}

.modal-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.modal-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}

.modal-body p.desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.modal-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.modal-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.modal-bullets li span.check {
  color: var(--success);
  font-weight: 700;
}

.modal-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.price-old {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: line-through;
  display: block;
}

.price-now {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.price-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: right;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   TOAST & EMPTY STATE
   ========================================================================== */
.toast {
  position: fixed;
  bottom: calc(var(--bottomnav-h) + 14px);
  right: 16px;
  z-index: 95;
  max-width: 360px;
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  background: #111827;
  color: #ffffff;
  font-size: 0.83rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
}

@media (min-width: 900px) {
  .toast { bottom: 24px; right: 24px; }
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.88rem;
}
