
/* ══════════════════════════════════════════════════════
   SIDE NAVIGATION PANEL
   ══════════════════════════════════════════════════════ */

/* ── Hamburger button ─────────────────────────────── */
.sidenav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: #6B7280;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.sidenav-hamburger:hover {
  background: #F3F4F6;
  color: #111827;
}

/* ── Overlay ──────────────────────────────────────── */
.sidenav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.sidenav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
/* Disable app-nav stacking context when sidenav is open —
   backdrop-filter creates an isolated stacking context that can
   clip/overlay the fixed-position sidenav panel regardless of z-index */
body.sidenav-open .app-nav {
  z-index: 1;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ── Panel ────────────────────────────────────────── */
.sidenav-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: #FFFFFF;
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border-right: 1px solid #E5E7EB;
  box-shadow: none;
  overflow-y: auto;
}
.sidenav-panel.open {
  transform: translateX(0);
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.08);
}

/* ── Panel header ─────────────────────────────────── */
.sidenav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px;
  border-bottom: 1px solid #F3F4F6;
}
.sidenav-brand {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.3px;
}
.sidenav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: #9CA3AF;
  transition: background 0.15s, color 0.15s;
}
.sidenav-close:hover {
  background: #F3F4F6;
  color: #111827;
}

/* ── Menu items ───────────────────────────────────── */
.sidenav-menu {
  padding: 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidenav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  transition: background 0.15s, color 0.15s;
  text-align: left;
}
.sidenav-item:hover {
  background: #F3F4F6;
  color: #111827;
}
.sidenav-item.active {
  background: #F3F4F6;
  color: #111827;
  font-weight: 600;
}
.sidenav-item svg {
  color: #9CA3AF;
  flex-shrink: 0;
  transition: color 0.15s;
}
.sidenav-item:hover svg,
.sidenav-item.active svg {
  color: #374151;
}
.sidenav-lock {
  color: #D1D5DB;
}
.sidenav-item:hover .sidenav-lock {
  color: #D1D5DB;
}

/* ── Get Full Access button (results nav) ──────────── */
.btn-get-access {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #4361ee;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-get-access:hover {
  background: #3451d1;
}

/* ══════════════════════════════════════════════════════
   SETTINGS SCREEN
   ══════════════════════════════════════════════════════ */
.settings-section {
  max-width: 640px;
  margin: 0 auto;
}
.settings-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 14px;
}
.settings-section-title svg {
  color: #9CA3AF;
}
.settings-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
}
.app-section--neutral .settings-card {
  background: #FFFFFF;
}
.app-section--white .settings-card {
  background: #F9FAFB;
  border-color: #F3F4F6;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 16px;
}
.settings-divider {
  height: 1px;
  background: #F3F4F6;
  margin: 0 20px;
}
.settings-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}
.settings-hint {
  font-size: 12px;
  color: #9CA3AF;
  margin-top: 2px;
  line-height: 1.4;
}
.settings-value {
  font-size: 14px;
  color: #6B7280;
  text-align: right;
  flex-shrink: 0;
}

/* ── Settings action button ───────────────────────── */
.settings-action-btn {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: #FFFFFF;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.settings-action-btn:hover {
  background: #F9FAFB;
  border-color: #D1D5DB;
}
.settings-action-btn--danger {
  color: #DC2626;
  border-color: #FECACA;
}
.settings-action-btn--danger:hover {
  background: #FEF2F2;
  border-color: #F87171;
  color: #B91C1C;
}

/* ── Settings select ──────────────────────────────── */
.settings-select {
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: #FFFFFF;
  color: #374151;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}
.settings-select:hover {
  border-color: #D1D5DB;
}
.settings-select:focus {
  border-color: #4361ee;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* ── Settings toggle switch ───────────────────────── */
.settings-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.settings-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.settings-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #D1D5DB;
  border-radius: 24px;
  transition: background 0.2s;
}
.settings-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.settings-toggle input:checked + .settings-toggle-slider {
  background: #4361ee;
}
.settings-toggle input:checked + .settings-toggle-slider::before {
  transform: translateX(20px);
}

/* ── Sidenav responsive ───────────────────────────── */
@media (max-width: 600px) {
  .sidenav-panel { width: 260px; }
}

/* ── Trial Paywall Overlay (fixed, above results) ───── */

.paywall-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.paywall-overlay.active {
  display: flex;
  animation: paywallFadeIn 0.2s ease-out both;
}
.paywall-overlay.closing {
  display: flex;
  animation: paywallFadeOut 0.25s ease-in both;
}

.paywall-card {
  background: #fff;
  border-radius: 16px;
  padding: 34px 40px 32px;
  max-width: 620px;
  width: 92%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: paywallSlideUp 0.35s ease-out both;
  max-height: 90vh;
  overflow-y: auto;
}
.paywall-overlay.closing .paywall-card {
  animation: paywallSlideDown 0.25s ease-in both;
}

.paywall-card h2 {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}

/* Curiosity hook under headline */
.paywall-hook {
  font-size: 13px;
  color: #4361ee;
  font-weight: 500;
  margin: 0 0 18px;
}

.paywall-sub {
  font-size: 13.5px;
  color: #666;
  line-height: 1.5;
  margin: 0 0 26px;
}

/* Feature list */
.paywall-feats {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
  text-align: left;
}
.paywall-feat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.paywall-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-top: 1px;
}
.paywall-icon svg {
  display: block;
}
.paywall-feat-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.paywall-feat-text strong {
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1a2e;
  display: inline;
  margin: 0;
}
.paywall-feat-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.paywall-new-pill {
  font-size: 10px;
  font-weight: 700;
  color: #4361ee;
  background: #e8ebfd;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.paywall-feat-text span:not(.paywall-new-pill) {
  font-size: 12.5px;
  color: #888;
  line-height: 1.35;
  display: block;
  margin: 0;
}

/* Social proof */
.paywall-social {
  text-align: center;
  font-size: 13px;
  color: #555;
  margin-bottom: 24px;
  padding: 0;
  border: none;
}
.paywall-social strong {
  color: #4361ee;
  font-weight: 700;
}

/* Plan cards */
.paywall-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.paywall-plan {
  background: #f9fafb;
  border: 1px solid #ebebef;
  border-radius: 14px;
  padding: 36px 16px 32px;
  text-align: center;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.paywall-plan:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.paywall-plan h3 {
  font-size: 13.5px;
  font-weight: 600;
  margin: 0 0 14px;
  color: #6b7280;
}
.paywall-price {
  font-size: 32px;
  font-weight: 800;
  color: #6b7280;
  line-height: 1.1;
  margin-bottom: 12px;
}
.paywall-detail {
  font-size: 12px;
  color: #999;
  margin-bottom: 22px;
}
.paywall-btn {
  width: 100%;
  padding: 10px 16px !important;
  font-size: 13px !important;
  border-radius: 10px !important;
}
/* Muted button for 2-day plan */
.paywall-plan:not(.paywall-plan--pop) .paywall-btn {
  background: #e5e7eb;
  color: #374151;
}
.paywall-plan:not(.paywall-plan--pop) .paywall-btn:hover {
  background: #d1d5db;
}
.paywall-was-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}
.paywall-was {
  font-size: 15px;
  color: #aaa;
  text-decoration: line-through;
}
.paywall-save {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #22c55e;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
/* Popular plan — strong visual emphasis */
.paywall-plan--pop {
  background: #fff;
  border: 2px solid #4361ee;
  box-shadow: 0 2px 12px rgba(67, 97, 238, 0.14);
}
.paywall-plan--pop:hover {
  box-shadow: 0 6px 24px rgba(67, 97, 238, 0.18);
}
.paywall-plan--pop h3 {
  color: #1a1a2e;
}
.paywall-plan--pop .paywall-price {
  color: #1a1a2e;
}
.paywall-tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #4361ee;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Guarantee */
.paywall-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: #888;
  margin-top: 2px;
  margin-bottom: 10px;
}
.paywall-guarantee svg {
  width: 14px;
  height: 14px;
  color: #059669;
  flex-shrink: 0;
  display: block;
}

/* Animations */
@keyframes paywallFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes paywallSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes paywallFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes paywallSlideDown {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(20px); }
}

/* Sample results unlock sub */
.unlock-sub {
  margin-top: 8px;
  font-size: 13px;
  color: #888;
}

@media (max-width: 500px) {
  .paywall-card { padding: 24px 20px 22px; border-radius: 14px; }
  .paywall-plans { grid-template-columns: 1fr; }
  .paywall-card h2 { font-size: 20px; }
}
