:root {
  --primary: #9fc33b;
  --primary-hover: #84a42e;
  --primary-light: #f5fae8;
  --primary-border: #d5e89d;
  --brand-grey: #646464;
  --brand-grey-dark: #4a4a4a;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --bg: #edf1f5;
  --text-main: #2d3748;
  --text-muted: #646464;
  --text-subtle: #8c8c8c;
  --border: #e2e8f0;
  --border-light: rgba(226, 232, 240, 0.8);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 30px -4px rgba(15, 23, 42, 0.08);
  --shadow-float: 0 10px 25px rgba(159, 195, 59, 0.28);
  --radius-2xl: 22px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Plus Jakarta Sans', sans-serif; -webkit-tap-highlight-color: transparent; user-select: none; }
body {
  background:
    radial-gradient(circle at 14% 16%, rgba(159, 195, 59, 0.22) 0%, transparent 42%),
    radial-gradient(circle at 86% 62%, rgba(159, 195, 59, 0.18) 0%, transparent 46%),
    radial-gradient(circle at 50% 92%, rgba(100, 100, 100, 0.25) 0%, transparent 52%),
    linear-gradient(180deg, #262c35 0%, #1d2229 50%, #15191f 100%) !important;
  background-attachment: fixed !important;
  color: var(--text-main);
  padding-bottom: calc(110px + env(safe-area-inset-bottom, 20px));
  min-height: 100vh;
  overflow-x: hidden;
}
.app-wrapper { margin: 0 auto; padding: 12px 16px; }

header {
  position: static !important;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-xl);
  padding: 12px 16px; margin-bottom: 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.brand-combo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #aed446 0%, #8cae2d 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; box-shadow: 0 4px 12px rgba(159, 195, 59, 0.35);
}
.brand-text h1 { font-size: 17px; font-weight: 800; letter-spacing: -0.4px; color: var(--text-main); line-height: 1.1; }
.brand-text span { font-size: 10.5px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.6px; }

.header-wa-btn {
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary-hover);
  font-size: 11.5px; font-weight: 800; padding: 7px 14px; border-radius: var(--radius-pill);
  display: flex; align-items: center; gap: 6px; text-decoration: none;
}

.store-hud-bar {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 8px 14px !important; margin-bottom: 8px !important;
  display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow-sm);
}
.store-address-txt { font-size: 13px; font-weight: 800; color: var(--text-main); }
.live-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: var(--radius-pill); }
.status-open { background: #dcfce7; color: #15803d; }
.status-closed { background: #fee2e2; color: #b91c1c; }
.pulse-dot { width: 6.5px; height: 6.5px; border-radius: 50%; background: currentColor; animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.7); opacity: 0.4; } }
.map-link-btn { background: var(--surface-subtle); border: 1px solid var(--border); color: var(--primary); font-size: 11.5px; font-weight: 800; padding: 6px 12px; border-radius: 10px; text-decoration: none; }

.page-section { display: block; animation: fadeIn 0.25s var(--smooth); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* BARRA DI RICERCA ADESIVA (STICKY) */
.controls-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  position: -webkit-sticky;
  position: sticky;
  top: 8px;
  z-index: 45;
  background: rgba(237, 241, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 6px;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: all 0.2s ease;
}
.search-wrapper { position: relative; flex: 1; }
.search-input {
  width: 100%; padding: 13px 16px 13px 44px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  font-size: 14px; font-weight: 600; color: var(--text-main); outline: none; box-shadow: var(--shadow-sm);
}
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--text-muted); }
.sort-select {
  padding: 0 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; font-size: 13px; font-weight: 700; color: var(--text-main); outline: none; cursor: pointer; box-shadow: var(--shadow-sm);
}

.chips-row { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 4px; }
.chips-row::-webkit-scrollbar { display: none; }
.chip-btn {
  padding: 8px 16px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 800;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
  cursor: pointer; white-space: nowrap; box-shadow: var(--shadow-sm); transition: all 0.2s var(--spring);
}
.chip-btn.active { background: var(--primary); color: #ffffff; border-color: var(--primary); box-shadow: 0 4px 12px rgba(159, 195, 59, 0.35); }

.card-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 14px 16px; margin-bottom: 12px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--spring), box-shadow 0.2s; position: relative; cursor: pointer;
}
.card-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.thumb-frame {
  width: 114px; height: 138px; border-radius: 16px; background: #ffffff; border: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; position: relative;
}
.card-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(15,23,42,0.6); color: #fff; border: none; border-radius: 50%;
  width: 20px; height: 20px; font-size: 11px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 5;
}
.card-carousel-btn.prev { left: 3px; }
.card-carousel-btn.next { right: 3px; }

.card-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.badge-tag { align-self: flex-start; font-size: 9.5px; font-weight: 800; padding: 3px 8px; border-radius: 6px; letter-spacing: 0.3px; }
.tag-condition { background: #ecfdf5; color: #5c7325; border: 1px solid #e2f2b3; text-transform: uppercase; }
.card-title { font-size: 15.5px; font-weight: 800; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.meta-pill { background: var(--surface-subtle); border: 1px solid var(--border); color: var(--text-muted); font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px; }

/* VARIANTI DISPONIBILITÀ: VERDE vs GIALLO vs ARANCIONE vs ROSSO */
.pill-avail-green { background: #dcfce7 !important; color: #15803d !important; border-color: #86efac !important; }
.pill-avail-yellow { background: #fef9c3 !important; color: #a16207 !important; border-color: #fde047 !important; }
.pill-avail-orange { background: #ffedd5 !important; color: #c2410c !important; border-color: #fed7aa !important; }
.pill-avail-red { background: #fee2e2 !important; color: #b91c1c !important; border-color: #fca5a5 !important; }

.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--border); }
.price-main { font-size: 20px; font-weight: 900; color: var(--primary); letter-spacing: -0.5px; }
.btn-book-act {
  background: var(--primary); color: #ffffff; border: none; padding: 8px 14px; border-radius: 10px;
  font-size: 12px; font-weight: 800; cursor: pointer; box-shadow: 0 2px 8px rgba(159, 195, 59, 0.3);
}
.btn-book-act.order-mode {
  background: #ea580c !important;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35) !important;
}
.btn-book-act.incoming-mode {
  background: #ca8a04 !important;
  box-shadow: 0 2px 8px rgba(202, 138, 4, 0.35) !important;
}

.content-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-2xl); padding: 18px 16px; margin-bottom: 14px; box-shadow: var(--shadow-sm); position: relative; }
.box-title { font-size: 16px; font-weight: 800; color: var(--text-main); margin-bottom: 3px; }
.box-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.4; }
.form-field-label { font-size: 12px; font-weight: 800; color: var(--text-main); margin-bottom: 6px; display: block; }
.input-light, .select-light { width: 100%; padding: 12px 14px; background: var(--surface-subtle); border: 1px solid var(--border); border-radius: 12px; font-size: 13.5px; font-weight: 600; color: var(--text-main); outline: none; margin-bottom: 12px; }
.segmented-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.segment-cell { padding: 11px 10px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface-subtle); text-align: center; cursor: pointer; }
.segment-cell.active { background: var(--primary-light); border-color: var(--primary); }
.segment-cell-title { font-size: 12.5px; font-weight: 800; color: var(--text-main); }
.segment-cell.active .segment-cell-title { color: var(--primary-hover); }
.segment-cell-sub { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

.repair-opt-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 13px 14px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; position: relative; }
.repair-opt-card.featured { border-color: var(--primary); background: #f0fdf4; }
.trade-broken-promo { margin-top: 14px; padding: 14px 16px; background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border: 1.5px solid #93c5fd; border-radius: 16px; display: flex; align-items: center; gap: 12px; }
.trade-broken-val { font-size: 24px; font-weight: 900; color: #1d4ed8; }
.btn-primary-block { width: 100%; padding: 14px; border-radius: 14px; background: var(--primary); color: #ffffff; border: none; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: var(--shadow-float); display: flex; align-items: center; justify-content: center; gap: 6px; }

.custom-quote-box {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 16px;
  padding: 16px;
  margin-top: 14px;
}

/* === BARRA INFERIORE TOUCH SCROLL FLUIDO === */
.nav-bottom-bar {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  max-width: 580px;
  margin: 0 auto;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-light);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  z-index: 60;
  
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 12px !important;
  
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-behavior: smooth !important;
  touch-action: pan-x !important;
  scrollbar-width: none !important;
}

.nav-bottom-bar::-webkit-scrollbar {
  display: none !important;
}

.nav-tab-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-subtle);
  cursor: pointer;
  flex: 0 0 auto !important;
  min-width: 66px !important;
  padding: 6px 10px !important;
  border-radius: 14px !important;
  transition: all 0.2s ease !important;
}

.nav-tab-btn.active {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
}

.nav-icon {
  font-size: 19px;
  display: block;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px 14px;
}
.sheet-box {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  border-radius: 24px;
  padding: 18px 18px 20px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  position: relative;
}
.bundle-box { background: var(--surface-subtle); border: 1.5px solid var(--border); border-radius: 16px; padding: 14px 16px; margin: 16px 0; }
.bundle-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: #ffffff; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
.bundle-row.selected { border-color: var(--primary); background: var(--primary-light); }
.hidden { display: none !important; }

.detail-gallery {
  position: relative; width: 100%; height: 210px; background: #f8fafc; border: 1px solid var(--border);
  border-radius: 16px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 12px;
}
.detail-gallery img { max-width: 90%; max-height: 90%; object-fit: contain; }
.gallery-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(15,23,42,0.7);
  color: #fff; border: none; border-radius: 50%; width: 34px; height: 34px; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.gallery-nav-btn.prev { left: 10px; }
.gallery-nav-btn.next { right: 10px; }

.spec-list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 16px; }
.spec-box { background: var(--surface-subtle); border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; }
.spec-box-label { font-size: 10.5px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }
.spec-box-val { font-size: 13px; font-weight: 800; color: var(--text-main); margin-top: 2px; }

/* AVVISO PREVIA VERIFICA MAGAZZINO & IN ARRIVO */
.notice-warehouse-check {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #c2410c;
  line-height: 1.4;
  margin-bottom: 12px;
}
.notice-incoming-check {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fefce8;
  border: 1.5px solid #fde047;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #854d0e;
  line-height: 1.4;
  margin-bottom: 12px;
}

@media (min-width: 640px) {
  .app-wrapper { padding: 20px 32px; }
  #phoneList, #accessoryList { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
  .sheet-box.desktop-two-cols {
    max-width: 820px !important;
    max-height: 88vh !important;
    overflow-y: visible !important;
    padding: 24px 28px !important;
  }
  .dtl-two-cols-wrap {
    display: flex !important;
    gap: 24px !important;
    align-items: center !important;
  }
  .dtl-col-left {
    flex: 1 1 42% !important;
    max-width: 360px !important;
  }
  .dtl-col-right {
    flex: 1 1 58% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }
  .dtl-col-left .detail-gallery {
    height: 330px !important;
    margin-bottom: 0 !important;
  }
}

@media (min-width: 850px) {
  body { padding-bottom: 160px !important; }
  .app-wrapper { max-width: 1480px; padding: 12px 28px !important; }
  header { padding: 16px 28px; margin-bottom: 24px; }
  .brand-text h1 { font-size: 22px; }
  .logo-icon { width: 52px; height: 52px; font-size: 28px; border-radius: 14px; }
  .header-wa-btn { font-size: 14.5px; padding: 10px 22px; }
  .search-input { font-size: 16px; padding: 16px 20px 16px 52px; }
  .sort-select { font-size: 15px; padding: 0 20px; }
  #phoneList, #accessoryList { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 24px; }
  .card-item { padding: 22px 24px; border-radius: 22px; }
  .thumb-frame { width: 124px !important; height: 148px !important; border-radius: 18px !important; }
  .card-title { font-size: 19px; }
  .price-main { font-size: 25px; }
  .nav-bottom-bar {
    bottom: 24px !important;
    padding: 8px 16px !important;
    gap: 8px !important;
  }
  .nav-tab-btn { font-size: 15px !important; padding: 10px 18px !important; border-radius: 20px !important; }
  .nav-tab-btn .nav-icon { font-size: 32px !important; }
}

.hero-banner {
  background: linear-gradient(135deg, #1b2028 0%, #262c36 50%, #1f252f 100%);
  border: 1px solid rgba(159, 195, 59, 0.22);
  border-radius: var(--radius-2xl);
  padding: 22px 18px; color: #ffffff; margin-bottom: 16px;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.35); position: relative; overflow: hidden;
}
.hero-banner::after {
  content: ''; position: absolute; top: -40px; right: -40px; width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(159, 195, 59, 0.22) 0%, transparent 70%); border-radius: 50%; pointer-events: none;
}
.hero-pill-badge {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(159, 195, 59, 0.14);
  border: 1px solid rgba(159, 195, 59, 0.35); backdrop-filter: blur(10px);
  padding: 4px 12px; border-radius: var(--radius-pill); font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 10px; color: #c2e475;
}
.hero-title { font-size: 21px; font-weight: 900; line-height: 1.22; letter-spacing: -0.4px; margin-bottom: 8px; color: #ffffff; }
.hero-subtitle { font-size: 12.5px; color: #cbd5e1; line-height: 1.5; margin-bottom: 16px; max-width: 580px; }
.hero-features-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 16px; }
@media (min-width: 620px) {
  .hero-features-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-title { font-size: 25px; }
}
.hero-feat-item {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px); border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 10px;
}
.hero-feat-icon { font-size: 22px; filter: drop-shadow(0 2px 4px rgba(159, 195, 59, 0.4)); }
.hero-feat-text strong { display: block; font-size: 12.5px; font-weight: 800; color: #ffffff; }
.hero-feat-text span { font-size: 11px; color: #94a3b8; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-btn-primary {
  background: var(--primary); color: #1e260c; font-size: 12px; font-weight: 900;
  padding: 10px 18px; border-radius: 12px; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 4px 14px rgba(159, 195, 59, 0.35);
  transition: transform 0.2s, background 0.2s;
}
.hero-btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}
.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.08); color: #ffffff; font-size: 12px; font-weight: 800;
  padding: 10px 18px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.2s;
}
.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.payments-strip-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 12px 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-sm);
}
.payments-strip-header { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; }
.payments-pills-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.payment-tag {
  display: inline-flex; align-items: center; gap: 6px; background: var(--surface-subtle);
  border: 1px solid var(--border); padding: 6px 12px; border-radius: 10px; font-size: 11.5px; font-weight: 800;
}
.payment-tag.klarna { background: #ffe4e6; border-color: #fecdd3; color: #9f1239; }
.payment-tag.compass { background: #e0f2fe; border-color: #bae6fd; color: #0369a1; }

.editorial-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 22px 20px;
  margin-top: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.editorial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.editorial-icon {
  font-size: 26px;
  flex-shrink: 0;
}
.editorial-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}
.editorial-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.editorial-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
}
.editorial-body p:last-child {
  margin-bottom: 0;
}
.guide-article {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 12px;
}
.guide-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}
.guide-article p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.faq-section {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-2xl);
  padding: 20px 18px; margin-top: 24px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.faq-item { border-bottom: 1px solid var(--border); padding: 12px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-question { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 13.5px; font-weight: 800; }
.faq-icon-arrow { font-size: 14px; transition: transform 0.25s ease; color: var(--text-muted); }
.faq-item.active .faq-icon-arrow { transform: rotate(180deg); color: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; font-size: 12.5px; color: var(--text-muted); line-height: 1.6; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.active .faq-answer { max-height: 350px; padding-top: 8px; }

.floating-wa-btn {
  position: fixed; right: 18px; bottom: 84px; z-index: 55; background: #25D366; color: #ffffff;
  border-radius: 9999px; padding: 10px 16px; display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 800; text-decoration: none; box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}
@media (min-width: 850px) { .floating-wa-btn { bottom: 32px; right: 32px; padding: 12px 20px; font-size: 14px; } }
.thumb-frame img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  padding: 5px !important;
  box-sizing: border-box !important;
  display: block !important;
  transition: opacity 0.25s ease-in-out !important;
}

.cookie-banner-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(159, 195, 59, 0.35);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  display: none;
  color: #f8fafc;
}
.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 768px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
}
.cookie-text {
  font-size: 12.5px;
  line-height: 1.55;
  color: #cbd5e1;
}
.cookie-text a {
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
}
.cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.cookie-btn-accept {
  background: var(--primary);
  color: #1e260c;
}
.cookie-btn-accept:hover {
  background: var(--primary-hover);
}
.cookie-btn-reject {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.cookie-btn-manage {
  background: transparent;
  color: #94a3b8;
  text-decoration: underline;
  padding: 9px 10px;
}

.legal-modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 820px;
  border-radius: 22px;
  padding: 24px 22px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  color: var(--text-main);
  line-height: 1.65;
}
.legal-modal-box h2 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 6px;
  color: var(--text-main);
}
.legal-modal-box h3 {
  font-size: 15px;
  font-weight: 800;
  margin-top: 18px;
  margin-bottom: 6px;
  color: #0f172a;
}
.legal-modal-box p, .legal-modal-box li {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.legal-modal-box ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 12px 0 16px;
}
.legal-table th, .legal-table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
}
.legal-table th {
  background: var(--surface-subtle);
  font-weight: 800;
}

.ad-slot-container {
  display: block;
  text-align: center;
  position: relative;
  background: transparent;
}
.ads-banner-horizontal {
  width: 100%;
  margin: 18px 0;
}

.ads-skyscraper {
  display: none;
}
@media (min-width: 1720px) {
  .ads-skyscraper {
    display: block;
    position: fixed;
    top: 90px;
    width: 160px;
    height: 600px;
    z-index: 30;
  }
  .ads-skyscraper-left {
    left: 24px;
  }
  .ads-skyscraper-right {
    right: 24px;
  }
}