/* =========================================================================
   MYTCS v2 — Design System
   Clean flat white SaaS UI — indigo-blue accent, soft shadows, no glass blur,
   no dark gradients, no curved header/footer (etikto-style reference)
   ========================================================================= */

:root{
  --ink:          #171923;
  --ink-soft:     #4b5468;
  --grey:         #6b7280;
  --grey-light:   #f4f5fa;
  --border:       #e8eaf2;
  --bg:           #f7f8fc;
  --white:        #ffffff;

  --primary:       #B68231;
  --primary-dark:  #8F661F;
  --primary-light: #FBF2E1;
  --gold:          #B68231;
  --gold-light:    #FBF2E1;
  --mint:          #16A34A;

  --success:      #16a34a;
  --warning:      #d97706;
  --danger:       #e11d48;

  --gradient-brand:  linear-gradient(135deg, #D9AF5F 0%, #B68231 55%, #8F661F 100%);
  --gradient-accent: linear-gradient(135deg, #C99A45 0%, #A2721F 100%);

  --shadow-sm:    0 1px 2px rgba(16,24,40,0.04), 0 1px 3px rgba(16,24,40,0.06);
  --shadow:       0 4px 14px rgba(16,24,40,0.08);
  --shadow-lg:    0 16px 36px rgba(16,24,40,0.12);

  --radius-sm:    10px;
  --radius:       16px;
  --radius-lg:    22px;
  --radius-full:  999px;

  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; overflow-x:hidden; }
body{
  margin:0; padding:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  width:100%;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--font-heading); letter-spacing:-0.01em; margin:0; font-weight:800; }
p{ margin:0; }

.container{ max-width:1240px; margin:0 auto; padding:0 24px; }

/* legacy modifier classes kept as harmless no-ops / light variants */
body.mesh-milk{ background:var(--bg); }
.mesh-milk{ background:var(--bg); }
.mesh-navy{ background:var(--white); color:var(--ink); position:relative; }
.glass{ background:var(--white); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow-sm); }
.hero-blob{ display:none; }

/* ---------- Top navigation (flat, sticky, no floating pill) ---------- */
.topbar{
  position:sticky; top:0; z-index:60; padding:16px 0 0;
}
.navbar{
  display:flex; align-items:center; justify-content:space-between; padding:14px 22px;
  background:rgba(255,255,255,0.94); backdrop-filter:blur(10px);
  border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
}
.navbar.on-dark{ background:rgba(255,255,255,0.94); }
.navbar.on-dark .nav-links a{ color:var(--ink-soft); }
.navbar.on-dark .brand-text .name{ color:var(--ink); }

.brand{ display:flex; align-items:center; gap:10px; }
.brand-icon{ width:36px; height:36px; flex-shrink:0; }
.brand-logo-img{ height:40px; width:auto; max-width:190px; object-fit:contain; flex-shrink:0; }
.brand-text{ display:flex; flex-direction:column; line-height:1.05; }
.brand-text .name{ font-weight:800; font-size:17px; letter-spacing:0.5px; color:var(--ink); }
.brand-text .tag{ font-size:9px; letter-spacing:2px; color:var(--grey); margin-top:2px; }

.nav-links{ display:flex; align-items:center; gap:30px; }
.nav-links a{
  color:var(--ink-soft); font-size:14px; font-weight:600; padding:8px 2px; position:relative; transition:.15s;
}
.nav-links a:hover, .nav-links a.active{ color:var(--primary); }

.btn-book{
  background:var(--primary); color:#fff !important; font-weight:700; font-size:13.5px;
  padding:11px 22px; border-radius:var(--radius-full); box-shadow:var(--shadow-sm); transition:.15s; white-space:nowrap;
}
.btn-book:hover{ background:var(--primary-dark); }

.nav-toggle{ display:none; background:none; border:none; font-size:20px; cursor:pointer; color:var(--ink); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:none; border-radius:var(--radius-full); padding:13px 26px;
  font-weight:700; font-size:14px; cursor:pointer; transition:.15s; font-family:var(--font-body);
}
.btn-primary{ background:var(--primary); color:#fff; box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--primary-dark); }
.btn-gold{ background:var(--gradient-accent); color:#fff; }
.btn-gold:hover{ filter:brightness(1.05); }
.btn-outline{ background:#fff; border:1.5px solid var(--border); color:var(--ink-soft); }
.btn-outline:hover{ border-color:var(--primary); color:var(--primary); }
.btn-danger{ background:#fef2f2; color:var(--danger); border:1.5px solid #fecdd3; }
.btn-danger:hover{ background:var(--danger); color:#fff; }
.btn-sm{ padding:8px 16px; font-size:12.5px; border-radius:var(--radius-full); }
.btn-block{ width:100%; }
.btn:disabled{ opacity:.45; cursor:not-allowed; }

/* ---------- Hero (light, flat, floating card stack) ---------- */
.hero-split{
  display:grid; grid-template-columns:1.05fr 1fr; align-items:center; gap:50px;
  border-radius:0; overflow:visible; min-height:auto; box-shadow:none; background:transparent;
}
@media(max-width:900px){ .hero-split{ grid-template-columns:1fr; gap:36px; } }

.hero-left{ position:relative; padding:0; color:var(--ink); overflow:visible; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px; width:fit-content;
  background:var(--primary-light); color:var(--primary); border:1px solid #dbe3ff; padding:8px 16px;
  border-radius:var(--radius-full); font-size:12px; font-weight:700; margin-bottom:22px;
}
.hero-left h1{
  font-size:clamp(30px,4.2vw,46px); font-weight:800; line-height:1.15; margin:0 0 18px; max-width:520px; color:var(--ink);
}
.hero-left h1 span{ color:var(--primary); }
.hero-left p{ font-size:16px; color:var(--grey); max-width:440px; margin-bottom:30px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-illustration{ display:none; }

.hero-right{ background:transparent; padding:0; }
.kicker{ color:var(--primary); font-weight:700; font-size:12px; letter-spacing:1.5px; text-transform:uppercase; margin-bottom:8px; }
.hero-right h2{ font-size:22px; margin-bottom:6px; color:var(--ink); }
.hero-right .sub{ color:var(--grey); font-size:13.5px; margin-bottom:24px; }

.svc-icon-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.svc-icon-btn{
  display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center;
  padding:22px 10px; border-radius:var(--radius); border:1px solid var(--border); background:#fff;
  box-shadow:var(--shadow-sm); transition:.18s;
}
.svc-icon-btn:hover{ border-color:var(--primary); transform:translateY(-3px); box-shadow:var(--shadow); }
.svc-icon-circle{
  width:50px; height:50px; border-radius:14px; background:var(--primary-light);
  display:flex; align-items:center; justify-content:center; font-size:22px;
}
.svc-icon-btn .label{ font-size:12px; font-weight:700; color:var(--ink); line-height:1.35; word-wrap:break-word; }

/* ---------- Sections ---------- */
section{ padding:64px 0; }
.section-label{
  display:inline-flex; align-items:center; gap:8px; color:var(--primary); font-weight:700; font-size:12.5px;
  letter-spacing:1.5px; text-transform:uppercase; margin-bottom:12px;
}
.section-label::before{ content:""; width:20px; height:2px; background:var(--primary); border-radius:2px; }
.section-title{ font-size:clamp(24px,3.6vw,32px); font-weight:800; color:var(--ink); margin:0 0 14px; }
.section-sub{ color:var(--grey); font-size:15px; max-width:600px; margin-bottom:38px; }

.grid{ display:grid; gap:22px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
@media(max-width:960px){ .grid-3,.grid-4{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:640px){ .grid-2,.grid-3,.grid-4{ grid-template-columns:1fr; } }

.card{ background:var(--white); border-radius:var(--radius); padding:24px; border:1px solid var(--border); box-shadow:var(--shadow-sm); transition:.18s; }
.card:hover{ box-shadow:var(--shadow); }

.service-card{
  background:var(--white); border-radius:var(--radius); padding:24px; border:1px solid var(--border);
  box-shadow:var(--shadow-sm); position:relative; transition:.18s;
}
.service-card:hover{ box-shadow:var(--shadow); border-color:#dbe3ff; transform:translateY(-3px); }
.icon-circle{
  width:48px; height:48px; border-radius:14px; background:var(--primary-light);
  display:flex; align-items:center; justify-content:center; font-size:20px; margin-bottom:14px;
}
.service-card .chip{
  display:inline-block; font-size:11px; font-weight:700; letter-spacing:0.5px; padding:5px 12px;
  border-radius:var(--radius-full); background:var(--grey-light); color:var(--ink-soft); margin-bottom:12px; text-transform:uppercase;
}
.service-card h3{ font-size:18px; margin:0 0 8px; color:var(--ink); }
.service-card p{ color:var(--grey); font-size:13.5px; margin-bottom:18px; line-height:1.5; }
.service-card .meta{ display:flex; justify-content:space-between; align-items:center; }

/* ---------- Footer (flat, no curve) ---------- */
footer{
  background:var(--white); color:var(--ink-soft); padding:48px 0 26px;
  margin:24px 16px 16px; border:1px solid var(--border); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);
}
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; padding-bottom:32px; border-bottom:1px solid var(--border); }
@media(max-width:800px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
.footer-grid h4{ color:var(--ink); font-size:13px; letter-spacing:0.5px; text-transform:uppercase; margin-bottom:14px; }
.footer-grid a, .footer-grid p{ display:block; color:var(--grey); font-size:13.5px; margin-bottom:9px; }
.footer-grid a:hover{ color:var(--primary); }
.footer-bottom{ padding-top:20px; display:flex; justify-content:space-between; font-size:12.5px; color:var(--grey); flex-wrap:wrap; gap:10px; }
.footer-bottom a{ color:var(--grey); font-weight:600; }
.footer-bottom a:hover{ color:var(--primary); }

/* ---------- Forms ---------- */
.form-group{ margin-bottom:18px; }
.form-group label{ display:block; font-size:13px; font-weight:700; color:var(--ink); margin-bottom:7px; }
.form-input, input[type=text], input[type=email], input[type=password],
input[type=number], input[type=date], input[type=time], select, textarea{
  width:100%; padding:12px 14px; border:1.5px solid var(--border); border-radius:var(--radius-sm);
  font-size:14px; font-family:var(--font-body); background:#fff; transition:.15s; color:var(--ink);
}
.form-input:focus, input:focus, select:focus, textarea:focus{
  outline:none; border-color:var(--primary); box-shadow:0 0 0 3px var(--primary-light);
}
textarea{ resize:vertical; }
.help-text{ font-size:12.5px; color:var(--grey); margin-top:6px; }
.checkbox-row{ display:flex; align-items:center; gap:9px; }
.checkbox-row input{ width:auto; accent-color:var(--primary); }
input[type=color]{ padding:4px; height:42px; cursor:pointer; }

.auth-card{ max-width:420px; margin:70px auto; padding:42px 36px; text-align:center; background:#fff; border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow-sm); }
.auth-card h2{ font-size:24px; margin-bottom:6px; }
.auth-card p.sub{ color:var(--grey); margin-bottom:28px; font-size:13.5px; }
.btn-google{
  display:flex; align-items:center; justify-content:center; gap:10px; width:100%; padding:12px;
  border-radius:var(--radius-sm); border:1.5px solid var(--border); background:#fff; font-weight:700; font-size:14px;
  color:var(--ink); cursor:pointer; transition:.15s;
}
.btn-google:hover{ border-color:var(--primary); box-shadow:var(--shadow-sm); }
.divider-or{ display:flex; align-items:center; gap:14px; margin:20px 0; color:var(--grey); font-size:11.5px; text-transform:uppercase; letter-spacing:1px; }
.divider-or::before, .divider-or::after{ content:""; flex:1; height:1px; background:var(--border); }
.customer-login-wrap{ min-height:80vh; display:flex; align-items:center; justify-content:center; padding:20px; background:var(--bg); }

/* ---------- Booking Wizard (single page, light split) ---------- */
.wizard-shell{ min-height:100vh; display:grid; grid-template-columns:38% 62%; background:var(--white); }
@media(max-width:900px){ .wizard-shell{ grid-template-columns:1fr; } }

.wizard-side{
  position:relative; padding:48px 42px; display:flex; flex-direction:column; justify-content:flex-start;
  color:var(--ink); background:var(--grey-light); border-right:1px solid var(--border);
}
.wizard-main{ background:#fff; padding:56px 48px; display:flex; align-items:flex-start; justify-content:center; }
@media(max-width:900px){ .wizard-main{ padding:32px 20px; } .wizard-side{ padding:30px 24px; } }

.wizard-progress{ display:flex; flex-direction:column; gap:20px; margin-top:32px; }
.wp-step{ display:flex; align-items:center; gap:13px; opacity:0.5; transition:.2s; }
.wp-step.active, .wp-step.done{ opacity:1; }
.wp-dot{
  width:30px; height:30px; border-radius:50%; background:#fff; border:1.5px solid var(--border);
  display:flex; align-items:center; justify-content:center; font-size:12.5px; font-weight:800; flex-shrink:0; color:var(--grey);
}
.wp-step.active .wp-dot, .wp-step.done .wp-dot{ background:var(--primary); border-color:var(--primary); color:#fff; }
.wp-text{ display:flex; flex-direction:column; }
.wp-text strong{ font-size:13.5px; color:var(--ink); }
.wp-text span{ font-size:11.5px; color:var(--grey); }

.quote{ font-size:13px; color:var(--grey); font-style:italic; max-width:320px; margin-top:auto; padding-top:32px; }

.wizard-mobile-steps{ display:none; gap:6px; margin-bottom:24px; }
.mstep{ height:4px; flex:1; border-radius:99px; background:var(--border); }
.mstep.active{ background:var(--primary); }
@media(max-width:900px){ .wizard-mobile-steps{ display:flex; } }

.wizard-form, form#wizardForm{ width:100%; max-width:520px; }
.wstep{ display:none; }
.wstep.current{ display:block; animation:stepIn .3s ease; }
@keyframes stepIn{ from{ opacity:0; transform:translateY(8px);} to{ opacity:1; transform:translateY(0);} }
.wstep h2{ font-size:24px; margin-bottom:8px; }
.wstep-sub{ color:var(--grey); font-size:13.5px; margin-bottom:28px; }
.wizard-nav{ display:flex; align-items:center; margin-top:32px; }
.wizard-nav .spacer{ flex:1; }

.calendar-box{ background:var(--grey-light); border-radius:var(--radius); border:1px solid var(--border); padding:18px; }
.slot-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin-top:14px; }
@media(max-width:520px){ .slot-grid{ grid-template-columns:repeat(2,1fr); } }
.slot-btn{
  padding:9px 8px; border-radius:10px; border:1.5px solid var(--border); background:#fff;
  text-align:center; transition:.15s;
  display:flex; flex-direction:column; align-items:center; gap:6px;
}
.slot-btn.selected{ border-color:var(--primary); background:var(--primary-light); }
.slot-btn .slot-time{ font-weight:700; font-size:12.5px; }
.slot-btn .slot-type-options{ display:flex; gap:5px; flex-wrap:wrap; justify-content:center; }
.slot-type-chip{
  font-size:10px; font-weight:700; padding:4px 8px; border-radius:20px;
  border:1.5px solid var(--border); background:var(--grey-light); color:var(--ink-soft);
  cursor:pointer; transition:.15s; line-height:1.3;
}
.slot-type-chip:hover{ border-color:var(--primary); }
.slot-type-chip.selected{ background:var(--primary); color:#fff; border-color:var(--primary); }

/* ---------- Wizard calendar (customer date picker with per-day slot counts) ---------- */
.wiz-cal-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
.wiz-cal-grid-head{ margin-bottom:8px; }
.wiz-cal-grid-head div{ text-align:center; font-size:10.5px; font-weight:700; color:var(--grey); text-transform:uppercase; letter-spacing:.4px; padding-bottom:4px; }
.wiz-cal-day{
  min-height:58px; background:#fff; border:1.5px solid var(--border); border-radius:10px;
  padding:6px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
}
.wiz-cal-day-muted{ background:var(--grey-light); opacity:.5; }
.wiz-cal-day-today{ border-color:var(--primary); }
.wiz-cal-day-available{ cursor:pointer; transition:.15s; }
.wiz-cal-day-available:hover{ border-color:var(--primary); box-shadow:var(--shadow-sm); }
.wiz-cal-day.selected{ background:var(--primary); border-color:var(--primary); }
.wiz-cal-day.selected .wiz-cal-day-num,
.wiz-cal-day.selected .wiz-cal-slot-count{ color:#fff; }
.wiz-cal-day-num{ font-size:13px; font-weight:700; color:var(--ink); }
.wiz-cal-slot-count{ font-size:9.5px; font-weight:700; color:var(--grey); }
.wiz-cal-day-available .wiz-cal-slot-count{ color:var(--primary); }
@media(max-width:520px){
  .wiz-cal-day{ min-height:46px; padding:3px; }
  .wiz-cal-day-num{ font-size:11.5px; }
  .wiz-cal-slot-count{ font-size:8px; }
}

/* ---------- Success screen ---------- */
.success-box{ text-align:center; padding:46px 40px; }
.success-check{
  width:76px; height:76px; border-radius:50%; background:var(--primary-light); margin:0 auto 22px;
  display:flex; align-items:center; justify-content:center; font-size:32px; color:var(--primary);
  animation:pop .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pop{ 0%{ transform:scale(0);} 80%{ transform:scale(1.06);} 100%{ transform:scale(1);} }

/* ---------- Badges ---------- */
.badge{ display:inline-block; padding:4px 12px; border-radius:var(--radius-full); font-size:11px; font-weight:700; letter-spacing:.3px; text-transform:uppercase; }
.badge-pending{ background:#FEF3C7; color:#B45309; }
.badge-confirmed{ background:#DBEAFE; color:#1D4ED8; }
.badge-docs_reviewed{ background:#EDE9FE; color:#6D28D9; }
.badge-completed{ background:#D1FAE5; color:#047857; }
.badge-cancelled{ background:#FEE2E2; color:#B91C1C; }
.badge-call{ background:#DBEAFE; color:#1D4ED8; }
.badge-office{ background:#FCE7F3; color:#BE185D; }
.badge-both{ background:#EDE9FE; color:#6D28D9; }

.kyc-modal-overlay{
  display:none; position:fixed; inset:0; z-index:200; background:rgba(16,22,46,0.5);
  align-items:center; justify-content:center; padding:20px;
}
.kyc-modal-overlay.open{ display:flex; }
.kyc-modal{
  background:#fff; border-radius:var(--radius); box-shadow:var(--shadow-lg);
  max-width:420px; width:100%; max-height:80vh; overflow-y:auto;
}
.kyc-modal-header{
  display:flex; justify-content:space-between; align-items:center;
  padding:18px 20px; border-bottom:1px solid var(--border); position:sticky; top:0; background:#fff;
}
.kyc-modal-header h3{ margin:0; font-size:16px; }
.kyc-modal-close{ background:none; border:none; font-size:16px; cursor:pointer; color:var(--grey); padding:4px 8px; }
.kyc-modal-body{ padding:16px 20px; }
.kyc-modal-body div{ display:flex; justify-content:space-between; gap:14px; padding:9px 0; border-bottom:1px solid #f3f3fa; font-size:13px; }
.kyc-modal-body div:last-child{ border-bottom:none; }
.kyc-modal-body span{ color:var(--grey); flex-shrink:0; }
.kyc-modal-body strong{ text-align:right; word-break:break-word; }
@media(max-width:640px){
  .kyc-modal-overlay{ align-items:flex-end; padding:0; }
  .kyc-modal{ max-width:100%; border-radius:var(--radius) var(--radius) 0 0; max-height:85vh; }
}

/* ---------- Dashboard month calendar ---------- */
.cal-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
.cal-grid-head{ margin-bottom:8px; }
.cal-grid-head div{ text-align:center; font-size:11px; font-weight:700; color:var(--grey); text-transform:uppercase; letter-spacing:.4px; padding-bottom:6px; }
.cal-day{
  min-height:90px; background:#fff; border:1px solid var(--border); border-radius:10px;
  padding:6px; display:flex; flex-direction:column; gap:3px;
}
.cal-day-muted{ background:var(--grey-light); opacity:0.55; }
.cal-day-today{ border-color:var(--primary); box-shadow:0 0 0 1px var(--primary); }
.cal-day-head{ display:flex; align-items:center; justify-content:space-between; }
.cal-day-num{ font-size:12px; font-weight:700; color:var(--ink-soft); }
.cal-day-count{
  font-size:10px; font-weight:800; color:#fff; background:var(--primary);
  min-width:16px; height:16px; padding:0 4px; border-radius:8px;
  display:flex; align-items:center; justify-content:center; line-height:1;
}
.cal-booking{
  display:flex; flex-direction:column; gap:1px; font-weight:700; padding:3px 5px; border-radius:6px;
  line-height:1.3; text-decoration:none;
}
.cal-booking span{ display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cal-booking .cb-service{ font-size:9.5px; }
.cal-booking .cb-staff,
.cal-booking .cb-slot,
.cal-booking .cb-type{ font-size:8.5px; font-weight:600; opacity:.85; }
.cal-booking .cb-type{ text-transform:uppercase; letter-spacing:.3px; }
.cal-booking-call{ background:#DBEAFE; color:#1D4ED8; }
.cal-booking-office{ background:#FCE7F3; color:#BE185D; }
.cal-more{ font-size:10px; color:var(--primary); font-weight:700; padding:2px 5px; }

tr[id^="booking-"]:target td{ background:var(--primary-light) !important; }

@media(max-width:900px){
  .cal-day{ min-height:60px; }
  .cal-booking{ padding:2px 4px; }
  .cal-booking .cb-service{ font-size:8.5px; }
  .cal-booking .cb-staff,
  .cal-booking .cb-slot,
  .cal-booking .cb-type{ font-size:7.5px; }
  .cal-grid{ gap:3px; }
}
@media(max-width:640px){
  .cal-grid, .cal-grid-head{ grid-template-columns:repeat(7,minmax(0,1fr)); }
  .cal-grid-head div{ font-size:9px; }
  .cal-day{ min-height:48px; padding:3px; gap:2px; }
  .cal-day-num{ font-size:10px; }
  .cal-day-count{ font-size:8px; min-width:13px; height:13px; padding:0 3px; }
  .cal-booking{ padding:2px 3px; gap:0; border-radius:4px; }
  .cal-booking .cb-service{ font-size:7.5px; }
  .cal-booking .cb-staff,
  .cal-booking .cb-slot,
  .cal-booking .cb-type{ font-size:6.5px; }
  .cal-more{ font-size:8px; padding:1px 3px; }
}

/* ---------- Tables ---------- */
.table-wrap{ overflow-x:auto; background:#fff; border-radius:var(--radius); box-shadow:var(--shadow-sm); border:1px solid var(--border); }
table{ width:100%; border-collapse:collapse; font-size:13.5px; }
th{ text-align:left; padding:13px 16px; background:var(--grey-light); color:var(--ink-soft); font-weight:700; font-size:11px; text-transform:uppercase; letter-spacing:.4px; border-bottom:1px solid var(--border); }
td{ padding:13px 16px; border-bottom:1px solid #f1f2f8; vertical-align:middle; }
tr:last-child td{ border-bottom:none; }
tr:hover td{ background:#fafbfe; }
.status-actor-note{ font-size:10.5px; color:var(--grey); font-weight:600; margin-top:5px; }

/* ---------- Dashboard shell (flat white, etikto-style) ---------- */
.dash-shell{ display:flex; min-height:100vh; background:var(--bg); }
.dash-sidebar{
  width:260px; background:#fff; border-right:1px solid var(--border);
  color:var(--ink); padding:22px 14px; flex-shrink:0; position:sticky; top:0;
  height:100vh; max-height:100vh; overflow-y:auto; display:flex; flex-direction:column;
}
.dash-sidebar .brand-text .name{ color:var(--ink); font-size:17px; }
.dash-sidebar .brand-text .tag{ color:var(--grey); }
.dash-nav{
  margin-top:26px; display:flex; flex-direction:column; gap:2px; flex:1;
  background:var(--grey-light); border:1px solid var(--border); border-radius:var(--radius);
  padding:10px;
}
.dash-nav a{
  padding:10px 13px; border-radius:var(--radius-sm); font-size:13.5px; color:var(--ink-soft); font-weight:600;
  display:flex; align-items:center; gap:10px; transition:.15s;
}
.dash-nav a:hover{ background:#fff; color:var(--ink); box-shadow:var(--shadow-sm); }
.dash-nav a.active{ background:var(--primary-light); color:var(--primary); font-weight:800; }
.group-label{ font-size:10px; letter-spacing:1.5px; text-transform:uppercase; color:var(--grey); margin:14px 0 5px 13px; }
.dash-nav .group-label:first-child{ margin-top:4px; }
.dash-sidebar-footer{
  margin-top:12px; padding:8px; border:1px solid var(--border); border-radius:var(--radius);
  background:var(--grey-light); display:flex; flex-direction:column; gap:2px;
}
.dash-sidebar-footer a{
  padding:10px 13px; border-radius:var(--radius-sm); font-size:13px; color:var(--grey); font-weight:600;
  display:flex; align-items:center; gap:10px; transition:.15s;
}
.dash-sidebar-footer a:hover{ background:#fff; color:var(--ink); box-shadow:var(--shadow-sm); }

.dash-main{ flex:1; padding:28px 36px; max-width:100%; display:flex; flex-direction:column; min-height:100vh; }
.dash-content{ flex:1; }
.dash-topbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:26px; flex-wrap:wrap; gap:14px; }
.dash-topbar h1{ font-size:23px; margin:0; color:var(--ink); }
.dash-user{ display:flex; align-items:center; gap:9px; background:#fff; padding:8px 16px; border-radius:var(--radius-full); border:1px solid var(--border); font-size:13px; font-weight:700; }

.stat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-bottom:28px; }
@media(max-width:1000px){ .stat-grid{ grid-template-columns:repeat(2,1fr); } }
.stat-card{ border-radius:var(--radius); padding:20px; box-shadow:var(--shadow-sm); border:1px solid var(--border); background:#fff; position:relative; overflow:hidden; }
.stat-card::before{ content:""; position:absolute; top:0; left:0; right:0; height:3px; background:var(--gradient-brand); }
.stat-card:nth-child(4n+2)::before{ background:var(--gradient-accent); }
.stat-card:nth-child(4n+3)::before{ background:linear-gradient(135deg,#34D399,#10B981); }
.stat-card:nth-child(4n+4)::before{ background:linear-gradient(135deg,#818CF8,#6366F1); }
.stat-card .label{ font-size:11.5px; color:var(--grey); font-weight:700; text-transform:uppercase; letter-spacing:.4px; }
.stat-card .value{ font-size:27px; font-weight:800; color:var(--ink); margin-top:6px; }

.filter-bar{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:20px; align-items:flex-end; }
.filter-bar .form-group{ margin-bottom:0; min-width:150px; }

.panel{ background:#fff; border-radius:var(--radius); box-shadow:var(--shadow-sm); border:1px solid var(--border); padding:24px; margin-bottom:22px; }
.panel h3{ margin-top:0; font-size:17px; }

.actions-row{ display:flex; gap:8px; flex-wrap:wrap; }
.empty-state{ text-align:center; padding:56px 20px; color:var(--grey); }
.empty-state .icon{ font-size:36px; margin-bottom:12px; }

.messages{ margin-bottom:18px; }
.msg{ padding:12px 17px; border-radius:12px; margin-bottom:9px; font-size:13.5px; font-weight:600; }
.msg-success{ background:#D1FAE5; color:#047857; }
.msg-error{ background:#FEE2E2; color:#B91C1C; }
.msg-info{ background:#DBEAFE; color:#1D4ED8; }
.msg-warning{ background:#FEF3C7; color:#B45309; }

.dash-footer{
  background:#fff; border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:var(--shadow-sm); margin:0 24px 24px;
}
.dash-footer-inner{
  padding:16px 24px;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px;
  font-size:12px; color:var(--grey);
}
.dash-footer a{ color:var(--grey); font-weight:600; }
.dash-footer a:hover{ color:var(--primary); }
.dash-footer .links{ display:flex; gap:16px; flex-wrap:wrap; }

/* Mobile top header for dashboard (shows logo when sidebar is hidden) */
.dash-mobile-header{
  display:none; align-items:center; padding:14px 20px;
  background:rgba(255,255,255,0.94); backdrop-filter:blur(10px);
  border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  margin:16px 16px 0;
  position:sticky; top:16px; z-index:65;
}

/* Mobile bottom nav for dashboard */
.mobile-dash-nav{
  display:none; position:fixed; bottom:0; left:0; right:0; z-index:70;
  background:#fff; border-top:1px solid var(--border);
  justify-content:space-around; padding:8px 4px 10px;
}
.mobile-dash-nav a{ display:flex; flex-direction:column; align-items:center; gap:2px; font-size:10px; color:var(--grey); font-weight:700; }
.mobile-dash-nav a.active{ color:var(--primary); }

/* ---------- Mobile responsive ---------- */
@media(max-width:860px){
  .nav-links{ display:none; }
  .nav-toggle{ display:block; }
}
@media(max-width:900px){
  .dash-sidebar{ display:none; }
  .dash-mobile-header{ display:flex; }
  .dash-main{ padding:20px 20px 24px; }
  .dash-footer-inner{ padding:14px 20px 84px; }
  .mobile-dash-nav{ display:flex; }
}
@media(max-width:640px){
  .container{ padding:0 16px; }
  section{ padding:44px 0; }
  .auth-card{ margin:32px auto; padding:30px 22px; max-width:100%; }
  .wizard-main{ padding:24px 16px; }
  .wstep h2{ font-size:20px; }
  .panel{ padding:16px; }
  .stat-grid{ grid-template-columns:1fr 1fr; gap:12px; }
  .stat-card{ padding:15px; }
  .stat-card .value{ font-size:21px; }
  .dash-topbar h1{ font-size:20px; }
  .filter-bar .form-group{ min-width:120px; flex:1 1 45%; }
  .footer-grid{ grid-template-columns:1fr; gap:24px; }
  .footer-bottom{ flex-direction:column; }
}
@media(max-width:480px){
  .svc-icon-grid{ grid-template-columns:1fr 1fr; }
  section{ padding:34px 0; }
  .section-title{ font-size:22px; }
}
