@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── TOKENS ── */
:root {
  --gold:        #C9A84C;
  --gold-dim:    #9A7A35;
  --gold-glow:   rgba(201,168,76,0.15);
  --bg:          #0D0D0D;
  --bg2:         #141414;
  --bg3:         #1A1A1A;
  --bg4:         #222222;
  --text:        #F0F0F0;
  --text-dim:    #999;
  --text-muted:  #555;
  --radius:      14px;
  --radius-sm:   10px;
  --font-d:      'Syne', sans-serif;
  --font-b:      'Inter', sans-serif;
  --transition:  0.22s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── PANTALLAS ── */
.screen { display: none; min-height: 100vh; flex-direction: column; }
.screen.active { display: flex; }

/* ── LOGIN ── */
#screen-login {
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: radial-gradient(ellipse at 50% -5%, rgba(201,168,76,0.12) 0%, transparent 55%), var(--bg);
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.login-logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 20px rgba(201,168,76,0.2));
}

.login-logo p {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-align: center;
}

.login-card {
  background: var(--bg2);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 18px;
  padding: 32px 24px;
  width: 100%;
  max-width: 380px;
}

.login-card h2 {
  font-family: var(--font-d);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.login-card > p {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
  line-height: 1.5;
}

.field-group { margin-bottom: 16px; }

.field-group label {
  display: block;
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.field-group input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--bg4);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 16px;
  color: var(--text);
  font-family: var(--font-b);
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
}

.field-group input:focus  { border-color: var(--gold); }
.field-group input::placeholder { color: var(--text-muted); }

.btn-primary {
  width: 100%;
  background: var(--gold);
  color: #0D0D0D;
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  margin-top: 8px;
}

.btn-primary:active    { opacity: .85; transform: scale(.98); }
.btn-primary:disabled  { opacity: .45; cursor: not-allowed; }

.login-error {
  background: rgba(200,50,50,.1);
  border: 1px solid rgba(200,50,50,.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: #ff7070;
  margin-top: 16px;
  display: none;
  text-align: center;
  line-height: 1.5;
}

.login-help {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.login-help a { color: var(--gold); text-decoration: none; }

/* ── APP HEADER ── */
.app-header {
  background: var(--bg2);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  padding: 0 20px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.header-brand span {
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), background var(--transition);
}

.btn-icon:active { color: var(--gold); background: var(--gold-glow); }

/* ── BOTTOM NAV ── */
.bottom-nav {
  background: var(--bg2);
  border-top: 1px solid rgba(201,168,76,0.12);
  display: flex;
  height: 68px;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
  padding: 8px 4px;
}

.nav-item svg    { width: 22px; height: 22px; }
.nav-item.active { color: var(--gold); }

/* ── CONTENT ── */
.app-content { flex: 1; overflow-y: auto; }
.tab-view { display: none; padding-bottom: 24px; }
.tab-view.active { display: block; }

/* ── WELCOME ── */
.welcome-banner {
  background: linear-gradient(135deg, rgba(201,168,76,0.1) 0%, rgba(201,168,76,0.03) 100%);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  padding: 24px 20px;
}

.welcome-banner .greeting { font-size: 13px; color: var(--text-dim); margin-bottom: 4px; }

.welcome-banner h2 {
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}

.progress-bar-wrap {
  background: var(--bg4);
  border-radius: 99px;
  height: 5px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  border-radius: 99px;
  transition: width .7s ease;
}

.progress-label { font-size: 12px; color: var(--text-dim); }
.progress-label strong { color: var(--gold); }

/* ── SECTION LABEL ── */
.section-lbl {
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 20px 20px 10px;
}

/* ── MODULE CARD ── */
.module-card {
  margin: 0 16px 12px;
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  overflow: hidden;
}

.module-card.unlocked { border-color: rgba(201,168,76,0.18); }

.module-header {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}

.module-num {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg3);
  border: 1px solid rgba(201,168,76,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-d);
  font-size: 17px;
  font-weight: 800;
  color: var(--gold);
  flex-shrink: 0;
}

.module-card.locked .module-num { color: var(--text-muted); border-color: transparent; }

.module-info { flex: 1; min-width: 0; }

.module-info h3 {
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.module-card.locked .module-info h3 { color: var(--text-muted); }
.module-meta { font-size: 12px; color: var(--text-muted); }

.badge-locked, .badge-avail {
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 99px;
}

.badge-locked { background: var(--bg4); color: var(--text-muted); }
.badge-avail  { background: rgba(201,168,76,0.12); color: var(--gold); }

.module-chevron { color: var(--text-muted); flex-shrink: 0; transition: transform var(--transition); }
.module-card.open .module-chevron { transform: rotate(180deg); }

.module-lessons { display: none; border-top: 1px solid rgba(255,255,255,0.05); }
.module-card.open .module-lessons { display: block; }

/* ── LESSON ROW ── */
.lesson-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background var(--transition);
}

.lesson-row:last-child  { border-bottom: none; }
.lesson-row:active      { background: rgba(201,168,76,0.04); }

.lesson-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.lesson-row.done .lesson-check {
  background: var(--gold);
  border-color: var(--gold);
}

.lesson-check svg { width: 14px; height: 14px; }
.lesson-title { flex: 1; font-size: 14px; color: var(--text); line-height: 1.4; }

.lesson-row.done .lesson-title {
  color: var(--text-dim);
  text-decoration: line-through;
  text-decoration-color: var(--text-muted);
}

.lesson-arrow { color: var(--text-muted); }

/* ── LESSON SCREEN ── */
#screen-lesson { background: var(--bg); flex-direction: column; }

.lesson-header {
  background: var(--bg2);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--gold);
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 0;
  white-space: nowrap;
}

.lesson-header h2 {
  flex: 1;
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lesson-body   { flex: 1; overflow-y: auto; }
.lesson-iframe { width: 100%; min-height: 100vh; border: none; display: block; }

.lesson-footer {
  background: var(--bg2);
  border-top: 1px solid rgba(201,168,76,0.12);
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  flex-shrink: 0;
}

.btn-complete {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--gold);
  color: #0D0D0D;
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--radius-sm);
  padding: 15px;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  margin-bottom: 10px;
}

.btn-complete:active  { opacity: .85; transform: scale(.98); }

.btn-complete.done {
  background: rgba(201,168,76,0.12);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
}

.btn-next {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--bg3);
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--gold);
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 13px;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-next.visible { display: flex; }
.btn-next:active  { background: var(--gold-glow); }

/* ── PROFILE ── */
.profile-header {
  background: linear-gradient(135deg, rgba(201,168,76,0.08) 0%, transparent 60%);
  border-bottom: 1px solid rgba(201,168,76,0.1);
  padding: 32px 20px 24px;
  text-align: center;
}

.avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-d);
  font-size: 26px;
  font-weight: 800;
  color: var(--gold);
  margin: 0 auto 12px;
}

.profile-name  { font-family: var(--font-d); font-size: 20px; font-weight: 700; }
.profile-email { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.stats-row { display: flex; gap: 10px; padding: 20px; }

.stat-card {
  flex: 1;
  background: var(--bg2);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: var(--radius-sm);
  padding: 16px 10px;
  text-align: center;
}

.stat-num  { font-family: var(--font-d); font-size: 26px; font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 4px; }
.stat-lbl  { font-family: var(--font-d); font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }

.menu-section { padding: 0 16px 24px; }

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg2);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.05);
  transition: border-color var(--transition);
  text-decoration: none;
  color: inherit;
}

.menu-item:active { border-color: rgba(201,168,76,0.25); }

.menu-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.menu-item strong { display: block; font-size: 14px; font-weight: 600; }
.menu-item span   { font-size: 12px; color: var(--text-muted); margin-top: 2px; display: block; }

.btn-logout {
  width: calc(100% - 32px);
  margin: 0 16px;
  background: rgba(200,50,50,.08);
  border: 1px solid rgba(200,50,50,.2);
  color: #ff7070;
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--transition);
}

.btn-logout:active { background: rgba(200,50,50,.15); }

/* ── CERT ── */
.cert-card {
  margin: 16px;
  background: linear-gradient(135deg, var(--bg2) 0%, #1a1500 100%);
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
}

.cert-card h3 { font-family: var(--font-d); font-size: 13px; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.cert-card p  { font-size: 13px; color: var(--text-dim); line-height: 1.5; margin-bottom: 20px; }

.btn-cert {
  background: var(--gold);
  color: #0D0D0D;
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ── ADMIN ── */
#screen-admin { flex-direction: column; }

.admin-header {
  background: var(--bg2);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 0 20px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.admin-header h1 {
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.admin-content { flex: 1; overflow-y: auto; padding: 20px 16px 40px; }

.admin-lbl {
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  margin-top: 24px;
  display: block;
}

.admin-lbl:first-child { margin-top: 0; }

.admin-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 24px; }

.admin-stat {
  background: var(--bg2);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius-sm);
  padding: 16px 10px;
  text-align: center;
}

.admin-stat .num { font-family: var(--font-d); font-size: 28px; font-weight: 800; color: var(--gold); line-height: 1; }
.admin-stat .lbl { font-family: var(--font-d); font-size: 10px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }

.new-student-form {
  background: var(--bg2);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.new-student-form h3 { font-family: var(--font-d); font-size: 14px; font-weight: 700; margin-bottom: 16px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.form-row .field-group { margin-bottom: 0; }

.btn-add {
  width: 100%;
  background: var(--gold);
  color: #0D0D0D;
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .05em;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-add:active { opacity: .85; }

.search-wrap { position: relative; margin-bottom: 14px; }
.search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }

.search-input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--bg4);
  border-radius: var(--radius-sm);
  padding: 12px 16px 12px 42px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font-b);
  outline: none;
}

.search-input:focus { border-color: rgba(201,168,76,0.3); }
.search-input::placeholder { color: var(--text-muted); }

.student-card {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 10px;
}

.student-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }

.student-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid rgba(201,168,76,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 800;
  color: var(--gold);
  flex-shrink: 0;
}

.student-info { flex: 1; min-width: 0; }
.student-name  { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.student-email { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.badge-source {
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
  flex-shrink: 0;
}

.badge-hotmart { background: rgba(201,168,76,0.12); color: var(--gold); }
.badge-manual  { background: rgba(80,200,120,0.12); color: #50C878; }

.student-bar-wrap { background: var(--bg4); border-radius: 99px; height: 4px; overflow: hidden; margin-bottom: 6px; }
.student-bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold-dim), var(--gold)); border-radius: 99px; }
.student-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }

.student-actions { display: flex; gap: 8px; }

.btn-sa {
  flex: 1;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-dim);
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  padding: 9px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-sa:active { border-color: rgba(201,168,76,0.3); color: var(--gold); }
.btn-sa-del    { color: #ff7070; border-color: rgba(200,50,50,.2); }
.btn-sa-del:active { background: rgba(200,50,50,.08); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg2);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 20px 20px 0 0;
  padding: 28px 24px 36px;
  width: 100%;
  max-width: 500px;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.25,.46,.45,.94);
}

.modal-overlay.open .modal-card { transform: translateY(0); }

.modal-card h3 { font-family: var(--font-d); font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.modal-subtitle { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }

.cred-box {
  background: var(--bg3);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
}

.cred-box label {
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}

.cred-value { font-size: 15px; color: var(--text); font-weight: 600; word-break: break-all; }

.modal-actions { display: flex; gap: 10px; margin-top: 18px; margin-bottom: 10px; }

.btn-modal-copy {
  flex: 1;
  background: var(--gold);
  color: #0D0D0D;
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
}

.btn-modal-wpp {
  flex: 1;
  background: #25D366;
  color: #fff;
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-modal-close {
  width: 100%;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-dim);
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 13px;
  cursor: pointer;
}

/* ── SPINNER ── */
.spinner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 16px;
  background: var(--bg);
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3px solid var(--bg4);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
.spinner-wrap p { font-size: 14px; color: var(--text-muted); }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 86px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--bg3);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 99px;
  padding: 10px 20px;
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  z-index: 999;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  white-space: nowrap;
  pointer-events: none;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state svg { margin-bottom: 12px; opacity: .35; }
.empty-state p   { font-size: 14px; }
