:root {
  --bg: #0d0d14;
  --surf: #16161f;
  --card: #1e1e2a;
  --border: #2c2c3e;
  --acc: #f97316;
  --acc2: #fbbf24;
  --green: #22c55e;
  --blue: #3b82f6;
  --txt: #f1f0f8;
  --muted: #6b7280;
}

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

body {
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ── HEADER ── */
.header {
  position: sticky; top: 0; z-index: 99;
  background: rgba(13,13,20,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  padding-top: calc(14px + env(safe-area-inset-top));
  display: flex; align-items: center; gap: 12px;
}
.header-logo {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.header-title { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.header-sub { font-size: 11px; color: var(--muted); }
.dots { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: all .3s; }
.dot.active { background: var(--acc); transform: scale(1.35); }
.dot.done { background: var(--green); }

/* ── MAIN ── */
.main { padding: 20px 16px 100px; max-width: 640px; margin: 0 auto; }

/* ── SCREENS ── */
.screen { display: none; animation: fadeUp .35s ease; }
.screen.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── WELCOME ── */
.welcome-icon { font-size: 64px; text-align: center; margin: 20px 0 16px; }
.welcome-title {
  font-size: 36px; font-weight: 800; text-align: center;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.welcome-sub { text-align: center; color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 28px; }
.features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 13px 16px; font-size: 14px; font-weight: 500; }

/* ── SCREEN TITLES ── */
.screen-title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; margin-top: 8px; }
.screen-sub { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

/* ── GRID CHOICES ── */
.grid-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.choice-card {
  background: var(--card); border: 2px solid var(--border); border-radius: 14px;
  padding: 16px 10px; display: flex; flex-direction: column; align-items: center;
  gap: 8px; font-size: 24px; cursor: pointer; transition: all .18s;
  color: var(--txt); font-family: inherit;
}
.choice-card span { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.3; }
.choice-card.sel { border-color: var(--acc); background: rgba(249,115,22,.12); }
.choice-card:active { transform: scale(.96); }

/* ── PILLS ── */
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.choice-pill {
  padding: 9px 16px; border-radius: 20px; border: 1.5px solid var(--border);
  background: transparent; color: var(--muted); font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all .18s;
}
.choice-pill.sel { border-color: var(--acc); background: rgba(249,115,22,.12); color: var(--acc); }
.choice-pill:active { transform: scale(.96); }

/* ── MULTI HINT ── */
.multi-hint { font-size: 12px; color: var(--acc); font-weight: 600; margin-bottom: 12px; }
.hint-small { font-size: 11px; color: var(--acc); font-weight: 600; }

/* ── SLIDERS ── */
.slider-block { margin-bottom: 24px; }
.slider-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.slider { width: 100%; height: 6px; -webkit-appearance: none; appearance: none; background: var(--border); border-radius: 3px; outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--acc), var(--acc2)); cursor: pointer; }

/* ── FIELDS ── */
.field-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; display: block; margin-bottom: 8px; font-weight: 700; }
.field-block { margin-bottom: 16px; }
.field-input { width: 100%; background: var(--surf); border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 15px; color: var(--txt); font-size: 15px; font-family: inherit; outline: none; transition: border .2s; -webkit-appearance: none; }
.field-input:focus { border-color: var(--acc); }
textarea.field-input { resize: none; line-height: 1.6; font-family: inherit; }
.other-input { width: 100%; background: var(--surf); border: 1.5px solid var(--acc); border-radius: 12px; padding: 12px 16px; color: var(--txt); font-size: 15px; font-family: inherit; outline: none; margin-bottom: 16px; display: none; }

/* ── BUTTONS ── */
.btn-primary {
  width: 100%; padding: 16px; border-radius: 14px; border: none;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  color: #fff; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer;
  box-shadow: 0 6px 20px rgba(249,115,22,.3); transition: all .2s; letter-spacing: -.01em;
}
.btn-primary:disabled { background: var(--border); color: var(--muted); box-shadow: none; cursor: default; }
.btn-primary:not(:disabled):active { transform: scale(.97); }
.btn-secondary { padding: 14px 20px; border-radius: 12px; border: 1.5px solid var(--border); background: transparent; color: var(--muted); font-size: 14px; font-family: inherit; cursor: pointer; }
.btn-small { padding: 9px 16px; border-radius: 10px; border: none; background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #fff; font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; }

/* ── NAV ROW ── */
.nav-row { display: flex; gap: 10px; margin-top: 20px; align-items: center; }
.nav-row .btn-primary { flex: 1; }

/* ── SECTION DIVIDER ── */
.section-divider { font-size: 13px; font-weight: 700; color: var(--acc); margin: 24px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }

/* ── COORDS GRID ── */
.coords-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.coords-grid .field-input { font-size: 13px; padding: 10px 12px; }

/* ── WEEK BADGE ── */
.week-badge-top { background: rgba(249,115,22,.12); border: 1px solid rgba(249,115,22,.3); border-radius: 10px; padding: 8px 14px; font-size: 13px; font-weight: 700; color: var(--acc); margin-bottom: 16px; text-align: center; }

/* ── DASHBOARD ── */
.dashboard-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; margin-top: 8px; }
.dash-title { font-size: 22px; font-weight: 800; }
.dash-sub { font-size: 13px; color: var(--muted); }
.week-empty { text-align: center; padding: 40px 20px; background: var(--card); border-radius: 18px; border: 1px solid var(--border); }

/* ── BRAND CARDS ── */
.brand-card { background: var(--card); border: 1.5px solid var(--border); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-card.active { border-color: var(--acc); background: rgba(249,115,22,.08); }
.brand-card-name { font-size: 15px; font-weight: 700; color: var(--txt); }
.brand-card-sector { font-size: 12px; color: var(--muted); margin-top: 2px; }
.brand-card-actions { display: flex; gap: 8px; flex-shrink: 0; }
.brand-card-actions button { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--muted); font-size: 12px; font-family: inherit; cursor: pointer; transition: all .18s; }
.brand-card.active .brand-card-actions button:first-child { border-color: var(--acc); color: var(--acc); font-weight: 700; }
.brand-add-btn { width: 100%; padding: 14px; border-radius: 14px; border: 2px dashed var(--border); background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; transition: all .2s; margin-top: 4px; }
.brand-add-btn:hover { border-color: var(--acc); color: var(--acc); }

/* ── BOTTOM NAV ── */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(13,13,20,.95); backdrop-filter: blur(20px); border-top: 1px solid var(--border); display: flex; padding: 8px 0;
padding-bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 99; }
.nav-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: none; color: var(--muted); font-size: 20px; font-family: inherit; cursor: pointer; padding: 4px 0; transition: color .2s; }
.nav-btn span { font-size: 10px; font-weight: 600; }
.nav-btn.active { color: var(--acc); }

/* ── TABS ── */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 8px 16px; border-radius: 20px; border: 1.5px solid var(--border); white-space: nowrap; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; flex-shrink: 0; transition: all .18s; }
.tab.active { border-color: var(--acc); background: rgba(249,115,22,.12); color: var(--acc); }

/* ── RESULT ── */
.result-day-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 6px; }
.result-info { font-size: 12px; color: var(--acc); font-weight: 600; margin-bottom: 8px; padding: 6px 10px; background: rgba(249,115,22,.1); border-radius: 8px; }
.result-counter { font-size: 12px; color: var(--muted); text-align: right; margin-bottom: 8px; }
.result-content { background: var(--surf); border-radius: 14px; padding: 16px; font-size: 14px; line-height: 1.8; white-space: pre-wrap; color: #c9c8d8; max-height: 300px; overflow-y: auto; border: 1px solid var(--border); font-family: 'SF Mono','Menlo',monospace; margin-bottom: 14px; }
.result-prev-next { display: flex; gap: 10px; margin-bottom: 12px; }
.result-prev-next .btn-secondary { flex: 1; text-align: center; }
.action-row { display: flex; gap: 10px; margin-bottom: 12px; }
.btn-copy { flex: 1; padding: 13px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--border); color: var(--txt); font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; transition: all .18s; }
.btn-copy.ok { border-color: var(--green); color: var(--green); }
.btn-share { flex: 1; padding: 13px; border-radius: 12px; border: none; background: linear-gradient(135deg, #1877f2, #0ea5e9); color: #fff; font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; }
.info-box { background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.25); border-radius: 11px; padding: 12px; font-size: 12px; color: #93c5fd; line-height: 1.6; margin-bottom: 16px; }

/* ── RESULT IMAGE ── */
.result-image-wrap {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surf);
  margin-bottom: 14px;
}
.result-img {
  width: 100%;
  display: block;
  max-height: 220px;
  object-fit: contain;
  background: var(--surf);
}
.result-image-actions {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 8px 12px; background: var(--card);
}
.result-image-badge { font-size: 11px; font-weight: 700; color: var(--acc); }
.btn-download { padding: 6px 12px; border-radius: 8px; border: none; background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; }
.result-image-placeholder { border: 2px dashed var(--border); border-radius: 14px; padding: 20px; text-align: center; background: var(--surf); margin-bottom: 14px; }
.btn-regen { margin-top: 10px; padding: 8px 16px; border-radius: 10px; border: 1.5px solid var(--acc); background: rgba(249,115,22,.1); color: var(--acc); font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }

/* ── DAYS CALENDAR ── */
.days-calendar { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; margin-bottom: 8px; }
.day-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 10px; border: 1.5px solid var(--border); background: transparent; color: var(--muted); font-family: inherit; cursor: pointer; transition: all .18s; }
.day-btn.sel { border-color: var(--acc); background: rgba(249,115,22,.12); color: var(--acc); }
.day-short { font-size: 12px; font-weight: 700; }
.day-date { font-size: 10px; }

/* ── HOURS GRID ── */
.hours-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.hour-item { display: flex; flex-direction: column; gap: 6px; }
.hour-item label { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.hour-item input[type="time"] { background: var(--surf); border: 1.5px solid var(--border); border-radius: 10px; padding: 8px 10px; color: var(--txt); font-size: 14px; font-family: inherit; outline: none; -webkit-appearance: none; }

/* ── MEDIA SUMMARY ── */
.media-summary { display: flex; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; font-size: 14px; color: var(--muted); }

/* ── MEDIA IMPORT ── */
.media-import-zone { border: 2px dashed var(--border); border-radius: 16px; padding: 32px 20px; text-align: center; cursor: pointer; transition: all .2s; margin-bottom: 20px; }
.media-import-zone:hover { border-color: var(--acc); color: var(--acc); }
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── MEDIA CARD v2 ── */
.media-card-v2 { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.media-thumb-v2 { width: 100%; aspect-ratio: 1/1; background: var(--surf); display: flex; align-items: center; justify-content: center; font-size: 40px; flex-shrink: 0; }
img.media-thumb-img { object-fit: cover; }
.media-card-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.media-name { font-size: 13px; font-weight: 700; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-type-badge { font-size: 11px; color: var(--muted); }
.media-versions { display: flex; flex-wrap: wrap; gap: 4px; }
.media-version-pill { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px; background: rgba(249,115,22,.1); color: var(--acc); cursor: pointer; border: 1px solid rgba(249,115,22,.25); transition: all .18s; white-space: nowrap; }
.media-version-pill:hover { background: var(--acc); color: #fff; }
.media-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--border); }
.media-usage { font-size: 11px; color: var(--muted); }
.media-delete-btn { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.25); color: #ef4444; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 8px; cursor: pointer; font-family: inherit; transition: all .18s; }
.media-delete-btn:hover { background: #ef4444; color: #fff; }
.media-empty { text-align: center; padding: 40px 20px; color: var(--muted); grid-column: 1/-1; }

/* ── PREVIEW MODAL ── */
.preview-modal { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; z-index: 999; padding: 20px; }
.preview-content { background: var(--card); border-radius: 20px; padding: 20px; width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; }
.preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.preview-header button { background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; }

/* ── SETTINGS ── */
.settings-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.settings-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.settings-card-title { font-size: 15px; font-weight: 700; color: var(--txt); }
.settings-card-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.btn-eye { padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surf); font-size: 16px; cursor: pointer; flex-shrink: 0; }

/* ── LOADING ── */
.loading-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 62vh; gap: 20px; animation: fadeUp .3s ease; }
.spinner { width: 50px; height: 50px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--acc); animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-label { font-size: 14px; color: var(--muted); text-align: center; line-height: 1.7; }

/* ── WEEK GRID DASHBOARD ── */
.week-day-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 10px;
}
.week-day-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--acc);
  margin-bottom: 8px;
  text-transform: capitalize;
}
.week-post-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surf);
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background .18s;
}
.week-post-item:hover { background: var(--border); }
.week-post-time {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* ── SHARE ROW ── */
.share-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 16px;
  border-radius: 12px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: -.01em;
}
.share-btn:active { transform: scale(.96); }
.share-btn.gmail    { background: #EA4335; color: #fff; }
.share-btn.whatsapp { background: #25D366; color: #fff; }
.share-btn.telegram { background: #0088cc; color: #fff; }
.share-btn.copy     { background: var(--card); color: var(--txt); border: 1.5px solid var(--border); }

/* ── BRAND DELETE BTN ── */
.brand-card-actions button:last-child {
  color: #ef4444;
  border-color: rgba(239,68,68,.3);
}
.brand-card-actions button:last-child:hover {
  background: rgba(239,68,68,.1);
}

/* ── EXCEL IMPORT/EXPORT ── */
.excel-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 20px;
}
.btn-excel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--txt);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .18s;
}
.btn-excel:hover {
  border-color: var(--acc);
  color: var(--acc);
  background: rgba(249,115,22,.08);
}
.btn-excel:active { transform: scale(.96); }

/* ── POST ACTIONS ── */
.post-actions-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 12px;
}
.btn-post-action {
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--txt);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .18s;
}
.btn-post-action:hover {
  border-color: var(--acc);
  color: var(--acc);
}
.btn-post-action.accent {
  border-color: var(--acc);
  color: var(--acc);
  background: rgba(249,115,22,.08);
  padding: 13px 20px;
}
.btn-post-action.accent:hover {
  background: var(--acc);
  color: #fff;
}
.btn-post-action:active { transform: scale(.96); }

/* ── WEEK ACTIONS LABEL ── */
.week-actions-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
  margin-top: 4px;
  text-align: center;
}

/* ── BUFFER BUTTON ── */
.btn-buffer {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #2196F3, #1565C0);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 20px;
  transition: all .2s;
  letter-spacing: -.01em;
}
.btn-buffer:hover { opacity: .9; transform: translateY(-1px); }
.btn-buffer:active { transform: scale(.98); }
.btn-buffer:disabled { opacity: .5; cursor: default; }
/* ── MEDIA TABS ── */
.media-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.media-tab {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
}
.media-tab.active {
  border-color: var(--acc);
  color: var(--acc);
  background: rgba(249,115,22,.08);
}
/* ── Auth Screen ─────────────────────────────── */
.auth-screen {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg, #0d0d14);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.auth-screen.active {
  display: flex;
}
.app-container {
  display: none;
  height: 100%;
}
.app-container.active {
  display: block;
}
.auth-box {
  background: var(--card, #1a1a2e);
  border-radius: 20px;
  padding: 36px 28px;
  width: 100%;
  max-width: 380px;
  margin: 20px;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
}
.auth-logo {
  font-size: 48px;
  text-align: center;
  margin-bottom: 8px;
}
.auth-title-main {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  color: var(--acc, #e8a020);
}
.auth-sub {
  font-size: 12px;
  text-align: center;
  color: var(--muted, #666);
  margin-bottom: 24px;
}
.auth-title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--txt, #fff);
}
.auth-error {
  display: none;
  font-size: 13px;
  color: #ef4444;
  text-align: center;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(239,68,68,0.1);
}
.auth-error.visible {
  display: block;
}
.auth-switch-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted, #666);
}
.btn-link {
  background: none;
  border: none;
  color: var(--acc, #e8a020);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
/* ── Menu Hamburger ──────────────────────────── */
.btn-hamburger {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--txt);
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.btn-hamburger:hover { background: var(--surf); }

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  backdrop-filter: blur(2px);
}
.menu-overlay.open { display: block; }

.side-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100vh;
  background: var(--card);
  border-left: 1px solid var(--border);
  z-index: 1000;
  transition: right 0.3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.side-menu.open { right: 0; }

.side-menu-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(249,115,22,0.15), rgba(251,191,36,0.08));
}
.side-menu-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.side-menu-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.side-menu-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--txt);
  letter-spacing: -0.02em;
}
.side-menu-plan {
  font-size: 12px;
  color: var(--acc);
  font-weight: 700;
  margin-top: 2px;
}
.side-menu-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--surf);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.side-menu-email {
  font-size: 12px;
  color: var(--muted);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surf);
}
.side-menu-divider {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 16px 6px;
}
.side-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  border-radius: 0;
  color: var(--txt);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.side-menu-item:hover {
  background: rgba(249,115,22,0.08);
  color: var(--acc);
}
.side-menu-item:hover .smi-icon { transform: scale(1.15); }
.smi-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.side-menu-danger { color: #ef4444 !important; }
.side-menu-danger:hover { background: rgba(239,68,68,0.08) !important; }

/* ── Mode d'emploi ───────────────────────────── */
.help-card {
  display: flex;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  align-items: flex-start;
}
.help-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.help-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 6px;
}
.help-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.help-tip {
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--txt);
  line-height: 1.6;
  margin-bottom: 10px;
}
/* ── Réseaux sociaux ─────────────────────────── */
.network-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}
.network-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.network-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.network-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--txt);
}
.network-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.network-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.network-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--txt);
  line-height: 1.5;
}
.ns-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(249,115,22,0.15);
  color: var(--acc);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.btn-network {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-network:hover { opacity: 0.9; }

.network-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--acc);
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: 20px;
  padding: 4px 10px;
  flex-shrink: 0;
}

/* ── Plan Badge & Stats ──────────────────────── */
.plan-badge-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(249,115,22,0.12);
  border: 1px solid rgba(249,115,22,0.3);
  color: var(--acc);
}
.trial-countdown {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.plan-upgrade-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-left: auto;
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.dash-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
}
.dash-stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--acc);
  letter-spacing: -0.03em;
}
.dash-stat-label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
/* ── Bouton caméra ───────────────────────────── */
.btn-camera {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--txt);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 16px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-camera:hover {
  border-color: var(--acc);
  color: var(--acc);
}