/* AdminExpat España — css/style.css */

/* ─── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
  --bg:        #0f1117;
  --bg2:       #080a10;
  --surface:   #181c27;
  --surface2:  #1e2335;
  --border:    #272d3f;
  --border2:   #333a52;
  --accent:    #4f8ef7;
  --purple:    #7b5cf0;
  --success:   #34d58e;
  --error:     #f76060;
  --warning:   #f7a760;
  --text-1:    #eef0f6;
  --text-2:    #8a91a8;
  --text-3:    #555d78;
  --radius:    14px;
  --radius-sm: 9px;
  --font:      'Inter', system-ui, sans-serif;
  --shadow:    0 8px 32px rgba(0,0,0,0.4);
  --nav-h:     60px;
  --sidebar-w: 220px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

/* ─── LOADER ─────────────────────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; z-index: 9999;
  transition: opacity 0.4s;
}
.loader-logo {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900; color: #fff;
}
.ld { display: flex; gap: 6px; margin-top: 8px; }
.ld span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: 0.4; animation: bounce 1.2s infinite; }
.ld span:nth-child(2) { animation-delay: .2s; }
.ld span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce { 0%,100%{transform:translateY(0);opacity:.4} 50%{transform:translateY(-6px);opacity:1} }

/* ─── TOAST ──────────────────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: calc(var(--nav-h) + 12px); left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface2); border: 1px solid var(--border2);
  color: var(--text-1); padding: 10px 18px;
  border-radius: 30px; font-size: 13px; font-weight: 500;
  opacity: 0; pointer-events: none; z-index: 8888;
  transition: all 0.3s; white-space: nowrap;
}
#toast.toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.toast--success { border-color: var(--success); color: var(--success); }
#toast.toast--error   { border-color: var(--error);   color: var(--error); }

/* ─── LAYOUT DESKTOP ──────────────────────────────────────────────────────── */
.desktop-layout { display: flex; min-height: 100vh; }

.desktop-sidebar {
  width: var(--sidebar-w);
  background: var(--surface); border-right: 1px solid var(--border);
  position: fixed; top: 0; left: 0; bottom: 0;
  display: flex; flex-direction: column; padding: 20px 12px; z-index: 100;
}

.desktop-main { margin-left: var(--sidebar-w); flex: 1; padding-bottom: 80px; min-height: 100vh; }

.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 20px; border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.sidebar-brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.sidebar-brand-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.sidebar-brand-sub  { font-size: 11px; color: var(--text-3); }
.sidebar-user { font-size: 13px; color: var(--text-2); padding: 0 8px 12px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.sidebar-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  border: none; background: none; color: var(--text-2);
  font-size: 14px; font-family: var(--font); cursor: pointer;
  transition: all 0.15s; text-align: left; width: 100%;
}
.sidebar-nav-item:hover { background: var(--surface2); color: var(--text-1); }
.sidebar-nav-item.active { background: rgba(79,142,247,.12); color: var(--accent); }
.sidebar-footer { padding-top: 12px; border-top: 1px solid var(--border); }
.sidebar-badge { display: inline-block; padding: 5px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.sidebar-badge.premium { background: rgba(79,142,247,.12); color: var(--accent); }
.sidebar-badge.trial   { background: rgba(247,167,96,.12);  color: var(--warning); }

/* ─── BOTTOM NAV ──────────────────────────────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--nav-h); background: var(--surface);
  border-top: 1px solid var(--border); display: flex; z-index: 200;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  border: none; background: none; color: var(--text-3);
  font-family: var(--font); cursor: pointer; transition: color 0.15s;
}
.nav-item.active { color: var(--accent); }
.nav-icon  { font-size: 18px; }
.nav-label { font-size: 10px; font-weight: 500; }

/* ─── SCREENS ─────────────────────────────────────────────────────────────── */
.screen { padding: 20px 16px 100px; max-width: 640px; }
.screen-header { margin-bottom: 20px; }
.screen-header h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.screen-header p  { font-size: 14px; color: var(--text-2); }

/* ─── LANDING ─────────────────────────────────────────────────────────────── */
.landing {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 24px; max-width: 480px; margin: 0 auto; text-align: center;
}
.landing-hero { margin-bottom: 32px; }
.landing-logo  { font-size: 52px; margin-bottom: 10px; }
.landing-brand { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 16px; }
.landing-brand span { color: var(--accent); }
.landing-title { font-size: 26px; font-weight: 800; line-height: 1.25; letter-spacing: -0.5px; margin-bottom: 12px; }
.landing-sub   { font-size: 15px; color: var(--text-2); line-height: 1.6; margin-bottom: 24px; }
.landing-ctas  { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.landing-features { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.feature-item  { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.feature-check { color: var(--success); font-weight: 700; }
.landing-langs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ─── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  padding: 13px 18px; border-radius: var(--radius-sm);
  border: none; font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn:active  { transform: scale(0.98); }
.btn:disabled{ opacity: 0.45; cursor: not-allowed; }
.btn-full    { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--purple)); color: #fff; }
.btn-primary:hover:not(:disabled) { opacity: 0.88; }
.btn-ghost   { background: transparent; border: 1px solid var(--border2); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-2); }
.btn-outline:hover { border-color: var(--error); color: var(--error); }
.btn-whatsapp { background: #25d366; color: #fff; margin-top: 12px; }
.btn-logout { margin-top: 16px; }
.lang-btn {
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); font-size: 18px; cursor: pointer; transition: all 0.15s;
}
.lang-btn.active { border-color: var(--accent); background: rgba(79,142,247,.1); }

/* ─── TRIAL BANNER ────────────────────────────────────────────────────────── */
.trial-banner {
  background: rgba(79,142,247,.1); border: 1px solid rgba(79,142,247,.25);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 13px; display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; cursor: pointer;
}
.trial-banner.trial-active  { background: rgba(247,167,96,.1); border-color: rgba(247,167,96,.25); }
.trial-banner.trial-expired { background: rgba(247,96,96,.1);  border-color: rgba(247,96,96,.25); }
.trial-cta { color: var(--accent); font-weight: 600; font-size: 12px; }

/* ─── HOME ────────────────────────────────────────────────────────────────── */
.home-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.home-greeting { font-size: 18px; font-weight: 700; }
.home-sub      { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.home-progress-ring { position: relative; width: 48px; height: 48px; }
.progress-ring { width: 48px; height: 48px; transform: rotate(-90deg); }
.ring-val {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--accent);
}
.home-section  { margin-bottom: 24px; }
.section-title { font-size: 13px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }

/* ─── DEM CARDS ───────────────────────────────────────────────────────────── */
.dem-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin-bottom: 8px;
  cursor: pointer; transition: border-color 0.15s;
}
.dem-card:hover { border-color: var(--border2); }
.dem-card--inprogress { border-left: 3px solid var(--accent); }
.dem-card-icon  { font-size: 24px; }
.dem-card-info  { flex: 1; }
.dem-card-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.dem-card-sub   { font-size: 12px; color: var(--text-2); }
.dem-card-right { display: flex; flex-direction: column; align-items: center; gap: 6px; }

/* ─── FAV BUTTON ──────────────────────────────────────────────────────────── */
.fav-btn { background: none; border: none; color: var(--text-3); font-size: 16px; cursor: pointer; padding: 2px; transition: color 0.15s; line-height: 1; }
.fav-btn.fav-on { color: #f7a760; }

/* ─── STATUS DOT ──────────────────────────────────────────────────────────── */
.dem-status { width: 8px; height: 8px; border-radius: 50%; }
.dem-status--pending    { background: var(--text-3); }
.dem-status--inprogress { background: var(--warning); }
.dem-status--done       { background: var(--success); }

/* ─── SERVICES ────────────────────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.service-card  { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.service-icon  { font-size: 22px; }
.service-name  { font-size: 11px; color: var(--text-2); }
.service-price { font-size: 13px; font-weight: 700; color: var(--accent); }

/* ─── DÉMARCHES LIST ──────────────────────────────────────────────────────── */
.dem-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.cat-chip { padding: 6px 12px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 12px; cursor: pointer; transition: all 0.15s; }
.cat-chip.active { border-color: var(--accent); color: var(--accent); background: rgba(79,142,247,.1); }
.dem-list { display: flex; flex-direction: column; gap: 8px; }
.dem-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; cursor: pointer;
  transition: border-color 0.15s; position: relative;
}
.dem-row:hover { border-color: var(--border2); }
.dem-row--locked { opacity: 0.65; }
.dem-row-icon  { font-size: 22px; }
.dem-row-body  { flex: 1; }
.dem-row-title { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.dem-row-sub   { font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.dem-row-meta  { display: flex; gap: 6px; flex-wrap: wrap; }
.dem-badge { padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.dem-badge--free       { background: rgba(52,213,142,.12); color: var(--success); }
.dem-badge--premium    { background: rgba(79,142,247,.12);  color: var(--accent); }
.dem-badge--pending    { background: rgba(85,93,120,.15);   color: var(--text-3); }
.dem-badge--inprogress { background: rgba(247,167,96,.12);  color: var(--warning); }
.dem-badge--done       { background: rgba(52,213,142,.12);  color: var(--success); }
.lock-icon { font-size: 14px; }

/* ─── LOCKED CARD ─────────────────────────────────────────────────────────── */
.locked-card, .dem-locked-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 20px; text-align: center; margin-top: 24px;
}
.locked-icon, .dem-locked-icon { font-size: 36px; margin-bottom: 12px; }
.locked-title, .dem-locked-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.locked-card p, .dem-locked-card p { font-size: 13px; color: var(--text-2); margin-bottom: 20px; line-height: 1.5; }

/* ─── DETAIL ──────────────────────────────────────────────────────────────── */
.detail-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.back-btn { background: none; border: none; color: var(--text-2); font-size: 14px; cursor: pointer; font-family: var(--font); transition: color 0.15s; padding: 0; }
.back-btn:hover { color: var(--accent); }
.detail-hero { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.detail-icon  { font-size: 36px; }
.detail-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.detail-sub   { font-size: 13px; color: var(--text-2); }
.detail-meta  { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.meta-item    { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 12px; }
.detail-section { margin-bottom: 20px; }
.detail-section-title { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .4px; }
.detail-steps, .detail-docs, .detail-errors-list { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.detail-steps li, .detail-docs li, .detail-errors-list li { font-size: 14px; line-height: 1.5; }
.detail-errors { background: rgba(247,96,96,.05); border: 1px solid rgba(247,96,96,.15); border-radius: var(--radius); padding: 14px; }
.detail-errors .detail-section-title { color: var(--error); }
.detail-service { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-2); }
.detail-service a { color: var(--accent); }
.status-select { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-1); font-size: 13px; padding: 6px 10px; font-family: var(--font); cursor: pointer; }
.rdv-btn { margin-top: 8px; }

/* ─── CHECKLIST ───────────────────────────────────────────────────────────── */
.checklist-progress { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.progress-bar  { height: 4px; background: var(--border); border-radius: 2px; margin-top: 6px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--success)); border-radius: 2px; transition: width 0.4s; }
.checklist-list { display: flex; flex-direction: column; gap: 8px; }
.check-item { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; transition: border-color 0.15s; }
.check-item.checked { border-color: rgba(52,213,142,.3); }
.check-item.locked  { opacity: 0.55; }
.check-box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border2); background: none; color: var(--success); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.15s; flex-shrink: 0; }
.check-item.checked .check-box { background: rgba(52,213,142,.15); border-color: var(--success); }
.check-label { font-size: 14px; flex: 1; line-height: 1.4; }

/* ─── AI ASSISTANT ────────────────────────────────────────────────────────── */
.screen-ai { display: flex; flex-direction: column; height: calc(100vh - var(--nav-h) - 20px); }
.ai-messages { flex: 1; overflow-y: auto; padding: 8px 0; display: flex; flex-direction: column; gap: 12px; }
.ai-suggestions { display: flex; flex-direction: column; gap: 8px; padding: 8px 0; }
.ai-suggestion { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; color: var(--text-2); cursor: pointer; text-align: left; transition: border-color 0.15s; font-family: var(--font); }
.ai-suggestion:hover { border-color: var(--accent); color: var(--text-1); }
.ai-msg { display: flex; align-items: flex-start; gap: 8px; }
.ai-msg--user { flex-direction: row-reverse; }
.ai-avatar { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.ai-bubble { max-width: 80%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; background: var(--surface); border: 1px solid var(--border); }
.ai-msg--user .ai-bubble { background: rgba(79,142,247,.15); border-color: rgba(79,142,247,.3); }
.ai-input-row { display: flex; gap: 8px; padding: 12px 0 0; }
.ai-input { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--text-1); font-size: 14px; font-family: var(--font); outline: none; }
.ai-input:focus { border-color: var(--accent); }
.ai-send { background: var(--accent); border: none; border-radius: var(--radius-sm); color: #fff; padding: 12px 16px; font-family: var(--font); font-weight: 600; cursor: pointer; transition: opacity 0.15s; font-size: 14px; }
.ai-send:hover { opacity: 0.85; }

/* ─── PROFILE ─────────────────────────────────────────────────────────────── */
.profile-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.profile-avatar { font-size: 36px; }
.profile-name   { font-size: 16px; font-weight: 700; }
.profile-email  { font-size: 13px; color: var(--text-2); }
.profile-tier   { font-size: 12px; color: var(--accent); margin-top: 3px; }
.settings-group { margin: 20px 0; }
.settings-label { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 10px; }
.lang-row  { display: flex; gap: 8px; flex-wrap: wrap; }
.lang-chip { padding: 7px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 13px; cursor: pointer; transition: all 0.15s; font-family: var(--font); }
.lang-chip.selected { border-color: var(--accent); color: var(--accent); background: rgba(79,142,247,.1); }

/* ─── ONBOARDING ──────────────────────────────────────────────────────────── */
.onboarding { min-height: 100vh; padding: 40px 20px; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; }
.onb-header { text-align: center; margin-bottom: 28px; }
.onb-logo   { font-size: 40px; margin-bottom: 12px; }
.onb-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.onb-header p  { font-size: 14px; color: var(--text-2); }
.onb-progress  { display: flex; gap: 8px; justify-content: center; margin-bottom: 28px; }
.onb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: background 0.3s; }
.onb-dot.active { background: var(--accent); }
.onb-question { flex: 1; margin-bottom: 24px; }
.onb-label { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.onb-opts  { display: flex; flex-direction: column; gap: 8px; }
.onb-opt   { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-1); font-size: 14px; cursor: pointer; transition: all 0.15s; text-align: left; font-family: var(--font); }
.onb-opt:hover    { border-color: var(--border2); }
.onb-opt.selected { border-color: var(--accent); background: rgba(79,142,247,.1); color: var(--accent); }
.onb-btn { margin-top: auto; }

/* ─── AUTH MODAL ──────────────────────────────────────────────────────────── */
.auth-backdrop {
  position: fixed; inset: 0; background: rgba(8,10,16,.82);
  backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; pointer-events: none; z-index: 9000; transition: opacity 0.25s;
}
.auth-backdrop.open { opacity: 1; pointer-events: all; }
.auth-modal {
  width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.auth-backdrop.open .auth-modal { transform: translateY(0) scale(1); }
.auth-modal-header { padding: 24px 24px 0; display: flex; align-items: center; justify-content: space-between; }
.auth-brand { display: flex; align-items: center; gap: 8px; }
.auth-brand-icon { width: 34px; height: 34px; background: linear-gradient(135deg, var(--accent), var(--purple)); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.auth-brand-name { font-size: 15px; font-weight: 700; }
.auth-brand-name span { color: var(--accent); }
.auth-close { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--border); background: none; color: var(--text-3); font-size: 14px; cursor: pointer; transition: all 0.15s; }
.auth-close:hover { color: var(--text-1); }
.auth-tabs { display: flex; margin: 18px 24px 0; border-bottom: 1px solid var(--border); }
.auth-tab { flex: 1; padding: 9px 0; background: none; border: none; font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--text-3); cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s; margin-bottom: -1px; }
.auth-tab.active { color: var(--text-1); border-bottom-color: var(--accent); }
.auth-modal-body { padding: 20px 24px 24px; }
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.auth-trial-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(52,213,142,.1); border: 1px solid rgba(52,213,142,.25); color: var(--success); font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 20px; margin-bottom: 16px; }
.auth-field { margin-bottom: 13px; }
.auth-field label { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-2); margin-bottom: 5px; }
.auth-field-row { display: flex; gap: 10px; }
.auth-field-row .auth-field { flex: 1; }
.auth-input-wrap { position: relative; }
.auth-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--text-3); pointer-events: none; }
.auth-input-wrap input { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 9px; padding: 11px 12px 11px 34px; font-size: 14px; font-family: var(--font); color: var(--text-1); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.auth-input-wrap input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,142,247,.1); }
.auth-input-wrap input::placeholder { color: var(--text-3); }
.auth-eye { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 14px; transition: color 0.15s; }
.auth-eye:hover { color: var(--text-2); }
.auth-forgot { display: block; text-align: right; font-size: 12px; color: var(--text-3); text-decoration: none; margin-bottom: 12px; transition: color 0.15s; }
.auth-forgot:hover { color: var(--accent); }
.auth-strength-row { display: flex; gap: 3px; margin-top: 5px; }
.auth-seg { flex: 1; height: 3px; border-radius: 2px; background: var(--border); transition: background 0.3s; }
.auth-strength-hint { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.auth-lang-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.auth-lang-chip { padding: 5px 10px; border-radius: 7px; border: 1px solid var(--border); background: var(--bg); color: var(--text-2); font-size: 12px; cursor: pointer; transition: all 0.15s; font-family: var(--font); }
.auth-lang-chip.selected { border-color: var(--accent); color: var(--accent); background: rgba(79,142,247,.1); }
.auth-btn { width: 100%; padding: 12px; border-radius: 9px; border: none; font-family: var(--font); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; margin-top: 6px; display: flex; align-items: center; justify-content: center; min-height: 42px; }
.auth-btn:active { transform: scale(0.98); }
.auth-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.auth-btn-primary { background: linear-gradient(135deg, var(--accent), var(--purple)); color: #fff; }
.auth-btn-primary:hover:not(:disabled) { opacity: 0.88; }
.auth-msg { padding: 9px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; display: none; line-height: 1.4; }
.auth-msg--error   { display:block; background:rgba(247,96,96,.1);  color:var(--error);   border:1px solid rgba(247,96,96,.2); }
.auth-msg--success { display:block; background:rgba(52,213,142,.1); color:var(--success); border:1px solid rgba(52,213,142,.2); }
.auth-terms { font-size: 11.5px; color: var(--text-3); text-align: center; margin-top: 12px; line-height: 1.5; }
.auth-terms a { color: var(--text-2); }
.auth-back-btn { background: none; border: none; color: var(--text-3); font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 5px; padding: 0; margin-bottom: 16px; transition: color 0.15s; font-family: var(--font); }
.auth-back-btn:hover { color: var(--accent); }
.auth-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .desktop-sidebar { display: none; }
  .desktop-main { margin-left: 0; }
  .screen { padding-bottom: calc(var(--nav-h) + 20px); }
}
@media (min-width: 769px) {
  .bottom-nav { display: none; }
  .desktop-main { padding: 0 0 40px; }
  .screen { padding: 24px 32px 60px; max-width: 700px; }
  #toast { bottom: 20px; }
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
