:root {
  --pink: #ff6b81;
  --purple: #6c5ce7;
  --pink-light: #ff8fa3;
  --purple-dark: #5a4bd1;
  --bg: #0f0e17;
  --bg-card: #1a1928;
  --bg-elevated: #242338;
  --text: #f5f5f7;
  --text-muted: #a0a0b0;
  --gradient: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);
  --shadow: 0 8px 32px rgba(108, 92, 231, 0.25);
  --radius: 16px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--pink-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--pink);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 107, 129, 0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1.33rem;
  color: var(--text);
  font-weight: 700;
  font-size: 2.05rem;
}

.logo:hover {
  color: var(--text);
}

[data-logo] {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo-icon {
  width: 85px;
  height: 85px;
  flex-shrink: 0;
  display: block;
  overflow: visible;
}

.logo-symbol {
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover .logo-qmark {
  transform: translate(12px, -12px);
}

.logo:hover .logo-heart {
  transform: translate(-15px, 12px);
}

.logo-infinity,
.logo-ring {
  transition: opacity 0.3s, stroke-width 0.3s;
}

.logo:hover .logo-infinity,
.logo:hover .logo-ring {
  opacity: 1;
}

.logo-q {
  transition: transform 0.55s ease;
}

.logo:hover .logo-q {
  transform: scale(1.12);
}

.footer-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1em;
  max-width: 1200px;
  margin: 0 auto 0.75rem;
  padding: 0 0.25rem;
}

.footer-line > span {
  flex: 0 1 auto;
  text-align: left;
}

.footer-icp {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s;
}

.footer-icp:hover {
  color: var(--pink-light);
}

.logo-text span {
  display: block;
  font-size: 1.24rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.nav-main {
  display: flex;
  gap: 0.5rem;
}

.nav-main a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--text);
  background: rgba(108, 92, 231, 0.2);
}

.user-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-elevated);
  border-radius: 999px;
}

.stat-badge strong {
  color: var(--pink);
}

/* Hero */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.hero-tagline {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* Chat panel */
.chat-panel {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(108, 92, 231, 0.3);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-messages {
  min-height: 280px;
  max-height: 400px;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.msg {
  max-width: 90%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  white-space: pre-wrap;
}

.msg-user {
  align-self: flex-end;
  background: var(--gradient);
  color: #fff;
}

.msg-ai {
  align-self: flex-start;
  background: var(--bg-elevated);
  border-left: 3px solid var(--purple);
}

.msg-welcome {
  color: var(--text-muted);
  text-align: center;
  align-self: center;
  max-width: 100%;
  background: transparent;
  border: none;
}

.chat-input-area {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-input-area textarea {
  width: 100%;
  min-height: 80px;
  padding: 1rem;
  border: 1px solid rgba(108, 92, 231, 0.4);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
}

.chat-input-area textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 107, 129, 0.2);
}

.chat-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 107, 129, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(108, 92, 231, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple);
}

.btn-secondary:hover {
  background: rgba(108, 92, 231, 0.15);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.privacy-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Sidebar hot list */
.sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hot-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid rgba(255, 107, 129, 0.2);
}

.hot-card h3 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--pink-light);
}

.hot-list {
  list-style: none;
}

.hot-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s;
}

.hot-list li:hover {
  color: var(--pink);
}

.hot-list li:last-child {
  border-bottom: none;
}

.hot-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Features */
.features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(108, 92, 231, 0.2);
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--pink);
}

.feature-card h4 {
  color: var(--pink-light);
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Success wall */
.success-wall {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.story-card {
  background: var(--bg-card);
  padding: 1.25rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--purple);
}

.story-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 107, 129, 0.2);
  border-radius: 4px;
  color: var(--pink);
  margin-bottom: 0.5rem;
}

.story-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Pitfalls page */
.page-hero {
  text-align: center;
  padding: 2.5rem 1.5rem 1.5rem;
}

.page-hero h1 {
  font-size: 2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.filters {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.4rem 1rem;
  border: 1px solid rgba(108, 92, 231, 0.4);
  background: transparent;
  color: var(--text-muted);
  border-radius: 999px;
  font-family: inherit;
  cursor: pointer;
  font-size: 0.85rem;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

.pitfall-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  columns: 1;
  column-gap: 1.25rem;
}

@media (min-width: 600px) {
  .pitfall-grid {
    columns: 2;
  }
}

@media (min-width: 900px) {
  .pitfall-grid {
    columns: 3;
  }
}

.pitfall-card {
  break-inside: avoid;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 107, 129, 0.15);
  transition: border-color 0.2s;
}

.pitfall-card:hover {
  border-color: var(--purple);
}

.pitfall-card .category {
  font-size: 0.7rem;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pitfall-card h3 {
  font-size: 1.05rem;
  margin: 0.5rem 0;
}

.pitfall-card .lesson {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.pitfall-card .steps {
  background: var(--bg-elevated);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.pitfall-card .steps strong {
  color: var(--pink);
}

.pitfall-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cost-tag {
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 107, 129, 0.15);
  color: var(--pink);
}

.btn-save-card {
  margin-top: 0.5rem;
  width: 100%;
  font-size: 0.8rem;
  padding: 0.5rem;
}

/* Profile page */
.profile-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.profile-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(108, 92, 231, 0.3);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
  margin: 1.5rem 0;
}

.profile-stat {
  padding: 1rem;
  background: var(--bg-elevated);
  border-radius: 12px;
}

.profile-stat .value {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.progress-bar {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.fate-card-preview {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--gradient);
  border-radius: var(--radius);
  color: #fff;
  text-align: center;
}

.fate-card-preview h4 {
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer a {
  margin: 0 0.5rem;
}

/* Loading */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 0.5rem 0;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: var(--purple);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-elevated);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--purple);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 200;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.filters-cat {
  margin-top: -0.5rem;
}

.submit-lesson-bar {
  text-align: center;
  padding: 0 1.5rem 1rem;
}

.search-input {
  width: min(100%, 320px);
  padding: 0.55rem 1rem;
  border: 1px solid rgba(108, 92, 231, 0.45);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--pink);
}

.media-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.media-btn {
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(108, 92, 231, 0.4);
  background: var(--bg-elevated);
  color: var(--text-muted);
  border-radius: 999px;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
}

.media-btn:hover {
  border-color: var(--pink);
  color: var(--pink-light);
}

.quiz-box {
  margin: 0.75rem 0;
  padding: 0.75rem;
  background: var(--bg-elevated);
  border-radius: 8px;
  font-size: 0.85rem;
}

.quiz-box strong {
  color: var(--purple);
}

.quiz-opts {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.quiz-opt {
  text-align: left;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(255, 107, 129, 0.3);
  background: transparent;
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
}

.quiz-opt:hover {
  background: rgba(108, 92, 231, 0.15);
}

.quiz-done {
  font-size: 0.8rem;
  color: var(--pink);
  margin: 0.5rem 0;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.card-actions .btn {
  flex: 1;
  min-width: 8rem;
  font-size: 0.8rem;
}

.empty-hint {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  column-span: all;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.modal-box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(108, 92, 231, 0.4);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 420px;
  width: 100%;
}

.modal-box h3 {
  margin-bottom: 0.5rem;
}

.modal-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.modal-box label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.modal-box input,
.modal-box textarea,
.text-input {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem;
  border: 1px solid rgba(108, 92, 231, 0.4);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
}

.modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.quota-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--pink-light);
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.pioneer-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.pioneer-note a {
  color: var(--pink-light);
}

.fate-match-box {
  background: var(--bg-elevated);
  padding: 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
}

.fate-type-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--pink-light);
  margin-bottom: 0.35rem;
}

.fate-pits-title {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.fate-match-box ul {
  margin-left: 1.2rem;
  color: var(--text-muted);
}

.unlock-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.unlock-item {
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.unlock-item.unlocked {
  border-color: var(--purple);
}

.unlock-need {
  font-size: 0.7rem;
  color: var(--purple);
}

.unlock-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 0.7rem;
  color: var(--pink);
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.q-yuan-panel {
  margin-top: 1rem;
}

.q-yuan-panel .text-input {
  width: 100%;
}

.msg-pre {
  white-space: pre-wrap;
  font-family: inherit;
  margin: 0;
  font-size: 0.95rem;
}

.msg-actions {
  margin-top: 0.65rem;
}

.msg-actions .btn-adopt {
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
}

.topics-wrap {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.topic-card {
  background: var(--bg-card);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(108, 92, 231, 0.25);
}

.topic-card.locked {
  opacity: 0.65;
}

.topic-card h4 {
  color: var(--pink-light);
  margin-bottom: 0.5rem;
}

.topic-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.topic-meta {
  font-size: 0.75rem;
  color: var(--purple);
  display: block;
  margin-bottom: 0.75rem;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.plan-card {
  padding: 0.75rem 0.5rem;
  border: 2px solid rgba(108, 92, 231, 0.35);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.plan-card strong {
  display: block;
  font-size: 1.1rem;
  margin-top: 0.25rem;
  color: var(--pink-light);
}

.plan-card.plan-selected {
  border-color: var(--purple);
  background: rgba(108, 92, 231, 0.15);
}

.plan-price-hint {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.bank-dl {
  font-size: 0.82rem;
  margin: 0.75rem 0;
}

.bank-dl dt {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.bank-dl dd {
  margin: 0.2rem 0 0;
  word-break: break-all;
}

.bank-dl code {
  font-size: 0.8rem;
}

.btn-copy {
  margin-left: 0.35rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.7rem;
  border-radius: 6px;
  border: 1px solid rgba(108, 92, 231, 0.5);
  background: transparent;
  color: var(--pink-light);
  cursor: pointer;
}

.client-id-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.subscribe-modal-box {
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
}

.payment-legal {
  margin: 0.5rem 0 0.75rem;
  line-height: 1.5;
  font-size: 0.78rem;
}

.modal-box-wide {
  max-width: 520px;
}

.media-body-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.media-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.video-placeholder {
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.video-frame {
  background: var(--gradient);
  color: #fff;
  padding: 2rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.global-loading {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(15, 14, 23, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
}

.global-loading.show {
  display: flex;
}

.global-loading-box {
  background: var(--bg-card);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--purple);
  text-align: center;
}

.loading-text {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-toggle {
  display: none;
  background: var(--bg-elevated);
  border: 1px solid rgba(108, 92, 231, 0.4);
  color: var(--text);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font-size: 1.1rem;
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 107, 129, 0.15);
    gap: 0.25rem;
  }

  .nav-main.open {
    display: flex;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .user-stats {
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
    order: 3;
  }

  .stat-badge {
    font-size: 0.75rem;
  }
}
