:root {
  --sage:        #7A9E87;
  --sage-light:  #A8C5AF;
  --sage-dark:   #4F7A5E;
  --sage-pale:   #EAF2EC;
  --sage-mid:    #C5DBC8;
  --gold:        #C9843A;
  --gold-light:  #E8A85F;
  --gold-pale:   #FBF1E6;
  --mauve:       #9B6B8A;
  --mauve-light: #C49AB5;
  --mauve-pale:  #F0EDF8;
  --cream:       #FAF8F4;
  --dark:        #1C2420;
  --dark-mid:    #2A3830;
  --mid:         #3D4F45;
  --text:        #2D3D35;
  --text-light:  #6B7D72;
  --border:      #D8E8DA;
  --white:       #FFFFFF;

  --success:     #4F7A5E;
  --success-bg:  #EAF2EC;
  --danger:      #B85450;
  --danger-bg:   #FAEAEA;
  --warning:     #C9843A;
  --warning-bg:  #FBF1E6;
  --info:        #4F6A8A;
  --info-bg:     #E8EFF8;

  /* Admin shell — DARK header + DARK sidebar (authoritative, data-dense
     feel — distinct from Seller Dashboard's light shell) */
  --hdr-bg:        #1C2420;
  --hdr-border:    rgba(255,255,255,.07);
  --hdr-text:      #F3F6F4;
  --hdr-text-dim:  #8FA599;
  --hdr-surface:   rgba(255,255,255,.06);
  --sb-bg:         #202B25;
  --sb-border:     rgba(255,255,255,.06);
  --sb-text:       #B9C7BE;
  --sb-text-dim:   #6E8378;
  --sb-hover-bg:   rgba(255,255,255,.05);
  --sb-active-bg:  rgba(122,158,135,.16);

  --sidebar-w:   224px;
  --header-h:    60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: 'Poppins', sans-serif; background: var(--cream); color: var(--text); font-size: 13.5px; line-height: 1.55; }
h1, h2, h3, h4, h5, h6, strong, b, button, input, select, textarea { font-family: 'Poppins', sans-serif; }
a { text-decoration: none; color: inherit; }
button { font-family: 'Poppins', sans-serif; cursor: pointer; }
ul { list-style: none; }

/* ───────────────────────────
   THEME-CONFLICT RESET
   Scoped to #hel-ad-app only. The active WordPress theme's own
   global form/button CSS (very common — many themes force
   width:100% / display:block on every input, select, button on
   the site) can bleed into this shortcode-rendered dashboard and
   break its layout. This neutralizes exactly that, without
   touching anything outside the dashboard.
─────────────────────────── */
#hel-ad-app input, #hel-ad-app select, #hel-ad-app textarea, #hel-ad-app button {
  width: auto; max-width: none; display: inline-block; box-shadow: none;
  background-image: none; font-family: 'Poppins', sans-serif; line-height: normal;
}
#hel-ad-app svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }
#hel-ad-app ul, #hel-ad-app ol { list-style: none; margin: 0; padding: 0; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--sage-mid); border-radius: 4px; }

/* ───────────────────────────
   AUTH (Login only)
─────────────────────────── */
.auth-wrap { min-height: 100vh; display: none; background: var(--cream); }
.auth-wrap.active { display: flex; }
.auth-panel { flex: 1.05; display: none; position: relative; overflow: hidden; background: var(--dark); color: #fff; padding: 56px; }
@media (min-width: 920px) { .auth-panel { display: flex; flex-direction: column; } }
.auth-panel::before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(circle at 18% 22%, rgba(122,158,135,.25), transparent 45%),
                     radial-gradient(circle at 82% 78%, rgba(201,132,58,.16), transparent 42%);
}
.auth-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.auth-brand .mark { width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--sage); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.auth-brand .mark svg { width: 22px; height: 22px; }
.auth-brand strong { display: block; font-size: 16px; font-weight: 700; color: #fff; }
.auth-brand span { display: block; font-size: 10px; letter-spacing: .18em; opacity: .55; margin-top: 1px; }

.auth-pitch { margin-top: auto; position: relative; z-index: 2; max-width: 440px; }
.auth-pitch h2 { font-size: 29px; line-height: 1.3; font-weight: 600; margin: 0 0 14px; color: #fff; }
.auth-pitch p { font-size: 13.5px; opacity: .7; line-height: 1.7; margin: 0 0 28px; font-weight: 300; }
.auth-stats { display: flex; gap: 26px; position: relative; z-index: 2; }
.auth-stats div strong { display: block; font-size: 21px; font-weight: 700; color: var(--gold-light); }
.auth-stats div span { display: block; font-size: 11px; opacity: .6; margin-top: 2px; }

.auth-side { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box-mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
@media (min-width: 920px) { .auth-box-mobile-brand { display: none; } }
.auth-box-mobile-brand .mark { width: 38px; height: 38px; border-radius: 10px; background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: center; }
.auth-box-mobile-brand .mark svg { width: 18px; height: 18px; }
.auth-box-mobile-brand strong { font-size: 15px; font-weight: 700; color: var(--dark); }

.auth-box h1 { font-size: 23px; font-weight: 600; margin: 0 0 6px; color: var(--dark); }
.auth-box .sub { font-size: 13px; color: var(--text-light); margin: 0 0 26px; }

.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 12px; font-weight: 600; color: var(--mid); margin-bottom: 7px; }
.auth-input-wrap { position: relative; display: flex; align-items: center; }
.auth-input-wrap .ico { position: absolute; left: 14px; width: 16px; height: 16px; color: var(--text-light); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.auth-input-wrap .ico svg { width: 16px; height: 16px; }
.auth-field input {
  width: 100%; padding: 12px 14px 12px 40px; border-radius: 10px;
  border: 1.5px solid var(--border); font-size: 13.5px; font-family: 'Poppins', sans-serif;
  transition: border-color .15s, box-shadow .15s; background: #fff; color: var(--text);
}
.auth-field input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-pale); }
.auth-toggle-pass { position: absolute; right: 12px; cursor: pointer; color: var(--text-light); width: 18px; height: 18px; display: flex; align-items: center; }
.auth-toggle-pass svg { width: 18px; height: 18px; }

.auth-remember { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; font-size: 12.5px; }
.auth-remember label { display: flex; align-items: center; gap: 7px; color: var(--mid); cursor: pointer; }
.auth-remember input { accent-color: var(--sage); width: 15px; height: 15px; }

.auth-submit { width: 100%; padding: 13px; border: none; border-radius: 10px; background: var(--dark); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s; }
.auth-submit:hover { background: var(--sage-dark); }

.auth-error { background: var(--danger-bg); color: #8A3936; border: 1px solid rgba(184,84,80,.3); border-radius: 10px; padding: 11px 14px; font-size: 12.5px; margin-bottom: 18px; display: none; }
.auth-error.show { display: block; }
.auth-footer { text-align: center; font-size: 12px; color: var(--text-light); margin-top: 26px; }

/* ───────────────────────────
   DASHBOARD SHELL
─────────────────────────── */
#hel-ad-app { display: none; }
#hel-ad-app.active { display: block; }

#hel-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: var(--header-h); background: var(--hdr-bg);
  display: flex; align-items: center; padding: 0 20px 0 0;
  border-bottom: 1px solid var(--hdr-border);
}
.hel-logo-block { width: var(--sidebar-w); flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 0 18px; height: 100%; border-right: 1px solid var(--hdr-border); }
.hel-logo-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--sage-dark); border: none; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hel-logo-mark svg { width: 17px; height: 17px; }
.hel-logo-name strong { font-size: 12.5px; font-weight: 700; color: var(--hdr-text); display: block; }
.hel-logo-name span { font-size: 8.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--hdr-text-dim); }
.hel-mob-toggle { display: none; background: var(--hdr-surface); border: 1px solid var(--hdr-border); color: var(--hdr-text); font-size: 18px; padding: 6px 10px; border-radius: 6px; cursor: pointer; margin-right: 8px; }

.hel-header-mid { flex: 1; padding: 0 18px; position: relative; }
.hel-search-wrap { position: relative; display: inline-block; }
.hel-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--hdr-text-dim); display:flex; }
.hel-search-icon svg { width: 14px; height: 14px; }
.hel-search-wrap input { width: 300px; padding: 8px 30px 8px 32px; background: var(--hdr-surface); border: 1px solid var(--hdr-border); border-radius: 8px; color: var(--hdr-text); font-size: 12.5px; font-family: 'Poppins', sans-serif; outline: none; }
.hel-search-wrap input::placeholder { color: var(--hdr-text-dim); }
.hel-search-wrap input:focus { border-color: var(--sage); background: rgba(255,255,255,.1); }
.hel-search-clear { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); color: var(--hdr-text-dim); cursor: pointer; display: none; width:14px; height:14px; }
.hel-search-clear.show { display: block; }
.hel-search-drop { position: absolute; top: calc(100% + 6px); left: 0; width: 380px; max-height: 360px; overflow-y: auto; background: #fff; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(28,36,32,.28); z-index: 500; display: none; }
.hel-search-drop.open { display: block; }
.hsd-group-label { padding: 9px 14px 5px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-light); }
.hsd-item { padding: 9px 14px; display: flex; gap: 10px; align-items: center; cursor: pointer; transition: background .12s; }
.hsd-item:hover { background: var(--sage-pale); }
.hsd-item .ico { width: 30px; height: 30px; border-radius: 8px; background: var(--sage-pale); color: var(--sage-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }
.hsd-item .body strong { font-size: 12.5px; color: var(--dark); display: block; }
.hsd-item .body span { font-size: 11px; color: var(--text-light); }
.hsd-empty { padding: 24px 14px; text-align: center; color: var(--text-light); font-size: 13px; }

.hel-hdr-right { display: flex; align-items: center; gap: 10px; }
.hdr-icon { position: relative; width: 34px; height: 34px; background: var(--hdr-surface); border: 1px solid var(--hdr-border); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--hdr-text-dim); cursor: pointer; transition: background .2s; }
.hdr-icon svg { width: 15px; height: 15px; }
.hdr-icon:hover { background: rgba(255,255,255,.12); color: #fff; }
.hdr-avatar { width: 34px; height: 34px; border-radius: 9px; background: var(--sage-dark); color: #fff; font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; cursor: default; flex-shrink: 0; }
.hdr-user strong { color: var(--hdr-text); font-size: 12.5px; font-weight: 600; display: block; }
.hdr-user small { color: var(--hdr-text-dim); font-size: 10.5px; }

#hel-sidebar { position: fixed; top: var(--header-h); left: 0; bottom: 0; z-index: 200; width: var(--sidebar-w); background: var(--sb-bg); overflow-y: auto; padding: 14px 0 20px; display: flex; flex-direction: column; border-right: 1px solid var(--sb-border); transition: transform .3s; }
.sb-section { margin-bottom: 4px; }
.sb-label { padding: 10px 16px 4px; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--sb-text-dim); }
.sb-item { display: flex; align-items: center; gap: 9px; padding: 9px 16px; color: var(--sb-text); font-size: 12.5px; font-weight: 500; cursor: pointer; transition: all .18s; border-left: 3px solid transparent; }
.sb-item:hover { background: var(--sb-hover-bg); color: #fff; }
.sb-item.active { background: var(--sb-active-bg); color: #fff; border-left-color: var(--sage); font-weight: 600; }
.sb-icon { width: 16px; height: 16px; flex-shrink: 0; display:flex; opacity:.9; }
.sb-icon svg { width:15px; height:15px; }
.sb-count { margin-left: auto; padding: 1px 7px; border-radius: 10px; font-size: 10px; font-weight: 700; background: rgba(255,255,255,.12); color: #fff; min-width: 18px; text-align: center; }
.sb-count.danger { background: var(--danger); color: #fff; }
.sb-count.gold { background: var(--gold); color: var(--dark); }
.sb-bottom { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--sb-border); }
.hel-mob-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 150; }

#hel-main { margin-left: var(--sidebar-w); margin-top: var(--header-h); min-height: calc(100vh - var(--header-h)); background: var(--cream); }
.hel-module { display: none; padding: 24px; }
.hel-module.active { display: block; animation: helFade .18s ease; }
@keyframes helFade { from { opacity:0; transform: translateY(6px); } to { opacity:1; transform:none; } }

.pg-hdr { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.pg-hdr-left h1 { font-size: 21px; font-weight: 600; color: var(--dark); }
.pg-hdr-left .bc { font-size: 11.5px; color: var(--text-light); margin-top: 4px; }
.pg-hdr-left .bc span { color: var(--sage-dark); cursor: pointer; }
.pg-hdr-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ───────────────────────────
   BUTTONS
─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px;
  border-radius: 8px; font-size: 12.5px; font-weight: 600; border: none;
  cursor: pointer; transition: all .2s; white-space: nowrap;
  -webkit-appearance: none; appearance: none;
  font-family: inherit; line-height: 1.2; text-decoration: none;
  background: transparent; color: inherit; box-sizing: border-box;
}
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: var(--sage-dark); color: #fff; }
.btn-primary:hover { background: var(--dark); color: #fff; }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-light); color: var(--dark); }
.btn-outline { background: #fff; border: 1.5px solid var(--border); color: var(--mid); }
.btn-outline:hover { background: #fff; border-color: var(--sage); color: var(--sage-dark); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--mid); color: #fff; }
.btn-danger-outline { background: #fff; border: 1.5px solid var(--danger); color: var(--danger); }
.btn-danger-outline:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 7px; }
.btn-xs { padding: 4px 11px; font-size: 11px; border-radius: 6px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ───────────────────────────
   BADGES
─────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 7px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.b-delivered { background: var(--success-bg); color: var(--success); }
.b-transit { background: var(--info-bg); color: var(--info); }
.b-pending { background: var(--warning-bg); color: var(--warning); }
.b-pickup { background: var(--mauve-pale); color: var(--mauve); }
.b-rts { background: var(--sage-pale); color: var(--sage-dark); }
.b-cancelled { background: var(--danger-bg); color: var(--danger); }
.b-rto { background: var(--mauve-pale); color: var(--mauve); }
.b-out { background: var(--gold-pale); color: #8B5A1F; }
.b-ndr { background: var(--danger-bg); color: var(--danger); }
.b-cod { background: var(--warning-bg); color: var(--warning); }
.b-prepaid { background: var(--info-bg); color: var(--info); }
.b-failed { background: var(--danger-bg); color: var(--danger); font-weight: 700; }

/* ───────────────────────────
   CARDS / STATS
─────────────────────────── */
.card { background: #fff; border-radius: 12px; padding: 18px; border: 1px solid var(--border); }
.card-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 11px; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 8px; }
.card-hdr h3 { font-size: 14.5px; font-weight: 600; color: var(--dark); }
.card-link { font-size: 11.5px; color: var(--sage-dark); font-weight: 600; cursor: pointer; }
.card-link:hover { text-decoration: underline; }

.stats-row { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; margin-bottom: 18px; }
.stats-row.c4 { grid-template-columns: repeat(4,1fr); }
.stats-row.c3 { grid-template-columns: repeat(3,1fr); }
.stat-card { background: #fff; border-radius: 12px; padding: 16px 17px; border: 1px solid var(--border); display: flex; align-items: center; gap: 12px; transition: box-shadow .2s; }
.stat-card:hover { box-shadow: 0 6px 20px rgba(28,36,32,.08); }
.stat-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon svg { width: 19px; height: 19px; }
.si-sage { background: var(--sage-pale); color: var(--sage-dark); }
.si-gold { background: var(--gold-pale); color: var(--gold); }
.si-mauve { background: var(--mauve-pale); color: var(--mauve); }
.si-dark { background: #EBF0ED; color: var(--mid); }
.si-info { background: var(--info-bg); color: var(--info); }
.si-danger { background: var(--danger-bg); color: var(--danger); }
.stat-body h2 { font-size: 22px; font-weight: 700; color: var(--dark); line-height: 1; }
.stat-body p { font-size: 11.5px; color: var(--text-light); margin-top: 3px; }

/* ───────────────────────────
   TABLES
─────────────────────────── */
.tbl-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border); }
.hel-tbl { width: 100%; border-collapse: collapse; min-width: 920px; }
.hel-tbl thead { background: #F4F8F5; }
.hel-tbl th { padding: 10px 12px; text-align: left; font-size: 10px; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--border); white-space: nowrap; }
.hel-tbl td { padding: 10px 12px; border-bottom: 1px solid #F0F5F1; font-size: 12px; vertical-align: middle; }
.hel-tbl tbody tr:last-child td { border-bottom: none; }
.hel-tbl tbody tr:hover { background: var(--sage-pale); }
.order-id { font-weight: 700; color: var(--dark); font-size: 12.5px; cursor: pointer; }
.order-id:hover { color: var(--sage-dark); text-decoration: underline; }
.awb-no { font-size: 11px; color: var(--mid); font-weight: 500; margin-top: 2px; letter-spacing: .02em; }
.seller-cell strong { font-size: 12px; }
.amount-cell { font-weight: 700; color: var(--dark); }
.btn-view { padding: 5px 13px; background: var(--dark); color: #fff; border-radius: 7px; font-size: 11px; font-weight: 600; border: none; cursor: pointer; transition: background .2s; }
.btn-view:hover { background: var(--sage-dark); }
.row-actions { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }

.cc { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px; font-size: 10.5px; font-weight: 700; }
.cc-delhivery { background: var(--info-bg); color: var(--info); }
.cc-xpressbees { background: var(--gold-pale); color: #8B5A1F; }
.cc-bluedart, .cc-manual { background: #EEF1EF; color: var(--mid); }

/* Courier column — logo on top, mode pill below, centered (matches
   Seller Dashboard's approved order-list layout exactly). */
.courier-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.courier-cell img.courier-logo { height: 16px; max-width: 96px; object-fit: contain; }
.no-courier { color: var(--text-light); font-size: 11px; }

/* Small square icon-buttons (label download, cancel, edit, delete) */
.icon-btn {
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 28px !important; height: 28px !important; border-radius: 7px; border: 1px solid var(--border);
  background: #fff; color: var(--mid); cursor: pointer; transition: all .2s; flex-shrink: 0;
  padding: 0 !important; margin: 0 !important; box-sizing: border-box;
}
.icon-btn svg { width: 14px !important; height: 14px !important; display: inline-block !important; }
.icon-btn:hover { border-color: var(--sage); color: var(--sage-dark); background: var(--sage-pale); }
.icon-btn.danger:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-bg); }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.icon-btn:disabled:hover { border-color: var(--border); color: var(--mid); background: #fff; }
.icon-btn.is-loading { opacity: .6; pointer-events: none; }

.filters-bar { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; display: flex !important; flex-direction: row !important; gap: 9px; align-items: center; flex-wrap: wrap; }
.filters-bar select, .filters-bar input[type=date], .filters-bar input[type=text] { padding: 7px 11px; border: 1px solid var(--border); border-radius: 7px; font-size: 12px; font-family: 'Poppins',sans-serif; color: var(--text); outline: none; background: #fff; width: auto !important; max-width: none !important; display: inline-block !important; margin: 0 !important; }
.filters-bar select:focus, .filters-bar input:focus { border-color: var(--sage); }
.filters-bar .fs-search { flex: 1; min-width: 180px; }
.filters-clear { font-size: 11.5px; color: var(--sage-dark); font-weight: 600; cursor: pointer; padding: 8px 4px; }

.pager-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-light); flex-wrap: wrap; gap: 8px; }
.pager { display: flex; gap: 4px; }
.pager button { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--mid); transition: all .2s; }
.pager button:hover { border-color: var(--sage); color: var(--sage-dark); }
.pager button.active { background: var(--sage-dark); color: #fff; border-color: var(--sage-dark); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ───────────────────────────
   DETAIL / FORM
─────────────────────────── */
.rg-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.rg-1-1 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rg-1-1.gap14 { gap: 14px; }
@media (max-width: 900px) { .rg-2-1 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .rg-1-1 { grid-template-columns: 1fr; } }

.detail-section { background: var(--sage-pale); border-radius: 10px; padding: 14px; }
.detail-section h4 { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-light); margin-bottom: 10px; }
.detail-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 12px; gap: 10px; }
.detail-row:last-child { border-bottom: none; }
.detail-row .lbl { color: var(--text-light); font-weight: 500; flex-shrink:0; }
.detail-row .val { font-weight: 600; color: var(--dark); text-align: right; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid.col3 { grid-template-columns: 1fr 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 5px; position: relative; margin-bottom: 4px; }
.form-group label { font-size: 10.5px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: .03em; }
.form-group input, .form-group select, .form-group textarea {
  padding: 9px 11px; border: 1px solid var(--border); border-radius: 7px; font-size: 12.5px;
  font-family: 'Poppins', sans-serif; color: var(--text); outline: none; background: #fff; width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-pale); }

.hel-alert { border-radius: 9px; padding: 11px 15px; font-size: 12px; display: flex; align-items: flex-start; gap: 9px; margin-bottom: 14px; }
.hel-alert svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }
.al-warning { background: var(--warning-bg); color: #7A4A0A; border: 1px solid rgba(201,132,58,.35); }
.al-success { background: var(--success-bg); color: var(--sage-dark); border: 1px solid var(--sage-mid); }
.al-info { background: var(--info-bg); color: var(--info); border: 1px solid rgba(79,106,138,.25); }
.al-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(184,84,80,.3); }

.act-list { display: flex; flex-direction: column; gap: 9px; }
.act-item { display: flex; gap: 10px; padding: 11px; background: var(--cream); border-radius: 9px; border: 1px solid var(--border); }
.act-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 11px; }
.ai-sage { background: var(--sage-pale); color: var(--sage-dark); }
.ai-gold { background: var(--gold-pale); color: var(--gold); }
.ai-info { background: var(--info-bg); color: var(--info); }
.ai-alert { background: var(--danger-bg); color: var(--danger); }
.act-body h5 { font-size: 12px; font-weight: 600; color: var(--dark); margin-bottom: 2px; }
.act-body p { font-size: 11px; color: var(--text-light); }
.act-time { font-size: 10px; color: #9ca3af; margin-top: 3px; }

.qa-list { display: flex; flex-direction: column; gap: 8px; }
.qa-btn { display: flex; align-items: center; gap: 10px; padding: 11px 13px; background: var(--cream); border-radius: 9px; cursor: pointer; border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--mid); transition: all .2s; }
.qa-btn:hover { background: var(--sage-pale); border-color: var(--sage); color: var(--sage-dark); }
.qa-btn svg { width:14px; height:14px; flex-shrink:0; }
.qa-arrow { margin-left: auto; opacity: .5; }

.tl { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot-wrap { display: flex; flex-direction: column; align-items: center; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); border: 2px solid var(--border); flex-shrink: 0; }
.tl-dot.done { background: var(--sage); border-color: var(--sage); }
.tl-dot.active { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-pale); }
.tl-line { flex: 1; width: 2px; background: var(--border); margin: 3px 0; min-height: 12px; }
.tl-item:last-child .tl-line { display: none; }
.tl-body h5 { font-size: 12px; font-weight: 600; color: var(--dark); margin-bottom: 2px; }
.tl-body p { font-size: 11px; color: var(--text-light); }

.wallet-hero { background: var(--dark); border-radius: 14px; padding: 24px 28px; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.wallet-hero .wh-label { color: rgba(255,255,255,.5); font-size: 11.5px; margin-bottom: 6px; }
.wallet-hero .wh-amount { color: #fff; font-size: 34px; font-weight: 700; }
.wallet-hero .wh-amount sup { font-size: 17px; }
.wallet-hero .wh-note { color: rgba(255,255,255,.4); font-size: 11.5px; margin-top: 6px; }

.profile-stat { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.profile-stat:last-child { border-bottom: none; }
.profile-stat .lbl { font-size: 11.5px; color: var(--text-light); }
.profile-stat .val { font-size: 14px; font-weight: 700; color: var(--sage-dark); }

.txn-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.txn-row:last-child { border-bottom: none; }
.txn-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; flex-shrink: 0; }
.ti-credit { background: var(--success-bg); color: var(--success); }
.ti-debit  { background: var(--danger-bg); color: var(--danger); }

.coming-soon { text-align: center; padding: 60px 40px; }
.coming-soon .cs-icon { width: 44px; height: 44px; color: var(--sage-mid); margin: 0 auto 14px; }
.coming-soon .cs-icon svg { width: 100%; height: 100%; }
.coming-soon h2 { font-size: 18px; color: var(--sage-dark); margin-bottom: 8px; font-weight: 600; }
.coming-soon p { color: var(--text-light); font-size: 13px; max-width: 460px; margin: 0 auto; }

.toast-wrap { position: fixed; top: 70px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--dark); color: #fff; padding: 12px 16px; border-radius: 9px; font-size: 12.5px; display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.2); min-width: 240px; }
.toast.success { border-left: 3px solid var(--sage); }
.toast.error { border-left: 3px solid var(--danger); }

/* ───────────────────────────
   HORIZONTAL STATUS STEPPER (Order Detail)
─────────────────────────── */
.hstep-row { display: flex; align-items: flex-start; padding: 6px 4px 2px; overflow-x: auto; }
.hstep { display: flex; flex-direction: column; align-items: center; min-width: 92px; text-align: center; position: relative; }
.hstep-circle {
  width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
  color: var(--text-light); flex-shrink: 0;
}
.hstep-circle svg { width: 15px !important; height: 15px !important; }
.hstep-circle.done { background: var(--sage); border-color: var(--sage); color: #fff; }
.hstep-circle.active { background: var(--gold); border-color: var(--gold); color: #fff; box-shadow: 0 0 0 4px var(--gold-pale); }
.hstep-label { font-size: 11.5px; font-weight: 600; color: var(--text-light); margin-top: 8px; }
.hstep-label.done { color: var(--sage-dark); }
.hstep-label.active { color: #8B5A1F; }
.hstep-current { font-size: 9.5px; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.hstep-line { flex: 1; height: 2px; background: var(--border); margin-top: 17px; min-width: 24px; }
.hstep-line.done { background: var(--sage); }
@media (max-width: 640px) {
  .hstep-row { justify-content: flex-start; }
  .hstep { min-width: 76px; }
}

/* ───────────────────────────
   RESPONSIVE
─────────────────────────── */
@media (max-width: 1200px) { .stats-row { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 900px) { .stats-row, .stats-row.c4, .stats-row.c3 { grid-template-columns: repeat(2,1fr); } }

@media (max-width: 768px) {
  .hel-mob-toggle { display: block; }
  #hel-sidebar { transform: translateX(-224px); }
  #hel-sidebar.open { transform: translateX(0); box-shadow: 8px 0 24px rgba(0,0,0,.2); }
  .hel-mob-overlay.open { display: block; }
  #hel-main { margin-left: 0; }
  .hel-module { padding: 14px; }
  .stats-row, .stats-row.c4, .stats-row.c3 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .form-grid, .form-grid.col3 { grid-template-columns: 1fr; }
  .hel-logo-block { width: auto; padding: 0 10px; border-right: none; }
  .hel-logo-name span { display: none; }
  .hel-header-mid { padding: 0 8px; min-width: 0; }
  .hel-search-wrap { display: block; width: 100%; }
  .hel-search-wrap input { width: 100%; }
  .hel-search-drop { width: calc(100vw - 32px); left: 0; }
  .hdr-user { display: none; }
  .wallet-hero { flex-direction: column; align-items: flex-start; padding: 20px; }
  .pg-hdr { flex-direction: column; align-items: stretch; }
  .pg-hdr-right .btn { flex: 1; justify-content: center; }
  .filters-bar { padding: 10px 12px; }
  .card { padding: 14px; }
  .toast-wrap { left: 12px; right: 12px; top: 64px; }
  .toast { min-width: 0; width: 100%; }
}

@media (max-width: 480px) {
  .stats-row, .stats-row.c4, .stats-row.c3 { grid-template-columns: 1fr; }
  .pager-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hel-tbl th, .hel-tbl td { font-size: 11px; padding: 8px; }
}
