/* =========================================================================
   VARIABLES
   ========================================================================= */
:root {
  --olive: #7F8F4A;
  --olive-light: #A3AD70;
  --olive-soft: #EDEFE2;

  --accent: #E8753D;
  --accent-soft: #FBEAE0;

  --yellow: #F5D547;
  --yellow-light: #F9E77A;
  --yellow-soft: #FFF6C7;

  --beige: #F7F3EA;
  --white: #FFFFFF;

  --black: #1F211C;
  --black-soft: #292B25;

  --ink: #2E2E2E;
  --muted: #7A7A72;
  --line: #E7E3D7;

  --radius: 14px;

  --shadow: 0 2px 10px rgba(31, 33, 28, .06);
  --shadow-lg: 0 8px 30px rgba(31, 33, 28, .08);

  --sidebar-w: 260px;
  --sidebar-w-collapsed: 72px;
  --sidebar-transition: 0.28s cubic-bezier(.4, 0, .2, 1);
}

/* =========================================================================
   RESET
   ========================================================================= */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--beige);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea { font-family: inherit; font-size: 14px; }

/* =========================================================================
   LOGO
   ========================================================================= */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--olive);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--black);
  overflow: hidden;
}

.logo-mark svg { width: 24px; height: 24px; }

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-text b { font-size: 17px; font-weight: 700; color: var(--ink); }
.logo-text b span { color: var(--accent); }
.logo-text small {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* =========================================================================
   LOGO ARRIÈRE-PLAN GÉANT (opacité 30%)
   ========================================================================= */
.login-left::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 720px;
  aspect-ratio: 1 / 1;
  background-image: url("assets/logo2.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

/* On garde les halos décoratifs existants via un pseudo-élément séparé */
.login-left::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -150px;
  top: -150px;
  background: var(--olive);
  opacity: .07;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Le contenu reste au-dessus */
.login-left > * { position: relative; z-index: 1; }

/* =========================================================================
   BOUTONS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: .15s;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary { background: var(--accent); color: #fff; border: 1px solid var(--black); }
.btn-primary:hover { background: #d5642f; }

.btn-secondary { background: var(--olive); color: #fff; border: 1px solid var(--black); }
.btn-secondary:hover { background: #6d7c3f; }

.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--beige); }

.btn-soft { background: var(--olive-soft); color: var(--olive); border: 1px solid var(--olive-light); }
.btn-soft:hover { background: #e2e6cf; }

.btn-yellow { background: var(--yellow); color: var(--black); border: 1px solid var(--black); }
.btn-yellow:hover { background: #E8C82F; }

.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }

/* =========================================================================
   CARTES
   ========================================================================= */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.card-pad { padding: 20px; }

/* =========================================================================
   LOGIN
   ========================================================================= */
.login-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}

.login-left {
  background:
    radial-gradient(circle at 12% 18%, rgba(163, 173, 112, .34) 0%, transparent 32%),
    radial-gradient(circle at 85% 78%, rgba(127, 143, 74, .20) 0%, transparent 38%),
    linear-gradient(145deg, #F4F1E5 0%, #E5E9D2 48%, #D9E0BD 100%);
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-right: 2px solid var(--black);
}

.login-left > * { position: relative; z-index: 1; }
.login-left .brand { margin-bottom: 48px; }

.login-hero h1 {
  font-size: 36px;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--black-soft);
}

.login-hero h1 em {
  font-style: normal;
  color: var(--olive);
}

.login-hero h1::after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  margin-top: 14px;
  background: var(--yellow);
  border: 1px solid var(--black);
  border-radius: 4px;
}

.login-hero .lead {
  font-size: 16px;
  color: #41463A;
  max-width: 460px;
  margin-bottom: 14px;
  font-weight: 500;
}

.login-hero .desc {
  font-size: 14px;
  color: #69705A;
  max-width: 460px;
}

.login-illus {
  margin-top: 36px;
  max-width: 520px;
  filter: drop-shadow(0 10px 22px rgba(75, 88, 40, .10));
}

.login-foot {
  font-size: 13px;
  color: #687052;
  letter-spacing: .03em;
  margin-top: 36px;
}

.login-right {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border-left: 1px solid rgba(31, 33, 28, .05);
}

.login-card { width: 100%; max-width: 400px; }
.login-card h2 { font-size: 22px; margin-bottom: 6px; }
.login-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 28px; }

/* =========================================================================
   CHAMPS
   ========================================================================= */
.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #4a4a44;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--beige);
  transition: .15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--olive-light);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(163, 173, 112, .20);
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 13px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4a4a44;
}

.check input { accent-color: var(--yellow); }
.link { color: var(--accent); font-weight: 600; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  margin: 18px 0;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* =========================================================================
   RESPONSIVE LOGIN
   ========================================================================= */
@media (max-width: 900px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-left {
    min-height: auto;
    padding: 38px 32px;
    border-right: none;
    border-bottom: 2px solid var(--black);
  }
  .login-illus { max-width: 460px; }
  .login-right { padding: 40px 32px; }
}

@media (max-width: 600px) {
  .login-left { padding: 32px 22px; }
  .login-right { padding: 32px 22px; }
  .login-hero h1 { font-size: 30px; }
  .login-hero .lead { font-size: 15px; }
  .login-illus { margin-top: 28px; }
}

/* =========================================================================
   APP LAYOUT
   ========================================================================= */
.app {
  display: block;
  min-height: 100vh;
  position: relative;
}

/* =========================================================================
   SIDEBAR
   ========================================================================= */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-w);
  padding: 22px 16px;
  background: var(--olive);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1000;
  transition:
    width var(--sidebar-transition),
    padding var(--sidebar-transition),
    transform var(--sidebar-transition);
  border-right: 2px solid var(--black);
}

.sidebar .logo-text b { color: #fff; }
.sidebar .logo-text b span { color: var(--yellow); opacity: 1; }
.sidebar .logo-text small { color: rgba(255, 255, 255, .7); }
.sidebar .logo-mark {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(31, 33, 28, .75);
}

.side-sep {
  height: 1px;
  background: rgba(31, 33, 28, .35);
  margin: 16px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  font-weight: 500;
  transition: .15s;
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-item:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.nav-item.active {
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  border-color: var(--black);
}

.nav-item .ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.side-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
}

.side-cta {
  background: rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(31, 33, 28, .45);
}

.side-cta .t { font-size: 12px; color: rgba(255, 255, 255, .75); margin-bottom: 2px; }
.side-cta .v { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.side-cta .btn {
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  width: 100%;
  padding: 9px;
  border: 1px solid var(--black);
}

/* =========================================================================
   TOGGLE SIDEBAR (desktop)
   ========================================================================= */
.sidebar-toggle {
  position: absolute;
  top: 18px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  border: 2px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  transition: transform .2s, background .15s, right var(--sidebar-transition);
}

.sidebar-toggle:hover {
  background: var(--yellow-light);
  transform: scale(1.08);
}

.sidebar-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform var(--sidebar-transition);
}

.sidebar .logo { padding-right: 36px; transition: padding var(--sidebar-transition); }

/* =========================================================================
   SIDEBAR REPLIÉE
   ========================================================================= */
.app.is-collapsed .sidebar {
  width: var(--sidebar-w-collapsed);
  padding: 22px 10px;
}

.app.is-collapsed .logo-text,
.app.is-collapsed .nav-label {
  display: none;
}

.app.is-collapsed .side-cta { display: none; }

.app.is-collapsed .nav-item {
  justify-content: center;
  padding: 9px;
  gap: 0;
}

.app.is-collapsed .logo { justify-content: center; gap: 0; padding-right: 0; }
.app.is-collapsed .side-bottom { align-items: center; }

.app.is-collapsed .sidebar-toggle { right: 22px; }
.app.is-collapsed .sidebar-toggle svg { transform: rotate(180deg); }

/* =========================================================================
   MAIN
   ========================================================================= */
.main {
  margin-left: var(--sidebar-w);
  transition: margin-left var(--sidebar-transition);
  padding: 32px 40px;
  max-width: 1240px;
  width: auto;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

.app.is-collapsed .main { margin-left: var(--sidebar-w-collapsed); }

/* =========================================================================
   HAMBURGER (mobile)
   ========================================================================= */
.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
  transition: .15s;
  margin-bottom: 16px;
}

.hamburger:hover { background: var(--yellow-soft); border-color: var(--yellow); }

.hamburger svg {
  width: 20px;
  height: 20px;
  stroke: var(--ink);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

/* =========================================================================
   OVERLAY (mobile)
   ========================================================================= */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(31, 33, 28, .45);
  backdrop-filter: blur(2px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.sidebar-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* =========================================================================
   TOPBAR
   ========================================================================= */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar .hello h1 { font-size: 24px; margin-bottom: 4px; }
.topbar .hello p { color: var(--muted); font-size: 14px; }

.top-actions { display: flex; align-items: center; gap: 10px; }

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--yellow-light);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid var(--black);
}

/* =========================================================================
   GRILLES
   ========================================================================= */
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* =========================================================================
   TOOL CARD
   ========================================================================= */
.tool-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: .15s;
  cursor: pointer;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--yellow);
}

.tool-ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--yellow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-size: 20px;
  border: 1px solid rgba(31, 33, 28, .18);
}

.tool-card h3 { font-size: 15px; }
.tool-card p { color: var(--muted); font-size: 13px; }
.tool-card .price { margin-top: auto; color: var(--accent); font-weight: 700; font-size: 14px; }

/* =========================================================================
   SECTION HEAD
   ========================================================================= */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 34px 0 16px;
}

.section-head h2 { font-size: 18px; }

/* =========================================================================
   TABLE
   ========================================================================= */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }

.tbl th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.tbl td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--beige); }
.tbl .actions { display: flex; gap: 8px; }

/* =========================================================================
   BADGES
   ========================================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-ok { background: #E9F0DD; color: #5a6b2c; }
.badge-wait { background: var(--yellow-soft); color: #806600; border: 1px solid rgba(245, 213, 71, .55); }
.badge-run { background: #E6EEF7; color: #3a6ea5; }
.badge-err { background: #F7E0E0; color: #b23b3b; }

/* =========================================================================
   DROPZONE
   ========================================================================= */
.dropzone {
  border: 2px dashed var(--olive-light);
  border-radius: var(--radius);
  background: var(--white);
  padding: 60px 24px;
  text-align: center;
  transition: .15s;
  cursor: pointer;
}

.dropzone:hover { background: var(--yellow-soft); border-color: var(--yellow); }

.dropzone .dz-ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--yellow-soft);
  color: var(--black);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--yellow);
}

.dropzone h3 { margin-bottom: 6px; }
.dropzone p { color: var(--muted); font-size: 13px; }

.formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.chip {
  background: var(--beige);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  color: #4a4a44;
  font-weight: 500;
}

/* =========================================================================
   MAP
   ========================================================================= */
.map-box {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--black);
  background:
    radial-gradient(circle at 30% 40%, #dbe3c3 0%, transparent 45%),
    radial-gradient(circle at 70% 60%, #F8E98D 0%, transparent 40%),
    repeating-linear-gradient(45deg, #eef0e4 0 12px, #e7ead6 12px 24px);
  position: relative;
  min-height: 340px;
}

.map-box .overlay-poly { position: absolute; inset: 0; width: 100%; height: 100%; }

.map-legend {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-size: 12px;
  border: 1px solid var(--black);
}

.map-legend .row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.map-legend .row:last-child { margin-bottom: 0; }

.legend-line { width: 24px; height: 3px; border-radius: 2px; background: var(--accent); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--black); }

.map-scale {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--muted);
  box-shadow: var(--shadow);
  border: 1px solid var(--black);
}

/* =========================================================================
   SPLIT
   ========================================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } }

/* =========================================================================
   PRICE BAR
   ========================================================================= */
.price-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(90deg, var(--accent-soft), var(--yellow-soft));
  border-radius: 12px;
  margin: 18px 0;
  border: 1px solid rgba(31, 33, 28, .15);
}

.price-bar .lbl { font-size: 13px; color: #8a4a22; font-weight: 600; }
.price-bar .val { font-size: 20px; font-weight: 700; color: var(--accent); }

/* =========================================================================
   CHART
   ========================================================================= */
.chart-box {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: var(--shadow);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 700px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

.stat {
  background: var(--beige);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  border-top: 3px solid var(--yellow);
}

.stat .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat .v { font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 4px; }

/* =========================================================================
   PRICING
   ========================================================================= */
.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-card.featured { border: 2px solid var(--yellow); position: relative; }
.pricing-card.featured::before {
  content: "Populaire";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: .04em;
  border: 1px solid var(--black);
}

.pricing-card .tier { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.pricing-card .amount { font-size: 32px; font-weight: 700; color: var(--ink); }
.pricing-card .amount span { font-size: 14px; font-weight: 500; color: var(--muted); }
.pricing-card ul { list-style: none; padding: 0; margin: 0; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.pricing-card ul li { font-size: 13px; color: #4a4a44; display: flex; gap: 8px; align-items: flex-start; }
.pricing-card ul li::before { content: "✓"; color: var(--olive); font-weight: 700; }

/* =========================================================================
   PAY BOX
   ========================================================================= */
.pay-box {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 24px;
  box-shadow: var(--shadow);
}

.pay-number {
  background: var(--yellow-soft);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  margin: 16px 0;
  border: 1px solid rgba(245, 213, 71, .7);
}

.pay-number .lbl { font-size: 12px; color: #806600; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.pay-number .num { font-size: 24px; font-weight: 700; color: var(--black); margin-top: 6px; letter-spacing: .02em; }
.pay-number .op { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* =========================================================================
   STEPS
   ========================================================================= */
.steps { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }

.step { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; }

.step .n {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--olive);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--black);
}

.step.done .n { background: var(--yellow); color: var(--black); }
.step .txt strong { display: block; color: var(--ink); }
.step .txt span { color: var(--muted); font-size: 12px; }

/* =========================================================================
   MISC
   ========================================================================= */
.muted { color: var(--muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.items-center { align-items: center; }
.between { justify-content: space-between; }
.hidden { display: none !important; }

/* =========================================================================
   SCROLLBAR SIDEBAR
   ========================================================================= */
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .25); border-radius: 10px; }

/* =========================================================================
   FOCUS
   ========================================================================= */
.sidebar-toggle:focus-visible,
.hamburger:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* =========================================================================
   RESPONSIVE MOBILE
   ========================================================================= */
@media (max-width: 768px) {
  .sidebar {
    width: var(--sidebar-w) !important;
    padding: 22px 16px !important;
    transform: translateX(-100%);
    z-index: 9999;
  }

  .sidebar.is-open {
    transform: translateX(0);
    box-shadow: 8px 0 30px rgba(0, 0, 0, .18);
  }

  .app.is-collapsed .sidebar {
    width: var(--sidebar-w) !important;
    padding: 22px 16px !important;
  }

  .app.is-collapsed .logo-text,
  .app.is-collapsed .nav-label,
  .app.is-collapsed .side-cta {
    display: block;
  }

  .app.is-collapsed .nav-item {
    justify-content: flex-start;
    padding: 9px 12px;
    gap: 10px;
  }

  .app.is-collapsed .logo {
    justify-content: flex-start;
    gap: 10px;
  }

  .main,
  .app.is-collapsed .main {
    margin-left: 0 !important;
    padding: 24px 18px;
  }

  .sidebar-toggle { display: none; }
  .hamburger { display: flex; }
  .sidebar-overlay { display: block; }
}