/* ============================================================
   VIVTAG — 2026 portal redesign
   ------------------------------------------------------------
   Loaded LAST, after vivtag.css / site.css / motion.css / theme.css.
   It retunes the existing design tokens rather than restyling
   components one by one, so every portal page changes at once and
   no markup or PHP is touched. Delete the <link> to revert.

   Two changes carry almost all of it:
     1. the accent moves from the wordmark lime to a readable forest
        green, so buttons, links, icon discs and focus rings follow;
     2. the page ground moves from grey to pale mint with soft
        organic shapes, which is the "light green effect" the app
        screens use.
   ============================================================ */

:root,
body,
body[data-mode],
body.portal {
  /* ---- the new primary -------------------------------------- */
  --brand-ink:   #1b7a34;   /* text, borders, fills — 5.4:1 on white */
  --brand-mid:   #228944;
  --brand-deep:  #0b3a19;
  --brand-dark:  #0a3318;
  /* the wordmark lime survives for the mark and the coin only */
  --brand:       #8fbf00;

  --accent:      #1b7a34;
  --accent-soft: #e8f3ea;
  --accent-deep: #0b3a19;
  --grad-accent: linear-gradient(170deg, #0a3318 0%, #1b7a34 55%, #228944 100%);
  --grad-ind:    var(--grad-accent);

  --ind:         #1b7a34;
  --ind-700:     #0b3a19;
  --ind-300:     #8fd0a2;
  --ind-100:     #e8f3ea;

  /* ---- surfaces --------------------------------------------- */
  --paper:   #eef6ef;       /* the mint ground */
  --card:    #ffffff;
  --sunk:    #e8f3ea;
  --line:    #e7eae8;
  --line-2:  #f0f1f3;
  --frost:   rgba(255, 255, 255, .78);

  --ink-900: #1a241c;
  --ink-700: #3c4a3f;
  --ink-500: #6b7280;
  --ink-300: #9ca3af;

  /* ---- state colours ----------------------------------------- */
  --stamp:     #1a8a3c;     /* current  */
  --stamp-100: #e8f3ea;
  --hold:      #e8821a;     /* running out */
  --hold-100:  #fdf2e4;
  --void:      #d13b2e;     /* lapsed  */
  --void-100:  #fdecea;
  --h-teal:    #1a8a3c;
  --h-amber:   #e8821a;
  --h-rose:    #d13b2e;
  --h-indigo:  #1b7a34;

  /* ---- shape and depth --------------------------------------- */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 20px;

  --sh-1: 0 1px 2px rgba(20, 40, 24, .04);
  --sh-2: 0 1px 3px rgba(20, 40, 24, .05), 0 8px 18px -8px rgba(20, 40, 24, .10);
  --sh-3: 0 2px 6px rgba(20, 40, 24, .05), 0 22px 44px -16px rgba(20, 40, 24, .16);
  --ring: 0 0 0 1px var(--line);

  --mesh-1: rgba(27, 122, 52, .060);
  --mesh-2: rgba(34, 137, 68, .045);
}

/* ------------------------------------------------------------
   The ground. Mint, with soft organic shapes behind the content —
   the same atmosphere as the app screens. Fixed, so it does not
   slide away as the page scrolls.
   ------------------------------------------------------------ */
body {
  background-color: #eef6ef;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42rem 22rem at 86% -4%,  rgba(78, 182, 110, .17), transparent 60%),
    radial-gradient(34rem 20rem at 8%  22%,  rgba(150, 200, 162, .20), transparent 62%),
    radial-gradient(40rem 24rem at 94% 58%,  rgba(150, 200, 162, .16), transparent 60%),
    radial-gradient(30rem 18rem at 22% 88%,  rgba(150, 200, 162, .14), transparent 62%);
}

/* ------------------------------------------------------------
   The top bar becomes the green band from the app's header,
   with its own decorative shapes in the upper right.
   ------------------------------------------------------------ */
.vt-top {
  position: relative;
  background: linear-gradient(175deg, #0a3318 0%, #1b7a34 62%, #228944 100%);
  border-bottom: 0;
  box-shadow: 0 10px 28px -18px rgba(10, 51, 24, .65);
}

.vt-top::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(18rem 9rem at 84% 10%, rgba(78, 182, 110, .34), transparent 64%),
    radial-gradient(14rem 8rem at 99% 74%, rgba(78, 182, 110, .26), transparent 62%);
}

.vt-top > * { position: relative; z-index: 1; }

.vt-top .vt-brand,
.vt-top .vt-brand span,
.vt-top .vp-who,
.vt-top .vt-exit { color: #ffffff; }

.vt-top .vp-who { opacity: .82; }

.vp-links a {
  color: rgba(255, 255, 255, .80);
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 500;
}

.vp-links a:hover { color: #ffffff; background: rgba(255, 255, 255, .10); }

.vp-links a[aria-current="page"] {
  color: #ffffff;
  font-weight: 600;
  background: rgba(255, 255, 255, .16);
}

.vt-top .vt-exit {
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  padding: 7px 14px;
}

.vt-top .vt-exit:hover { background: rgba(255, 255, 255, .12); }

/* NOTE: no blanket svg colour here. The bell, the name chip and the
   mode toggle each carry their own light background, so forcing white
   on them painted white on white. Each is handled explicitly below. */

/* ------------------------------------------------------------
   Cards: white, hairline, one soft lift. The old look leaned on
   borders; this leans on the shadow, which is what separates a
   white card from a mint ground.
   ------------------------------------------------------------ */
.vp-stat,
.vp-veh,
.vp-vcard,
.vp-idbar,
.vp-empty,
.vp-wstrip,
.vt-card,
.vt-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}

.vp-stat:hover,
.vp-veh:hover,
.vp-vcard:hover,
.vp-wstrip:hover {
  box-shadow: var(--sh-3);
  border-color: #dbe3dd;
}

/* the icon disc on a stat card is a solid green circle with a white
   glyph, as on the app's Quick Actions tiles */
.vp-stat__ico {
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
}

.vp-stat__ico svg { color: #ffffff; }

.vp-stat[data-hue="amber"]  .vp-stat__ico { background: var(--hold); }
.vp-stat[data-hue="rose"]   .vp-stat__ico { background: var(--void); }
.vp-stat[data-hue="cyan"]   .vp-stat__ico { background: var(--stamp); }
.vp-stat[data-quiet="1"]    .vp-stat__ico { background: #aeb8b1; }

/* ------------------------------------------------------------
   Buttons and pills
   ------------------------------------------------------------ */
.vt-btn--go {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 6px 16px -10px rgba(27, 122, 52, .8);
}

.vt-btn--go:hover { background: #166a2d; border-color: #166a2d; }

.vt-btn--line {
  border-radius: 10px;
  border-color: var(--accent);
  color: var(--accent);
  background: #ffffff;
}

.vt-btn--line:hover { background: var(--accent-soft); }

.vt-pill { border-radius: 999px; font-weight: 700; border: 0; }
.vt-pill--ok   { background: var(--stamp-100); color: #14702f; }
.vt-pill--hold { background: var(--hold-100);  color: #9a5508; }
.vt-pill--bad  { background: var(--void-100);  color: #a82a20; }
.vt-pill--idle { background: #eef0ee;          color: var(--ink-500); }

/* ------------------------------------------------------------
   The wallet strip picks up the coin's green
   ------------------------------------------------------------ */
.vp-wstrip__n { color: var(--ink-900); }
.vp-wstrip__go { color: var(--accent); font-weight: 700; }

/* ============================================================
   Night mode — near-black with a green cast, not neutral grey
   ------------------------------------------------------------
   The site sets data-theme on <html>, so that is what these hook
   onto. They are also repeated on `body` because the light tokens
   above are declared on body, and a declaration on body beats one
   on html for everything inside it.

   The brand green #1B7A34 only reaches about 4:1 on black, which is
   too weak for text or a thin icon. So at night the accent lifts to
   #4BBF6E (~8:1) while the deep green stays for fills. Amber and red
   lift for the same reason. The ground keeps a green cast so it is
   recognisably the same product after dark rather than a generic
   dark theme.
   ============================================================ */

html[data-theme="dark"],
html[data-theme="dark"] body {
  --paper:   #070a08;      /* ground, with a green cast */
  --card:    #111510;      /* one step up */
  --sunk:    #171c16;
  --line:    #242a24;
  --line-2:  #1b211b;
  --frost:   rgba(17, 21, 16, .78);

  --ink-900: #eef3ec;
  --ink-700: #c7d0c5;
  --ink-500: #9fa99d;
  --ink-300: #6c766a;

  --accent:      #4bbf6e;  /* lifted so it reads on black */
  --accent-soft: #14271a;
  --accent-deep: #8fd8a5;
  --brand-ink:   #4bbf6e;
  --grad-accent: linear-gradient(170deg, #05160b 0%, #124b25 55%, #175a2c 100%);

  --ind:      #4bbf6e;
  --ind-100:  #14271a;
  --ind-300:  #8fd8a5;

  --stamp:     #5ccb7d;
  --stamp-100: #14271a;
  --hold:      #f0a758;
  --hold-100:  #2a1d10;
  --void:      #f07a6b;
  --void-100:  #2a1512;
  --h-teal:    #5ccb7d;
  --h-amber:   #f0a758;
  --h-rose:    #f07a6b;
  --h-indigo:  #4bbf6e;

  --sh-1: 0 1px 2px rgba(0, 0, 0, .40);
  --sh-2: 0 1px 3px rgba(0, 0, 0, .45), 0 8px 18px -8px rgba(0, 0, 0, .60);
  --sh-3: 0 2px 6px rgba(0, 0, 0, .45), 0 22px 44px -16px rgba(0, 0, 0, .70);
}

html[data-theme="dark"] body { background-color: #070a08; }

/* the shapes stay, far quieter */
html[data-theme="dark"] body::before {
  background:
    radial-gradient(42rem 22rem at 86% -4%, rgba(75, 191, 110, .10), transparent 60%),
    radial-gradient(34rem 20rem at 8%  22%, rgba(75, 191, 110, .07), transparent 62%),
    radial-gradient(40rem 24rem at 94% 58%, rgba(75, 191, 110, .06), transparent 60%);
}

/* the header band darkens rather than inverting — it is the one
   element that should look the same in both modes */
html[data-theme="dark"] .vt-top {
  background: linear-gradient(175deg, #05160b 0%, #11421f 62%, #175a2c 100%);
  box-shadow: 0 10px 28px -18px rgba(0, 0, 0, .9);
}

/* the chips in the bar: dark surfaces, light type, red bell kept */
html[data-theme="dark"] .vt-top .vp-who {
  background: #0d1a10;
  color: #eef3ec;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

html[data-theme="dark"] .vt-top .vt-bell {
  background: #0d1a10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

html[data-theme="dark"] .vt-top .vt-bell svg,
html[data-theme="dark"] .vt-top .vt-bell svg * {
  color: #f07a6b;
  stroke: #f07a6b;
}

html[data-theme="dark"] .vt-top .vt-bell:hover { background: #2a1512; }
html[data-theme="dark"] .vt-top .vt-bell__n {
  background: #e2503f;
  border-color: #0d1a10;
}

html[data-theme="dark"] .vt-top .vt-mode__knob {
  background: #eef3ec;
  color: #11421f;
}

html[data-theme="dark"] .vt-top .vt-mode__knob svg { color: #11421f; }

/* cards sit on the dark ground with a hairline, no white borders */
html[data-theme="dark"] .vp-stat,
html[data-theme="dark"] .vp-veh,
html[data-theme="dark"] .vp-vcard,
html[data-theme="dark"] .vp-idbar,
html[data-theme="dark"] .vp-empty,
html[data-theme="dark"] .vp-wstrip,
html[data-theme="dark"] .vt-card,
html[data-theme="dark"] .vt-panel {
  background: #111510;
  border-color: #242a24;
}

html[data-theme="dark"] .vp-stat:hover,
html[data-theme="dark"] .vp-veh:hover,
html[data-theme="dark"] .vp-vcard:hover,
html[data-theme="dark"] .vp-wstrip:hover { border-color: #333b32; }

/* a filled button needs dark type on the lifted green */
html[data-theme="dark"] .vt-btn--go {
  background: #4bbf6e;
  border-color: #4bbf6e;
  color: #06220f;
}

html[data-theme="dark"] .vt-btn--go:hover { background: #5ccb7d; border-color: #5ccb7d; }

html[data-theme="dark"] .vt-btn--line {
  background: transparent;
  border-color: #4bbf6e;
  color: #4bbf6e;
}

html[data-theme="dark"] .vt-btn--line:hover { background: #14271a; }

/* pills keep their meaning, lifted for a dark ground */
html[data-theme="dark"] .vt-pill--ok   { background: #14271a; color: #7edb99; }
html[data-theme="dark"] .vt-pill--hold { background: #2a1d10; color: #f0b878; }
html[data-theme="dark"] .vt-pill--bad  { background: #2a1512; color: #f59688; }
html[data-theme="dark"] .vt-pill--idle { background: #1b211b; color: #9fa99d; }

html[data-theme="dark"] .vt-bell__panel { background: #111510; color: #eef3ec; }
html[data-theme="dark"] .vt-bell__panel header b { color: #eef3ec; }

/* Printed pages carry none of this */
@media print {
  body::before { display: none; }
  .vt-top { background: none; box-shadow: none; }
}

/* ============================================================
   Top bar chips — corrective pass
   ------------------------------------------------------------
   .vt-bell, .vp-who and .vt-mode all set their own background from
   --card / --sunk, which are light. Against the green band they need
   explicit treatment rather than inherited white.
   ============================================================ */

/* the section chip beside the logo */
.vt-top .vt-brand span {
  background: rgba(255, 255, 255, .16);
  color: #ffffff;
  border-radius: 8px;
  padding: 4px 10px;
  font-weight: 600;
  letter-spacing: .04em;
}

/* the account name: white chip, near-black text */
.vt-top .vp-who {
  background: #ffffff;
  color: #1a241c;
  font-weight: 600;
  opacity: 1;
  box-shadow: 0 1px 2px rgba(10, 40, 20, .20);
}

/* the bell: white chip, red glyph, red tally */
.vt-top .vt-bell {
  background: #ffffff;
  color: #d13b2e;
  box-shadow: 0 1px 2px rgba(10, 40, 20, .22);
}

.vt-top .vt-bell svg,
.vt-top .vt-bell svg * { color: #d13b2e; stroke: #d13b2e; }

.vt-top .vt-bell:hover { background: #fdecea; }

.vt-top .vt-bell__n {
  background: #d13b2e;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-weight: 700;
}

/* the light/dark toggle: translucent track on green, white knob */
.vt-top .vt-mode {
  background: rgba(255, 255, 255, .22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34);
}

.vt-top .vt-mode__knob {
  background: #ffffff;
  color: #1b7a34;
}

.vt-top .vt-mode__knob svg { color: #1b7a34; }

/* the notification panel hangs off the bell and is page-coloured,
   so it keeps dark text on white */
.vt-bell__panel { background: #ffffff; color: #1a241c; }
.vt-bell__panel header b { color: #1a241c; }

/* ============================================================
   Overview, app-structured  (.vpa-*)
   Used only by portal/dashboard.php. Nothing else references
   these classes, so the rest of the portal is untouched.
   ============================================================ */

.vpa-band {
  position: relative;
  margin-top: -1px;
  padding: 26px 0 86px;
  background: linear-gradient(172deg, #0a3318 0%, #1b7a34 58%, #228944 100%);
  overflow: hidden;
}

.vpa-band::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(22rem 11rem at 82% 6%,  rgba(78,182,110,.34), transparent 64%),
    radial-gradient(16rem  9rem at 99% 70%, rgba(78,182,110,.26), transparent 62%);
}

.vpa-band__in {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px);
}

.vpa-hello { display: flex; align-items: center; gap: 14px; }

.vpa-hello__av {
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: 999px;
  background: #fff; color: #1b7a34;
  display: grid; place-items: center; font-weight: 700; font-size: 17px;
}

.vpa-hello__t { display: flex; flex-direction: column; line-height: 1.25; }
.vpa-hello__t small { color: #b6d4be; font-size: 13px; }
.vpa-hello__t b     { color: #fff; font-size: 22px; letter-spacing: -.02em; }

.vpa-vhead {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-top: 26px;
}
.vpa-vhead h1 { margin: 0; color: #fff; font-size: 18px; font-weight: 700; }
.vpa-vhead a  { color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.vpa-vhead a:hover { text-decoration: underline; }

/* the cards ride up over the green edge, as on the phone */
.vpa-page { margin-top: -62px; position: relative; z-index: 2; }

.vpa-vehicles {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.vpa-veh {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px 20px 14px; box-shadow: var(--sh-3);
}
.vpa-veh:hover { border-color: #d7ded9; transform: translateY(-1px); }

.vpa-veh__top  { display: flex; align-items: center; gap: 14px; }
.vpa-veh__art  { width: 74px; height: auto; flex: 0 0 74px; }
.vpa-veh__id strong { display: block; font-size: 16px; font-weight: 700; color: var(--ink-900); }
.vpa-veh__id span   { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-500); }

.vpa-veh__papers { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.vpa-veh__p { display: flex; justify-content: space-between; padding: 4px 0; font-size: 12.5px; }
.vpa-veh__p span { color: var(--ink-500); }
.vpa-veh__p b    { font-weight: 700; }
.vpa-veh__p b[data-tone="ok"]   { color: var(--stamp); }
.vpa-veh__p b[data-tone="hold"] { color: var(--hold); }
.vpa-veh__p b[data-tone="bad"]  { color: var(--void); }
.vpa-veh__p b[data-tone="idle"] { color: var(--ink-300); }

.vpa-h {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; margin: 30px 0 14px; font-size: 19px; font-weight: 700;
  color: var(--ink-900);
}
.vpa-h a { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }

/* the eight tiles */
.vpa-tiles {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.vpa-tile {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 20px 10px 16px; text-decoration: none;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-2);
}
.vpa-tile:hover { border-color: #d7ded9; box-shadow: var(--sh-3); }

.vpa-tile__ico {
  width: 46px; height: 46px; border-radius: 999px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
}
.vpa-tile__ico svg { color: #fff; }
.vpa-tile__l { font-size: 12.5px; font-weight: 500; color: var(--ink-900); text-align: center; }

/* expiring soon + sampark */
.vpa-split {
  display: grid; gap: 22px; align-items: start;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
}
@media (max-width: 860px) { .vpa-split { grid-template-columns: 1fr; } }

.vpa-due {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 16px 20px 16px 24px; margin-bottom: 12px; text-decoration: none;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-2); color: inherit;
}
.vpa-due::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  border-radius: 2px 0 0 2px; background: var(--hold);
}
.vpa-due[data-tone="bad"]::before { background: var(--void); }

.vpa-due__ico {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 999px;
  background: var(--hold-100); color: var(--hold);
  display: grid; place-items: center;
}
.vpa-due[data-tone="bad"] .vpa-due__ico { background: var(--void-100); color: var(--void); }

.vpa-due__t { flex: 1; min-width: 0; }
.vpa-due__t b     { display: block; font-size: 15px; color: var(--ink-900); }
.vpa-due__t small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-500); }
.vpa-due__n { font-size: 12.5px; font-weight: 700; color: var(--hold); white-space: nowrap; }
.vpa-due[data-tone="bad"] .vpa-due__n { color: var(--void); }

.vpa-none {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 20px; font-size: 14px; color: var(--ink-500);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-2);
}
.vpa-none svg { color: var(--stamp); }

.vpa-tag {
  margin-top: 47px; padding: 22px;
  background: var(--accent); border-radius: var(--r-lg);
  box-shadow: 0 16px 34px -18px rgba(10, 58, 25, .7);
}
.vpa-tag__qr {
  width: 66px; height: 66px; border-radius: 10px; background: #fff;
  display: grid; place-items: center; color: #0b3a19;
}
.vpa-tag__t { margin-top: 14px; }
.vpa-tag__t b     { display: block; color: #fff; font-size: 17px; }
.vpa-tag__t small { display: block; margin-top: 4px; color: #c3e0cb; font-size: 12.5px; }
.vpa-tag__t .mono { display: block; margin-top: 8px; color: #fff;
                    font-family: var(--data); font-size: 14px; letter-spacing: .04em; }
.vpa-tag__go {
  display: inline-block; margin-top: 14px; color: #fff;
  font-size: 13px; font-weight: 600; text-decoration: none;
}
.vpa-tag__go:hover { text-decoration: underline; }

/* dark mode keeps the structure, swaps the surfaces */
body[data-mode="dark"] .vpa-veh,
body[data-mode="dark"] .vpa-tile,
body[data-mode="dark"] .vpa-due,
body[data-mode="dark"] .vpa-none { background: var(--card); }

/* ============================================================
   The remaining portal pages, brought into the app's language
   ------------------------------------------------------------
   Styling only. Every class below already exists in the views,
   so no markup, route, query or helper changes. One deployment,
   same backend.
   ============================================================ */

/* ---- every page heading gets the app's weight ------------- */
.vp-head h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.vt-block__h { font-size: 19px; font-weight: 700; color: var(--ink-900); }

/* ---- one card treatment across every page ----------------- */
.vp-vcard, .vp-doc, .vp-svc__card, .vo-card, .vs-aside__card,
.vrc-card, .vt-callout, .vc-list__row, .vp-id, .vt-review,
.vw-card, .vc-shell, .vt-docs {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  background: var(--card);
}

.vp-vcard:hover, .vp-svc__card:hover, .vo-card:hover, .vc-list__row:hover {
  border-color: #d7ded9;
  box-shadow: var(--sh-3);
}

/* ---- WALLET ------------------------------------------------ */
/* the balance block becomes the app's solid green card */
.vw-card {
  background: linear-gradient(168deg, #0a3318 0%, #1b7a34 60%, #228944 100%);
  border: 0;
  box-shadow: 0 18px 38px -20px rgba(10, 58, 25, .72);
}
.vw-card__glow { opacity: .35; }
.vw-card__label { color: #b6d4be; letter-spacing: .18em; }
.vw-card__n, .vw-card__amt { color: #ffffff; }
.vw-card__u, .vw-card__worth { color: #c3e0cb; }
.vw-card__mark { color: #8fbf00; }

/* top-up chips read as the app's pills */
.vw-chip {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-weight: 600;
}
.vw-chip:hover { border-color: var(--accent); color: var(--accent); }
.vw-chip[aria-pressed="true"], .vw-chip.is-on {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

/* the action tiles become the app's green discs */
.vw-act {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--sh-2);
}
.vw-act__i {
  background: var(--accent); color: #fff; border: 0; border-radius: 999px;
}
.vw-act__i svg { color: #fff; }
.vw-act__i--go { background: var(--accent-deep); }

/* the statement reads green in, red out */
.vw-amt[data-dir="in"],  .vw-amt.in  { color: var(--stamp); font-weight: 700; }
.vw-amt[data-dir="out"], .vw-amt.out { color: var(--void);  font-weight: 700; }
.vp-table th {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-300); font-weight: 700;
}
.vp-table td { border-color: var(--line-2); }

/* ---- VEHICLES ---------------------------------------------- */
.vp-vcard { padding: 18px 20px; }
.vp-vcard__reg  { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.vp-vcard__name { color: var(--ink-500); font-size: 13px; }
.vp-vcard__papers { border-top: 1px solid var(--line-2); padding-top: 12px; margin-top: 12px; }
.vp-vcard__go { color: var(--ink-300); }

/* ---- VEHICLE DETAIL ---------------------------------------- */
.vp-hero {
  border-radius: var(--r-lg);
  background: linear-gradient(168deg, #0a3318 0%, #1b7a34 62%, #228944 100%);
  border: 0; box-shadow: 0 16px 34px -18px rgba(10, 58, 25, .6);
}
.vp-hero__txt, .vp-hero__txt * { color: #ffffff; }
.vv-tabs { background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.vv-tabs a, .vv-tabs button { border-radius: 8px; font-weight: 600; }
.vv-tabs [aria-current="page"], .vv-tabs .is-on {
  background: var(--accent-soft); color: var(--accent);
}
.vrc-rows dt { color: var(--ink-500); }
.vrc-rows dd { color: var(--ink-900); font-weight: 600; }
.vt-ring__num { color: var(--ink-900); font-weight: 700; }
.vt-ring__lbl { color: var(--ink-300); }

/* ---- SERVICES ---------------------------------------------- */
.vp-svc { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.vp-svc__card { padding: 22px; }
.vp-svc__ico {
  width: 46px; height: 46px; border-radius: 999px;
  background: var(--accent); color: #fff; display: grid; place-items: center;
}
.vp-svc__ico svg { color: #fff; }
.vp-svc__host { font-family: var(--data); font-size: 11px; color: var(--ink-300); }
.vp-svc__go   { color: var(--accent); font-weight: 700; }

/* ---- SUPPORT ----------------------------------------------- */
.vc-list__row { padding: 14px 16px; margin-bottom: 10px; }
.vc-list__ico { background: var(--accent-soft); color: var(--accent); border-radius: 999px; }
.vc-list__ico svg { color: var(--accent); }
.vc-list__when { color: var(--accent); font-weight: 700; font-size: 11px; }
.vc-list__n { background: var(--void); color: #fff; border-radius: 999px; font-weight: 700; }
.vc__box[data-from="staff"], .vc__box.in  { background: var(--sunk); color: var(--ink-900); }
.vc__box[data-from="me"],    .vc__box.out { background: var(--accent); color: #fff; }
.vc__send { background: var(--accent); border-radius: 999px; }
.vc__send svg { color: #fff; }
.vc-quick__b { border-radius: 999px; border: 1px solid var(--line); font-weight: 600; }
.vc-quick__b:hover { border-color: var(--accent); color: var(--accent); }

/* ---- PROFILE ----------------------------------------------- */
/* the identity block becomes the app's green header band */
.vp-id {
  background: linear-gradient(168deg, #0a3318 0%, #1b7a34 62%, #228944 100%);
  border: 0; box-shadow: 0 16px 34px -18px rgba(10, 58, 25, .6);
}
.vp-id__who, .vp-id__code, .vp-id__alias { color: #ffffff; }
.vp-id__alias, .vp-id__none { color: #c3e0cb; }
.vp-id__avatar { background: #ffffff; color: var(--accent); font-weight: 700; }
.vp-id__mark { color: #8fbf00; }

/* ---- ORDERS ------------------------------------------------ */
.vo-card { padding: 18px 20px; }
.vo-card__head { font-weight: 700; color: var(--ink-900); }
.vo-step__dot { background: var(--line); }
.vo-step[data-done="1"] .vo-step__dot,
.vo-step.is-done .vo-step__dot { background: var(--accent); }
.vo-track .bar, .vt-review__row { border-color: var(--line-2); }
.vt-review__k { color: var(--ink-500); }
.vt-review__v { color: var(--ink-900); font-weight: 600; }

/* ---- shared controls --------------------------------------- */
.vt-input, .vt-select {
  border-radius: 10px; border: 1px solid var(--line); background: var(--card);
}
.vt-input:focus, .vt-select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: 0;
}
.vt-label { color: var(--ink-700); font-weight: 600; }
.vt-hint  { color: var(--ink-300); }
.vt-sheet__box { border-radius: var(--r-xl); box-shadow: var(--sh-3); }
.vt-callout--warn { background: var(--hold-100); border-color: var(--hold); }
.vt-callout--bad  { background: var(--void-100); border-color: var(--void); }
.vt-code { font-family: var(--data); color: var(--ink-900); }
.vt-btn--sm { border-radius: 9px; }

/* dark mode: surfaces follow, the green blocks stay green */
body[data-mode="dark"] .vp-vcard,
body[data-mode="dark"] .vp-doc,
body[data-mode="dark"] .vp-svc__card,
body[data-mode="dark"] .vo-card,
body[data-mode="dark"] .vs-aside__card,
body[data-mode="dark"] .vc-list__row,
body[data-mode="dark"] .vt-review,
body[data-mode="dark"] .vw-act,
body[data-mode="dark"] .vt-input,
body[data-mode="dark"] .vt-select { background: var(--card); }
