/* ============================================================
   INIZIO GLOBAL — BROKER PORTAL
   Comprehensive stylesheet
   ============================================================ */

:root {
  --navy: #1a1a2e;
  --navy-light: #2a2a4a;
  --gold: #c9a84a;
  --gold-light: #e0c878;
  --cream: #faf9f5;
  --warm-white: #fdfcf9;
  --text: #1a1a2e;
  --text-muted: #6b6b6b;
  --text-light: #999;
  --border: #e8e6df;
  --border-strong: #d4d2cb;
  --success: #1e7e34;
  --success-bg: #e6f4ea;
  --warning: #e65100;
  --warning-bg: #fff3e0;
  --danger: #c62828;
  --danger-bg: #fdecea;
  --info: #1565c0;
  --info-bg: #e3f2fd;
  --purple: #5e35b1;
  --purple-bg: #ede7f6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --transition: 0.2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: white;
}
.btn-primary:hover { background: var(--navy-light); }
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold-light); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--navy); background: var(--cream); }
.btn-ghost { color: var(--text-muted); padding: 8px 12px; }
.btn-ghost:hover { color: var(--navy); background: var(--cream); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 249, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.landing-nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  color: var(--navy);
}
.landing-nav .logo-mark {
  width: 32px;
  height: 32px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.landing-nav .logo-text { display: flex; align-items: center; gap: 6px; }
.landing-nav .logo-text .gold { color: var(--gold); }
.landing-nav .nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
}
.landing-nav .nav-links a:hover { color: var(--navy); }

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px 100px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--navy);
  margin-bottom: 20px;
}
.hero h1 .gold { color: var(--gold); }
.hero p.lead {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  background: linear-gradient(135deg, var(--navy) 0%, #2a2a4a 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201, 168, 74, 0.2) 0%, transparent 70%);
}
.hero-card {
  position: relative;
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.hero-card .label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.hero-card .value { font-size: 28px; font-weight: 700; color: var(--navy); }
.hero-card .change { font-size: 13px; color: var(--success); margin-top: 4px; }

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
}
.section.alt { background: var(--cream); max-width: none; padding-left: max(40px, calc((100vw - 1200px) / 2)); padding-right: max(40px, calc((100vw - 1200px) / 2)); }
.section-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--navy);
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 700;
}
.feature-card h3 { font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); line-height: 1.6; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.step {
  text-align: center;
}
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto 16px;
}
.step h4 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat .num { font-size: 44px; font-weight: 700; color: var(--gold); letter-spacing: -1px; }
.stat .label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

.cta-section {
  background: var(--navy);
  color: white;
  text-align: center;
  padding: 80px 40px;
}
.cta-section h2 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.cta-section h2 .gold { color: var(--gold); }
.cta-section p { font-size: 17px; color: rgba(255,255,255,0.7); margin-bottom: 32px; }

.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 50px 40px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer h5 { color: white; font-size: 13px; font-weight: 600; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; font-size: 13px; }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cream) 0%, var(--warm-white) 100%);
  padding: 40px 20px;
}
.auth-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
  padding: 40px;
}
.auth-logo {
  text-align: center;
  margin-bottom: 30px;
}
.auth-logo .logo-mark {
  width: 56px;
  height: 56px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.auth-logo h1 { font-size: 22px; color: var(--navy); margin-bottom: 4px; }
.auth-logo h1 .gold { color: var(--gold); }
.auth-logo p { font-size: 14px; color: var(--text-muted); }

.role-tabs {
  display: flex;
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
}
.role-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.role-tab.active {
  background: var(--navy);
  color: white;
}

.auth-form .form-group { margin-bottom: 18px; }
.auth-form label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.auth-form input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: white;
  transition: var(--transition);
}
.auth-form input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,26,46,0.1); }
.auth-form .btn-primary { width: 100%; padding: 12px; margin-top: 8px; }

.auth-extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 20px;
}
.auth-extras a { color: var(--navy); text-decoration: none; }
.auth-extras a:hover { color: var(--gold); }
.auth-extras label { display: flex; align-items: center; gap: 6px; color: var(--text-muted); cursor: pointer; }

.demo-banner {
  background: var(--info-bg);
  border-left: 3px solid var(--info);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--info);
  margin-bottom: 20px;
}

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

/* ============================================================
   DASHBOARD LAYOUT (sidebar + content)
   ============================================================ */
.dashboard-layout {
  min-height: 100vh;
  position: relative;
}

.sidebar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 240px;
}
.sidebar-logo {
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-logo .logo-mark {
  width: 36px;
  height: 36px;
  background: white;
  color: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.sidebar-logo .name { font-weight: 600; color: white; font-size: 15px; }
.sidebar-logo .name .gold { color: var(--gold); }
.sidebar-logo .role { font-size: 11px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }

.nav-section {
  padding: 8px 12px;
  flex: 1;
}
.nav-section .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
  padding: 12px 12px 8px;
  font-weight: 600;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 2px;
  transition: var(--transition);
  color: rgba(255,255,255,0.75);
}
.nav-link:hover { background: rgba(255,255,255,0.06); color: white; }
.nav-link.active { background: var(--gold); color: var(--navy); font-weight: 500; }
.nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.main-content {
  margin-left: 240px;
  padding: 0;
  background: var(--warm-white);
}

.topbar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 12px;
}
.topbar h1 { font-size: 18px; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.topbar-bell {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--text-muted);
  position: relative;
  cursor: pointer;
}
.topbar-bell::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 11px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid white;
}
.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  background: var(--cream);
  border-radius: 24px;
  cursor: pointer;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: white;
}
.user-pill .info { font-size: 13px; }
.user-pill .name { font-weight: 500; color: var(--navy); }
.user-pill .role { font-size: 11px; color: var(--text-muted); }

.page-content { padding: 28px 32px; max-width: 1400px; }

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-header > div:first-child { flex: 1; min-width: 0; }
.page-header h2 { font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.page-header p { color: var(--text-muted); font-size: 14px; }

/* ─── KPI CARDS ─── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.kpi-card .icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 16px;
}
.kpi-card .label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  font-weight: 500;
}
.kpi-card .value {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.kpi-card .sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}
.kpi-card .change-up { color: var(--success); font-weight: 500; }
.kpi-card .change-down { color: var(--danger); font-weight: 500; }

.kpi-card.gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border-color: transparent;
}
.kpi-card.gold .label, .kpi-card.gold .value, .kpi-card.gold .sub { color: var(--navy); }

/* ─── CARDS ─── */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  overflow: hidden;
}
.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h3 { font-size: 15px; font-weight: 600; color: var(--navy); }
.card-header p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.card-body { padding: 22px; }
.card-body.no-pad { padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ─── TABLES ─── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 600px;
}
.data-table thead { background: var(--cream); }
.data-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  padding: 12px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: var(--cream); cursor: pointer; }
.data-table tbody tr:last-child td { border-bottom: none; }
.cell-mono { font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace; font-size: 12px; color: var(--text-muted); }
.cell-strong { font-weight: 600; color: var(--navy); }

/* ─── BADGES ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-purple { background: var(--purple-bg); color: var(--purple); }
.badge-gray { background: var(--cream); color: var(--text-muted); }

/* ─── PIPELINE ─── */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

/* Responsive 2-column main+sidebar layout (used on dashboards) */
.split-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
@media (max-width: 1024px) {
  .split-grid { grid-template-columns: 1fr; }
}

/* Landing "For Agents" section - 2 columns side by side */
.for-agents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .for-agents-grid { grid-template-columns: 1fr; gap: 40px; }
}
.pipeline-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
  position: relative;
}
.pipeline-card .stage-name { font-size: 11px; color: var(--text-muted); font-weight: 500; margin-bottom: 6px; }
.pipeline-card .stage-count { font-size: 24px; font-weight: 700; color: var(--navy); }

/* ─── FORMS ─── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid.three-col { grid-template-columns: 1fr 1fr 1fr; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group label .req { color: var(--danger); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: white;
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,26,46,0.08);
}
.form-group textarea { min-height: 80px; resize: vertical; font-family: inherit; }
.form-group .hint { font-size: 11px; color: var(--text-light); margin-top: 4px; }

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

/* ─── FILTERS ─── */
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
  flex-wrap: wrap;
}
.filter-row select, .filter-row input {
  padding: 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: white;
  font-size: 13px;
}
.filter-row .search {
  flex: 1;
  max-width: 280px;
}

/* ─── AVATAR ─── */
.avatar-row { display: inline-flex; align-items: center; gap: 8px; }
.avatar-row .avatar { width: 28px; height: 28px; font-size: 11px; }
.avatar-row .name-block .name { font-size: 13px; color: var(--navy); font-weight: 500; }
.avatar-row .name-block .sub { font-size: 11px; color: var(--text-muted); }

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal-card {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s ease;
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 { font-size: 17px; font-weight: 600; color: var(--navy); }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--cream);
}
.modal-close { font-size: 22px; color: var(--text-muted); cursor: pointer; line-height: 1; padding: 4px 8px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ─── EMPTY / TOAST ─── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--success);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { transform: translateX(400px); } to { transform: translateX(0); } }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; padding: 60px 30px; }
  .hero h1 { font-size: 38px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* TABLET / NARROW DESKTOP — hide sidebar, show top nav */
@media (max-width: 1024px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .topbar { padding: 12px 20px; }
  .page-content { padding: 20px; }
  .mobile-nav { display: flex; }
}

@media (max-width: 768px) {
  .landing-nav { padding: 14px 20px; }
  .landing-nav .nav-links { display: none; }
  .section { padding: 60px 20px; }
  .section-title { font-size: 28px; }
  .page-content { padding: 14px; }
  .topbar { padding: 10px 14px; }
  .topbar h1 { font-size: 16px; }
  .user-pill .info { display: none; }
  .form-grid, .form-grid.three-col { grid-template-columns: 1fr; }
  .data-table { font-size: 12px; }
  .data-table th, .data-table td { padding: 10px 8px; }
  .page-header { flex-direction: column; align-items: stretch; }
  .page-header h2 { font-size: 20px; }
}

/* ─── MOBILE NAV (horizontal scrolling pill bar) ─── */
.mobile-nav {
  display: none;
  background: var(--navy);
  padding: 8px 12px;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mobile-nav::-webkit-scrollbar { display: none; }
.mobile-nav .mobile-nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 4px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.1);
  margin-right: 8px;
}
.mobile-nav .mobile-nav-brand .logo-mark {
  width: 28px; height: 28px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.mobile-nav .mobile-nav-brand .name { font-size: 13px; color: white; font-weight: 600; }
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  flex-shrink: 0;
}
.mobile-nav a:hover { background: rgba(255,255,255,0.06); color: white; }
.mobile-nav a.active { background: var(--gold); color: var(--navy); font-weight: 500; }
.mobile-nav a svg { width: 14px; height: 14px; }
