/* Aasiya — first-run onboarding wizard.
   Everything here is painted from the shared design tokens in styles.css / themes.css,
   so the wizard restyles itself live with the rest of the app on all five designs. */

.ob-locked { overflow: hidden; }

.ob-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(900px 420px at 50% -8%, var(--surface-2, #144233) 0%, transparent 62%),
    var(--field, #0b2b21);
  color: var(--text, #eef3ee);
  animation: ob-fade .28s cubic-bezier(.16, 1, .3, 1);
}

@keyframes ob-fade { from { opacity: 0; } }
@keyframes ob-rise { from { opacity: 0; transform: translateY(14px); } }

.ob-sheet {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100dvh - 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 46px 20px 22px;
  border: 1px solid var(--line, rgba(214, 178, 94, .18));
  border-radius: var(--r-lg, 22px);
  background: var(--surface, #0f3529);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
  outline: none;
}

/* faint geometric watermark so the sheet never reads as a plain box */
.ob-sheet::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23d6b25e' stroke-width='1'%3E%3Cpath d='M36 4 44 28 68 36 44 44 36 68 28 44 4 36 28 28Z'/%3E%3Ccircle cx='36' cy='36' r='10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 72px 72px;
}

/* ---------- chrome ---------- */

.ob-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  line-height: 1;
  font-size: 1.5rem;
  border-radius: 50%;
  color: var(--text-dim, #a9bfb2);
  border: 1px solid var(--line, rgba(214, 178, 94, .18));
  transition: color .2s, border-color .2s, transform .15s;
  z-index: 2;
}
.ob-x:hover { color: var(--gold-bright, #f0d18a); border-color: var(--gold-dim, #9c8140); }
.ob-x:active { transform: scale(.94); }

.ob-dots {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.ob-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line, rgba(214, 178, 94, .18));
  transition: width .3s cubic-bezier(.16, 1, .3, 1), background .3s;
}
.ob-dot.past { background: var(--gold-dim, #9c8140); }
.ob-dot.on { width: 20px; border-radius: 999px; background: var(--gold, #d6b25e); }

/* ---------- body ---------- */

.ob-body {
  position: relative;
  z-index: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: ob-rise .32s cubic-bezier(.16, 1, .3, 1);
}

.ob-logo {
  display: block;
  height: 40px;
  width: auto;
  margin: 4px auto 16px;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .35)) brightness(1.9) saturate(.6);
}

.ob-kicker {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold, #d6b25e);
  margin-bottom: 6px;
}
.ob-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.ob-note {
  color: var(--text-dim, #a9bfb2);
  font-size: .88rem;
  line-height: 1.5;
  margin-top: 8px;
}
.ob-fine {
  color: var(--text-dim, #a9bfb2);
  font-size: .76rem;
  line-height: 1.45;
  opacity: .8;
  margin-top: 14px;
}

.ob-facts {
  list-style: none;
  margin-top: 16px;
  display: grid;
  gap: 9px;
}
.ob-facts li {
  position: relative;
  padding-left: 20px;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--text-dim, #a9bfb2);
}
.ob-facts li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .55em;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--gold, #d6b25e);
}

/* ---------- buttons ---------- */

.ob-btn {
  background: var(--gold, #d6b25e);
  color: #21190a;
  font-weight: 600;
  font-size: .88rem;
  border-radius: var(--r-pill, 999px);
  padding: 11px 20px;
  transition: transform .15s, box-shadow .2s, opacity .2s;
  box-shadow: 0 4px 18px rgba(214, 178, 94, .22);
}
.ob-btn:active { transform: scale(.97); }
.ob-btn.ghost {
  background: transparent;
  color: var(--gold, #d6b25e);
  border: 1px solid var(--gold-dim, #9c8140);
  box-shadow: none;
}
.ob-btn.wide { width: 100%; margin-top: 18px; }

.ob-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid var(--line, rgba(214, 178, 94, .18));
  margin-top: auto;
}
.ob-next {
  width: 100%;
  margin-top: 12px;
  background: var(--gold, #d6b25e);
  color: #21190a;
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--r-pill, 999px);
  padding: 13px 22px;
  box-shadow: 0 6px 22px rgba(214, 178, 94, .26);
  transition: transform .15s, box-shadow .2s;
}
.ob-next:active { transform: scale(.98); }
.ob-skip {
  color: var(--text-dim, #a9bfb2);
  font-size: .8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 8px;
  transition: color .2s;
}
.ob-skip:hover { color: var(--gold-bright, #f0d18a); }

/* ---------- voice cards ---------- */

.ob-cards { display: grid; gap: 10px; margin-top: 16px; }

.ob-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--r-md, 14px);
  background: var(--surface-2, #144233);
  border: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.ob-card.sel { border-color: var(--gold-dim, #9c8140); }
.ob-card.ob-flash { border-color: var(--gold, #d6b25e); }
.ob-card-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ob-card-info b { font-size: .95rem; font-weight: 600; }
.ob-card-sub { font-size: .74rem; color: var(--text-dim, #a9bfb2); line-height: 1.35; }
.ob-card-btns { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.ob-card-btns .ob-btn { font-size: .75rem; padding: 7px 13px; box-shadow: none; }

/* ---------- theme cards ---------- */

.ob-themes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.ob-theme-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 13px 12px;
  text-align: left;
  border-radius: var(--r-md, 14px);
  background: var(--surface-2, #144233);
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 0 transparent;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.ob-theme-card:active { transform: scale(.98); }
.ob-theme-card.sel {
  border-color: var(--gold, #d6b25e);
  box-shadow: 0 0 0 2px var(--gold-dim, #9c8140) inset;
}
.ob-pal { display: flex; gap: 5px; }
.ob-pal-dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .28);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.ob-theme-name { font-size: .82rem; font-weight: 500; }

/* ---------- language chips ---------- */

.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ob-chip {
  font-size: .85rem;
  padding: 9px 15px;
  border-radius: var(--r-pill, 999px);
  color: var(--text, #eef3ee);
  background: var(--surface-2, #144233);
  border: 1px solid var(--line, rgba(214, 178, 94, .18));
  transition: border-color .2s, color .2s, background .2s, transform .15s;
}
.ob-chip:active { transform: scale(.96); }
.ob-chip.sel {
  color: #21190a;
  background: var(--gold, #d6b25e);
  border-color: var(--gold, #d6b25e);
  font-weight: 600;
}

/* ---------- small screens ---------- */

@media (max-height: 700px) {
  .ob-sheet { padding: 40px 16px 18px; gap: 12px; }
  .ob-logo { height: 32px; margin-bottom: 12px; }
  .ob-title { font-size: 1.32rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ob-overlay, .ob-body { animation: none; }
  .ob-dot, .ob-btn, .ob-next, .ob-chip, .ob-theme-card { transition: none; }
}
