/* ============================================================
   style.css – SmartMkt Dashboard
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

:root {
  --bg-base:        #0e0f13;
  --bg-surface:     #15161d;
  --bg-elevated:    #1c1e28;
  --bg-hover:       #22253200;
  --border:         #2a2d3a;
  --border-light:   #353849;
  --accent:         #00d4b4;
  --accent-dim:     #00d4b41a;
  --accent-hover:   #00eecb;
  --accent-muted:   #00d4b466;
  --text-primary:   #eef0f6;
  --text-secondary: #8b90a8;
  --text-muted:     #535769;
  --text-inverse:   #0e0f13;
  --status-draft:       #535769;
  --status-draft-bg:    #53576918;
  --status-scheduled:   #f59e0b;
  --status-scheduled-bg:#f59e0b18;
  --status-published:   #10b981;
  --status-published-bg:#10b98118;
  --status-failed:      #ef4444;
  --status-failed-bg:   #ef444418;
  --status-generating:  #6366f1;
  --status-generating-bg:#6366f118;
  --sidebar-width:    240px;
  --sidebar-bg:       #111318;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  22px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,.5);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.6);
  --shadow-accent: 0 0 24px rgba(0,212,180,.12);
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --t-fast:   0.12s ease;
  --t-normal: 0.22s ease;
  --t-slow:   0.38s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: var(--font-body); font-size: inherit; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================================
   LAYOUT
   ============================================================ */

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  transition: transform var(--t-slow);
}

.sidebar__logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar__logo-mark {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  color: var(--text-inverse);
  flex-shrink: 0;
  box-shadow: var(--shadow-accent);
}

.sidebar__logo-text {
  font-size: 15px; font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -.3px; line-height: 1.2;
}

.sidebar__logo-sub {
  font-size: 11px; color: var(--text-muted);
  font-weight: 400; letter-spacing: .3px;
}

.sidebar__nav {
  flex: 1; padding: 12px 10px;
  display: flex; flex-direction: column; gap: 2px;
  overflow-y: auto;
}

.nav-section { margin-bottom: 8px; }

.nav-section__label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-muted); padding: 8px 10px 4px;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-md);
  color: var(--text-secondary); cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  font-size: 13.5px; font-weight: 500;
  user-select: none; border: none; background: transparent;
  width: 100%; text-align: left;
}

.nav-item:hover { background: var(--bg-elevated); color: var(--text-primary); }
.nav-item.active { background: var(--accent-dim); color: var(--accent); }
.nav-item__icon { width: 18px; text-align: center; font-size: 15px; flex-shrink: 0; }

.sidebar__footer { padding: 14px 10px; border-top: 1px solid var(--border); }

.sidebar__user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-md);
  transition: background var(--t-fast);
}

.sidebar__user:hover { background: var(--bg-elevated); }

.sidebar__avatar {
  width: 30px; height: 30px;
  background: var(--accent-dim); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--accent); flex-shrink: 0;
}

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

.sidebar__user-email {
  font-size: 12px; font-weight: 500; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.sidebar__logout {
  font-size: 18px; color: var(--text-muted); cursor: pointer;
  background: none; border: none; padding: 2px 4px;
  transition: color var(--t-fast); line-height: 1;
}

.sidebar__logout:hover { color: var(--status-failed); }

.main-content { margin-left: var(--sidebar-width); flex: 1; min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  height: 56px; background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; position: sticky; top: 0; z-index: 50;
}

.topbar__title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.topbar__actions { display: flex; align-items: center; gap: 10px; }

.page-content { padding: 28px; flex: 1; }
.section { display: none; }
.section.active { display: block; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; padding: 9px 18px; border-radius: var(--radius-md);
  font-size: 13.5px; font-weight: 600; cursor: pointer; border: none;
  transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast), opacity var(--t-fast);
  white-space: nowrap; line-height: 1;
}

.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

.btn--primary { background: var(--accent); color: var(--text-inverse); }
.btn--primary:hover:not(:disabled) { background: var(--accent-hover); box-shadow: var(--shadow-accent); transform: translateY(-1px); }

.btn--secondary { background: var(--bg-elevated); color: var(--text-primary); border: 1px solid var(--border-light); }
.btn--secondary:hover:not(:disabled) { background: var(--border-light); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn--ghost:hover:not(:disabled) { background: var(--bg-elevated); color: var(--text-primary); }

.btn--danger { background: transparent; color: var(--status-failed); border: 1px solid var(--status-failed-bg); }
.btn--danger:hover:not(:disabled) { background: var(--status-failed-bg); }

.btn--sm { padding: 6px 13px; font-size: 12.5px; border-radius: var(--radius-sm); }
.btn--lg { padding: 12px 26px; font-size: 14.5px; }
.btn--full { width: 100%; }

.btn-spinner {
  display: inline-block; width: 13px; height: 13px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  transition: border-color var(--t-normal), box-shadow var(--t-normal);
}

.card:hover { border-color: var(--border-light); }
.card--elevated { background: var(--bg-elevated); }
.card--accent { border-color: var(--accent-muted); box-shadow: var(--shadow-accent); }

.card__header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 18px; gap: 12px;
}

.card__title { font-size: 14.5px; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.card__subtitle { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

.card__footer {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }

.form-label { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); letter-spacing: .2px; }

.form-input,
.form-textarea,
.form-select {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-primary);
  padding: 10px 14px; font-size: 13.5px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none; width: 100%;
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-textarea { resize: vertical; min-height: 90px; line-height: 1.55; }

.form-select {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%238b90a8' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { font-size: 11.5px; color: var(--text-muted); }

.checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; }

.checkbox-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid var(--border);
  border-radius: 99px; cursor: pointer; font-size: 12.5px;
  color: var(--text-secondary);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
  user-select: none;
}

.checkbox-chip input[type="checkbox"] { display: none; }
.checkbox-chip:hover { border-color: var(--accent-muted); color: var(--text-primary); }
.checkbox-chip.checked { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* ============================================================
   BADGES
   ============================================================ */

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 99px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .2px; white-space: nowrap;
}

.badge--draft     { color: var(--status-draft);     background: var(--status-draft-bg); }
.badge--scheduled { color: var(--status-scheduled);  background: var(--status-scheduled-bg); }
.badge--published { color: var(--status-published);  background: var(--status-published-bg); }
.badge--failed    { color: var(--status-failed);     background: var(--status-failed-bg); }
.badge--generating { color: var(--status-generating); background: var(--status-generating-bg); }

/* ============================================================
   TABS
   ============================================================ */

.tab-bar { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }

.tab-btn {
  padding: 9px 18px; font-size: 13.5px; font-weight: 500;
  color: var(--text-muted); cursor: pointer; background: none; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ============================================================
   PAGE HEADER
   ============================================================ */

.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 26px; gap: 16px; flex-wrap: wrap;
}

.page-header__title { font-size: 21px; font-weight: 700; color: var(--text-primary); letter-spacing: -.4px; line-height: 1.2; }
.page-header__sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   GRIDS
   ============================================================ */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ============================================================
   RESULT BOX
   ============================================================ */

.result-box {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px; font-size: 13.5px;
  line-height: 1.65; color: var(--text-primary); white-space: pre-wrap; min-height: 60px;
}

.result-box--mono { font-family: var(--font-mono); font-size: 12.5px; }

.result-box code {
  font-family: var(--font-mono); font-size: 12px;
  background: var(--bg-base); padding: 1px 5px;
  border-radius: var(--radius-sm); color: var(--accent);
}

/* ============================================================
   POST CARD
   ============================================================ */

.post-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color var(--t-normal), box-shadow var(--t-normal);
}

.post-card:hover { border-color: var(--border-light); box-shadow: var(--shadow-md); }

.post-card__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border); gap: 10px;
}

.post-card__title { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.post-card__meta { display: flex; align-items: center; gap: 8px; }

.post-card__body { padding: 16px 18px; display: flex; gap: 16px; }

.post-card__image {
  width: 90px; height: 90px; border-radius: var(--radius-md);
  object-fit: cover; background: var(--bg-elevated);
  flex-shrink: 0; border: 1px solid var(--border);
}

.post-card__image-placeholder {
  width: 90px; height: 90px; border-radius: var(--radius-md);
  background: var(--bg-elevated); border: 1px dashed var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0; color: var(--text-muted);
}

.post-card__text {
  flex: 1; font-size: 13px; color: var(--text-secondary); line-height: 1.6;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
}

.post-card__footer {
  padding: 10px 18px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}

.post-card__actions { display: flex; gap: 7px; flex-wrap: wrap; }

/* ============================================================
   MODAL
   ============================================================ */

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity var(--t-normal);
}

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

.modal {
  background: var(--bg-surface); border: 1px solid var(--border-light);
  border-radius: var(--radius-xl); width: 100%; max-width: 560px;
  max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg);
  transform: translateY(16px); transition: transform var(--t-normal);
}

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

.modal__header { padding: 22px 24px 0; display: flex; align-items: center; justify-content: space-between; }
.modal__title { font-size: 16px; font-weight: 700; color: var(--text-primary); }

.modal__close {
  background: none; border: none; color: var(--text-muted);
  font-size: 20px; cursor: pointer; padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast); line-height: 1;
}

.modal__close:hover { color: var(--text-primary); background: var(--bg-elevated); }
.modal__body { padding: 20px 24px; }
.modal__footer { padding: 0 24px 22px; display: flex; gap: 10px; justify-content: flex-end; }

/* ============================================================
   VARIANT SELECTOR
   ============================================================ */

.variant-list { display: flex; flex-direction: column; gap: 10px; }

.variant-item {
  background: var(--bg-elevated); border: 2px solid var(--border);
  border-radius: var(--radius-md); padding: 13px 15px; cursor: pointer;
  font-size: 13px; color: var(--text-secondary); line-height: 1.6;
  transition: border-color var(--t-fast), color var(--t-fast);
}

.variant-item:hover { border-color: var(--accent-muted); color: var(--text-primary); }
.variant-item.selected { border-color: var(--accent); color: var(--text-primary); background: var(--accent-dim); }

/* ============================================================
   HISTORY ROWS – compact modern
   ============================================================ */

.history-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  margin-bottom: 7px;
  transition: border-color .15s, background .15s;
}

.history-row:hover {
  border-color: var(--accent-muted);
  background: var(--bg-elevated);
}

.history-row__img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.history-row__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.history-row__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
}

.history-row__content { min-width: 0; }

.history-row__header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.history-row__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.history-row__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-left: auto;
}

.history-row__text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.history-row__scheduled {
  font-size: 11px;
  color: var(--accent);
  margin-top: 2px;
  font-family: var(--font-mono);
}

.history-row__actions {
  display: flex;
  flex-direction: row;
  gap: 4px;
  flex-shrink: 0;
}

.history-row__actions .btn {
  padding: 5px 8px;
  font-size: 13px;
  line-height: 1;
}

/* ============================================================
   HISTORY ITEM (vechi – păstrat pentru compatibilitate)
   ============================================================ */

.history-item {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color var(--t-normal);
}

.history-item:hover { border-color: var(--border-light); }

.history-item__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; cursor: pointer; gap: 12px;
}

.history-item__title {
  font-size: 13.5px; font-weight: 600; color: var(--text-primary);
  flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.history-item__meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.history-item__expand { color: var(--text-muted); font-size: 12px; transition: transform var(--t-fast); }
.history-item.expanded .history-item__expand { transform: rotate(180deg); }
.history-item__body { display: none; padding: 0 18px 16px; border-top: 1px solid var(--border); }
.history-item.expanded .history-item__body { display: flex; gap: 16px; }

.history-item__image {
  width: 80px; height: 80px; border-radius: var(--radius-md);
  object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; margin-top: 14px;
}

.history-item__content { flex: 1; padding-top: 14px; font-size: 13px; color: var(--text-secondary); line-height: 1.65; }
.history-item__date { font-size: 11.5px; color: var(--text-muted); font-family: var(--font-mono); }

/* ============================================================
   EMPTY STATE
   ============================================================ */

.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 52px 24px; text-align: center; gap: 12px;
}

.empty-state__icon { font-size: 38px; opacity: .5; }
.empty-state__message { font-size: 14px; color: var(--text-muted); max-width: 280px; line-height: 1.6; }

/* ============================================================
   TOAST
   ============================================================ */

#toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}

.toast {
  background: var(--bg-elevated); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--text-primary); box-shadow: var(--shadow-lg);
  max-width: 320px; opacity: 0; transform: translateY(10px);
  transition: opacity var(--t-normal), transform var(--t-normal); pointer-events: all;
}

.toast--visible { opacity: 1; transform: translateY(0); }

.toast__icon {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}

.toast--success { border-left: 3px solid var(--status-published); }
.toast--success .toast__icon { background: var(--status-published-bg); color: var(--status-published); }
.toast--error { border-left: 3px solid var(--status-failed); }
.toast--error .toast__icon { background: var(--status-failed-bg); color: var(--status-failed); }
.toast--info { border-left: 3px solid var(--accent); }
.toast--info .toast__icon { background: var(--accent-dim); color: var(--accent); }
.toast--warning { border-left: 3px solid var(--status-scheduled); }
.toast--warning .toast__icon { background: var(--status-scheduled-bg); color: var(--status-scheduled); }

/* ============================================================
   UPLOAD ZONE
   ============================================================ */

.upload-zone {
  border: 2px dashed var(--border-light); border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center; cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.upload-zone:hover, .upload-zone.drag-over { border-color: var(--accent-muted); background: var(--accent-dim); }
.upload-zone__icon { font-size: 28px; margin-bottom: 8px; color: var(--text-muted); }
.upload-zone__text { font-size: 13px; color: var(--text-secondary); }
.upload-zone__hint { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   STAT CARDS
   ============================================================ */

.stat-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.stat-card__label { font-size: 11.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.stat-card__value { font-size: 28px; font-weight: 700; color: var(--text-primary); line-height: 1; letter-spacing: -.5px; }
.stat-card__change { font-size: 12px; color: var(--status-published); margin-top: 6px; }

/* ============================================================
   AUTH PAGES
   ============================================================ */

.auth-page {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 24px; background: var(--bg-base);
}

.auth-card {
  width: 100%; max-width: 400px; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 36px 32px; box-shadow: var(--shadow-lg);
}

.auth-title { font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; letter-spacing: -.4px; }
.auth-subtitle { font-size: 13.5px; color: var(--text-muted); margin-bottom: 28px; }
.auth-footer { margin-top: 22px; text-align: center; font-size: 13px; color: var(--text-muted); }

/* ============================================================
   MOBILE
   ============================================================ */

.sidebar-toggle { display: none; background: none; border: none; color: var(--text-secondary); font-size: 20px; cursor: pointer; padding: 4px; }

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .main-content { margin-left: 0; }
  .sidebar-toggle { display: flex; }
  .page-content { padding: 18px; }
}

@media (max-width: 560px) {
  .post-card__body { flex-direction: column; }
  .modal { border-radius: var(--radius-lg); }
  .topbar { padding: 0 16px; }
  .history-row { grid-template-columns: 48px 1fr; }
  .history-row__actions { display: none; }
}

/* ============================================================
   IMAGE MODE BUTTONS
   ============================================================ */

.img-mode-btn { font-family: var(--font-body); }

.img-mode-btn.active {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: var(--accent-dim) !important;
}

.img-mode-btn:hover:not(.active) {
  border-color: var(--border-light) !important;
  color: var(--text-primary) !important;
  background: var(--bg-elevated) !important;
}
/* ================================================
   ADAUGĂ ACEST BLOC LA SFÂRȘITUL FIȘIERULUI style.css
   ================================================ */

/* Form label hint */
.form-label__hint {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}

/* ---- Image mode buttons ---- */
.img-mode-group {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.img-mode-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  transition: all .15s ease;
}

.img-mode-btn__icon {
  font-size: 18px;
  line-height: 1;
}

.img-mode-btn__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.img-mode-btn__sub {
  font-size: 10.5px;
  color: var(--text-muted);
}

.img-mode-btn.active {
  border-color: #00c896;
  background: rgba(0, 200, 150, 0.08);
  color: #00c896;
}

.img-mode-btn.active .img-mode-btn__label {
  color: #00c896;
}

.img-mode-btn:hover:not(.active) {
  border-color: var(--border-hover, #444);
  background: var(--bg-hover, rgba(255,255,255,0.04));
}

/* ---- Camp panels ---- */
.camp-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
}

/* ---- Prompt suggestions ---- */
.prompt-suggestions {
  margin-top: 8px;
}

.prompt-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prompt-chip {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}

.prompt-chip:hover {
  border-color: #00c896;
  color: #00c896;
  background: rgba(0, 200, 150, 0.08);
}

/* ---- Style chips ---- */
.style-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.style-chip {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
}

.style-chip.active {
  border-color: #00c896;
  background: rgba(0, 200, 150, 0.08);
  color: #00c896;
}

.style-chip:hover:not(.active) {
  border-color: var(--border-hover, #444);
  color: var(--text-primary);
}

/* ---- Multi upload grid ---- */
.multi-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.upload-slot {
  aspect-ratio: 1;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  background: var(--bg-elevated);
  transition: border-color .15s;
  position: relative;
  overflow: hidden;
}

.upload-slot:hover {
  border-color: #00c896;
  color: #00c896;
}

.upload-slot.has-image {
  border-style: solid;
  border-color: #00c896;
}

.upload-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-slot__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  opacity: 0;
  transition: opacity .15s;
}

.upload-slot:hover .upload-slot__remove {
  opacity: 1;
}

/* ---- Text options card ---- */
.text-options-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
}

.text-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.text-option-divider {
  height: 1px;
  background: var(--border);
}

.text-option-info {
  flex: 1;
}

.text-option-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.text-option-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.text-option-panel {
  padding: 14px 16px;
  background: var(--bg-card, var(--bg-elevated));
  border-top: 1px solid var(--border);
}

/* ---- Toggle ---- */
.toggle-track {
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: var(--border);
  position: relative;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}

.toggle-track.on {
  background: #00c896;
}

.toggle-knob {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left .2s;
  pointer-events: none;
}

.toggle-track.on .toggle-knob {
  left: 18px;
}