*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:     #0A0A0A;
  --text:   #F2F0EE;
  --border: rgba(255,255,255,0.10);
  --muted:  rgba(255,255,255,0.40);
  --ease:   cubic-bezier(0.4,0,0.2,1);
}
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ── LOGIN PAGE ───────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-back {
  position: fixed; top: 24px; left: 24px;
  font-size: 13px; color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.auth-back:hover { color: rgba(255,255,255,0.75); }
.auth-card {
  width: 100%; max-width: 400px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 40px 36px;
}
.auth-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 36px;
  font-size: 13.5px; color: rgba(255,255,255,0.55);
}
.auth-logo__icon { font-size: 15px; color: rgba(255,255,255,0.25); }
.auth-logo__name { font-weight: 400; }
.auth-logo__name strong { font-weight: 700; color: var(--text); }
.auth-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.auth-sub { font-size: 14px; color: rgba(255,255,255,0.38); margin-bottom: 32px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-field { display: flex; flex-direction: column; gap: 7px; }
.auth-label { font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,0.4); }
.auth-label-hint { font-weight: 400; color: rgba(255,255,255,0.22); font-size: 11px; }
.auth-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: inherit; font-size: 14px; color: var(--text);
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.auth-input:focus { border-color: rgba(255,255,255,0.26); background: rgba(255,255,255,0.07); }
.auth-input::placeholder { color: rgba(255,255,255,0.18); }
.auth-phone-wrap { position: relative; width: 100%; }
.auth-phone-flag { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 17px; line-height: 1; pointer-events: none; }
.auth-phone-wrap .auth-input { width: 100%; padding-left: 44px; }
.auth-error {
  font-size: 13px; color: #e06060;
  min-height: 18px; margin-top: -4px;
}
.auth-submit {
  padding: 14px; border-radius: 100px; border: none;
  background: var(--text); color: var(--bg);
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; margin-top: 4px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.auth-submit:hover { background: #fff; transform: translateY(-1px); }

/* ── DASHBOARD ────────────────────────────────────────── */
.dash-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}
.dash-sidebar {
  background: rgba(255,255,255,0.02);
  border-right: 1px solid rgba(255,255,255,0.07);
  padding: 28px 16px;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.dash-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.5);
  padding: 0 8px; margin-bottom: 32px;
}
.dash-logo span:first-child { color: rgba(255,255,255,0.2); }
.dash-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.dash-navitem {
  padding: 9px 12px; border-radius: 8px;
  font-size: 13.5px; color: rgba(255,255,255,0.42);
  text-decoration: none;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.dash-navitem:hover { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.8); }
.dash-navitem.active { background: rgba(255,255,255,0.07); color: var(--text); font-weight: 500; }
.dash-back {
  display: block;
  margin: 0 0 8px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.dash-back:hover { background: #fff; border-color: #fff; color: #000; }

.dash-logout {
  padding: 9px 12px; border-radius: 8px; border: none;
  background: transparent; font-family: inherit;
  font-size: 13px; color: rgba(255,255,255,0.28);
  cursor: pointer; text-align: left;
  transition: color 0.15s var(--ease);
}
.dash-logout:hover { color: rgba(255,255,255,0.6); }
.dash-main { padding: 44px 48px; overflow-y: auto; }
.dash-header {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 32px;
}
.dash-title { font-size: 22px; font-weight: 700; }
.dash-count { font-size: 13px; color: rgba(255,255,255,0.3); }
.dash-table-wrap {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; overflow: hidden;
}
.dash-table {
  width: 100%; border-collapse: collapse; font-size: 13.5px;
}
.dash-table th {
  padding: 13px 18px; text-align: left;
  font-size: 11.5px; font-weight: 600;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.07em; text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.dash-table td {
  padding: 14px 18px;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: rgba(255,255,255,0.02); }
.dash-table a { color: rgba(255,255,255,0.7); text-decoration: none; }
.dash-table a:hover { color: #fff; }
.dash-empty {
  display: none; padding: 56px 24px;
  text-align: center; color: rgba(255,255,255,0.28);
  font-size: 14px; line-height: 1.8;
}
.dash-empty-sub { font-size: 13px; color: rgba(255,255,255,0.18); }
.dash-badge {
  display: inline-block;
  padding: 3px 10px; border-radius: 100px;
  font-size: 11.5px; font-weight: 500;
}
.dash-badge--nou { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.55); }
.dash-badge--contactat { background: rgba(50,200,100,0.1); color: rgba(90,210,130,0.85); }
.dash-badge--inchis { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.3); }

.auth-switch {
  margin-top: 20px; text-align: center;
  font-size: 13px; color: rgba(255,255,255,0.3);
}
.auth-switch a { color: rgba(255,255,255,0.65); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
.auth-switch a:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

.dash-placeholder {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 56px 32px;
  text-align: center;
}
.dash-placeholder__text { font-size: 16px; color: rgba(255,255,255,0.55); margin-bottom: 8px; }
.dash-placeholder__sub { font-size: 13.5px; color: rgba(255,255,255,0.28); }
