/*──────────────────────────────────────────────────────
  Luogen Agent — Shared Styles
──────────────────────────────────────────────────────*/
:root {
  --gold: #D4AF37;
  --gold-dim: #B8932A;
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, "PingFang SC", "SF Pro Display", "Inter", sans-serif;
  background: #08080D;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Golden gradient background ── */
.bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 100% 50% at 30% -10%, rgba(212,175,55,.20) 0%, transparent 60%),
    radial-gradient(ellipse 80% 40% at 70% 20%, rgba(180,140,40,.10) 0%, transparent 50%),
    radial-gradient(ellipse 120% 60% at 50% 80%, rgba(150,120,50,.06) 0%, transparent 50%),
    linear-gradient(180deg, #08080D 0%, #0C0C14 40%, #0A0A10 100%);
}
.bg::after {
  content: ''; position: absolute; pointer-events: none;
  top: -30%; left: 20%; width: 60%; height: 60%;
  background: radial-gradient(ellipse 60% 40% at center, rgba(212,175,55,.08) 0%, transparent 70%);
}

/* ── Content container ── */
.container {
  position: relative; z-index: 1;
  height: 100%; display: flex; flex-direction: column;
  padding: 0 18px;
}

/* ── Top bar ── */
.top-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0 6px; position: relative; z-index: 2;
}
.back-btn {
  width: 34px; height: 34px; border-radius: 12px; border: none;
  background: rgba(255,255,255,.04); color: #C9A84C; font-size: 20px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212,175,55,.08); flex-shrink: 0;
}
.top-title {
  font-size: 17px; font-weight: 600; color: rgba(255,255,255,.9);
  position: absolute; left: 50%; transform: translateX(-50%); letter-spacing: 1px;
}

/* ── Steps nav ── */
.steps-nav {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 0 14px; overflow-x: auto;
  scrollbar-width: none; flex-shrink: 0;
}
.steps-nav::-webkit-scrollbar { display: none; }
.step-btn {
  flex-shrink: 0; padding: 7px 14px; border-radius: 20px;
  border: 2px solid transparent; font-size: 12px; font-weight: 500;
  cursor: pointer; transition: .3s; white-space: nowrap;
  background: rgba(255,255,255,.04); color: rgba(255,255,255,.35);
}
.step-btn.active {
  background: linear-gradient(145deg, #D4AF37, #C9A84C);
  color: #000; font-weight: 600; border-color: #D4AF37;
}
.step-btn.passed {
  background: rgba(255,255,255,.05); color: rgba(255,255,255,.55);
  border-color: #C9A84C;
}
.step-arrow { color: rgba(255,255,255,.12); font-size: 10px; flex-shrink: 0; margin: 0 -2px; }

/* ── Bottom nav ── */
.bottom-nav {
  flex-shrink: 0; margin: 12px -18px 0; padding: 10px 28px 16px;
  background: rgba(255,255,255,.03); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,.03);
  display: flex; justify-content: space-around; align-items: center;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; cursor: pointer; font-size: 11px;
}
.nav-item svg { width: 20px; height: 20px; }
.nav-label {
  font-size: 10px; font-weight: 600; letter-spacing: .5px;
}
.nav-label-gold {
  background: linear-gradient(135deg, #F5E6A3, #D4AF37);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-label-matte { color: rgba(255,255,255,.25); }
.nav-play-btn {
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: linear-gradient(145deg, #D4AF37, #C9A84C);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; margin-top: -16px;
}
.nav-play-btn svg { width: 20px; height: 20px; fill: #0A0A0F; }

/* ── Main card (glass) ── */
.main-card {
  flex: 1; overflow-y: auto; padding: 10px 0 20px;
  scrollbar-width: none;
}
.main-card::-webkit-scrollbar { display: none; }

/* ── Toast ── */
.toast {
  position: fixed; top: 60px; left: 50%; transform: translateX(-50%);
  padding: 8px 20px; border-radius: 12px; z-index: 100;
  background: rgba(20,20,40,.95); border: 1px solid rgba(212,175,55,.15);
  color: rgba(255,255,255,.8); font-size: 13px;
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.toast.show { opacity: 1; }

/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Utility ── */
.hide-scrollbar { scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* ── Safe area support (notch phones) ── */
.bottom-nav {
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .container { padding-bottom: env(safe-area-inset-bottom, 0px); }
}

/* ── Responsive fixes ── */
@media (max-width: 360px) {
  .step-btn { padding: 6px 10px; font-size: 11px; }
  .top-title { font-size: 15px; }
}
@media (min-width: 768px) {
  .container { max-width: 640px; margin: 0 auto; padding: 0 24px; }
  .bottom-nav { max-width: 640px; align-self: center; border-radius: 20px 20px 0 0; }
}
