/* ============================================================
   UMRAH BUILDER — MAIN CSS (Premium v2 — Cleaned)
   Root variables, Layout, Sidebar, Topbar, Sections
   Reference: Unwind / ShareMyDine-style SaaS
   ============================================================ */

:root {
  --bg: #f7f8fa;
  --bg-2: #fafbfc;
  --card: #ffffff;
  --border: #ebedf0;
  --border-2: #e1e4e8;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #fed7aa;
  --primary-bg: #fff7ed;
  --green: #10b981;
  --green-dark: #059669;
  --green-bg: #ecfdf5;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --blue-bg: #eff6ff;
  --purple: #a855f7;
  --purple-bg: #faf5ff;
  --amber: #f59e0b;
  --amber-bg: #fffbeb;
  --red: #ef4444;
  --red-dark: #dc2626;
  --red-bg: #fef2f2;
  --shadow-xs: 0 1px 2px rgba(15,23,42,.04);
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow: 0 4px 12px rgba(15,23,42,.06);
  --shadow-md: 0 10px 20px -3px rgba(15,23,42,.08);
  --shadow-lg: 0 20px 30px -5px rgba(15,23,42,.10);
  --shadow-primary: 0 8px 20px -4px rgba(249,115,22,.35);
  --r-sm: 8px;
  --r: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
}

body.dark {
  --bg: #0a0a0f;
  --bg-2: #121218;
  --card: #1a1a22;
  --border: #232330;
  --border-2: #2d2d3d;
  --text: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --primary-bg: #2a1a0a;
  --green-bg: #0a2010;
  --blue-bg: #0a1428;
  --purple-bg: #1e0a2a;
  --amber-bg: #2a1c0a;
  --red-bg: #2a0a0a;
  --shadow: 0 4px 12px rgba(0,0,0,.3);
  --shadow-md: 0 10px 20px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 30px rgba(0,0,0,.5);
}

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

body {
  font-family: 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
  transition: background .3s, color .3s;
}

button, input, select, textarea { font-family: inherit; }
::selection { background: var(--primary-light); color: var(--primary-dark); }

.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sb {
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  transition: background .3s;
  width: 260px;
}

.sb::-webkit-scrollbar { width: 4px; }
.sb::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }
.sb::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ============ Brand ============ */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 20px 22px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.blogo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, #fb923c, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 14px -3px rgba(249,115,22,.4);
}

.blogo svg { width: 22px; height: 22px; }

.btxt {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.btxt span {
  display: block;
  font-size: 9.5px;
  color: var(--text-3);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 3px;
  font-weight: 700;
}

/* ============ Section Headers ============ */
.sb-section {
  padding: 0 20px;
  margin: 18px 0 8px;
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-weight: 800;
}

/* ============ Menu Items ============ */
.ni {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s cubic-bezier(.4,0,.2,1);
  margin: 1px 12px;
  border-radius: 10px;
  position: relative;
  text-decoration: none;
  user-select: none;
}

.ni .ic {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  flex-shrink: 0;
  transition: all .15s ease;
}

.ni .ic svg { width: 18px; height: 18px; }

.ni .lbl {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ni:hover {
  background: var(--bg-2);
  color: var(--text);
}

.ni:hover .ic {
  color: var(--text-2);
  transform: scale(1.05);
}

.ni.act {
  background: var(--primary-bg);
  color: var(--primary-dark);
  font-weight: 700;
}

.ni.act::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 22px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}

.ni.act .ic { color: var(--primary); }
.ni.act .lbl { color: var(--primary-dark); }

/* ============ Badge ============ */
.ni .badge {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--primary);
  color: #fff;
  min-width: 20px;
  text-align: center;
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(249,115,22,.3);
}

.ni.act .badge { background: var(--primary-dark); }

/* ============ Profile Box ============ */
.profile-box {
  margin: auto 16px 16px;
  padding: 12px;
  background: var(--bg-2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  transition: all .2s;
}

.profile-box:hover { border-color: var(--border-2); }

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fb923c, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(249,115,22,.25);
}

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

.profile-info .name {
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.profile-info .email {
  font-size: 10.5px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* ============ Logout Button ============ */
.logout-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: none;
  background: rgba(239,68,68,.08);
  color: var(--red);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
  padding: 0;
  margin-left: auto;
}

.logout-btn:hover {
  background: var(--red);
  color: #fff;
  transform: scale(1.05);
}

.logout-btn:active { transform: scale(.94); }

.logout-btn svg { width: 16px; height: 16px; }

.logout-btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  transition: transform .2s ease;
}

.logout-btn:hover img { transform: scale(1.1); }

/* ============ Dark Mode Sidebar ============ */
body.dark .sb { background: var(--card); border-right-color: var(--border); }
body.dark .ni.act { background: rgba(249,115,22,.12); }
body.dark .profile-box { background: var(--bg-2); }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.mn {
  padding: 24px 32px 100px;
  overflow-x: hidden;
  max-width: 1400px;
  width: 100%;
}

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

.page-title-wrap { flex: 1; min-width: 200px; }

.page-greeting {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  line-height: 1.2;
}

.page-greeting span { color: var(--primary); }

.page-subtitle {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}

.topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.search-global { position: relative; width: 280px; }

.search-global::before {
  content: '🔍';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  opacity: .5;
  pointer-events: none;
}

.search-global input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  outline: none;
  font-weight: 500;
  background: var(--card);
  color: var(--text);
  transition: all .15s;
}

.search-global input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all .15s;
  position: relative;
  color: var(--text-2);
}

.icon-btn:hover { background: var(--bg-2); border-color: var(--border-2); }

.icon-btn .dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--card);
}

.page { display: none; animation: pageIn .3s; }
.page.act { display: block; }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ============================================================
   STAT CARDS
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 20px;
  border: 1px solid var(--border);
  transition: all .25s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  opacity: 0;
  transition: opacity .25s;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--border-2);
}

.stat-card:hover::before { opacity: 1; }

.stat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.stat-label {
  font-size: 11.5px;
  color: var(--text-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.stat-value {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--text);
}

.stat-foot {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 10px;
  font-weight: 500;
}

/* ============================================================
   CHARTS
   ============================================================ */
.charts-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}

.chart-card {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 22px;
  border: 1px solid var(--border);
  transition: all .2s;
}

.chart-card:hover { box-shadow: var(--shadow); }

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

.chart-title h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 3px;
  letter-spacing: -0.02em;
}

.chart-title p {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}

.chart-canvas-wrap { position: relative; height: 240px; }
.chart-canvas-wrap canvas { max-height: 240px; }

.donut-wrap { position: relative; height: 200px; margin-bottom: 16px; }
.donut-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-value { margin-left: auto; font-weight: 800; color: var(--text); }

/* ============================================================
   CONTENT ROW
   ============================================================ */
.content-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}

.content-card {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 22px;
  border: 1px solid var(--border);
  transition: all .2s;
}

.content-card:hover { box-shadow: var(--shadow); }

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

.content-head h3 {
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
}

/* ============================================================
   ANALYTICS
   ============================================================ */
.analytics-wrapper { display: flex; flex-direction: column; gap: 18px; }

.an-profile-header {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 20px 24px;
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.an-profile-left { display: flex; align-items: center; gap: 14px; }

.an-avatar-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #fb923c, #f97316);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.an-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }

.an-avatar-fallback {
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.an-profile-name { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.an-profile-role { font-size: 12.5px; color: var(--text-2); font-weight: 500; margin-top: 2px; }

.an-refresh-btn {
  padding: 9px 16px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s;
}

.an-refresh-btn:hover { background: var(--bg-2); border-color: var(--border-2); }

.an-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.an-kpi {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 18px;
  border: 1px solid var(--border);
  transition: all .2s;
}

.an-kpi:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.an-kpi-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }

.an-kpi-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.an-kpi-label {
  font-size: 11.5px;
  color: var(--text-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.an-kpi-value {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.1;
  color: var(--text);
}

.an-kpi-foot { font-size: 11px; color: var(--text-3); margin-top: 6px; font-weight: 500; }

.an-charts-row { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }

.an-card {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 20px;
  border: 1px solid var(--border);
}

.an-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
}

.an-card-head h3 { font-size: 14.5px; font-weight: 800; letter-spacing: -.02em; }

.an-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--primary-bg);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.an-chart-wrap { position: relative; height: 260px; }
.an-chart-wrap canvas { max-height: 260px; }

.an-donut-wrap { position: relative; height: 200px; margin-bottom: 16px; }
.an-donut-legend { display: flex; flex-direction: column; gap: 8px; }

.an-legend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-2);
  border-radius: 8px;
  font-size: 12px;
}

.an-legend-row .name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.an-legend-row .val { font-weight: 800; color: var(--text); }
.an-legend-dot { width: 8px; height: 8px; border-radius: 50%; }

.an-breakdown-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.an-list { display: flex; flex-direction: column; gap: 8px; }

.an-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-2);
  border-radius: 10px;
  font-size: 13px;
}

.an-list-row .name { font-weight: 600; }
.an-list-row .val { font-weight: 800; color: var(--primary); }

.an-table-card { padding: 20px; }
.an-table-card .table-wrap { margin-top: 4px; }
.an-table-card tbody tr { cursor: pointer; }
.an-table-card tbody tr:hover { background: var(--primary-bg); }

/* ============================================================
   QUICK / TEMPLATES
   ============================================================ */
.quick-card {
  padding: 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-bg), #ffedd5);
  border: 1px solid var(--primary-light);
  margin-bottom: 16px;
}

body.dark .quick-card { background: linear-gradient(135deg, #2a1a0a, #1f1408); }

.quick-card h4 { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.quick-card p { font-size: 12.5px; color: var(--text-2); margin-bottom: 14px; }
.quick-card .btn { width: 100%; justify-content: center; }

.template-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.template-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  background: var(--card);
}

.template-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.template-card .t-icon { font-size: 22px; margin-bottom: 10px; }
.template-card .t-name { font-size: 12.5px; font-weight: 800; margin-bottom: 4px; }
.template-card .t-price { font-size: 13.5px; font-weight: 800; color: var(--primary); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  margin-bottom: 16px;
  background: var(--card);
  border-radius: var(--r);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all .2s;
}

.section:hover { border-color: var(--border-2); box-shadow: var(--shadow-xs); }

.section-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}

.section-header .left { display: flex; align-items: center; gap: 10px; }

.section-header .num {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px -2px rgba(249,115,22,.4);
}

.section-header h3 { font-size: 13.5px; font-weight: 800; }

.section-header .count {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 3px 10px;
  border-radius: 20px;
}

.section-body { padding: 20px; }

.section-divider {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 18px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty-slot {
  padding: 30px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 12.5px;
  border: 2px dashed var(--border-2);
  border-radius: 12px;
  background: var(--bg-2);
}

.empty-slot .ic { font-size: 30px; margin-bottom: 8px; opacity: .5; display: block; }

.empty { text-align: center; padding: 50px 20px; color: var(--text-3); }
.empty .ic { font-size: 56px; margin-bottom: 14px; opacity: .35; display: block; }
.empty .tx { font-size: 14px; font-weight: 600; }

/* ============================================================
   PACKAGE LIST
   ============================================================ */
.pkg-list { display: flex; flex-direction: column; gap: 10px; }

.pkg-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: all .2s cubic-bezier(.4,0,.2,1);
}

.pkg-row:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
}

.pkg-row-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pkg-row-dot.draft { background: var(--text-3); }
.pkg-row-dot.quoted { background: var(--blue); }
.pkg-row-dot.follow-up { background: var(--purple); }
.pkg-row-dot.confirmed { background: var(--green); }
.pkg-row-dot.paid { background: var(--green-dark); }
.pkg-row-dot.visa-processing { background: var(--amber); }
.pkg-row-dot.ticketed { background: var(--blue); }
.pkg-row-dot.completed { background: var(--primary); }
.pkg-row-dot.cancelled { background: var(--red); }
.pkg-row-dot.no-response { background: var(--amber); }

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

.pkg-row-info h4 {
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.015em;
}

.pkg-row-info h4 .ref-no {
  font-size: 10.5px;
  color: var(--text-3);
  font-weight: 600;
  margin-left: 6px;
}

.pkg-row-info .meta {
  font-size: 11.5px;
  color: var(--text-2);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 500;
}

.pkg-row-price {
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.pkg-row-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
  flex-shrink: 0;
  white-space: nowrap;
}

.pkg-row-badge.draft { background: var(--bg-2); color: var(--text-2); }
.pkg-row-badge.quoted { background: var(--blue-bg); color: var(--blue); }
.pkg-row-badge.follow-up { background: var(--purple-bg); color: var(--purple); }
.pkg-row-badge.confirmed { background: var(--green-bg); color: var(--green-dark); }
.pkg-row-badge.paid { background: var(--green-bg); color: var(--green-dark); }
.pkg-row-badge.visa-processing { background: var(--amber-bg); color: var(--amber); }
.pkg-row-badge.ticketed { background: var(--blue-bg); color: var(--blue); }
.pkg-row-badge.completed { background: var(--primary-bg); color: var(--primary); }
.pkg-row-badge.cancelled { background: var(--red-bg); color: var(--red); }
.pkg-row-badge.no-response { background: var(--amber-bg); color: var(--amber); }

/* ============================================================
   FOLLOW-UPS
   ============================================================ */
.followup-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: all .15s;
  margin-bottom: 8px;
}

.followup-row:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
  transform: translateX(3px);
}

.followup-row.overdue { border-left: 4px solid var(--red); }
.followup-row.today { border-left: 4px solid var(--amber); background: var(--amber-bg); }
.followup-row.upcoming { border-left: 4px solid var(--green); }

.followup-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.followup-icon.lead { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.followup-icon.inquiry { background: linear-gradient(135deg, #a855f7, #9333ea); }
.followup-icon.quote { background: linear-gradient(135deg, #f59e0b, #d97706); }
.followup-icon.reminder { background: linear-gradient(135deg, #22c55e, #16a34a); }
.followup-icon.other { background: linear-gradient(135deg, #64748b, #475569); }

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

.followup-info h4 {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.followup-info .meta {
  font-size: 11.5px;
  color: var(--text-2);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.followup-priority {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.followup-priority.high { background: var(--red-bg); color: var(--red); }
.followup-priority.medium { background: var(--amber-bg); color: var(--amber); }
.followup-priority.low { background: var(--green-bg); color: var(--green); }

.followup-date { font-size: 11.5px; font-weight: 700; flex-shrink: 0; text-align: right; }
.followup-date .day { font-size: 14px; font-weight: 900; color: var(--primary); }
.followup-date .lbl {
  font-size: 9.5px;
  color: var(--text-3);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .5px;
}

.follow-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--bg-2);
  border-radius: 10px;
  width: fit-content;
}

.follow-tab {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}

.follow-tab:hover { background: var(--card); }
.follow-tab.act {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 3px 10px rgba(249,115,22,.3);
}

/* ============================================================
   CUSTOMER / VENDOR ROWS
   ============================================================ */
.customer-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  margin-bottom: 10px;
}

.customer-row:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
}

.customer-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -2px rgba(249,115,22,.35);
}

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

.customer-info h4 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}

.customer-info .meta {
  font-size: 12px;
  color: var(--text-2);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-weight: 500;
}

.customer-stats { display: flex; gap: 24px; flex-shrink: 0; }
.customer-stat { text-align: right; }

.customer-stat .lbl {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 800;
  letter-spacing: .7px;
  margin-bottom: 4px;
}

.customer-stat .val {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.customer-stat .val.green { color: var(--green-dark); }
.customer-stat .val.red { color: var(--red); }
.customer-stat .val.primary { color: var(--primary); }
.customer-stat .val.blue { color: var(--blue); }

/* ============================================================
   PAYMENT ROWS
   ============================================================ */
.payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-2);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  gap: 12px;
  transition: all .15s;
}

.payment-row:hover { background: var(--card); box-shadow: var(--shadow-xs); }
.payment-row .info { flex: 1; min-width: 0; }
.payment-row .amt { font-weight: 800; color: var(--green-dark); font-size: 14px; }
.payment-row .amt.red { color: var(--red); }
.payment-row .date { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* ============================================================
   DETAIL GRID
   ============================================================ */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }

.detail-block {
  padding: 14px 16px;
  background: var(--bg-2);
  border-radius: 10px;
  border-left: 3px solid var(--primary);
}

.detail-block .lbl {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 800;
  letter-spacing: .8px;
  margin-bottom: 5px;
}

.detail-block .val { font-size: 13.5px; font-weight: 700; }

/* ============================================================
   PROFILE UPLOAD
   ============================================================ */
.profile-upload-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.profile-pic-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--card);
  box-shadow: var(--shadow-md);
}

.profile-pic-preview img { width: 100%; height: 100%; object-fit: cover; }

.image-preview-box {
  width: 100%;
  height: 100px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 2px dashed var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  overflow: hidden;
}

.image-preview-box img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ============================================================
   REPORT HEADER
   ============================================================ */
.report-header-card {
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: #fff;
  border-radius: var(--r-md);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .logout-btn {
    width: 32px;
    height: 32px;
  }
  .logout-btn img,
  .logout-btn svg {
    width: 14px;
    height: 14px;
  }
}