/* =====================================================================
   BTSPL — Bhoomiputra Tech Solutions Pvt Ltd
   Customer Support Portal theme

   Layout: horizontal top navigation, full-width canvas (no sidebar).
   Identity: emerald + graphite, squared corners, Manrope type.
   ===================================================================== */

:root {
  --topbar-h: 62px;
  --navbar-h: 52px;

  /* Surfaces */
  --canvas: #eef1f0;
  --card: #ffffff;
  --line: #dfe5e3;
  --line-soft: #eaefed;

  /* Ink */
  --ink: #12211d;
  --ink-2: #566762;
  --ink-3: #8a9993;

  /* Brand — deep emerald ("bhoomi" / earth) */
  --brand: #0b6b4f;
  --brand-dark: #084f3b;
  --brand-light: #e6f2ee;
  --brand-mid: #0e8a66;

  /* Accents */
  --clay: #b4530f;
  --clay-light: #fbeee3;
  --gold: #a97a06;
  --gold-light: #fbf3dd;
  --red: #b3261e;
  --red-light: #fbeae9;
  --blue: #1f5b8f;
  --blue-light: #e8f0f7;
  --slate: #5a6b74;
  --slate-light: #eceff1;

  --radius: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(18, 33, 29, .06);
  --shadow: 0 6px 20px rgba(18, 33, 29, .10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 14.5px;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }

/* ================= Masthead (row 1) ================= */
.masthead {
  background: var(--brand);
  color: #fff;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 26px;
  position: sticky;
  top: 0;
  z-index: 1040;
}

.brand-lockup { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--brand);
  background: #fff;
  border-bottom: 3px solid var(--gold);
}

.brand-name {
  color: #fff; font-weight: 800; font-size: 19px;
  line-height: 1.05; letter-spacing: .02em;
}
.brand-sub {
  color: rgba(255, 255, 255, .72);
  font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  margin-top: 2px;
}

.masthead .spacer { flex: 1; }

.clock {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  padding: 6px 14px;
  font-weight: 600; font-size: 13px;
  color: #fff;
}

.icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1);
  display: grid; place-items: center;
  color: #fff;
  position: relative;
  cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, .2); }
.icon-btn .badge-dot {
  position: absolute; top: 7px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--brand);
}

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 5px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
.user-chip:hover { background: rgba(255, 255, 255, .2); }
.user-chip .avatar {
  width: 30px; height: 30px; border-radius: 4px;
  background: var(--gold); color: #2b1f00;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.user-chip .u-name { font-weight: 700; font-size: 13.5px; line-height: 1.1; max-width: 210px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .u-status { font-size: 11px; color: rgba(255, 255, 255, .75); font-weight: 600; }
.user-chip .u-status::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: #6ee7b7; margin-right: 5px;
}

/* ================= Primary nav (row 2) ================= */
.mainnav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  height: var(--navbar-h);
  display: flex; align-items: stretch;
  padding: 0 26px;
  gap: 4px;
  position: sticky;
  top: var(--topbar-h);
  z-index: 1035;
  overflow-x: auto;
  scrollbar-width: none;
}
.mainnav::-webkit-scrollbar { display: none; }

.mainnav a {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 0 18px;
  color: var(--ink-2);
  font-weight: 700; font-size: 14px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color .12s, background .12s;
}
.mainnav a i { font-size: 15px; color: var(--ink-3); }
.mainnav a:hover { color: var(--brand); background: var(--brand-light); }
.mainnav a:hover i { color: var(--brand); }
.mainnav a.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  background: var(--brand-light);
}
.mainnav a.active i { color: var(--brand); }

.mainnav .nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.help-strip {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12.5px; color: var(--ink-2); font-weight: 600;
}
.help-strip a { color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; }
.help-strip a:hover { color: var(--brand); background: none; }
.help-strip i { color: var(--brand); }
.help-strip .sep { width: 1px; height: 16px; background: var(--line); }

/* ================= Content ================= */
.content { min-height: calc(100vh - var(--topbar-h) - var(--navbar-h)); display: flex; flex-direction: column; }
.page { padding: 26px 30px 44px; flex: 1; max-width: 1520px; width: 100%; margin: 0 auto; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; margin-bottom: 20px; flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
}
.page-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 24px; font-weight: 800; margin: 0; letter-spacing: -.01em;
}
.page-title i {
  color: var(--brand); font-size: 20px;
  background: var(--brand-light);
  width: 38px; height: 38px; border-radius: var(--radius);
  display: grid; place-items: center;
}
.crumbs { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.crumbs a { color: var(--brand); }

/* ================= Cards ================= */
.card-x {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-x + .card-x { margin-top: 20px; }

.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 16px 20px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line-soft);
}
.card-head h2 {
  display: flex; align-items: center; gap: 10px;
  margin: 0; font-size: 16px; font-weight: 800; color: var(--ink);
  letter-spacing: -.01em;
}
.card-head h2 i { color: var(--brand); }
.card-body { padding: 20px; }

/* Welcome banner — flat bar, gold rule, no rounded pill */
.welcome {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px 26px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; flex-wrap: wrap;
}
.welcome h1 { margin: 0 0 5px; font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.welcome p { margin: 0; color: var(--ink-2); font-size: 14px; }
.org-pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--brand);
  color: var(--brand);
  background: var(--brand-light);
  border-radius: var(--radius);
  padding: 11px 20px;
  font-weight: 700; font-size: 14px;
}

.section-label {
  font-size: 11px; font-weight: 800; letter-spacing: .14em;
  color: var(--ink-3); text-transform: uppercase;
  margin: 26px 0 12px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
h3.section-title { font-size: 19px; font-weight: 800; margin: 0 0 14px; letter-spacing: -.01em; }

/* Subscription tiles — icon chip left, vertical rule */
.sub-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 18px;
  height: 100%;
  border-left: 4px solid var(--brand);
}
.sub-tile .ic {
  width: 52px; height: 52px; flex: 0 0 52px;
  border-radius: var(--radius); display: grid; place-items: center; font-size: 22px;
}
.sub-tile .t { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.sub-tile .s { color: var(--ink-2); font-size: 12.5px; }
.sub-tile .n { font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.sub-tile .manage { font-weight: 700; font-size: 12.5px; color: var(--brand); }

.ic-blue  { background: var(--blue-light);  color: var(--blue); }
.ic-teal  { background: var(--brand-light); color: var(--brand); }
.ic-amber { background: var(--gold-light);  color: var(--gold); }
.ic-green { background: var(--brand-light); color: var(--brand); }
.ic-red   { background: var(--red-light);   color: var(--red); }

/* Quick actions — horizontal rows, not centred tiles */
.qa {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px; text-align: left;
  display: flex; align-items: center; gap: 14px;
  color: var(--ink);
  transition: border-color .12s, box-shadow .12s;
  height: 100%;
}
.qa:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.qa .ic {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: var(--radius); display: grid; place-items: center; font-size: 19px;
}
.qa .lbl { font-weight: 700; font-size: 14.5px; }
.qa::after {
  content: "\F285"; font-family: "bootstrap-icons";
  margin-left: auto; color: var(--ink-3); font-size: 14px;
}

/* Panels */
.panel {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--brand);
  padding: 20px 22px; height: 100%;
  display: flex; flex-direction: column;
}
.panel.amber { border-left-color: var(--gold); }
.panel h4 {
  display: flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 800; margin: 0 0 14px;
  text-transform: uppercase; letter-spacing: .06em;
}
.big-amount { font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pill-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dotted var(--line);
}
.pill-row:last-child { border-bottom: none; }
.mini-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--ink-2);
}
.mini-pill .d { width: 8px; height: 8px; border-radius: 2px; }

.btn-pay {
  background: var(--brand); border: none; color: #fff;
  border-radius: var(--radius); padding: 11px 24px; font-weight: 700;
}
.btn-pay:hover { background: var(--brand-dark); color: #fff; }

/* Add-on tiles */
.addon {
  border-radius: var(--radius-lg); padding: 18px 20px;
  display: flex; align-items: center; gap: 15px;
  height: 100%; color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--brand);
}
.addon .ic { width: 42px; height: 42px; flex: 0 0 42px; border-radius: var(--radius); display: grid; place-items: center; color: #fff; font-size: 18px; }
.addon .t { font-weight: 800; font-size: 15px; }
.addon .s { font-size: 12.5px; color: var(--ink-2); }
.addon .go { margin-left: auto; font-weight: 700; font-size: 12.5px; white-space: nowrap; color: var(--brand); }
.addon-blue  { border-bottom-color: var(--blue); }  .addon-blue .ic  { background: var(--blue); }
.addon-amber { border-bottom-color: var(--gold); }  .addon-amber .ic { background: var(--gold); }
.addon-green { border-bottom-color: var(--brand); } .addon-green .ic { background: var(--brand); }

/* ================= Stat cards — white with left accent ================= */
.stat {
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  position: relative; overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--slate);
  height: 100%;
}
.stat .k {
  font-size: 10.5px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 6px; color: var(--ink-3);
}
.stat .v { font-size: 30px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12px; margin-top: 4px; color: var(--ink-2); }
.stat .bgic {
  position: absolute; right: 14px; top: 16px;
  font-size: 22px; opacity: .28;
}
.stat-slate  { border-left-color: var(--slate); }  .stat-slate .v,  .stat-slate .bgic  { color: var(--slate); }
.stat-amber  { border-left-color: var(--clay); }   .stat-amber .v,  .stat-amber .bgic  { color: var(--clay); }
.stat-green  { border-left-color: var(--brand); }  .stat-green .v,  .stat-green .bgic  { color: var(--brand); }
.stat-yellow { border-left-color: var(--gold); }   .stat-yellow .v, .stat-yellow .bgic { color: var(--gold); }
.stat-red    { border-left-color: var(--red); }    .stat-red .v,    .stat-red .bgic    { color: var(--red); }

/* ================= Tabs — segmented control ================= */
.tabs-x {
  display: flex; gap: 6px;
  padding: 14px 20px 0;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.tabs-x a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  color: var(--ink-2); font-weight: 700; font-size: 13.5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf9;
}
.tabs-x a:hover { color: var(--brand); border-color: var(--brand); }
.tabs-x a.active {
  color: #fff; background: var(--brand); border-color: var(--brand);
}
.tabs-x a.active i { color: #fff !important; }
.tabs-x .cnt {
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 3px; background: var(--slate-light); color: var(--ink-2);
  font-size: 11px; font-weight: 800;
  display: inline-grid; place-items: center;
}
.tabs-x a.active .cnt { background: rgba(255, 255, 255, .25); color: #fff; }
.tabs-x .cnt.blue  { background: var(--blue-light);  color: var(--blue); }
.tabs-x .cnt.green { background: var(--brand-light); color: var(--brand); }
.tabs-x .cnt.red   { background: var(--red-light);   color: var(--red); }
.tabs-x .cnt.slate { background: var(--slate-light); color: var(--ink-2); }

/* ================= Status pills — squared, left rule ================= */
.pill {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 3px;
  font-size: 11.5px; font-weight: 800; white-space: nowrap;
  text-transform: uppercase; letter-spacing: .04em;
  border-left: 3px solid currentColor;
}
.st-green { background: var(--brand-light); color: var(--brand); }
.st-amber { background: var(--gold-light);  color: var(--gold); }
.st-red   { background: var(--red-light);   color: var(--red); }
.st-blue  { background: var(--blue-light);  color: var(--blue); }
.st-cyan  { background: #e4f1f4;            color: #10697d; }
.st-slate { background: var(--slate-light); color: var(--ink-2); }

/* ================= Tables ================= */
table.dt-x { width: 100% !important; border-collapse: separate; border-spacing: 0; }
table.dt-x thead th {
  background: #f4f7f6;
  border-top: 1px solid var(--line);
  border-bottom: 2px solid var(--line);
  font-size: 11.5px; font-weight: 800; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: .07em;
  padding: 11px 14px !important;
  vertical-align: middle;
}
table.dt-x tbody td {
  padding: 13px 14px !important;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  font-size: 13.5px;
}
table.dt-x tbody tr:nth-child(even) td { background: #fafcfb; }
table.dt-x tbody tr:hover td { background: var(--brand-light); }

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 7px 12px; outline: none;
}
.dataTables_wrapper .dataTables_filter input:focus { border-color: var(--brand); }
.dataTables_wrapper .dataTables_info { color: var(--ink-2); padding-top: 16px !important; font-size: 13px; }
.dataTables_wrapper .dataTables_paginate { padding-top: 12px !important; }
.dataTables_wrapper .paginate_button { border-radius: var(--radius) !important; margin: 0 2px; }
.dataTables_wrapper .paginate_button.current {
  background: var(--brand) !important; border-color: var(--brand) !important; color: #fff !important;
}

.btn-view {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--brand); color: var(--brand); background: #fff;
  border-radius: var(--radius); padding: 5px 13px;
  font-size: 12.5px; font-weight: 700;
}
.btn-view:hover { background: var(--brand); color: #fff; }

.btn-brand {
  background: var(--brand); color: #fff; border: none;
  border-radius: var(--radius); padding: 9px 20px;
  font-weight: 700; font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-brand:hover { background: var(--brand-dark); color: #fff; }

.empty-row { text-align: center; color: var(--ink-2); padding: 34px 0 !important; }

/* ================= Provisioning timeline — left rail, square nodes ========= */
.tl { position: relative; padding-left: 2px; }
.tl-item { display: flex; gap: 18px; position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 4px; }
.tl-when {
  width: 86px; flex: 0 0 86px; text-align: right;
  font-size: 12.5px; font-weight: 700; color: var(--ink);
  line-height: 1.35;
}
.tl-when small { display: block; color: var(--ink-3); font-weight: 600; font-size: 11px; }
.tl-rail { position: relative; width: 14px; flex: 0 0 14px; }
.tl-dot {
  width: 12px; height: 12px; border-radius: 2px;
  background: var(--brand); margin: 4px auto 0;
  position: relative; z-index: 2;
}
.tl-item.pending .tl-dot { background: #fff; border: 2px solid var(--ink-3); }
.tl-item:not(:last-child) .tl-rail::after {
  content: ""; position: absolute;
  left: 50%; top: 18px; bottom: -22px;
  width: 2px; transform: translateX(-50%);
  background: var(--brand);
}
.tl-item.pending:not(:last-child) .tl-rail::after {
  background: transparent; border-left: 2px dashed var(--line);
}
.tl-body h5 {
  display: flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 800; margin: 0 0 3px;
}
.tl-item.pending .tl-body h5 { color: var(--ink-3); }
.tl-body p { margin: 0 0 7px; color: var(--ink-2); font-size: 12.5px; }

/* Order detail modal */
.od-left { background: #f7faf9; border-right: 1px solid var(--line); padding: 22px 24px; }
.od-right { padding: 22px 26px; background: #fff; }
.od-k {
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px;
}
.od-v { font-size: 15.5px; font-weight: 800; margin-bottom: 16px; }
.od-v.sm { font-size: 13.5px; font-weight: 600; line-height: 1.5; }

.progress-x { height: 6px; border-radius: 2px; background: var(--line); overflow: hidden; }
.progress-x > i { display: block; height: 100%; background: var(--brand); }

/* ================= Wizard ================= */
.wiz-steps { list-style: none; margin: 0 0 20px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.wiz-steps li {
  display: flex; align-items: center; gap: 8px; color: var(--ink-3);
  font-weight: 700; font-size: 13px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 7px 14px; background: #f7faf9;
}
.wiz-steps li .n {
  width: 22px; height: 22px; border-radius: 3px;
  background: var(--slate-light); color: var(--ink-2);
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.wiz-steps li.active { color: var(--brand); border-color: var(--brand); background: var(--brand-light); }
.wiz-steps li.active .n { background: var(--brand); color: #fff; }
.wiz-steps li.done .n { background: var(--brand-mid); color: #fff; }

.choice {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; cursor: pointer; margin-bottom: 10px;
  transition: border-color .12s, background .12s;
  background: #fff;
}
.choice:hover { border-color: var(--brand); }
.choice.sel { border-color: var(--brand); background: var(--brand-light); border-left: 4px solid var(--brand); }
.choice .t { font-weight: 800; font-size: 14px; }
.choice .s { font-size: 12.5px; color: var(--ink-2); }

.form-label { font-weight: 700; font-size: 12.5px; margin-bottom: 5px; color: var(--ink-2); }
.form-label .req { color: var(--red); }
.form-control, .form-select {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 9px 12px; font-size: 14px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 107, 79, .12);
}

.review-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.review-row .k { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.review-row .v { font-weight: 700; font-size: 13px; text-align: right; }

/* ================= Login ================= */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--canvas); }
.login-art {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 60%, #06382a 100%);
  color: #fff; padding: 52px 58px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.login-art::after {
  content: ""; position: absolute; right: -80px; bottom: -80px;
  width: 320px; height: 320px; border-radius: 8px;
  background: rgba(255, 255, 255, .04); transform: rotate(24deg);
}
.login-art h2 { font-size: 33px; font-weight: 800; line-height: 1.18; margin: 26px 0 14px; letter-spacing: -.02em; }
.login-art p { color: rgba(255, 255, 255, .8); font-size: 15px; max-width: 460px; }
.login-feat { display: flex; align-items: center; gap: 13px; margin-top: 14px; color: rgba(255,255,255,.92); font-weight: 600; font-size: 14px; }
.login-feat .ic {
  width: 34px; height: 34px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .12); display: grid; place-items: center;
}
.login-form { display: grid; place-items: center; padding: 40px; }
.login-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow); padding: 36px 38px; width: 100%; max-width: 430px;
}

/* ================= Notifications ================= */
.notif-menu { width: 340px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.notif-menu .hd { padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; }
.notif-item { display: flex; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: #f7faf9; color: var(--ink); }
.notif-item.unread { background: var(--brand-light); }
.notif-item .ic { width: 32px; height: 32px; flex: 0 0 32px; border-radius: var(--radius); background: var(--brand-light); color: var(--brand); display: grid; place-items: center; }
.notif-item .t { font-weight: 800; font-size: 13px; }
.notif-item .s { font-size: 12.5px; color: var(--ink-2); }
.notif-item .w { font-size: 11px; color: var(--ink-3); margin-top: 3px; }

.dropdown-menu { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* ================= Footer ================= */
.site-footer {
  background: #12211d; color: rgba(255, 255, 255, .62);
  padding: 22px 30px; font-size: 12.5px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.site-footer b { color: #fff; }
.site-footer a { color: rgba(255, 255, 255, .82); font-weight: 600; }
.site-footer a:hover { color: #fff; }
.site-footer .fcontact { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-footer .fcontact span { display: inline-flex; align-items: center; gap: 7px; }
.site-footer i { color: var(--gold); }

/* =====================================================================
   BACK OFFICE (staff)
   Deliberately graphite rather than emerald, so staff can tell at a glance
   they are not looking at the customer-facing portal.
   ===================================================================== */
body.admin { background: #e9ecec; }

.adm-bar {
  background: #12211d;
  color: #fff;
  height: 56px;
  display: flex; align-items: center; gap: 16px;
  padding: 0 22px;
  position: sticky; top: 0; z-index: 1040;
  border-bottom: 3px solid var(--gold);
}
.adm-bar .mark {
  width: 34px; height: 34px; border-radius: 4px;
  background: var(--gold); color: #2b1f00;
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
}
.adm-bar .ttl { font-weight: 800; font-size: 16px; letter-spacing: .01em; }
.adm-bar .tag {
  font-size: 10px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold);
}
.adm-bar .spacer { flex: 1; }
.adm-bar .who { font-size: 12.5px; color: rgba(255,255,255,.72); font-weight: 600; }
.adm-bar a.lnk {
  color: rgba(255,255,255,.85); font-size: 12.5px; font-weight: 700;
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius);
  padding: 6px 12px;
}
.adm-bar a.lnk:hover { background: rgba(255,255,255,.12); color: #fff; }
.adm-bar a.out { color: #ffb4ad; border-color: rgba(255,180,173,.35); }

.adm-nav {
  background: #1d302a;
  display: flex; align-items: stretch;
  padding: 0 22px; gap: 2px;
  position: sticky; top: 56px; z-index: 1035;
  overflow-x: auto; scrollbar-width: none;
}
.adm-nav::-webkit-scrollbar { display: none; }
.adm-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  color: rgba(255,255,255,.68);
  font-weight: 700; font-size: 13.5px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.adm-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.adm-nav a.active { color: #fff; border-bottom-color: var(--gold); background: rgba(255,255,255,.08); }

.adm-page { padding: 24px 22px 44px; max-width: 1600px; margin: 0 auto; }
.adm-head { display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.adm-head h1 { font-size: 21px; font-weight: 800; margin: 0; letter-spacing: -.01em; }

/* ================= Responsive ================= */
.nav-toggle { display: none; }

@media (max-width: 992px) {
  .adm-bar { padding: 0 12px; gap: 10px; }
  .adm-bar .who, .adm-bar .tag { display: none; }
  .adm-nav { padding: 0 8px; }
  .adm-page { padding: 16px 12px 36px; }
}

@media (max-width: 1200px) {
  .help-strip { display: none; }
}

@media (max-width: 1100px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { display: none; }
}

@media (max-width: 992px) {
  .masthead { padding: 0 14px; gap: 10px; }
  .clock { display: none; }
  .user-chip .u-name, .user-chip .u-status { display: none; }
  .brand-sub { display: none; }
  .mainnav { padding: 0 10px; }
  .mainnav a { padding: 0 13px; font-size: 13px; }
  .page { padding: 18px 14px 36px; }
  .welcome h1 { font-size: 21px; }
  .page-title { font-size: 20px; }
  .od-left { border-right: none; border-bottom: 1px solid var(--line); }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media print {
  .masthead, .mainnav, .site-footer, .btn-brand, .tabs-x,
  .dataTables_filter, .dataTables_length, .dataTables_paginate { display: none !important; }
  .card-x { border: none; box-shadow: none; }
  body { background: #fff; }
}
