
:root{
  --bg:#060606;
  --bg-soft:#0b0b0b;
  --panel:#111111;
  --panel-2:#171717;
  --panel-3:#1d1d1d;
  --line:rgba(212,175,55,.14);
  --line-strong:rgba(212,175,55,.28);
  --text:#f6f2e8;
  --muted:#b2ab9c;
  --muted-2:#8f8778;
  --gold:#d4af37;
  --gold-deep:#a97b12;
  --gold-soft:#f3d77a;
  --success:#6ed8a2;
  --danger:#ff8585;
  --shadow:0 22px 80px rgba(0,0,0,.45);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 15% 12%,rgba(212,175,55,.10),transparent 24%),
    radial-gradient(circle at 82% 0,rgba(212,175,55,.08),transparent 21%),
    linear-gradient(180deg,#080808 0%,#040404 100%);
}
a{color:var(--gold-soft);text-decoration:none;transition:color .2s ease,opacity .2s ease}
a:hover{color:#fff2bf}
.shell{max-width:1420px;margin:0 auto;padding:0 28px 48px}
.topbar{
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  padding:24px 0 22px;margin-bottom:26px;
  border-bottom:1px solid var(--line);
}
.brand{display:flex;align-items:center;gap:18px;min-width:0}
.brand-logo{height:64px;width:auto;max-width:150px;object-fit:contain;display:block;filter:drop-shadow(0 10px 22px rgba(0,0,0,.28))}
.brand-copy{display:flex;flex-direction:column;gap:3px}
.brand-title{font-size:17px;font-weight:800;letter-spacing:.18em;text-transform:uppercase}
.brand-sub{font-size:12px;letter-spacing:.26em;text-transform:uppercase;color:var(--muted)}
.brand-caption{font-size:11px;color:var(--muted-2);letter-spacing:.08em}
.nav{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.nav a{color:#e8e0d0;font-size:14px;font-weight:700}
.nav a:hover{color:var(--gold-soft)}
.nav-pill{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 14px;border-radius:11px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.035);color:#eee6d8!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
.nav-pill:hover{border-color:rgba(212,175,55,.30);background:rgba(212,175,55,.07);color:#f4dc8a!important}
.nav-pill.active{border-color:rgba(212,175,55,.42);background:linear-gradient(180deg,rgba(212,175,55,.16),rgba(212,175,55,.07));color:#f5dd8d!important}
.nav-pill.nav-signout{background:transparent;color:#d7d0c2!important}
.nav-pill.nav-signout:hover{color:#fff!important;border-color:rgba(255,255,255,.18)}
.hero{
  display:flex;justify-content:space-between;align-items:flex-end;gap:20px;
  margin:8px 0 28px;padding:0 2px;
}
.hero h1{margin:0;font-size:34px;line-height:1.05;letter-spacing:-.02em}
.hero p{margin:8px 0 0;color:var(--muted);max-width:760px;line-height:1.55}
.grid{display:grid;gap:18px}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.card{
  position:relative;overflow:hidden;
  background:linear-gradient(180deg,rgba(27,27,27,.96),rgba(12,12,12,.98));
  border:1px solid rgba(255,255,255,.05);
  border-radius:22px;
  padding:22px;
  box-shadow:var(--shadow);
}
.card::before{
  content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;
  background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(212,175,55,.15),rgba(255,255,255,.03));
  -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none;
}
.card::after{
  content:"";position:absolute;inset:auto -10% 62% auto;width:60%;height:90px;
  background:radial-gradient(circle,rgba(255,255,255,.08),transparent 70%);
  transform:rotate(-8deg);pointer-events:none;
}
.card.gold{
  background:
    radial-gradient(circle at 20% 18%,rgba(255,238,179,.20),transparent 26%),
    radial-gradient(circle at 82% 18%,rgba(212,175,55,.18),transparent 28%),
    linear-gradient(145deg,rgba(92,68,12,.94),rgba(38,30,8,.96) 52%,rgba(12,12,12,.99));
  border-color:rgba(212,175,55,.25);
}
.card.gold::before{
  background:linear-gradient(145deg,rgba(255,246,210,.28),rgba(212,175,55,.55),rgba(125,91,18,.25));
}
.kpi .label{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.kpi .value{margin-top:10px;font-size:30px;font-weight:800;letter-spacing:-.02em}
.kpi .hint{margin-top:9px;font-size:12px;color:var(--muted)}
.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:30px 0 14px;padding:0 2px}
.section-title h2{margin:0;font-size:20px;letter-spacing:-.01em}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border-radius:12px;border:1px solid rgba(212,175,55,.65);
  background:linear-gradient(180deg,#f1d77d 0%,#d3ad36 54%,#b8830d 100%);
  color:#130f06!important;
  font-weight:800;font-size:13px;letter-spacing:.03em;
  padding:11px 16px;cursor:pointer;
  box-shadow:0 12px 25px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.4);
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;
}
.btn:hover{transform:translateY(-1px);filter:saturate(1.06);box-shadow:0 15px 30px rgba(0,0,0,.27), inset 0 1px 0 rgba(255,255,255,.4)}
.btn.secondary{background:transparent;color:var(--gold-soft)!important;border-color:var(--line-strong);box-shadow:none}
.btn.secondary:hover{background:rgba(212,175,55,.08)}
.btn.danger{border-color:rgba(255,133,133,.5);background:linear-gradient(180deg,#522222,#2c1212);color:#ffd5d5!important;box-shadow:none}
.btn.small{padding:8px 11px;font-size:12px;border-radius:10px}
.table-wrap{overflow:auto;border-radius:18px;border:1px solid rgba(255,255,255,.05);background:linear-gradient(180deg,#111,#0a0a0a);box-shadow:var(--shadow)}
table{width:100%;border-collapse:collapse;min-width:880px}
th,td{padding:15px 16px;text-align:left;border-bottom:1px solid rgba(255,255,255,.05);font-size:13px;vertical-align:top}
th{background:rgba(255,255,255,.03);color:#ead189;text-transform:uppercase;font-size:11px;letter-spacing:.09em}
tr:last-child td{border-bottom:0}
.muted{color:var(--muted)}
.badge{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:700;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.03)}
.badge.active{border-color:rgba(212,175,55,.35);color:#f0d98b;background:rgba(212,175,55,.10)}
.badge.completed{border-color:rgba(110,216,162,.25);color:#8be6b2;background:rgba(110,216,162,.10)}
.badge.pending{border-color:rgba(255,255,255,.09);color:#d1c9b8}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.field label{display:block;color:#e7d08b;font-size:12px;font-weight:700;margin-bottom:8px;letter-spacing:.04em}
.field input,.field select,.field textarea{
  width:100%;border-radius:13px;border:1px solid rgba(255,255,255,.08);outline:none;
  background:rgba(7,7,7,.92);color:var(--text);padding:12px 13px;
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
.field input:focus,.field select:focus,.field textarea:focus{border-color:rgba(212,175,55,.56);box-shadow:0 0 0 3px rgba(212,175,55,.11);background:#090909}
.field small{display:block;color:var(--muted);margin-top:7px;line-height:1.45}
.full{grid-column:1/-1}
.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.alert{padding:14px 16px;border-radius:14px;margin:14px 0;border:1px solid rgba(212,175,55,.22);background:rgba(78,60,12,.28);color:#f3d77a}
.alert.good{border-color:rgba(110,216,162,.22);background:rgba(19,55,39,.42);color:#8fe5b5}
.alert.bad{border-color:rgba(255,133,133,.26);background:rgba(74,21,21,.42);color:#ffc1c1}
.login-wrap{min-height:100vh;display:grid;place-items:center;padding:26px}
.login-card{
  width:min(500px,100%);padding:34px;
  background:linear-gradient(180deg,rgba(18,18,18,.97),rgba(8,8,8,.99));
  border:1px solid rgba(212,175,55,.18);border-radius:26px;box-shadow:0 35px 110px rgba(0,0,0,.5);
}
.login-card h1{font-size:29px;margin:18px 0 10px;letter-spacing:-.02em}
.login-card p{color:var(--muted);margin:0 0 24px;line-height:1.55}
.timeline{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.stage{
  position:relative;overflow:hidden;
  border:1px solid rgba(255,255,255,.05);border-radius:16px;
  padding:14px;background:linear-gradient(180deg,#121212,#0a0a0a);
}
.stage::before{content:"";position:absolute;left:14px;right:14px;top:0;height:2px;background:linear-gradient(90deg,rgba(212,175,55,.12),rgba(243,215,122,.55),rgba(212,175,55,.12))}
.stage .stage-name{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;min-height:32px;line-height:1.35}
.stage .stage-date{font-weight:800;margin-top:10px;font-size:14px;color:#fff5d2}
.cycle-card{margin-bottom:18px}
.cycle-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px}
.cycle-title{font-size:19px;font-weight:800;letter-spacing:-.01em}
.cycle-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.mini{
  background:linear-gradient(180deg,rgba(14,14,14,.98),rgba(7,7,7,.98));
  border:1px solid rgba(255,255,255,.05);
  padding:14px;border-radius:16px;position:relative;overflow:hidden;
}
.mini::after{content:"";position:absolute;inset:auto -5% 70% auto;width:70%;height:70px;background:radial-gradient(circle,rgba(255,255,255,.06),transparent 72%)}
.mini .l{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.10em}
.mini .v{font-size:15px;font-weight:800;margin-top:8px;color:#fff7dc}
.impersonation{background:#3e2f00;color:#ffe9a0;border-bottom:1px solid #7b6014;padding:10px 18px;text-align:center;font-weight:700;font-size:13px}
.footer{color:#7f776a;font-size:12px;text-align:center;padding:34px 0 8px;letter-spacing:.06em}
.footer-uganda-flag{display:block;height:64px;width:auto;max-width:150px;object-fit:contain;margin:12px auto 0;filter:drop-shadow(0 10px 22px rgba(0,0,0,.28))}
.payment-summary-grid{margin-bottom:22px}
.payment-history-batch{margin-bottom:16px}
.payment-history-batch .batch-summary-side{gap:14px}
.payment-history-table table{min-width:1080px}
.payment-notification-dialog{
  position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);
  width:min(640px,calc(100vw - 28px));max-height:calc(100vh - 36px);overflow:auto;
  margin:0;padding:0;border:1px solid rgba(212,175,55,.42);border-radius:22px;
  background:linear-gradient(180deg,rgba(24,21,13,.99),rgba(8,8,8,.995));color:var(--text);
  box-shadow:0 0 0 100vmax rgba(0,0,0,.78),0 26px 90px rgba(0,0,0,.68);
  z-index:9999;
}
.payment-notification-card{padding:26px}
.payment-notification-card h2{margin:5px 0 8px;font-size:26px}
.payment-notification-kicker{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--gold-soft);font-weight:800}
.payment-notification-item{
  margin-top:16px;padding:18px;border-radius:16px;border:1px solid rgba(212,175,55,.20);
  background:linear-gradient(145deg,rgba(91,66,12,.35),rgba(12,12,12,.95));
}
.payment-notification-amount{font-size:28px;font-weight:850;color:#fff4c1;margin-bottom:6px}
.payment-notification-details{display:grid;gap:5px;margin-top:10px;color:var(--muted);font-size:13px;line-height:1.45}
.payment-notification-actions{justify-content:flex-end;margin-top:20px}

.right{text-align:right}.nowrap{white-space:nowrap}
.note{font-size:12px;color:var(--muted);line-height:1.6}
.divider{height:1px;background:rgba(255,255,255,.06);margin:20px 0}
.gold-chip{
  display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;
  background:linear-gradient(180deg,rgba(255,241,196,.16),rgba(212,175,55,.12));
  border:1px solid rgba(212,175,55,.22);color:#f0d98a;font-size:12px;font-weight:700;
}
@media(max-width:1100px){.grid-4,.grid-3,.cycle-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.timeline{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.shell{padding:0 16px 28px}.topbar,.hero{align-items:flex-start;flex-direction:column}.grid-4,.grid-3,.grid-2,.form-grid,.cycle-stats,.timeline,.payment-summary-grid,.payment-batch-kpis{grid-template-columns:1fr}.hero h1{font-size:29px}.full{grid-column:auto}.brand{align-items:center}.brand-logo{height:58px;max-width:138px}.footer-uganda-flag{height:58px;max-width:138px}.nav{width:100%;gap:10px}.nav-pill{flex:1;min-width:110px}.brand-caption{display:none}.payment-notification-card{padding:20px}.payment-notification-card h2{font-size:22px}.payment-notification-amount{font-size:24px}}


/* Client cycle accordion */
.cycle-accordion{
  margin:0 0 12px;
  border:1px solid rgba(255,255,255,.065);
  border-radius:16px;
  overflow:hidden;
  background:linear-gradient(180deg,rgba(20,20,20,.98),rgba(9,9,9,.99));
  box-shadow:0 14px 42px rgba(0,0,0,.20);
}
.cycle-accordion[open]{
  border-color:rgba(212,175,55,.24);
}
.cycle-accordion summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:62px;
  padding:15px 18px;
  cursor:pointer;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
  background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,0));
}
.cycle-accordion summary::-webkit-details-marker{display:none}
.cycle-accordion summary::marker{content:""}
.cycle-accordion summary:hover{background:rgba(212,175,55,.055)}
.cycle-accordion summary:focus-visible{outline:2px solid rgba(243,215,122,.72);outline-offset:-3px}
.cycle-accordion-title{
  font-size:16px;
  font-weight:800;
  color:#f7f1df;
  letter-spacing:.01em;
}
.cycle-chevron{
  width:10px;
  height:10px;
  flex:0 0 10px;
  border-right:2px solid #d8bd67;
  border-bottom:2px solid #d8bd67;
  transform:rotate(45deg) translateY(-2px);
  transition:transform .18s ease;
}
.cycle-accordion[open] .cycle-chevron{transform:rotate(225deg) translate(-2px,-2px)}
.cycle-accordion-body{
  padding:18px;
  border-top:1px solid rgba(255,255,255,.055);
  background:linear-gradient(180deg,rgba(255,255,255,.012),rgba(0,0,0,.08));
}
.cycle-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:16px;
}
.cycle-timeline-title{margin-top:22px;margin-bottom:12px}
.cycle-timeline-title h2{font-size:14px;text-transform:uppercase;letter-spacing:.09em;color:#d5c9ad}
@media(max-width:760px){
  .cycle-accordion summary{min-height:58px;padding:14px 16px}
  .cycle-accordion-body{padding:15px}
  .cycle-accordion-title{font-size:15px}
}

/* V6 admin controls and cycle delay states */
.badge.delayed{border-color:rgba(255,174,82,.35);color:#ffc47b;background:rgba(255,145,44,.10)}
.badge.loss{border-color:rgba(255,111,111,.34);color:#ffaaaa;background:rgba(180,45,45,.12)}
.loss-value{color:#ff9f9f!important}
.cycle-loss{border-color:rgba(215,77,77,.22)!important}
.status-ok{color:#8be6b2;font-weight:700}.status-warn{color:#f0d98b;font-weight:700}
.admin-cycle.delayed{border-color:rgba(255,174,82,.24)}
.admin-cycle-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}
.control-panel{border:1px solid rgba(212,175,55,.12);background:rgba(7,7,7,.55);border-radius:16px;padding:16px}
.control-panel h3{margin:0 0 7px;font-size:14px;color:#f2df9d}.control-panel p{margin:0 0 12px}
.inline-form{display:flex;align-items:end;gap:12px}.inline-form .field{flex:1;min-width:0}.inline-form .btn{min-height:43px}
.delay-banner{display:flex;flex-direction:column;gap:5px;padding:14px 16px;margin:0 0 16px;border-radius:14px;border:1px solid rgba(255,174,82,.22);background:linear-gradient(180deg,rgba(86,44,8,.42),rgba(39,20,6,.35));color:#ffd2a0}
.delay-banner strong{font-size:12px;text-transform:uppercase;letter-spacing:.11em;color:#ffbd70}.delay-banner span{font-size:14px;color:#f7eee3;line-height:1.45}.delay-banner small{color:#c9ae91}
.delay-history{display:grid;gap:10px;font-size:12px;color:var(--muted)}.delay-history>strong{color:#d9c584;text-transform:uppercase;letter-spacing:.08em;font-size:11px}.delay-history-row{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border:1px solid rgba(255,255,255,.05);border-radius:11px;background:rgba(0,0,0,.22)}.delay-history-row span{color:#ede5d6}.delay-history-row small{color:var(--muted)}
.cycle-delay-record{display:grid;gap:10px;margin:0 0 18px;padding:14px 16px;border:1px solid rgba(255,174,82,.25);border-radius:14px;background:linear-gradient(180deg,rgba(86,44,8,.30),rgba(24,14,7,.42))}
.cycle-delay-record-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.cycle-delay-record-head strong{color:#f5e8d5;font-size:13px}.cycle-delay-record-item{display:grid;gap:4px;padding-top:9px;border-top:1px solid rgba(255,255,255,.06)}.cycle-delay-record-item:first-of-type{padding-top:0;border-top:0}.cycle-delay-reason{color:#ffd39c;font-size:13px;font-weight:750;line-height:1.45}.cycle-delay-meta{color:#cdbca8;font-size:11px;line-height:1.55}
.report-delay-record{display:grid;gap:7px;min-width:210px}.report-delay-item{display:grid;gap:2px}.report-delay-item strong{color:#f0dfbd;font-size:11px;line-height:1.4}.report-delay-item small{color:var(--muted);font-size:10px;line-height:1.45}
.client-delay-notice{display:flex;gap:14px;align-items:flex-start;margin:0 0 20px;padding:17px 18px;border-radius:18px;border:1px solid rgba(255,174,82,.30);background:linear-gradient(135deg,rgba(89,47,9,.56),rgba(28,18,8,.76));box-shadow:0 14px 44px rgba(0,0,0,.20)}
.delay-icon{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(180deg,#f0c06f,#b97720);color:#1a1005;font-weight:900;font-size:18px}.delay-title{font-weight:800;color:#ffd59b;font-size:15px}.delay-reason{margin-top:5px;color:#f4eee4;line-height:1.5}.delay-foot{margin-top:6px;font-size:11px;color:#c7b7a2}
@media(max-width:760px){.admin-cycle-controls{grid-template-columns:1fr}.inline-form{flex-direction:column;align-items:stretch}.inline-form .btn{width:100%}.client-delay-notice{padding:15px}}


/* V7 programme controls */
.programme-progress{height:8px;border-radius:999px;background:rgba(255,255,255,.06);overflow:hidden;margin-top:10px}.programme-progress>span{display:block;height:100%;background:linear-gradient(90deg,#a8750f,#f3d77a);border-radius:inherit}.btn[disabled]{opacity:.45;cursor:not-allowed;filter:grayscale(.25);transform:none!important}.start-cycle-note{padding:12px 14px;border-radius:12px;background:rgba(212,175,55,.07);border:1px solid rgba(212,175,55,.14);color:var(--muted);font-size:12px;line-height:1.5}

.kpi-link{display:block;color:inherit;text-decoration:none;transition:transform .16s ease,border-color .16s ease}
.kpi-link:hover{color:inherit;transform:translateY(-2px);border-color:rgba(212,175,55,.34)}
.report-filters{margin-bottom:18px}
.report-summary{margin:20px 0 8px}
.table-wrap .actions form{margin:0}


/* Client new-batch request */
.batch-request-quote{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px;
}
.batch-request-live{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:17px 18px;border-radius:17px;border:1px solid rgba(212,175,55,.24);
  background:linear-gradient(145deg,rgba(91,66,12,.34),rgba(12,12,12,.96));
}
.batch-request-live .quote-main{font-size:25px;font-weight:850;color:#fff1b5;letter-spacing:-.02em}
.batch-request-live .quote-meta{margin-top:4px;color:var(--muted);font-size:11px}
.batch-request-live .quote-status{
  padding:6px 9px;border-radius:999px;border:1px solid rgba(110,216,162,.28);
  background:rgba(110,216,162,.10);color:#8be6b2;font-size:10px;font-weight:850;letter-spacing:.12em;
}
.batch-request-equivalent{margin-top:14px;padding:16px;border-radius:15px;border:1px solid rgba(255,255,255,.06);background:rgba(0,0,0,.22)}
.batch-request-equivalent .label{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.12em}
.batch-request-equivalent .value{margin-top:7px;font-size:21px;font-weight:800;color:#fff6d7}
.batch-request-history{margin-top:18px}
.batch-request-history table{min-width:980px}
.batch-request-card{margin-bottom:20px}

@media(max-width:760px){.batch-request-quote{grid-template-columns:1fr}.batch-request-live{align-items:flex-start}.batch-request-live .quote-main{font-size:23px}}


/* Guided workflow */
.workflow-guide{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:20px 22px;
  margin:18px 0;
  border:1px solid rgba(214,174,45,.42);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(214,174,45,.10),rgba(255,255,255,.02));
  box-shadow:0 12px 30px rgba(0,0,0,.08);
}
.workflow-guide.workflow-waiting{
  border-color:rgba(255,255,255,.18);
  background:rgba(255,255,255,.04);
}
.workflow-guide.workflow-clear{
  border-color:rgba(255,255,255,.12);
  background:rgba(255,255,255,.025);
}
.workflow-guide-copy{min-width:0}
.workflow-guide h2{margin:3px 0 7px;font-size:22px}
.workflow-guide p{margin:0;color:var(--muted);max-width:820px}
.workflow-guide-action{flex:0 0 auto}
.workflow-eyebrow{
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:11px;
  font-weight:800;
  color:var(--gold);
}
.flow-complete-card{
  max-width:920px;
  margin:42px auto;
  padding:34px;
  border:1px solid rgba(214,174,45,.38);
  border-radius:22px;
  background:linear-gradient(145deg,rgba(214,174,45,.10),rgba(255,255,255,.025));
  box-shadow:0 20px 50px rgba(0,0,0,.14);
}
.flow-complete-icon{
  width:54px;
  height:54px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:16px;
  background:var(--gold);
  color:#111;
  font-size:28px;
  font-weight:900;
}
.flow-complete-card h1{margin:4px 0 10px}
.flow-complete-message{
  font-size:17px;
  line-height:1.6;
  color:var(--text);
  max-width:760px;
}
.flow-next{
  margin-top:24px;
  padding:18px;
  border-radius:14px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.10);
}
.flow-next p{margin:6px 0 0;color:var(--muted)}
.flow-steps{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
  gap:10px;
  margin:26px 0 4px;
}
.flow-step{
  position:relative;
  min-height:86px;
  padding:13px 12px;
  border-radius:13px;
  border:1px solid rgba(255,255,255,.10);
  color:var(--muted);
  background:rgba(255,255,255,.025);
  font-size:13px;
  font-weight:700;
}
.flow-step-dot{
  width:24px;
  height:24px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:8px;
  border:1px solid rgba(255,255,255,.20);
}
.flow-step-done{
  color:var(--text);
  border-color:rgba(214,174,45,.35);
}
.flow-step-done .flow-step-dot{
  background:var(--gold);
  color:#111;
  border-color:var(--gold);
}
.flow-step-current{
  color:var(--text);
  border-color:var(--gold);
  box-shadow:inset 0 0 0 1px rgba(214,174,45,.20);
}
.flow-step-current .flow-step-dot{
  border-color:var(--gold);
  color:var(--gold);
}
.flow-complete-actions{margin-top:24px}

@media (max-width:720px){
  .workflow-guide{align-items:flex-start;flex-direction:column}
  .workflow-guide-action,.workflow-guide-action .btn{width:100%}
  .flow-complete-card{padding:24px 18px;margin:24px 0}
  .flow-steps{grid-template-columns:1fr 1fr}
}


/* Flow polish v15 */
.nav-more{position:relative}
.nav-more>summary{list-style:none;cursor:pointer}
.nav-more>summary::-webkit-details-marker{display:none}
.nav-more-menu{
  position:absolute;right:0;top:48px;z-index:50;min-width:190px;
  display:grid;gap:4px;padding:8px;
  border:1px solid rgba(212,175,55,.22);border-radius:14px;
  background:#0d0d0d;box-shadow:0 18px 50px rgba(0,0,0,.5)
}
.nav-more-menu a{display:block;padding:10px 12px;border-radius:9px;font-size:13px}
.nav-more-menu a:hover{background:rgba(212,175,55,.08)}

.page-flow{
  margin:0 0 22px;padding:16px 18px;border-radius:18px;
  border:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.025)
}
.page-flow-label{
  margin-bottom:12px;font-size:11px;font-weight:800;text-transform:uppercase;
  letter-spacing:.13em;color:var(--gold)
}
.page-flow .flow-steps{margin:0}
.page-flow .flow-step{min-height:72px;padding:11px 12px}

.compact-section-title{margin-top:22px}
.queue-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:24px}
.queue-card{
  display:grid;gap:5px;padding:16px;border-radius:16px;
  border:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.025);
  color:var(--text)!important
}
.queue-card:hover{border-color:rgba(212,175,55,.26);background:rgba(212,175,55,.05)}
.queue-card.has-work{border-color:rgba(212,175,55,.34);background:rgba(212,175,55,.07)}
.queue-count{font-size:28px;font-weight:850;line-height:1;color:#fff3bf}
.queue-label{font-size:13px;font-weight:800}
.queue-hint{font-size:11px;color:var(--muted)}

.focused-table table{min-width:760px}
.focused-table th:last-child,.focused-table td:last-child{width:190px}
.action-stack{align-items:flex-start}
.action-stack form{margin:0}
.table-link{display:inline-block;margin-top:8px;font-size:12px}
.request-note{
  margin-top:8px;padding:8px 10px;border-radius:9px;
  background:rgba(255,255,255,.035);color:var(--muted);font-size:12px
}
.empty-state-cell{padding:28px!important;text-align:center!important}
.empty-state-cell strong{display:block;margin-bottom:5px;color:var(--text)}

.secondary-section{
  margin:18px 0;border:1px solid rgba(255,255,255,.06);border-radius:16px;
  background:rgba(255,255,255,.02);overflow:hidden
}
.secondary-section>summary{
  list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:15px 17px;cursor:pointer;color:var(--text)
}
.secondary-section>summary::-webkit-details-marker{display:none}
.secondary-section[open]>summary{border-bottom:1px solid rgba(255,255,255,.055)}
.secondary-section-body{padding:16px}
.secondary-section .cycle-chevron{margin-left:auto}
.secondary-section[open] .cycle-chevron{transform:rotate(225deg) translate(-2px,-2px)}
.workflow-secondary-copy{margin-top:8px!important}

.card-heading-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}
.card-heading-row h2{margin:4px 0 0}
.payment-instructions-card{margin-top:18px}
.payment-reference{
  margin-top:4px;padding:14px;border-radius:12px;
  background:rgba(212,175,55,.065);border:1px solid rgba(212,175,55,.16)
}
.copy-value{font-size:16px;font-weight:800;color:#fff3c2;letter-spacing:.02em}
.payment-complete-banner{
  display:flex;justify-content:space-between;gap:16px;margin:18px 0;padding:18px 20px;
  border:1px solid rgba(110,216,162,.22);border-radius:16px;
  background:rgba(19,55,39,.28)
}
.payment-complete-banner strong{display:block;margin:4px 0 5px;color:#a5edc5}
.compact-value{font-size:22px!important;line-height:1.15}

.client-maintenance{margin-top:0}

@media(max-width:1100px){
  .queue-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .nav-more{width:100%}
  .nav-more>summary{width:100%}
  .nav-more-menu{position:static;min-width:0;margin-top:6px}
  .queue-grid{grid-template-columns:1fr 1fr}
  .focused-table table{min-width:680px}
  .card-heading-row{flex-direction:column}
}
@media(max-width:480px){
  .queue-grid{grid-template-columns:1fr}
}


/* Contextual grouped actions */
.action-dropdown{
  display:inline-block;
  vertical-align:top;
}
.action-dropdown>summary{
  list-style:none;
  user-select:none;
}
.action-dropdown>summary::-webkit-details-marker{display:none}
.action-dropdown-trigger{
  min-width:124px;
  justify-content:space-between;
}
.action-dropdown-caret{
  width:7px;
  height:7px;
  margin-left:6px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-2px);
  transition:transform .16s ease;
}
.action-dropdown[open] .action-dropdown-caret{
  transform:rotate(225deg) translate(-1px,-1px);
}
.action-dropdown-menu{
  display:grid;
  gap:4px;
  min-width:210px;
  margin-top:7px;
  padding:7px;
  border:1px solid rgba(212,175,55,.22);
  border-radius:13px;
  background:linear-gradient(180deg,#151515,#0b0b0b);
  box-shadow:0 14px 34px rgba(0,0,0,.28);
}
.action-dropdown-menu form{margin:0}
.action-dropdown-item{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  min-height:38px;
  padding:9px 11px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#eee6d8!important;
  font:inherit;
  font-size:12px;
  font-weight:700;
  text-align:left;
  cursor:pointer;
  box-shadow:none;
}
.action-dropdown-item:hover{
  background:rgba(212,175,55,.09);
  color:#fff2bf!important;
}
.action-dropdown-item.danger{
  color:#ffb8b8!important;
}
.action-dropdown-item.danger:hover{
  background:rgba(255,133,133,.10);
}
.action-dropdown-item.disabled{
  opacity:.45;
  cursor:not-allowed;
}
.action-dropdown-item.disabled:hover{
  background:transparent;
  color:#eee6d8!important;
}
.action-dropdown-separated{
  margin-top:4px;
  border-top:1px solid rgba(255,255,255,.08);
  border-radius:0 0 9px 9px;
  padding-top:11px;
}
.actions>.action-dropdown{flex:0 0 auto}

@media(max-width:760px){
  .action-dropdown-menu{min-width:0;width:100%}
  .actions>.action-dropdown{max-width:100%}
}


/* ===== Fargo Luxury UI v12 ===== */
:root{
  --lux-bg:#050505;
  --lux-surface:#0b0b0b;
  --lux-surface-raised:#101010;
  --lux-surface-soft:#141414;
  --lux-border:rgba(255,255,255,.075);
  --lux-border-soft:rgba(255,255,255,.045);
  --lux-gold:#d6b85a;
  --lux-gold-bright:#f1d98d;
  --lux-gold-muted:#a88935;
  --lux-ivory:#f4efe4;
  --lux-muted:#a9a195;
  --lux-muted-2:#79736b;
  --lux-success:#78d6a2;
  --lux-warning:#e3b76a;
  --lux-danger:#ee9292;
  --lux-radius-xl:24px;
  --lux-radius-lg:18px;
  --lux-radius-md:13px;
  --lux-shadow:0 24px 70px rgba(0,0,0,.34);
  --lux-shadow-soft:0 12px 34px rgba(0,0,0,.24);
}
html{background:var(--lux-bg)}
body{
  color:var(--lux-ivory);
  background:
    radial-gradient(1000px 520px at 8% -8%,rgba(214,184,90,.095),transparent 58%),
    radial-gradient(820px 480px at 98% 4%,rgba(214,184,90,.05),transparent 62%),
    linear-gradient(180deg,#080808 0,#050505 38%,#030303 100%);
  background-attachment:fixed;
  letter-spacing:.002em;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  opacity:.16;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.012) 1px,transparent 1px);
  background-size:72px 72px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.35),transparent 74%);
}
::selection{background:rgba(214,184,90,.28);color:#fff}
.shell{max-width:1500px;padding:0 34px 54px}

/* Executive header */
.topbar{
  position:relative;
  padding:22px 0 20px;
  margin-bottom:18px;
  border-bottom:1px solid rgba(214,184,90,.14);
}
.topbar::after{
  content:"";
  position:absolute;
  left:0;bottom:-1px;
  width:132px;height:1px;
  background:linear-gradient(90deg,var(--lux-gold-bright),transparent);
}
.brand{gap:15px}
.brand-logo{
  height:56px;
  max-width:134px;
  filter:drop-shadow(0 8px 22px rgba(0,0,0,.28));
}
.brand-title{
  font-size:15px;
  letter-spacing:.19em;
  color:#fff8e5;
}
.brand-sub{
  font-size:10px;
  letter-spacing:.24em;
  color:var(--lux-gold);
}
.brand-caption{
  font-size:10px;
  color:var(--lux-muted-2);
  letter-spacing:.045em;
}
.nav{
  gap:8px;
  justify-content:flex-end;
}
.nav-pill{
  min-height:38px;
  padding:8px 12px;
  border:1px solid transparent;
  border-radius:999px;
  background:transparent;
  color:#cfc8bc!important;
  font-size:12px!important;
  font-weight:680!important;
  letter-spacing:.015em;
  box-shadow:none;
}
.nav-pill:hover{
  border-color:rgba(214,184,90,.18);
  background:rgba(214,184,90,.055);
  color:#fff1bc!important;
}
.nav-pill.active{
  border-color:rgba(214,184,90,.28);
  background:linear-gradient(180deg,rgba(214,184,90,.12),rgba(214,184,90,.055));
  color:#f4dfa0!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045);
}
.nav-pill.nav-signout{
  margin-left:3px;
  border-color:rgba(255,255,255,.06);
  color:#928b80!important;
}
.nav-pill.nav-signout:hover{
  border-color:rgba(238,146,146,.18);
  background:rgba(238,146,146,.045);
  color:#f5bbbb!important;
}

/* Page heading */
.hero{
  align-items:center;
  margin:12px 0 24px;
  padding:9px 0 4px;
}
.hero>div:first-child{min-width:0}
.hero h1{
  font-size:clamp(28px,3vw,40px);
  line-height:1.08;
  font-weight:760;
  letter-spacing:-.035em;
  color:#fbf8ef;
}
.hero p{
  margin-top:9px;
  max-width:820px;
  color:#9f988d;
  font-size:13px;
  line-height:1.65;
}
.hero .actions{justify-content:flex-end}

/* Premium cards */
.card{
  overflow:hidden;
  border:1px solid var(--lux-border);
  border-radius:var(--lux-radius-xl);
  background:
    linear-gradient(145deg,rgba(255,255,255,.018),transparent 38%),
    linear-gradient(180deg,rgba(17,17,17,.98),rgba(8,8,8,.99));
  padding:23px;
  box-shadow:var(--lux-shadow-soft);
}
.card::before{
  background:linear-gradient(140deg,rgba(255,255,255,.08),rgba(214,184,90,.105),rgba(255,255,255,.018));
}
.card::after{
  inset:-34px -58px auto auto;
  width:180px;height:120px;
  opacity:.5;
  background:radial-gradient(circle,rgba(214,184,90,.09),transparent 68%);
}
.card.gold{
  border-color:rgba(214,184,90,.21);
  background:
    radial-gradient(350px 160px at 12% 0,rgba(241,217,141,.12),transparent 68%),
    linear-gradient(145deg,rgba(55,44,18,.72),rgba(16,14,10,.96) 56%,rgba(8,8,8,.99));
}
.card.gold::before{
  background:linear-gradient(140deg,rgba(241,217,141,.22),rgba(214,184,90,.27),rgba(255,255,255,.018));
}
.kpi .label{
  color:#999184;
  font-size:10px;
  font-weight:750;
  letter-spacing:.15em;
}
.kpi .value{
  margin-top:11px;
  color:#fffaf0;
  font-size:clamp(24px,2vw,31px);
  font-weight:720;
  letter-spacing:-.035em;
}
.kpi.gold .value{color:#fff1b9}
.kpi .hint{color:#827b71;line-height:1.5}
.kpi-link{transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.kpi-link:hover{
  transform:translateY(-2px);
  border-color:rgba(214,184,90,.24);
  box-shadow:0 20px 48px rgba(0,0,0,.32);
}

/* Buttons */
.btn{
  min-height:42px;
  padding:10px 16px;
  border-radius:12px;
  border:1px solid #c7a645;
  background:linear-gradient(180deg,#ead487 0%,#d1b052 54%,#b38c2c 100%);
  color:#120f09!important;
  font-size:12px;
  font-weight:780;
  letter-spacing:.025em;
  box-shadow:0 9px 24px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.38);
}
.btn:hover{
  transform:translateY(-1px);
  filter:brightness(1.035);
  box-shadow:0 14px 28px rgba(0,0,0,.31),inset 0 1px 0 rgba(255,255,255,.42);
}
.btn:active{transform:translateY(0)}
.btn.secondary{
  border-color:rgba(214,184,90,.22);
  background:rgba(255,255,255,.018);
  color:#d9c37b!important;
  box-shadow:none;
}
.btn.secondary:hover{
  border-color:rgba(214,184,90,.36);
  background:rgba(214,184,90,.07);
  color:#f3dda0!important;
}
.btn.danger{
  border-color:rgba(238,146,146,.26);
  background:linear-gradient(180deg,rgba(72,28,28,.84),rgba(38,18,18,.92));
  color:#f2b9b9!important;
}
.btn.small{
  min-height:34px;
  padding:7px 11px;
  border-radius:10px;
  font-size:11px;
}
.actions{gap:8px}

/* Tables */
.table-wrap{
  position:relative;
  border:1px solid var(--lux-border);
  border-radius:var(--lux-radius-lg);
  background:linear-gradient(180deg,rgba(14,14,14,.98),rgba(7,7,7,.99));
  box-shadow:var(--lux-shadow-soft);
  scrollbar-width:thin;
  scrollbar-color:rgba(214,184,90,.3) transparent;
}
.table-wrap::-webkit-scrollbar{height:8px;width:8px}
.table-wrap::-webkit-scrollbar-thumb{background:rgba(214,184,90,.24);border-radius:999px}
.table-wrap::-webkit-scrollbar-track{background:transparent}
table{min-width:840px}
th,td{
  padding:15px 17px;
  border-bottom:1px solid rgba(255,255,255,.047);
  font-size:12.5px;
  line-height:1.45;
}
th{
  position:sticky;
  top:0;
  z-index:1;
  background:#10100f;
  color:#cdbd86;
  font-size:9.5px;
  font-weight:800;
  letter-spacing:.125em;
}
tbody tr{transition:background .14s ease}
tbody tr:hover{background:rgba(214,184,90,.028)}
td strong{color:#f5f0e5;font-weight:720}
td .muted{font-size:11px}
.table-wrap td[colspan]{
  padding:30px 20px;
  color:#80796f;
  text-align:center;
}
.section-title{
  margin:29px 0 13px;
  align-items:flex-end;
}
.section-title h2{
  color:#f4efe5;
  font-size:18px;
  font-weight:720;
}
.section-title>.muted{
  font-size:11px;
  max-width:620px;
  text-align:right;
}

/* Status language */
.badge{
  min-height:25px;
  padding:4px 9px;
  border-color:rgba(255,255,255,.075);
  background:rgba(255,255,255,.022);
  font-size:9px;
  font-weight:800;
  letter-spacing:.105em;
}
.badge.pending{
  color:#c9c0b0;
  border-color:rgba(255,255,255,.09);
  background:rgba(255,255,255,.025);
}
.badge.active{
  color:#e9d184;
  border-color:rgba(214,184,90,.25);
  background:rgba(214,184,90,.07);
}
.badge.completed{
  color:#8adcad;
  border-color:rgba(120,214,162,.21);
  background:rgba(120,214,162,.065);
}
.badge.delayed{
  color:#efc27a;
  border-color:rgba(227,183,106,.25);
  background:rgba(227,183,106,.07);
}
.status-ok{color:#87dcae}
.status-warn{color:#e3bf7a}

/* Forms */
.form-grid{gap:18px}
.field label{
  margin-bottom:7px;
  color:#c9b874;
  font-size:10.5px;
  font-weight:780;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.field input,.field select,.field textarea{
  min-height:46px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.075);
  background:rgba(4,4,4,.78);
  color:#eee9df;
  padding:12px 13px;
  font-size:13px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018);
}
.field textarea{min-height:94px;resize:vertical}
.field input:hover,.field select:hover,.field textarea:hover{border-color:rgba(255,255,255,.12)}
.field input:focus,.field select:focus,.field textarea:focus{
  border-color:rgba(214,184,90,.42);
  box-shadow:0 0 0 3px rgba(214,184,90,.075);
  background:#080808;
}
.field input::placeholder,.field textarea::placeholder{color:#5f5a52}
.field small{color:#7f786f;font-size:11px}
input[type="file"]{padding:9px}
input[type="file"]::file-selector-button{
  margin-right:10px;
  border:0;
  border-radius:9px;
  padding:8px 11px;
  background:#1b1a17;
  color:#cfba75;
  cursor:pointer;
}
select{color-scheme:dark}

/* Feedback */
.alert{
  position:relative;
  overflow:hidden;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid rgba(214,184,90,.17);
  background:linear-gradient(90deg,rgba(75,59,18,.25),rgba(13,13,13,.86));
  color:#d8c27c;
  font-size:12.5px;
  line-height:1.55;
}
.alert::before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:2px;
  background:var(--lux-gold);
}
.alert.good{
  border-color:rgba(120,214,162,.18);
  background:linear-gradient(90deg,rgba(24,75,50,.2),rgba(13,13,13,.86));
  color:#96ddb4;
}
.alert.good::before{background:var(--lux-success)}
.alert.bad{
  border-color:rgba(238,146,146,.18);
  background:linear-gradient(90deg,rgba(84,32,32,.2),rgba(13,13,13,.86));
  color:#edb4b4;
}
.alert.bad::before{background:var(--lux-danger)}

/* Live market bar */
.market-strip{
  border:1px solid rgba(214,184,90,.15)!important;
  border-radius:14px!important;
  background:
    linear-gradient(90deg,rgba(214,184,90,.07),transparent 34%),
    rgba(10,10,10,.9)!important;
  box-shadow:0 12px 32px rgba(0,0,0,.18);
}
.market-label{letter-spacing:.16em!important}
.market-source{color:#756f66!important}

/* Luxury workflow / process tracker */
.lux-flow{
  margin:3px 0 22px;
  padding:18px 20px;
  border:1px solid rgba(214,184,90,.14);
  border-radius:20px;
  background:
    radial-gradient(430px 150px at 0 0,rgba(214,184,90,.065),transparent 72%),
    linear-gradient(180deg,rgba(15,15,15,.98),rgba(8,8,8,.99));
  box-shadow:var(--lux-shadow-soft);
}
.lux-flow-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-end;
  margin-bottom:16px;
}
.lux-flow-kicker{
  color:#a78f43;
  font-size:9px;
  font-weight:850;
  letter-spacing:.17em;
  text-transform:uppercase;
}
.lux-flow-title{
  margin-top:5px;
  color:#f2ede2;
  font-size:14px;
  font-weight:720;
}
.lux-flow-note{
  color:#777168;
  font-size:10px;
  text-align:right;
}
.lux-flow-steps{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:0;
}
.lux-flow-step{
  position:relative;
  min-width:0;
  padding:0 10px 0 0;
}
.lux-flow-step:not(:last-child)::after{
  content:"";
  position:absolute;
  top:12px;
  left:26px;
  right:2px;
  height:1px;
  background:rgba(255,255,255,.08);
}
.lux-flow-step.is-complete:not(:last-child)::after{
  background:linear-gradient(90deg,rgba(214,184,90,.78),rgba(214,184,90,.18));
}
.lux-flow-dot{
  position:relative;
  z-index:1;
  display:grid;
  place-items:center;
  width:25px;height:25px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.11);
  background:#0a0a0a;
  color:#7c766d;
  font-size:9px;
  font-weight:850;
  box-shadow:0 0 0 4px #0c0c0c;
}
.lux-flow-step.is-complete .lux-flow-dot,
.lux-flow-step.is-current .lux-flow-dot{
  border-color:rgba(214,184,90,.52);
  background:linear-gradient(180deg,#e3c96f,#ae862a);
  color:#171107;
}
.lux-flow-step.is-current .lux-flow-dot{box-shadow:0 0 0 4px #0c0c0c,0 0 22px rgba(214,184,90,.16)}
.lux-flow-label{
  margin-top:10px;
  color:#898278;
  font-size:10.5px;
  line-height:1.35;
}
.lux-flow-step.is-current .lux-flow-label,
.lux-flow-step.is-complete .lux-flow-label{color:#d5c89f}

/* Dedicated empty states */
.lux-empty{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:118px;
  padding:22px 24px;
  border:1px dashed rgba(214,184,90,.18);
  border-radius:18px;
  background:
    radial-gradient(320px 120px at 0 0,rgba(214,184,90,.055),transparent 72%),
    rgba(9,9,9,.78);
}
.lux-empty-icon{
  display:grid;
  place-items:center;
  flex:0 0 42px;
  width:42px;height:42px;
  border:1px solid rgba(214,184,90,.22);
  border-radius:50%;
  color:#c9ad59;
  font-size:17px;
  background:rgba(214,184,90,.05);
}
.lux-empty-copy{flex:1;min-width:0}
.lux-empty-title{color:#eee8dc;font-size:13px;font-weight:720}
.lux-empty-text{margin-top:4px;color:#7f786f;font-size:11px;line-height:1.5}

/* Request / invoice modules */
.batch-request-card{
  border-color:rgba(214,184,90,.14);
}
.batch-request-live{
  padding:16px 18px;
  border-color:rgba(214,184,90,.18);
  background:
    linear-gradient(90deg,rgba(214,184,90,.085),transparent 58%),
    rgba(7,7,7,.88);
}
.batch-request-live .quote-main{
  color:#f2dda0;
  font-size:23px;
  font-weight:720;
}
.batch-request-live .quote-meta{color:#746e65}
.batch-request-live .quote-status{
  border-color:rgba(120,214,162,.18);
  background:rgba(120,214,162,.055);
  color:#8bdcab;
}
.batch-request-equivalent{
  border-color:rgba(255,255,255,.06);
  background:rgba(255,255,255,.018);
}
.batch-request-equivalent .value{color:#eee7d7}

/* Login */
.login-wrap{
  background:
    radial-gradient(600px 320px at 50% 0,rgba(214,184,90,.09),transparent 70%);
}
.login-card{
  width:min(480px,100%);
  padding:34px;
  border-color:rgba(214,184,90,.19);
  background:
    radial-gradient(340px 160px at 0 0,rgba(214,184,90,.07),transparent 72%),
    linear-gradient(180deg,rgba(16,16,16,.985),rgba(6,6,6,.995));
  box-shadow:0 34px 110px rgba(0,0,0,.55);
}
.login-card h1{font-weight:720;color:#faf6ed}
.login-card p{font-size:12px}

/* Accordion / timeline cleanup */
.cycle-accordion,.stage,.mini,.control-panel{
  border-color:rgba(255,255,255,.065);
  background:linear-gradient(180deg,rgba(15,15,15,.98),rgba(7,7,7,.99));
}
.cycle-accordion[open]{border-color:rgba(214,184,90,.18)}
.cycle-accordion summary:hover{background:rgba(214,184,90,.035)}
.cycle-accordion-title{color:#eee8dc;font-weight:710}
.cycle-chevron{border-color:#bda454}
.stage::before{background:linear-gradient(90deg,transparent,rgba(214,184,90,.42),transparent)}
.stage .stage-date{color:#e8d69d}
.mini .v{color:#f1e8d5}

/* Notification modal */
.payment-notification-dialog{
  border-color:rgba(214,184,90,.3);
  background:
    radial-gradient(420px 170px at 0 0,rgba(214,184,90,.09),transparent 70%),
    linear-gradient(180deg,rgba(18,17,14,.995),rgba(7,7,7,.998));
}
.payment-notification-item{
  border-color:rgba(214,184,90,.14);
  background:linear-gradient(145deg,rgba(214,184,90,.055),rgba(9,9,9,.96));
}
.payment-notification-amount{color:#f3dea0}

/* Footer */
.footer{
  margin-top:24px;
  border-top:1px solid rgba(255,255,255,.04);
  color:#625d55;
  padding-top:28px;
  font-size:10px;
}
.footer-uganda-flag{height:48px;opacity:.82}

/* Reduced motion */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important}
}

/* Tablet */
@media(max-width:1100px){
  .shell{padding-left:24px;padding-right:24px}
  .topbar{align-items:flex-start}
  .nav{max-width:68%}
  .lux-flow-steps{grid-template-columns:repeat(5,minmax(120px,1fr));overflow:auto;padding-bottom:6px}
  .lux-flow-step{min-width:120px}
}

/* Mobile */
@media(max-width:760px){
  .shell{padding:0 14px 28px}
  .topbar{
    position:sticky;
    top:0;
    z-index:40;
    margin:0 -14px 14px;
    padding:12px 14px 10px;
    flex-direction:column;
    gap:10px;
    border-bottom-color:rgba(214,184,90,.11);
    background:rgba(5,5,5,.92);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
  }
  .topbar::after{left:14px;width:86px}
  .brand{gap:11px}
  .brand-logo{height:43px;max-width:108px}
  .brand-title{font-size:12px}
  .brand-sub{font-size:8px}
  .brand-caption{display:none}
  .nav{
    display:flex;
    width:calc(100vw - 28px);
    max-width:none;
    flex-wrap:nowrap;
    gap:7px;
    overflow-x:auto;
    padding:0 0 3px;
    scrollbar-width:none;
    justify-content:flex-start;
    scroll-snap-type:x proximity;
  }
  .nav::-webkit-scrollbar{display:none}
  .nav-pill{
    flex:0 0 auto;
    min-width:auto;
    min-height:35px;
    padding:7px 11px;
    font-size:10.5px!important;
    scroll-snap-align:start;
  }
  .nav-pill.nav-signout{margin-left:0}
  .hero{
    margin:9px 0 18px;
    padding-top:4px;
    gap:14px;
  }
  .hero h1{font-size:27px}
  .hero p{font-size:12px;line-height:1.55}
  .hero .actions{width:100%;justify-content:flex-start}
  .hero .actions .btn{flex:1}
  .card{padding:18px;border-radius:18px}
  .grid{gap:12px}
  .grid-4,.grid-3,.grid-2,.form-grid,.cycle-stats,.timeline,.payment-summary-grid,.payment-batch-kpis{grid-template-columns:1fr}
  .kpi .value{font-size:25px}
  .section-title{align-items:flex-start;flex-direction:column;gap:4px;margin-top:24px}
  .section-title>.muted{text-align:left}
  .table-wrap{
    margin-left:-1px;
    margin-right:-1px;
    border-radius:15px;
    box-shadow:0 12px 30px rgba(0,0,0,.22);
  }
  table{min-width:720px}
  th,td{padding:13px 14px;font-size:11.5px}
  th{font-size:8.5px}
  .btn{min-height:43px}
  .actions{gap:7px}
  .actions form{width:auto}
  .field input,.field select,.field textarea{font-size:16px}
  .alert{font-size:12px}
  .market-strip{margin-bottom:12px!important}
  .lux-flow{padding:15px;margin-bottom:17px;border-radius:16px}
  .lux-flow-head{align-items:flex-start;flex-direction:column;gap:5px}
  .lux-flow-note{text-align:left}
  .lux-flow-steps{
    display:flex;
    gap:0;
    overflow-x:auto;
    padding:2px 0 5px;
    scrollbar-width:none;
  }
  .lux-flow-steps::-webkit-scrollbar{display:none}
  .lux-flow-step{flex:0 0 116px;min-width:116px}
  .lux-empty{align-items:flex-start;padding:18px;gap:13px}
  .lux-empty-icon{width:36px;height:36px;flex-basis:36px}
  .batch-request-live{align-items:center}
  .batch-request-live .quote-main{font-size:21px}
  .login-card{padding:26px 22px}
  .payment-notification-card{padding:20px}
}

/* Very small phones */
@media(max-width:430px){
  .shell{padding-left:12px;padding-right:12px}
  .topbar{margin-left:-12px;margin-right:-12px;padding-left:12px;padding-right:12px}
  .nav{width:calc(100vw - 24px)}
  .hero h1{font-size:25px}
  .brand-logo{height:40px}
  .card{padding:16px}
  .btn{width:auto}
}


/* ===== Luxury overrides for current workflow components ===== */
.page-flow{
  padding:18px 20px;
  margin:2px 0 22px;
  border:1px solid rgba(214,184,90,.13);
  border-radius:20px;
  background:
    radial-gradient(400px 140px at 0 0,rgba(214,184,90,.06),transparent 72%),
    linear-gradient(180deg,rgba(14,14,14,.96),rgba(8,8,8,.98));
  box-shadow:0 14px 34px rgba(0,0,0,.2);
}
.page-flow-label{
  margin-bottom:14px;
  color:#aa934b;
  font-size:9px;
  font-weight:850;
  letter-spacing:.17em;
}
.page-flow .flow-steps{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(125px,1fr));
  gap:8px;
}
.page-flow .flow-step,
.flow-complete-card .flow-step{
  min-height:74px;
  padding:12px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:13px;
  background:rgba(255,255,255,.014);
  color:#817a70;
  font-size:11px;
  font-weight:680;
}
.flow-step-dot{
  width:23px;height:23px;
  margin-bottom:10px;
  border:1px solid rgba(255,255,255,.09);
  background:#090909;
  color:#766f65;
  box-shadow:0 0 0 3px rgba(0,0,0,.22);
  font-size:10px;
}
.flow-step-done{
  border-color:rgba(214,184,90,.13)!important;
  background:rgba(214,184,90,.025)!important;
  color:#cabe98!important;
}
.flow-step-done .flow-step-dot{
  border-color:rgba(214,184,90,.38);
  background:linear-gradient(180deg,#d9bf69,#a9842b);
  color:#171107;
}
.flow-step-current{
  border-color:rgba(214,184,90,.25)!important;
  background:linear-gradient(145deg,rgba(214,184,90,.075),rgba(255,255,255,.012))!important;
  color:#e2d6b3!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.flow-step-current .flow-step-dot{
  border-color:rgba(214,184,90,.52);
  background:linear-gradient(180deg,#edd583,#bd9535);
  color:#161006;
  box-shadow:0 0 0 3px #0a0a0a,0 0 18px rgba(214,184,90,.14);
}
.workflow-guide{
  padding:20px 22px;
  border-color:rgba(214,184,90,.14);
  border-radius:19px;
  background:
    radial-gradient(360px 130px at 0 0,rgba(214,184,90,.055),transparent 72%),
    linear-gradient(180deg,rgba(14,14,14,.96),rgba(8,8,8,.98));
  box-shadow:0 14px 34px rgba(0,0,0,.2);
}
.workflow-guide.workflow-waiting,
.workflow-guide.workflow-clear{
  border-color:rgba(255,255,255,.065);
  background:linear-gradient(180deg,rgba(13,13,13,.96),rgba(8,8,8,.98));
}
.workflow-guide h2{
  margin:4px 0 6px;
  color:#efe9dc;
  font-size:18px;
  font-weight:720;
}
.workflow-guide p{
  color:#8a8379;
  font-size:12px;
  line-height:1.55;
}
.workflow-eyebrow{
  color:#a88f44;
  font-size:9px;
  letter-spacing:.16em;
}
.flow-complete-card{
  border-color:rgba(214,184,90,.18);
  background:
    radial-gradient(430px 170px at 0 0,rgba(214,184,90,.075),transparent 72%),
    linear-gradient(180deg,rgba(15,15,15,.98),rgba(7,7,7,.99));
  box-shadow:0 28px 80px rgba(0,0,0,.34);
}
.flow-complete-icon{
  background:linear-gradient(180deg,#e5ca70,#af882c);
  box-shadow:0 12px 26px rgba(0,0,0,.26);
}
.flow-next{
  border-color:rgba(255,255,255,.06);
  background:rgba(255,255,255,.018);
}
.queue-grid{gap:10px}
.queue-card{
  padding:17px;
  border-color:rgba(255,255,255,.06);
  background:linear-gradient(180deg,rgba(14,14,14,.96),rgba(8,8,8,.98));
  box-shadow:0 10px 28px rgba(0,0,0,.16);
}
.queue-card:hover{
  border-color:rgba(214,184,90,.18);
  background:linear-gradient(180deg,rgba(18,17,13,.96),rgba(8,8,8,.98));
}
.queue-card.has-work{
  border-color:rgba(214,184,90,.22);
  background:
    radial-gradient(220px 100px at 0 0,rgba(214,184,90,.08),transparent 75%),
    linear-gradient(180deg,rgba(18,16,11,.98),rgba(8,8,8,.98));
}
.queue-count{color:#edd993;font-size:26px;font-weight:760}
.queue-label{color:#e8e1d5;font-size:12px}
.queue-hint{color:#777067}
.nav-more-menu,
.action-dropdown-menu{
  border-color:rgba(214,184,90,.17);
  background:rgba(10,10,10,.98);
  box-shadow:0 24px 64px rgba(0,0,0,.5);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.nav-more-menu a,
.action-dropdown-item{
  border-radius:9px;
  color:#cfc5b3!important;
}
.nav-more-menu a:hover,
.action-dropdown-item:hover{
  background:rgba(214,184,90,.055);
  color:#f1dca1!important;
}
.request-note{
  border-color:rgba(255,255,255,.055)!important;
  background:rgba(255,255,255,.018)!important;
  color:#8d857a!important;
}
@media(max-width:760px){
  .page-flow{padding:14px 15px;border-radius:16px}
  .page-flow .flow-steps{
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding-bottom:3px;
    scrollbar-width:none;
  }
  .page-flow .flow-steps::-webkit-scrollbar{display:none}
  .page-flow .flow-step{flex:0 0 126px}
  .queue-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .workflow-guide{padding:16px}
  .workflow-guide h2{font-size:16px}
}
@media(max-width:430px){
  .queue-grid{grid-template-columns:1fr 1fr}
}


/* ===== Fargo form contrast & interaction patch v13 ===== */
/* Improve field discoverability while retaining the black/gold luxury UI. */
body{
  background:
    radial-gradient(circle at 15% 12%,rgba(212,175,55,.105),transparent 25%),
    radial-gradient(circle at 82% 0,rgba(212,175,55,.075),transparent 22%),
    linear-gradient(180deg,#0d0d0d 0%,#080808 100%);
}

.card{
  border-color:rgba(255,255,255,.065);
}

/* Labels and supporting copy */
.field label{
  color:#d8c27c;
}
.field small{
  color:#aaa396;
}
.field > .muted,
.field .muted{
  color:#aaa396;
}

/* Text, number, date, email, password, textarea and select controls */
.field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.field select,
.field textarea{
  border:1px solid rgba(214,184,90,.36);
  background:#151515;
  color:#f3efe7;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    0 0 0 1px rgba(0,0,0,.12);
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    color .18s ease;
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):hover,
.field select:hover,
.field textarea:hover{
  border-color:rgba(214,184,90,.55);
  background:#181818;
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.field select:focus,
.field textarea:focus{
  outline:none;
  border-color:rgba(231,202,111,.88);
  background:#1a1a1a;
  box-shadow:
    0 0 0 3px rgba(214,184,90,.13),
    0 10px 28px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.035);
}

.field input::placeholder,
.field textarea::placeholder{
  color:#8f887d;
  opacity:1;
}

.field input[readonly],
.field input[disabled],
.field select[disabled],
.field textarea[readonly],
.field textarea[disabled]{
  background:#11110f;
  border-color:rgba(214,184,90,.21);
  color:#c8c0b2;
  opacity:1;
}

.field input[type="file"]{
  border:1px dashed rgba(214,184,90,.42);
  background:#141414;
  color:#cfc6b8;
}
.field input[type="file"]:hover{
  border-color:rgba(214,184,90,.60);
  background:#171717;
}
.field input[type="file"]::file-selector-button{
  border:1px solid rgba(214,184,90,.32);
  background:linear-gradient(180deg,#242018,#191713);
  color:#e2cd8c;
}
.field input[type="file"]::file-selector-button:hover{
  border-color:rgba(214,184,90,.52);
  background:#252116;
}

select,
select option{
  background-color:#151515;
  color:#f3efe7;
}

/* Radios and checkboxes use Fargo gold rather than the browser default. */
input[type="radio"],
input[type="checkbox"]{
  accent-color:#d4af37;
}

/* Currency and bank-account option cards used in registration/request flows. */
label.card:has(input[type="radio"]){
  cursor:pointer;
  overflow:visible;
  border:1px solid rgba(214,184,90,.26);
  background:
    radial-gradient(220px 80px at 0 0,rgba(214,184,90,.035),transparent 72%),
    linear-gradient(180deg,#161616,#111111);
  box-shadow:0 8px 22px rgba(0,0,0,.17);
  transition:
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

label.card:has(input[type="radio"]):hover{
  border-color:rgba(214,184,90,.48);
  background:
    radial-gradient(240px 90px at 0 0,rgba(214,184,90,.07),transparent 72%),
    linear-gradient(180deg,#191919,#121212);
  transform:translateY(-1px);
}

label.card:has(input[type="radio"]:checked){
  border-color:rgba(231,202,111,.82);
  background:
    radial-gradient(250px 100px at 0 0,rgba(214,184,90,.13),transparent 70%),
    linear-gradient(145deg,#1b1912,#141414 72%);
  box-shadow:
    0 0 0 2px rgba(214,184,90,.085),
    0 12px 30px rgba(0,0,0,.24);
}

label.card:has(input[type="radio"]:checked) strong{
  color:#f1da91;
}

label.card:has(input[type="radio"]) input[type="radio"]{
  width:17px!important;
  height:17px;
  vertical-align:-3px;
  margin-right:9px!important;
}

/* Checkbox rows should read as interactive rather than muted copy. */
.field label:has(input[type="checkbox"]){
  color:#d2c8b6;
  cursor:pointer;
  text-transform:none;
  letter-spacing:.01em;
  font-size:12px;
  line-height:1.5;
}
.field label:has(input[type="checkbox"]):hover{
  color:#eee3c8;
}

/* Make payment/batch entry panels separate more clearly from the page canvas. */
.batch-request-equivalent,
.batch-payment-form,
.deductible-field,
.control-panel{
  background:rgba(20,20,20,.78);
  border-color:rgba(214,184,90,.20);
}

@media(max-width:760px){
  .field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .field select,
  .field textarea{
    min-height:48px;
    font-size:16px;
  }
  label.card:has(input[type="radio"]){
    width:100%;
  }
}


/* ===== Fargo high-contrast form refinement v14 ===== */
body{
  background:
    radial-gradient(circle at 14% 10%,rgba(212,175,55,.12),transparent 27%),
    radial-gradient(circle at 84% 0,rgba(212,175,55,.085),transparent 24%),
    linear-gradient(180deg,#101010 0%,#090909 100%);
}

.field label{
  color:#e3cd83;
}

.field small,
.field .muted{
  color:#b6aea0;
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.field select,
.field textarea{
  background:#191919;
  border-color:rgba(214,184,90,.52);
  color:#f7f2e8;
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):hover,
.field select:hover,
.field textarea:hover{
  background:#1d1d1d;
  border-color:rgba(229,201,108,.72);
}

.field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.field select:focus,
.field textarea:focus{
  background:#202020;
  border-color:#e4c66b;
  box-shadow:
    0 0 0 3px rgba(228,198,107,.16),
    0 12px 30px rgba(0,0,0,.22);
}

.field input::placeholder,
.field textarea::placeholder{
  color:#9e978b;
}

label.card:has(input[type="radio"]){
  border-color:rgba(214,184,90,.36);
  background:linear-gradient(180deg,#191919,#131313);
}

label.card:has(input[type="radio"]):hover{
  border-color:rgba(228,198,107,.62);
  background:linear-gradient(180deg,#1e1d19,#151515);
}

label.card:has(input[type="radio"]:checked){
  border-color:#e4c66b;
  background:
    radial-gradient(260px 110px at 0 0,rgba(228,198,107,.18),transparent 70%),
    linear-gradient(145deg,#211d12,#171717 74%);
  box-shadow:
    0 0 0 2px rgba(228,198,107,.12),
    0 14px 34px rgba(0,0,0,.26);
}


/* ===== Diagnostic dark-grey canvas v15 ===== */
html,
body{
  background:#2b2b2b !important;
  background-image:none !important;
}

.login-wrap{
  background:#2b2b2b !important;
}

.shell{
  background:transparent !important;
}


/* ===== Premium text hierarchy v16 ===== */
/* Improve readability of secondary copy without losing the premium dark UI. */
.muted,
.note,
.hero p,
.workflow-guide p,
.queue-hint,
.batch-subtitle,
.brand-caption,
.brand-sub,
.kpi .hint,
.stage .stage-name,
.field small,
.field .muted,
.payment-notification-details,
.delay-history,
.delay-foot,
.cycle-meta .muted,
.request-note,
.start-cycle-note{
  color:#f2eee6 !important;
  opacity:.94;
}

/* Main headings and Fargo brand: metallic liquid-gold treatment. */
.brand-title,
h1,
h2,
h3,
.section-title h2,
.workflow-guide h2,
.card h2,
.card h3,
.batch-title,
.cycle-title,
.queue-label{
  background:linear-gradient(
    115deg,
    #8f6714 0%,
    #d6ad3f 18%,
    #fff0a8 38%,
    #c69524 56%,
    #f3d878 74%,
    #9a6e16 100%
  );
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
  text-shadow:0 1px 10px rgba(212,175,55,.08);
}

/* Keep very small utility/eyebrow text solid for legibility. */
.workflow-eyebrow,
.page-flow-label,
.kpi .label,
.field label,
th{
  -webkit-text-fill-color:initial;
  background:none;
}

/* Strong body copy inside panels should read as crisp white. */
.card p:not(.muted),
.card li,
.card td,
.card div:not(.label):not(.value):not(.hint):not(.badge):not(.workflow-eyebrow){
  color:inherit;
}

/* Make empty-state and informational messages particularly clear. */
.lux-empty p,
.workflow-guide p,
.alert,
.request-note,
.start-cycle-note{
  color:#f7f3eb !important;
}

@media(max-width:760px){
  .muted,
  .note,
  .hero p,
  .workflow-guide p,
  .queue-hint,
  .batch-subtitle,
  .field small{
    color:#f5f1e9 !important;
  }
}


/* Client batch page layout */
.client-batch-overview-kpis{margin:24px 0 6px}
.client-batches-section{margin-top:28px}
.client-manage-batch-section{margin-top:36px}
.client-batch-management-top{margin-top:30px}
.client-batch-management-grid{align-items:stretch;margin-bottom:0}
.client-batch-management-grid>.card{height:100%}
.client-batch-change-history{margin-top:18px}
@media(max-width:760px){
  .client-batch-overview-kpis{margin-top:20px}
  .client-batches-section{margin-top:24px}
  .client-manage-batch-section{margin-top:30px}
  .client-batch-management-top{margin-top:24px}
}


/* ===== Admin mobile client directory ===== */
.admin-mobile-client-list{display:none}

@media(max-width:760px){
  body[data-role="admin"][data-route="clients"] .admin-client-table{
    display:none;
  }

  body[data-role="admin"][data-route="clients"] .admin-mobile-client-list{
    display:grid;
    gap:10px;
    margin-top:4px;
  }

  body[data-role="admin"][data-route="clients"] .admin-mobile-client-row{
    display:grid;
    grid-template-columns:minmax(92px,.34fr) minmax(0,1fr) auto;
    align-items:center;
    gap:14px;
    min-height:68px;
    padding:14px 16px;
    border:1px solid rgba(214,184,90,.15);
    border-radius:16px;
    background:
      radial-gradient(180px 80px at 0 0,rgba(214,184,90,.055),transparent 72%),
      linear-gradient(180deg,rgba(15,15,15,.99),rgba(8,8,8,.99));
    box-shadow:0 12px 30px rgba(0,0,0,.22);
    color:#f5efe4;
    text-decoration:none;
    -webkit-tap-highlight-color:transparent;
    transition:border-color .16s ease,background .16s ease,transform .16s ease;
  }

  body[data-role="admin"][data-route="clients"] .admin-mobile-client-row:active{
    transform:scale(.992);
    border-color:rgba(214,184,90,.34);
    background:
      radial-gradient(200px 90px at 0 0,rgba(214,184,90,.09),transparent 72%),
      linear-gradient(180deg,rgba(19,18,15,.99),rgba(9,9,9,.99));
  }

  body[data-role="admin"][data-route="clients"] .admin-mobile-client-code{
    color:#d9bb62;
    font-size:11px;
    font-weight:850;
    letter-spacing:.08em;
    line-height:1.35;
    overflow-wrap:anywhere;
  }

  body[data-role="admin"][data-route="clients"] .admin-mobile-client-name{
    min-width:0;
    color:#fff8e8;
    font-size:15px;
    font-weight:760;
    line-height:1.3;
  }

  body[data-role="admin"][data-route="clients"] .admin-mobile-client-chevron{
    color:#d8bd6a;
    font-size:26px;
    font-weight:400;
    line-height:1;
  }

  body[data-role="admin"][data-route="clients"] .admin-mobile-client-empty{
    padding:18px;
    border:1px solid rgba(214,184,90,.12);
    border-radius:16px;
    background:rgba(8,8,8,.72);
    color:var(--muted);
    text-align:center;
  }
}

@media(max-width:430px){
  body[data-role="admin"][data-route="clients"] .admin-mobile-client-row{
    grid-template-columns:84px minmax(0,1fr) auto;
    gap:11px;
    min-height:64px;
    padding:13px 14px;
  }

  body[data-role="admin"][data-route="clients"] .admin-mobile-client-name{
    font-size:14px;
  }
}

/* ===== Client mobile optimisation ===== */
.mobile-client-nav,.mobile-admin-nav{display:none}
.client-manage-details>summary{display:none}
.mobile-sticky-actions{position:relative}

@media(max-width:760px){
  body[data-role="client"],
  body[data-role="admin"]{
    padding-bottom:env(safe-area-inset-bottom);
  }

  body[data-role="client"] .shell,
  body[data-role="admin"] .shell{
    padding-bottom:calc(112px + env(safe-area-inset-bottom));
  }

  body[data-role="client"] .topbar,
  body[data-role="admin"] .topbar{
    padding-top:calc(12px + env(safe-area-inset-top));
  }

  body[data-role="client"] .topbar .nav,
  body[data-role="admin"] .topbar .nav{
    display:none;
  }

  body[data-role="client"] .brand,
  body[data-role="admin"] .brand{
    width:100%;
  }

  body[data-role="client"] .brand-copy,
  body[data-role="admin"] .brand-copy{
    min-width:0;
  }

  body[data-role="client"] .mobile-client-nav,
  body[data-role="admin"] .mobile-admin-nav{
    position:fixed;
    left:10px;
    right:10px;
    bottom:calc(8px + env(safe-area-inset-bottom));
    z-index:80;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:4px;
    padding:7px;
    border:1px solid rgba(214,184,90,.18);
    border-radius:18px;
    background:rgba(8,8,8,.94);
    box-shadow:0 18px 52px rgba(0,0,0,.58);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
  }

  .mobile-client-nav-item{
    position:relative;
    display:flex;
    min-width:0;
    min-height:52px;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:3px;
    padding:5px 4px;
    border:1px solid transparent;
    border-radius:12px;
    color:#9e978a!important;
    font-size:9.5px;
    font-weight:750;
    line-height:1.1;
    text-align:center;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
  }

  .mobile-client-nav-item.active{
    border-color:rgba(214,184,90,.24);
    background:rgba(214,184,90,.08);
    color:#efd47b!important;
  }

  .mobile-client-nav-icon{
    min-height:17px;
    color:inherit;
    font-size:17px;
    font-weight:700;
    line-height:1;
  }

  .mobile-client-nav-badge{
    position:absolute;
    top:3px;
    right:calc(50% - 22px);
    display:flex;
    min-width:17px;
    height:17px;
    align-items:center;
    justify-content:center;
    padding:0 4px;
    border-radius:999px;
    background:#d4af37;
    color:#130f06;
    font-size:8px;
    font-weight:900;
    box-shadow:0 3px 10px rgba(0,0,0,.45);
  }

  .mobile-client-more,
  .mobile-admin-more{
    position:relative;
    min-width:0;
  }

  .mobile-client-more>summary,
  .mobile-admin-more>summary{
    list-style:none;
    width:100%;
  }

  .mobile-client-more>summary::-webkit-details-marker,
  .mobile-admin-more>summary::-webkit-details-marker{display:none}

  .mobile-client-more-menu,
  .mobile-admin-more-menu{
    position:absolute;
    right:0;
    bottom:calc(100% + 12px);
    width:min(290px,calc(100vw - 28px));
    padding:8px;
    border:1px solid rgba(214,184,90,.20);
    border-radius:16px;
    background:rgba(10,10,10,.98);
    box-shadow:0 22px 58px rgba(0,0,0,.62);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
  }

  .mobile-client-more-menu a,
  .mobile-admin-more-menu a{
    display:flex;
    min-height:44px;
    align-items:center;
    padding:10px 12px;
    border-radius:11px;
    color:#e8e1d3!important;
    font-size:12px;
    font-weight:700;
  }

  .mobile-client-more-menu a:hover,
  .mobile-client-more-menu a:focus,
  .mobile-admin-more-menu a:hover,
  .mobile-admin-more-menu a:focus{
    background:rgba(214,184,90,.08);
    color:#f4dc8a!important;
  }

  .mobile-client-more-menu .mobile-client-signout,
  .mobile-client-more-menu .mobile-client-return-admin{
    margin-top:5px;
    border-top:1px solid rgba(255,255,255,.06);
    border-radius:0 0 11px 11px;
    color:#d9cfc0!important;
  }

  .mobile-client-more-menu .mobile-client-return-admin{
    color:#efd47b!important;
  }

  .mobile-admin-more-menu{
    width:min(320px,calc(100vw - 28px));
    max-height:min(70dvh,560px);
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
  }

  .mobile-client-more-menu{
    max-height:min(70dvh,500px);
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
  }

  .mobile-client-more-menu a,
  .mobile-admin-more-menu a{
    gap:10px;
    border-bottom:1px solid rgba(255,255,255,.05);
  }

  .mobile-client-more-menu a:last-child,
  .mobile-admin-more-menu a:last-child{
    border-bottom:0;
  }

  .mobile-client-more-icon,
  .mobile-admin-more-icon{
    display:grid;
    width:24px;
    height:24px;
    flex:0 0 24px;
    place-items:center;
    color:#e8cf79;
    font-size:15px;
    font-weight:800;
    line-height:1;
  }

  .mobile-client-more-label,
  .mobile-admin-more-label{
    min-width:0;
    flex:1;
  }

  .mobile-client-more-chevron,
  .mobile-admin-more-chevron{
    color:#9e9587;
    font-size:20px;
    line-height:1;
  }

  .mobile-admin-menu-badge{
    display:inline-flex;
    min-width:17px;
    height:17px;
    align-items:center;
    justify-content:center;
    margin-left:5px;
    padding:0 4px;
    border-radius:999px;
    background:#d4af37;
    color:#130f06;
    font-size:8px;
    font-weight:900;
    vertical-align:middle;
  }

  .mobile-admin-more-menu .mobile-admin-signout{
    margin-top:5px;
    border-top:1px solid rgba(214,184,90,.14);
    color:#d9cfc0!important;
  }

  body[data-role="client"] .mobile-card-table{
    overflow:visible;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }

  body[data-role="client"] .mobile-card-table table{
    display:block;
    min-width:0;
    width:100%;
  }

  body[data-role="client"] .mobile-card-table thead{
    display:none;
  }

  body[data-role="client"] .mobile-card-table tbody{
    display:grid;
    gap:10px;
    width:100%;
  }

  body[data-role="client"] .mobile-card-table tr{
    display:block;
    overflow:hidden;
    width:100%;
    border:1px solid rgba(255,255,255,.065);
    border-radius:15px;
    background:linear-gradient(180deg,rgba(16,16,16,.98),rgba(8,8,8,.99));
    box-shadow:0 10px 28px rgba(0,0,0,.18);
  }

  body[data-role="client"] .mobile-card-table td{
    display:grid;
    grid-template-columns:minmax(98px,38%) minmax(0,1fr);
    gap:10px;
    width:100%;
    padding:11px 13px;
    border-bottom:1px solid rgba(255,255,255,.05);
    font-size:12px;
    overflow-wrap:anywhere;
  }

  body[data-role="client"] .mobile-card-table td:last-child{
    border-bottom:0;
  }

  body[data-role="client"] .mobile-card-table td::before{
    content:attr(data-label);
    color:#9d8a50;
    font-size:8.5px;
    font-weight:850;
    letter-spacing:.10em;
    line-height:1.35;
    text-transform:uppercase;
  }

  body[data-role="client"] .mobile-card-table .mobile-table-empty-row td{
    display:block;
    padding:16px;
  }

  body[data-role="client"] .mobile-card-table .mobile-table-empty-row td::before{
    display:none;
  }

  body[data-role="client"] .mobile-card-table .actions,
  body[data-role="client"] .mobile-card-table .action-stack{
    width:100%;
    align-items:stretch;
  }

  body[data-role="client"] .mobile-card-table .actions .btn,
  body[data-role="client"] .mobile-card-table .action-stack .btn{
    flex:1;
  }

  .client-manage-details{
    margin-top:30px;
    border:1px solid rgba(214,184,90,.15);
    border-radius:17px;
    background:linear-gradient(180deg,rgba(14,14,14,.98),rgba(7,7,7,.99));
    box-shadow:0 14px 34px rgba(0,0,0,.20);
    overflow:hidden;
  }

  .client-manage-details>summary{
    display:flex;
    min-height:58px;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:15px 16px;
    list-style:none;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
  }

  .client-manage-details>summary::-webkit-details-marker{display:none}

  .client-manage-details>summary>span:first-child{
    display:flex;
    min-width:0;
    flex-direction:column;
    gap:3px;
  }

  .client-manage-details>summary strong{
    color:#ead79b;
    font-size:14px;
  }

  .client-manage-details>summary small{
    color:var(--muted);
    font-size:10px;
  }

  .client-manage-details[open]>summary{
    border-bottom:1px solid rgba(255,255,255,.055);
    background:rgba(214,184,90,.035);
  }

  .client-manage-details[open]>summary .cycle-chevron{
    transform:rotate(45deg);
  }

  .client-manage-details>.client-manage-batch-section{
    display:none;
  }

  .client-manage-details>.workflow-guide,
  .client-manage-details>.client-batch-management-grid,
  .client-manage-details>.client-batch-change-history{
    margin-left:12px;
    margin-right:12px;
  }

  .client-manage-details>.workflow-guide{
    margin-top:12px;
  }

  .client-manage-details>.client-batch-management-grid{
    margin-top:12px;
    margin-bottom:12px;
  }

  .client-manage-details>.client-batch-change-history{
    margin-bottom:12px;
  }

  .batch-cancellation-card{
    margin-top:8px;
    border-color:rgba(255,133,133,.20)!important;
    background:
      linear-gradient(180deg,rgba(45,14,14,.16),rgba(11,8,8,.98))!important;
  }

  body[data-role="client"].has-mobile-sticky-actions .shell{
    padding-bottom:calc(190px + env(safe-area-inset-bottom));
  }

  .mobile-sticky-actions{
    position:fixed;
    left:14px;
    right:14px;
    bottom:calc(80px + env(safe-area-inset-bottom));
    z-index:70;
    margin:0!important;
    padding:9px;
    border:1px solid rgba(214,184,90,.17);
    border-radius:14px;
    background:rgba(8,8,8,.95);
    box-shadow:0 12px 34px rgba(0,0,0,.48);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
  }

  .mobile-sticky-actions .btn{
    width:100%;
  }

  body[data-role="client"][data-route="client-messages"] .hero{
    margin-bottom:12px;
  }

  body[data-role="client"][data-route="client-messages"] .message-thread{
    min-height:42dvh;
    max-height:calc(100dvh - 300px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding:13px;
    border-radius:16px;
    overscroll-behavior:contain;
    scroll-behavior:smooth;
  }

  body[data-role="client"][data-route="client-messages"] .message-bubble{
    max-width:90%;
  }

  body[data-role="client"][data-route="client-messages"] .message-compose{
    position:sticky;
    bottom:calc(80px + env(safe-area-inset-bottom));
    z-index:26;
    padding:12px;
    border-radius:16px;
    background:rgba(10,10,10,.96);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
  }

  body[data-role="client"][data-route="client-messages"] .message-compose label{
    margin-bottom:6px;
  }

  body[data-role="client"][data-route="client-messages"] .message-compose textarea{
    min-height:78px;
    max-height:150px;
  }

  body[data-role="client"][data-route="client-messages"] .message-compose-foot{
    flex-direction:row;
    align-items:center;
    justify-content:flex-end;
    margin-top:8px;
  }

  body[data-role="client"][data-route="client-messages"] .message-compose-foot small{
    display:none;
  }

  body[data-role="client"][data-route="client-messages"] .message-compose-foot .btn{
    min-width:112px;
  }
}

@media(max-width:430px){
  body[data-role="client"] .mobile-client-nav,
  body[data-role="admin"] .mobile-admin-nav{
    left:7px;
    right:7px;
    bottom:calc(6px + env(safe-area-inset-bottom));
    padding:6px;
    border-radius:16px;
  }

  .mobile-client-nav-item{
    min-height:50px;
    font-size:9px;
  }

  body[data-role="client"] .mobile-card-table td{
    grid-template-columns:88px minmax(0,1fr);
    padding:10px 11px;
  }
}

@media(max-width:760px){
  body[data-theme="light"][data-role="client"] .mobile-client-nav,
  body[data-theme="light"][data-role="client"] .mobile-client-more-menu,
  body[data-theme="light"][data-role="client"] .mobile-sticky-actions,
  body[data-theme="light"][data-role="client"][data-route="client-messages"] .message-compose{
    background:rgba(255,253,248,.97);
    border-color:rgba(112,87,27,.18);
  }

  body[data-theme="light"][data-role="client"] .mobile-client-nav-item{color:#746b5d!important}
  body[data-theme="light"][data-role="client"] .mobile-client-nav-item.active{color:#8a6417!important;background:#fbf0c9}
  body[data-theme="light"][data-role="client"] .mobile-client-more-menu a{color:#2e281f!important}
  body[data-theme="light"][data-role="client"] .mobile-card-table tr{
    background:#fffdf8;
    border-color:rgba(112,87,27,.15);
  }
  body[data-theme="light"][data-role="client"] .mobile-card-table td{
    border-bottom-color:rgba(82,67,37,.09);
  }
  body[data-theme="light"][data-role="client"] .batch-cancellation-card{
    background:#fff9f8!important;
    border-color:rgba(164,55,55,.20)!important;
  }
  body[data-theme="light"][data-role="client"] .client-manage-details{
    background:#fffdf8;
    border-color:rgba(112,87,27,.17);
  }
  body[data-theme="light"][data-role="client"] .client-manage-details[open]>summary{
    background:#fbf5e7;
    border-bottom-color:rgba(82,67,37,.09);
  }
  body[data-theme="light"][data-role="client"] .client-manage-details>summary strong{
    color:#7d5c18;
  }
}
