@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;650;750;850;900&family=Space+Grotesk:wght@600;700&display=swap");

:root {
  --bg: #09131d;
  --bg-glow-a: rgba(74, 222, 128, 0.24);
  --bg-glow-b: rgba(45, 212, 191, 0.22);
  --bg-glow-c: rgba(250, 204, 21, 0.14);
  --ink: #ecf8ff;
  --muted: rgba(223, 241, 255, 0.72);
  --line: rgba(160, 228, 255, 0.14);
  --panel: rgba(7, 18, 31, 0.52);
  --soft: rgba(255, 255, 255, 0.08);
  --dark: #08111b;
  --good: #86efac;
  --bad: #fda4af;
  --warn: #fde68a;
  --shadow: 0 30px 80px rgba(2, 8, 20, 0.42);
  --glass: blur(22px) saturate(1.45);
  --accent-a: #2dd4bf;
  --accent-b: #38bdf8;
  --accent-c: #facc15;
  --accent-d: #22c55e;
  --panel-edge: rgba(255, 255, 255, 0.18);
  --card-depth: 0 18px 40px rgba(4, 10, 24, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  font-family: "Manrope", "Aptos", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

/* Muncard V7Color redesign - staging build 2026-07-11 */
:root {
  --bg: #f6fbff;
  --ink: #172033;
  --muted: #64748b;
  --line: rgba(37, 99, 235, 0.14);
  --panel: rgba(255, 255, 255, 0.78);
  --soft: rgba(15, 23, 42, 0.055);
  --dark: #172033;
  --good: #15803d;
  --bad: #be123c;
  --warn: #b45309;
  --accent-a: #14b8a6;
  --accent-b: #2563eb;
  --accent-c: #f59e0b;
  --accent-d: #d946ef;
  --accent-e: #22c55e;
  --accent-f: #ef4444;
  --accent-g: #0ea5e9;
  --panel-edge: rgba(37, 99, 235, 0.16);
  --shadow: 0 22px 54px rgba(23, 32, 51, 0.12);
  --card-depth: 0 12px 30px rgba(23, 32, 51, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  --glass: blur(18px) saturate(1.28);
  --muncard-gradient: linear-gradient(135deg, #14b8a6 0%, #2563eb 22%, #d946ef 42%, #f59e0b 62%, #22c55e 82%, #0ea5e9 100%);
  color: var(--ink);
  background: var(--bg);
}

html,
body {
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(20, 184, 166, 0.12), transparent 26%),
    linear-gradient(240deg, rgba(217, 70, 239, 0.1), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #eef8ff 52%, #f6fbff 100%);
}

body {
  overflow: hidden;
}

body::before,
body::after {
  display: none;
}

#fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.86;
}

.app-scroller {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, rgba(20, 184, 166, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}

.shell {
  width: min(1180px, 100%);
  padding: 16px 14px 34px;
}

.shell-premium::before {
  display: none;
}

.app-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62)),
    linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(37, 99, 235, 0.1) 34%, rgba(217, 70, 239, 0.08) 66%, rgba(245, 158, 11, 0.12));
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}

.app-hero::before,
.panel::before,
.modal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: conic-gradient(from var(--v7-angle), transparent 0deg, rgba(20, 184, 166, 0.72) 38deg, rgba(37, 99, 235, 0.68) 82deg, rgba(217, 70, 239, 0.56) 128deg, rgba(245, 158, 11, 0.66) 174deg, rgba(34, 197, 94, 0.58) 222deg, transparent 282deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.62;
  animation: muncardLedRun 7s linear infinite;
}

@property --v7-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes muncardLedRun {
  to {
    --v7-angle: 360deg;
  }
}

.app-hero > *,
.panel > *,
.modal-card > * {
  position: relative;
  z-index: 1;
}

.app-hero-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--muncard-gradient);
  color: #ffffff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.22);
}

.brand-copy {
  min-width: 0;
}

.brand-kicker {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-copy h1 {
  margin-top: 5px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.brand-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-role {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 10px;
  padding: 0 12px;
  background: #ffffff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 8px 18px rgba(23, 32, 51, 0.08);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.hero-stats-grid div {
  min-width: 0;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.hero-stats-grid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-stats-grid b {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tabs {
  position: sticky;
  top: 8px;
  z-index: 12;
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.1);
  backdrop-filter: blur(18px) saturate(1.22);
  -webkit-backdrop-filter: blur(18px) saturate(1.22);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.subtabs {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.tabs .tab,
.subtabs .subtab {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 10px;
  padding: 0 12px 0 34px;
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
  box-shadow: none;
  font-size: 12px;
  font-weight: 900;
}

.tabs .tab::before,
.subtabs .subtab::before {
  left: 12px;
  color: #2563eb;
}

.tabs .tab.active,
.subtabs .subtab.active {
  border-color: transparent;
  background: var(--muncard-gradient);
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.2);
}

.tabs .tab.active::before,
.subtabs .subtab.active::before {
  color: #ffffff;
}

.panel,
.notice {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 14px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}

.panel {
  padding: 14px;
}

.notice {
  padding: 12px 14px;
  color: var(--muted);
}

.notice.ok {
  color: var(--good);
}

.notice.error {
  color: var(--bad);
}

.panel > .section-head:first-child,
.admin-titlebar,
.modal-card > .section-head:first-child {
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.eyebrow,
.section-head .eyebrow,
label,
.card-meta,
.card-sub,
.split-title span,
.limit {
  color: var(--muted);
  letter-spacing: 0;
}

h1,
h2,
h3,
.section-head h2,
.admin-titlebar h2,
.modal-card h2 {
  color: var(--ink);
  text-shadow: none;
}

button,
.small-btn,
.basic-btn,
.copy-btn,
.eye-btn,
.secondary,
.icon-btn,
.guide-primary-btn,
.guide-secondary-btn {
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  background: var(--muncard-gradient);
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.18);
}

button:hover,
.small-btn:hover,
.copy-btn:hover,
.eye-btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.08) brightness(1.02);
}

button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.secondary,
.basic-btn,
.icon-btn,
.copy-btn,
.eye-btn,
.small-btn.secondary {
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 8px 18px rgba(23, 32, 51, 0.08);
}

.icon-btn {
  width: 40px;
  min-height: 40px;
  padding: 0;
}

.form-grid {
  grid-template-columns: minmax(0, 1fr) 150px 130px;
  gap: 10px;
  margin: 14px 0;
}

input,
select,
textarea {
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

input::placeholder,
textarea::placeholder {
  color: rgba(100, 116, 139, 0.62);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(37, 99, 235, 0.46);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

select option,
select optgroup {
  color: #172033;
  background: #ffffff;
}

.list {
  gap: 8px;
}

.card,
.settings-box,
.accordion-card,
.stat-card,
.va-line,
.qr-box,
.empty {
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.76);
  color: var(--ink);
  box-shadow: var(--card-depth);
  backdrop-filter: blur(14px) saturate(1.18);
  -webkit-backdrop-filter: blur(14px) saturate(1.18);
}

.card {
  padding: 12px;
}

.card.clickable:hover,
.log-card:hover,
.done-card:hover,
.admin-va-card:hover,
.stat-button:hover,
.plain-card-head:hover {
  border-color: rgba(37, 99, 235, 0.32);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(23, 32, 51, 0.14);
}

.va-card::before {
  width: 4px;
  opacity: 0.95;
}

.va-card.bank-bidv,
.user-card.permission-approved,
.user-card.permission-pending {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.82);
}

.va-card.bank-msb {
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.82);
}

.bank-tag,
.pill {
  border-radius: 999px;
}

.bank-tag {
  box-shadow: none;
}

.pill {
  min-height: 24px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.pill.pending {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.pill.paid {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

.pill.rejected {
  background: rgba(239, 68, 68, 0.12);
  color: #be123c;
}

.amount.good {
  color: #15803d;
}

.amount.bad {
  color: #be123c;
}

.va-line,
.done-text,
.qr-box {
  background: rgba(248, 250, 252, 0.82);
}

.done-text {
  border-color: rgba(37, 99, 235, 0.12);
  color: #334155;
}

.accordion-head,
.plain-card-head {
  color: var(--ink);
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.stat-card {
  min-height: 78px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(236, 253, 245, 0.48)),
    rgba(255, 255, 255, 0.82);
}

.stat-number {
  color: var(--ink);
}

.ranking-badge {
  border-radius: 10px;
  color: #ffffff;
  background: var(--muncard-gradient);
}

.toast {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.9);
}

.modal {
  background: rgba(15, 23, 42, 0.34);
}

.modal-card {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.guide-bubble {
  right: 14px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  min-height: 58px;
  border-color: rgba(37, 99, 235, 0.18);
  background: var(--muncard-gradient);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.2);
}

.guide-bubble::after {
  background: transparent;
}

.guide-bubble-core {
  inset: 7px;
  background: rgba(255, 255, 255, 0.92);
}

.guide-bubble-badge {
  width: 34px;
  height: 34px;
  font-size: 10px;
  background: var(--muncard-gradient);
  box-shadow: none;
}

.guide-card,
.guide-note-card,
.guide-tab,
.guide-secondary-btn,
.guide-close {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(37, 99, 235, 0.14);
}

.guide-tab.active,
.guide-primary-btn {
  background: var(--muncard-gradient);
  color: #ffffff;
}

.guide-head-copy h2 {
  color: var(--ink);
}

.guide-head-copy p,
.guide-card p {
  color: #475569;
}

.loading-card {
  border-radius: 8px;
  border-color: rgba(37, 99, 235, 0.12);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.62), rgba(37, 99, 235, 0.12), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.68);
}

.spinner {
  border-color: rgba(37, 99, 235, 0.14);
  border-top-color: #2563eb;
}

#refreshBtn {
  color: #2563eb;
  font-size: 0;
}

#refreshBtn::before {
  content: "↻";
  left: 50%;
  color: #2563eb;
  font-size: 18px;
  transform: translate(-50%, -50%);
}

@media (min-width: 900px) {
  .tabs {
    flex-wrap: wrap;
  }

  .tabs .tab {
    flex: 1 1 128px;
  }
}

@media (max-width: 700px) {
  .shell {
    padding: 10px 9px 28px;
  }

  .app-hero {
    border-radius: 14px;
    padding: 11px;
  }

  .app-hero-main {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 20px;
  }

  .brand-copy h1 {
    font-size: 20px;
  }

  .brand-kicker {
    font-size: 9px;
  }

  .hero-role {
    min-height: 30px;
    padding: 0 9px;
    font-size: 10px;
  }

  .hero-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .hero-stats-grid div {
    padding: 7px 6px;
  }

  .hero-stats-grid span {
    font-size: 9px;
  }

  .hero-stats-grid b {
    font-size: 12px;
  }

  .tabs {
    top: 6px;
    border-radius: 12px;
    padding: 6px;
  }

  .tabs .tab,
  .subtabs .subtab {
    min-height: 38px;
    border-radius: 8px;
    padding: 0 10px 0 30px;
    font-size: 11px;
  }

  .tabs .tab::before,
  .subtabs .subtab::before {
    left: 10px;
  }

  .panel {
    padding: 11px;
  }

  .form-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 10px;
  }

  .transaction-side {
    min-width: 92px;
  }
}

@media (max-width: 420px) {
  .app-hero-main {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hero-role {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .hero-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  #fx-canvas {
    display: none;
  }
}

/* Final production smoothness override. Keep last. */
body::before {
  content: "" !important;
  position: fixed !important;
  inset: -30% !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: block !important;
  pointer-events: none !important;
  z-index: 0 !important;
  opacity: 0.28 !important;
  border-radius: 0 !important;
  background:
    conic-gradient(from var(--v7-bg-angle), rgba(20, 184, 166, 0.34), rgba(37, 99, 235, 0.3), rgba(217, 70, 239, 0.24), rgba(239, 68, 68, 0.18), rgba(245, 158, 11, 0.24), rgba(34, 197, 94, 0.28), rgba(14, 165, 233, 0.26), rgba(20, 184, 166, 0.34)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)) !important;
  filter: blur(18px) saturate(1.18) !important;
  transform: perspective(900px) rotateX(54deg) rotateZ(0deg) scale(1.12) !important;
  animation: v7BackgroundSpin 18s linear infinite !important;
}

body::after {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: block !important;
  pointer-events: none !important;
  z-index: 0 !important;
  opacity: 0.2 !important;
  border-radius: 0 !important;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.62) 46%, transparent 62%),
    linear-gradient(90deg, rgba(37, 99, 235, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 184, 166, 0.12) 1px, transparent 1px) !important;
  background-size: 180% 100%, 34px 34px, 34px 34px !important;
  transform: translateZ(0) !important;
  animation: v7GridDrift 9s ease-in-out infinite alternate !important;
}

.compact-info-card {
  display: block;
  padding: 10px 11px;
  overflow: hidden;
  contain: layout paint style;
}

.compact-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.compact-main,
.compact-title,
.compact-title b {
  min-width: 0;
}

.compact-title {
  display: flex;
  align-items: baseline;
  gap: 7px;
  line-height: 1.18;
}

.compact-title span,
.compact-balance span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.compact-title b,
.compact-balance b {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-title b {
  flex: 1 1 auto;
}

.compact-meta {
  display: flex;
  align-items: center;
  gap: 4px 8px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
}

.compact-meta span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: rgba(100, 116, 139, 0.58);
}

.compact-side {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 88px;
  text-align: right;
}

.compact-balance b {
  font-size: 14px;
}

.compact-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(37, 99, 235, 0.09);
}

.compact-info-card.transaction-card .compact-balance b,
.compact-info-card.log-card.transaction-card .compact-balance b {
  color: #15803d;
}

.compact-info-card.clickable {
  cursor: pointer;
}

@media (max-width: 700px) {
  body::before {
    opacity: 0.22 !important;
    animation-duration: 24s !important;
  }

  body::after {
    opacity: 0.16 !important;
    animation-duration: 12s !important;
  }

  .compact-info-card {
    padding: 9px 10px;
  }

  .compact-card-head {
    grid-template-columns: minmax(0, 1fr) minmax(76px, auto);
    gap: 7px;
  }

  .compact-title {
    display: grid;
    gap: 2px;
  }

  .compact-title b {
    font-size: 14px;
  }

  .compact-meta {
    font-size: 10px;
  }

  .compact-meta span {
    max-width: 132px;
  }

  .compact-balance b {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none !important;
  }
}

/* EOF card readability override: wrap compact metadata instead of hiding it. */
.compact-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 4px 6px !important;
  white-space: normal !important;
  overflow: visible !important;
  line-height: 1.28 !important;
}

.compact-meta span {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  word-break: break-word !important;
}

.compact-meta span + span::before {
  content: "·";
  flex: 0 0 auto;
  margin-right: 6px;
}

.compact-title b {
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.18;
}

.compact-card-head {
  align-items: start !important;
}

.compact-side {
  padding-top: 1px;
}

@media (max-width: 700px) {
  .compact-card-head {
    grid-template-columns: minmax(0, 1fr) minmax(82px, auto) !important;
  }

  .compact-title {
    display: block !important;
  }

  .compact-title span {
    display: block;
    margin-bottom: 2px;
  }

  .compact-title b {
    font-size: 14px;
  }

  .compact-meta {
    font-size: 10px !important;
    gap: 3px 5px !important;
  }

  .compact-balance b {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* BOT BANK CHAT LED typing title */
.brand-copy .brand-led-title {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 1.18em;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background:
    linear-gradient(90deg, #14b8a6 0%, #2563eb 15%, #d946ef 31%, #ef4444 47%, #f59e0b 63%, #22c55e 80%, #0ea5e9 100%);
  background-size: 240% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.3)) drop-shadow(0 0 14px rgba(217, 70, 239, 0.2));
  letter-spacing: 0;
  white-space: nowrap;
  animation: botBankLedSweep 1.55s linear infinite, botBankLedGlow 2.2s ease-in-out infinite;
}

.brand-copy .brand-led-title::after {
  content: "";
  flex: 0 0 3px;
  width: 3px;
  height: 0.92em;
  margin-left: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #14b8a6, #d946ef, #f59e0b, #22c55e);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.42), 0 0 18px rgba(217, 70, 239, 0.32);
  animation: botBankCursorBlink 0.56s steps(2, end) infinite;
}

@keyframes botBankLedSweep {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

@keyframes botBankLedGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 7px rgba(20, 184, 166, 0.24)) drop-shadow(0 0 14px rgba(37, 99, 235, 0.16));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(217, 70, 239, 0.34)) drop-shadow(0 0 20px rgba(245, 158, 11, 0.22));
  }
}

@keyframes botBankCursorBlink {
  0%,
  48% {
    opacity: 1;
  }
  49%,
  100% {
    opacity: 0.18;
  }
}

@media (max-width: 700px) {
  .brand-copy .brand-led-title {
    font-size: 20px;
  }
}

@media (max-width: 420px) {
  .brand-copy .brand-led-title {
    font-size: 19px;
  }
}

/* Smooth compact cards + animated 7Color 3D background */
body::before {
  content: "";
  position: fixed;
  inset: -30%;
  display: block;
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
  background:
    conic-gradient(from var(--v7-bg-angle), rgba(20, 184, 166, 0.34), rgba(37, 99, 235, 0.3), rgba(217, 70, 239, 0.24), rgba(239, 68, 68, 0.18), rgba(245, 158, 11, 0.24), rgba(34, 197, 94, 0.28), rgba(14, 165, 233, 0.26), rgba(20, 184, 166, 0.34)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
  filter: blur(18px) saturate(1.18);
  transform: perspective(900px) rotateX(54deg) rotateZ(0deg) scale(1.12);
  animation: v7BackgroundSpin 18s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  display: block;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.62) 46%, transparent 62%),
    linear-gradient(90deg, rgba(37, 99, 235, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 184, 166, 0.12) 1px, transparent 1px);
  background-size: 180% 100%, 34px 34px, 34px 34px;
  transform: translateZ(0);
  animation: v7GridDrift 9s ease-in-out infinite alternate;
}

@property --v7-bg-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes v7BackgroundSpin {
  to {
    --v7-bg-angle: 360deg;
    transform: perspective(900px) rotateX(54deg) rotateZ(360deg) scale(1.12);
  }
}

@keyframes v7GridDrift {
  from {
    background-position: 0% 0%, 0 0, 0 0;
  }
  to {
    background-position: 100% 0%, 18px 10px, -12px 16px;
  }
}

.app-scroller,
.shell,
.panel,
.app-hero,
.tabs,
.card,
.modal-card {
  transform: translateZ(0);
}

.compact-info-card {
  display: block;
  padding: 10px 11px;
  overflow: hidden;
  contain: layout paint style;
}

.compact-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.compact-main {
  min-width: 0;
}

.compact-title {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  line-height: 1.18;
}

.compact-title span,
.compact-balance span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.compact-title b,
.compact-balance b {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-title b {
  flex: 1 1 auto;
}

.compact-meta {
  display: flex;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
}

.compact-meta span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: rgba(100, 116, 139, 0.58);
}

.compact-side {
  display: grid;
  justify-items: end;
  align-items: center;
  gap: 4px;
  min-width: 88px;
  text-align: right;
}

.compact-balance b {
  font-size: 14px;
}

.compact-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(37, 99, 235, 0.09);
}

.compact-actions .copy-btn,
.compact-actions .eye-btn {
  min-height: 28px;
  border-radius: 8px;
  padding: 0 9px;
  font-size: 11px;
}

.compact-info-card.transaction-card .compact-balance b,
.compact-info-card.log-card.transaction-card .compact-balance b {
  color: #15803d;
}

.compact-info-card.clickable {
  cursor: pointer;
}

.compact-info-card.clickable:active {
  transform: translateY(1px) translateZ(0) scale(0.998);
}

.pill {
  min-height: 21px;
  padding: 0 8px;
  font-size: 10px;
  white-space: nowrap;
}

.ranking-badge {
  width: auto;
  min-width: 34px;
  height: 24px;
  border-radius: 8px;
  font-size: 11px;
}

.loading-card {
  animation-duration: 1.1s;
}

@media (max-width: 700px) {
  body::before {
    opacity: 0.22;
    filter: blur(20px) saturate(1.08);
    animation-duration: 24s;
  }

  body::after {
    opacity: 0.16;
    animation-duration: 12s;
  }

  .compact-info-card {
    padding: 9px 10px;
  }

  .compact-card-head {
    gap: 7px;
  }

  .compact-title {
    display: grid;
    gap: 2px;
  }

  .compact-title b {
    font-size: 14px;
  }

  .compact-meta {
    gap: 3px 6px;
    font-size: 10px;
  }

  .compact-meta span {
    max-width: 154px;
  }

  .compact-side {
    min-width: 76px;
  }

  .compact-balance b {
    font-size: 12px;
  }

  .compact-actions {
    margin-top: 6px;
    padding-top: 6px;
  }
}

@media (max-width: 420px) {
  .compact-card-head {
    grid-template-columns: minmax(0, 1fr) minmax(70px, auto);
  }

  .compact-meta span {
    max-width: 126px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none !important;
  }
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  background:
    radial-gradient(circle at 14% 16%, rgba(56, 189, 248, 0.28), transparent 28%),
    radial-gradient(circle at 86% 14%, rgba(250, 204, 21, 0.18), transparent 24%),
    radial-gradient(circle at 80% 80%, rgba(45, 212, 191, 0.2), transparent 26%),
    linear-gradient(140deg, rgba(6, 22, 38, 0.88), rgba(9, 19, 29, 0.96)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--bg);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 42vw;
  height: 42vw;
  min-width: 260px;
  min-height: 260px;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(26px);
  opacity: 0.68;
  z-index: 0;
  animation: floatOrb 16s ease-in-out infinite;
}

body::before {
  top: -8vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.34), rgba(34, 197, 94, 0.08) 60%, transparent 70%);
}

body::after {
  right: -12vw;
  bottom: -10vw;
  animation-delay: -6s;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.22), rgba(45, 212, 191, 0.1) 58%, transparent 74%);
}

html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

button,
input,
select {
  font: inherit;
  font-size: 16px;
}

textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  outline: none;
  resize: vertical;
  font: inherit;
  font-size: 16px;
  backdrop-filter: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

textarea:focus {
  border-color: rgba(163, 230, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

button {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.96), rgba(56, 189, 248, 0.92) 54%, rgba(34, 197, 94, 0.9));
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(8, 23, 40, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

button:disabled {
  opacity: 0.52;
  cursor: wait;
}

input,
select {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  outline: none;
  font-size: 16px;
  backdrop-filter: var(--glass);
  -webkit-appearance: none;
  appearance: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

select option,
select optgroup {
  color: #10202b;
  background: #ffffff;
}

input:focus,
select:focus {
  border-color: rgba(163, 230, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.app-scroller {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 18px 14px 40px;
  position: relative;
  z-index: 1;
}

.shell-premium::before {
  content: "";
  position: absolute;
  inset: 8px 4px auto;
  height: 220px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.2), transparent 42%),
    linear-gradient(220deg, rgba(250, 204, 21, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 80%);
  filter: blur(0);
  pointer-events: none;
  opacity: 0.95;
}

.shell-premium > * {
  position: relative;
  z-index: 1;
}

#protectedApp {
  display: none;
}

body.app-ready #protectedApp {
  display: block;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

h1 {
  font-size: 34px;
  line-height: 0.95;
  font-weight: 950;
}

h2 {
  font-size: 22px;
  font-weight: 950;
}

h3 {
  font-size: 15px;
  font-weight: 900;
}

.tabs,
.subtabs {
  display: grid;
  gap: 8px;
}

.tabs {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  margin-bottom: 16px;
}

.subtabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 14px 0;
}

.tab,
.subtab,
.secondary,
.icon-btn {
  border-color: var(--panel-edge);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  color: var(--ink);
  backdrop-filter: var(--glass);
  box-shadow: var(--card-depth);
}

.tab.active,
.subtab.active {
  border-color: rgba(125, 211, 252, 0.6);
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.96), rgba(56, 189, 248, 0.92) 52%, rgba(34, 197, 94, 0.9));
  color: #fff;
}

.panel,
.notice {
  display: none;
  border: 1px solid var(--panel-edge);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass);
}

.panel.active,
.notice {
  display: block;
}

.panel {
  padding: 20px;
  animation: panelRise 0.34s ease;
}

.notice {
  margin-bottom: 12px;
  padding: 16px 18px;
  color: var(--muted);
  font-weight: 800;
}

.notice.ok {
  color: var(--good);
}

.notice.error {
  color: var(--bad);
}

.section-head,
.split-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.icon-btn {
  width: 48px;
  padding: 0;
  font-size: 18px;
  border-radius: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px 128px;
  gap: 12px;
  align-items: end;
  margin: 16px 0;
}

.loading-grid {
  display: grid;
  gap: 12px;
}

.loading-card {
  height: 84px;
  border: 1px solid var(--panel-edge);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.05);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}

.loading-card.compact {
  height: 58px;
}

.loading-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(125, 211, 252, 0.92);
  border-radius: 999px;
  animation: spin 0.9s linear infinite;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.split-title {
  margin: 16px 0 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.split-title span,
.limit {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.list {
  display: grid;
  gap: 10px;
}

.list.compact {
  margin: 14px 0;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: start;
}

.admin-detail {
  position: sticky;
  top: 12px;
}

.card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--panel-edge);
  border-radius: 22px;
  padding: 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    rgba(10, 20, 34, 0.52);
  backdrop-filter: var(--glass);
  box-shadow: var(--card-depth);
  transform-style: preserve-3d;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  animation: cardRise 0.32s ease both;
}

.card.clickable {
  cursor: pointer;
}

.card.clickable:hover {
  border-color: rgba(125, 211, 252, 0.45);
  transform: translateY(-4px) rotateX(1.8deg);
}

.va-card {
  position: relative;
  overflow: hidden;
}

.va-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--bank-accent, rgba(16, 185, 129, 0.82));
}

.va-card.bank-bidv {
  --bank-accent: #1d4ed8;
  background:
    linear-gradient(135deg, rgba(29, 78, 216, 0.26), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(8, 18, 30, 0.64);
}

.va-card.bank-msb {
  --bank-accent: #dc2626;
  background:
    linear-gradient(135deg, rgba(220, 38, 38, 0.24), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(8, 18, 30, 0.64);
}

.bank-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--bank-accent, rgba(16, 185, 129, 0.82));
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
}

.card-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.card-title {
  min-width: 0;
  font-size: 15px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.card-meta,
.card-sub {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

.va-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: var(--glass);
}

.va-line span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.copy-btn,
.eye-btn {
  min-height: 34px;
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  color: var(--ink);
  padding: 0 10px;
  font-size: 12px;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.va-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.amount {
  white-space: nowrap;
  font-weight: 950;
}

.amount.good {
  color: var(--good);
}

.amount.bad {
  color: var(--bad);
}

.transaction-card .card-row {
  align-items: center;
}

.transaction-side {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
  flex: 0 0 auto;
}

.admin-titlebar {
  padding: 2px 0 14px;
}

.admin-grid {
  display: grid;
  gap: 12px;
}

.admin-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.log-card,
.done-card,
.admin-va-card {
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.log-card:hover,
.done-card:hover,
.admin-va-card:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, 0.28);
}

.plain-card-head {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  text-align: left;
}

.done-text {
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.45 "IBM Plex Mono", "Consolas", monospace;
}

.qr-box {
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.qr-box img {
  width: min(280px, 100%);
  border-radius: 8px;
}

.fee-inline {
  width: 96px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.pill.pending {
  color: #fff3cd;
  background: rgba(245, 158, 11, 0.18);
}

.pill.paid {
  color: #dcfce7;
  background: rgba(34, 197, 94, 0.18);
}

.pill.rejected {
  color: #ffe4e6;
  background: rgba(244, 63, 94, 0.18);
}

.mono {
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-weight: 900;
}

.settings-box {
  display: grid;
  gap: 12px;
  border: 1px solid var(--panel-edge);
  border-radius: 22px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05)),
    rgba(8, 17, 29, 0.54);
  backdrop-filter: var(--glass);
}

.admin-accordion {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.accordion-card {
  border: 1px solid var(--panel-edge);
  border-radius: 22px;
  background: rgba(9, 19, 32, 0.54);
  backdrop-filter: var(--glass);
  overflow: hidden;
}

.accordion-card.open {
  border-color: rgba(14, 165, 233, 0.42);
  box-shadow: 0 14px 34px rgba(14, 116, 144, 0.14);
}

.accordion-head {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.accordion-body {
  display: none;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.accordion-card.open .accordion-body {
  display: grid;
  gap: 12px;
}

.user-card {
  border-left: 5px solid rgba(14, 165, 233, 0.64);
}

.user-card.permission-new,
.user-card.permission-rejected {
  border-left-color: var(--bad);
}

.user-card.permission-pending {
  border-left-color: var(--warn);
}

.user-card.permission-approved {
  border-left-color: rgba(16, 185, 129, 0.9);
}

.settings-box {
  margin: 14px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.admin-stats {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 10px;
}

.stat-card {
  min-height: 92px;
  display: grid;
  gap: 6px;
  align-content: center;
  border: 1px solid var(--panel-edge);
  border-radius: 22px;
  padding: 12px;
  background:
    radial-gradient(circle at top right, rgba(125, 211, 252, 0.12), transparent 42%),
    rgba(8, 18, 30, 0.64);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--card-depth);
}

.stat-button {
  cursor: pointer;
}

.stat-number {
  font-size: 20px;
  font-weight: 950;
}

.admin-beneficiary-form {
  grid-template-columns: minmax(0, 1fr);
}

.user-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: end;
}

.done-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.small-btn {
  min-height: 38px;
  padding: 0 12px;
  font-size: 12px;
}

.basic-btn {
  min-height: 40px;
  border-radius: 16px;
  border: 1px solid var(--panel-edge);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  box-shadow: none;
}

.toast {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 18px;
  z-index: 10;
  width: min(520px, calc(100% - 28px));
  margin: 0 auto;
  border-radius: 18px;
  padding: 13px 14px;
  background: rgba(7, 18, 31, 0.92);
  color: #fff;
  box-shadow: 0 18px 60px rgba(8, 8, 8, 0.22);
  font-weight: 850;
  text-align: center;
}

.guide-bubble {
  position: fixed;
  right: 16px;
  bottom: 112px;
  z-index: 25;
  width: 76px;
  height: 76px;
  min-height: 76px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.08) 42%),
    linear-gradient(135deg, rgba(56, 189, 248, 0.92), rgba(37, 99, 235, 0.9) 50%, rgba(250, 204, 21, 0.82));
  box-shadow: 0 24px 54px rgba(2, 8, 20, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  padding: 0;
  touch-action: none;
  user-select: none;
  cursor: grab;
}

.guide-bubble.dragging {
  cursor: grabbing;
  transform: scale(1.04);
}

.guide-bubble.snapping {
  transition: left 0.24s ease, top 0.24s ease, right 0.24s ease, bottom 0.24s ease, transform 0.24s ease;
}

.guide-bubble::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 66%);
  z-index: -1;
  animation: guidePulse 2.8s ease-in-out infinite;
}

.guide-bubble-core {
  position: absolute;
  inset: 9px;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(221, 244, 255, 0.9));
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.6);
}

.guide-bubble-badge {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 14px 22px rgba(249, 115, 22, 0.34);
}

.guide-modal {
  z-index: 30;
}

.guide-card {
  width: min(840px, 100%);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 255, 0.96));
  color: #111827;
  border-color: rgba(255, 214, 102, 0.5);
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.32);
}

.guide-card .eyebrow,
.guide-card .card-sub,
.guide-card p,
.guide-card h2 {
  color: #111827;
  text-shadow: none;
}

.guide-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.guide-head-mark {
  display: grid;
  place-items: center;
}

.guide-logo-ring {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg, #0f4cda, #1d8fff 58%, #facc15);
  box-shadow: 0 18px 32px rgba(29, 78, 216, 0.28);
}

.guide-logo-core {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 900;
}

.guide-head-copy h2 {
  font-size: clamp(28px, 4vw, 40px);
  text-transform: uppercase;
}

.guide-head-copy p {
  margin: 8px 0 0;
  color: rgba(17, 24, 39, 0.68);
  font-size: 15px;
  font-weight: 800;
}

.guide-close {
  background: #fff;
  color: #111827;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.guide-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 20px;
}

.guide-tab {
  min-height: 62px;
  border-radius: 999px;
  background: #fff;
  color: #374151;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  font-size: 14px;
  font-weight: 900;
}

.guide-tab.active {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.28);
}

.guide-panels {
  display: grid;
  gap: 18px;
}

.guide-panel {
  display: block;
}

.guide-note-card {
  display: grid;
  gap: 16px;
  border-radius: 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.94);
  padding: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 18px 38px rgba(15, 23, 42, 0.08);
}

.guide-note-card p {
  margin: 0;
  font-size: clamp(18px, 2.8vw, 22px);
  line-height: 1.48;
  font-weight: 900;
}

.guide-actions {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.guide-primary-btn,
.guide-secondary-btn {
  min-height: 66px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
}

.guide-primary-btn {
  background: linear-gradient(135deg, #4f46e5, #7c3aed 65%, #8b5cf6);
  color: #fff;
  box-shadow: 0 22px 42px rgba(99, 102, 241, 0.28);
}

.guide-secondary-btn {
  background: #fff;
  color: #b45309;
  border-color: rgba(16, 185, 129, 0.22);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: end center;
  padding: 14px;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 35%),
    rgba(3, 9, 18, 0.54);
  backdrop-filter: blur(12px);
}

.modal[hidden] {
  display: none;
}

.modal-card {
  width: min(560px, 100%);
  max-height: min(84vh, 720px);
  overflow: auto;
  border: 1px solid var(--panel-edge);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: var(--glass);
  box-shadow: 0 24px 80px rgba(8, 8, 8, 0.28);
  padding: 18px;
}

.result-lines {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.history-block {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.empty {
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 850;
}

.tabs .tab,
.subtabs .subtab {
  position: relative;
  min-height: 60px;
  border-radius: 20px;
  padding: 0 16px 0 42px;
  font-weight: 900;
  text-align: left;
  overflow: hidden;
}

.tabs .tab::before,
.subtabs .subtab::before,
.icon-btn::before {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  opacity: 0.92;
}

.tabs .tab::after,
.subtabs .subtab::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.16) 46%, transparent 68%);
  transform: translateX(-120%);
  transition: transform 0.45s ease;
}

.tabs .tab:hover::after,
.subtabs .subtab:hover::after {
  transform: translateX(120%);
}

.tab[data-tab="va"]::before {
  content: "◎";
}

.tab[data-tab="history"]::before {
  content: "◔";
}

.tab[data-tab="beneficiary"]::before {
  content: "◈";
}

.tab[data-tab="admin-dashboard"]::before {
  content: "◫";
}

.tab[data-tab="admin-vas"]::before {
  content: "▣";
}

.tab[data-tab="admin-users"]::before {
  content: "◉";
}

.tab[data-tab="admin-ranking"]::before {
  content: "▲";
}

.tab[data-tab="admin-permissions"]::before {
  content: "◌";
}

.tab[data-tab="admin-fees"]::before {
  content: "%";
}

.tab[data-tab="admin-done"]::before {
  content: "✓";
}

.subtab[data-history="credits"]::before {
  content: "+";
}

#refreshBtn::before {
  content: "↻";
  left: 50%;
  transform: translate(-50%, -50%);
}

#refreshBtn {
  color: transparent;
}

.panel > .section-head:first-child,
.admin-titlebar,
.modal-card > .section-head:first-child {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-head .eyebrow {
  color: rgba(180, 242, 255, 0.82);
}

.section-head h2,
.admin-titlebar h2,
.modal-card h2 {
  text-shadow: 0 4px 20px rgba(34, 211, 238, 0.14);
}

button,
.small-btn,
.copy-btn,
.eye-btn {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

button:hover,
.small-btn:hover,
.copy-btn:hover,
.eye-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

button:active,
.small-btn:active,
.copy-btn:active,
.eye-btn:active {
  transform: translateY(0);
}

input,
select,
textarea {
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

input::placeholder,
textarea::placeholder {
  color: rgba(223, 241, 255, 0.42);
}

label {
  color: rgba(212, 238, 250, 0.76);
}

.transaction-card,
.done-card,
.user-card,
.admin-va-card,
.log-card {
  position: relative;
  overflow: hidden;
}

.transaction-card::after,
.done-card::after,
.user-card::after,
.admin-va-card::after,
.log-card::after,
.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 32%, transparent 68%, rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.user-card.permission-approved {
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.1), transparent 36%),
    rgba(8, 18, 30, 0.64);
}

.user-card.permission-pending {
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.12), transparent 36%),
    rgba(8, 18, 30, 0.64);
}

.ranking-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 12px 0 14px;
  flex-wrap: wrap;
}

.ranking-filters {
  margin-top: 14px;
}

.admin-va-header-card {
  gap: 14px;
}

.ranking-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.ranking-badge {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(45, 212, 191, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 16px 32px rgba(2, 8, 20, 0.24);
}

.ranking-card.gold .ranking-badge {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.96), rgba(245, 158, 11, 0.92));
  color: #241403;
}

.ranking-card.silver .ranking-badge {
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.98), rgba(148, 163, 184, 0.92));
  color: #0f172a;
}

.ranking-card.bronze .ranking-badge {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.96), rgba(194, 65, 12, 0.92));
  color: #fff7ed;
}

.done-card.open,
.accordion-card.open,
.plain-card-head:hover,
.stat-button:hover {
  border-color: rgba(125, 211, 252, 0.42);
  box-shadow: 0 28px 70px rgba(2, 8, 20, 0.38);
}

.list.compact .card,
.list.compact .user-card {
  border-radius: 20px;
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, 16px, 0) scale(1.06);
  }
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -20% 0;
  }
}

@keyframes panelRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes guidePulse {
  0%,
  100% {
    opacity: 0.52;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.88;
    transform: scale(1.06);
  }
}

@media (max-width: 700px) {
  .shell {
    padding: 12px 10px 30px;
  }

  .shell-premium::before {
    inset: 0 0 auto;
    height: 160px;
    border-radius: 0 0 28px 28px;
  }

  h1 {
    font-size: 30px;
  }

  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tabs .tab,
  .subtabs .subtab {
    min-height: 56px;
    padding-left: 40px;
  }

  .form-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 13px;
  }

  .card-row {
    flex-direction: column;
  }

  .transaction-card .card-row {
    flex-direction: row;
    align-items: center;
  }

  .transaction-card .card-title,
  .transaction-card .card-sub {
    overflow-wrap: anywhere;
  }

  .transaction-side {
    min-width: 96px;
  }

  .admin-grid.two {
    grid-template-columns: 1fr;
  }

  .plain-card-head {
    align-items: stretch;
  }

  .user-actions {
    grid-template-columns: 1fr;
  }

  .done-actions {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 10px;
  }

  .modal-card {
    border-radius: 24px;
  }

  .guide-bubble {
    width: 68px;
    height: 68px;
    min-height: 68px;
    bottom: 98px;
  }

  .guide-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
  }

  .guide-logo-ring {
    width: 60px;
    height: 60px;
  }

  .guide-logo-core {
    width: 46px;
    height: 46px;
    font-size: 11px;
  }

  .guide-tabs {
    grid-template-columns: 1fr;
  }

  .guide-note-card {
    padding: 20px;
    border-radius: 24px;
  }

  .guide-primary-btn,
  .guide-secondary-btn {
    min-height: 58px;
    font-size: 17px;
  }
}

/* Muncard V7Color final override - keep this block last. */
:root {
  --bg: #f6fbff;
  --ink: #172033;
  --muted: #64748b;
  --line: rgba(37, 99, 235, 0.14);
  --panel: rgba(255, 255, 255, 0.78);
  --soft: rgba(15, 23, 42, 0.055);
  --dark: #172033;
  --good: #15803d;
  --bad: #be123c;
  --warn: #b45309;
  --panel-edge: rgba(37, 99, 235, 0.16);
  --shadow: 0 22px 54px rgba(23, 32, 51, 0.12);
  --card-depth: 0 12px 30px rgba(23, 32, 51, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  --glass: blur(18px) saturate(1.28);
  --muncard-gradient: linear-gradient(135deg, #14b8a6 0%, #2563eb 22%, #d946ef 42%, #f59e0b 62%, #22c55e 82%, #0ea5e9 100%);
  color: var(--ink);
  background: var(--bg);
}

html,
body {
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(20, 184, 166, 0.12), transparent 26%),
    linear-gradient(240deg, rgba(217, 70, 239, 0.1), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #eef8ff 52%, #f6fbff 100%);
}

body::before,
body::after {
  display: none;
}

#fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.86;
}

.app-scroller {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, rgba(20, 184, 166, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}

.shell {
  width: min(1180px, 100%);
  padding: 16px 14px 34px;
}

.shell-premium::before {
  display: none;
}

.app-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62)),
    linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(37, 99, 235, 0.1) 34%, rgba(217, 70, 239, 0.08) 66%, rgba(245, 158, 11, 0.12));
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}

.app-hero::before,
.panel::before,
.modal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: conic-gradient(from var(--v7-angle), transparent 0deg, rgba(20, 184, 166, 0.72) 38deg, rgba(37, 99, 235, 0.68) 82deg, rgba(217, 70, 239, 0.56) 128deg, rgba(245, 158, 11, 0.66) 174deg, rgba(34, 197, 94, 0.58) 222deg, transparent 282deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.62;
  animation: muncardLedRun 7s linear infinite;
}

.app-hero > *,
.panel > *,
.modal-card > * {
  position: relative;
  z-index: 1;
}

.app-hero-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--muncard-gradient);
  color: #ffffff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.22);
}

.brand-copy {
  min-width: 0;
}

.brand-kicker {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-copy h1 {
  margin-top: 5px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.brand-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-role {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 10px;
  padding: 0 12px;
  background: #ffffff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 8px 18px rgba(23, 32, 51, 0.08);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.hero-stats-grid div {
  min-width: 0;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.hero-stats-grid span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-stats-grid b {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tabs {
  position: sticky;
  top: 8px;
  z-index: 12;
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.1);
  backdrop-filter: blur(18px) saturate(1.22);
  -webkit-backdrop-filter: blur(18px) saturate(1.22);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.subtabs {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.tabs .tab,
.subtabs .subtab {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 10px;
  padding: 0 12px 0 34px;
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
  box-shadow: none;
  font-size: 12px;
  font-weight: 900;
}

.tabs .tab::before,
.subtabs .subtab::before {
  left: 12px;
  color: #2563eb;
}

.tabs .tab.active,
.subtabs .subtab.active {
  border-color: transparent;
  background: var(--muncard-gradient);
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.2);
}

.tabs .tab.active::before,
.subtabs .subtab.active::before {
  color: #ffffff;
}

.panel,
.notice {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 14px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}

.panel {
  padding: 14px;
}

.panel > .section-head:first-child,
.admin-titlebar,
.modal-card > .section-head:first-child {
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.eyebrow,
.section-head .eyebrow,
label,
.card-meta,
.card-sub,
.split-title span,
.limit {
  color: var(--muted);
  letter-spacing: 0;
}

h1,
h2,
h3,
.section-head h2,
.admin-titlebar h2,
.modal-card h2 {
  color: var(--ink);
  text-shadow: none;
}

button,
.small-btn,
.basic-btn,
.copy-btn,
.eye-btn,
.secondary,
.icon-btn,
.guide-primary-btn,
.guide-secondary-btn {
  border-radius: 10px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  background: var(--muncard-gradient);
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.18);
}

.secondary,
.basic-btn,
.icon-btn,
.copy-btn,
.eye-btn,
.small-btn.secondary {
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 8px 18px rgba(23, 32, 51, 0.08);
}

.icon-btn {
  width: 40px;
  min-height: 40px;
  padding: 0;
}

.form-grid {
  grid-template-columns: minmax(0, 1fr) 150px 130px;
  gap: 10px;
  margin: 14px 0;
}

input,
select,
textarea {
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

input::placeholder,
textarea::placeholder {
  color: rgba(100, 116, 139, 0.62);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(37, 99, 235, 0.46);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

select option,
select optgroup {
  color: #172033;
  background: #ffffff;
}

.list {
  gap: 8px;
}

.card,
.settings-box,
.accordion-card,
.stat-card,
.va-line,
.qr-box,
.empty {
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.76);
  color: var(--ink);
  box-shadow: var(--card-depth);
  backdrop-filter: blur(14px) saturate(1.18);
  -webkit-backdrop-filter: blur(14px) saturate(1.18);
}

.card {
  padding: 12px;
}

.card.clickable:hover,
.log-card:hover,
.done-card:hover,
.admin-va-card:hover,
.stat-button:hover,
.plain-card-head:hover {
  border-color: rgba(37, 99, 235, 0.32);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(23, 32, 51, 0.14);
}

.va-card::before {
  width: 4px;
  opacity: 0.95;
}

.va-card.bank-bidv,
.user-card.permission-approved,
.user-card.permission-pending {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.82);
}

.va-card.bank-msb {
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.82);
}

.bank-tag,
.pill {
  border-radius: 999px;
}

.pill {
  min-height: 24px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.pill.pending {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.pill.paid {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

.pill.rejected {
  background: rgba(239, 68, 68, 0.12);
  color: #be123c;
}

.amount.good {
  color: #15803d;
}

.amount.bad {
  color: #be123c;
}

.va-line,
.done-text,
.qr-box {
  background: rgba(248, 250, 252, 0.82);
}

.done-text {
  border-color: rgba(37, 99, 235, 0.12);
  color: #334155;
}

.accordion-head,
.plain-card-head {
  color: var(--ink);
}

.stat-card {
  min-height: 78px;
}

.ranking-badge {
  border-radius: 10px;
  color: #ffffff;
  background: var(--muncard-gradient);
}

.toast {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.9);
}

.modal {
  background: rgba(15, 23, 42, 0.34);
}

.modal-card {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.guide-bubble {
  right: 14px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  min-height: 58px;
  border-color: rgba(37, 99, 235, 0.18);
  background: var(--muncard-gradient);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.2);
}

.guide-bubble::after {
  background: transparent;
}

.guide-bubble-core {
  inset: 7px;
  background: rgba(255, 255, 255, 0.92);
}

.guide-bubble-badge {
  width: 34px;
  height: 34px;
  font-size: 10px;
  background: var(--muncard-gradient);
  box-shadow: none;
}

.guide-card,
.guide-note-card,
.guide-tab,
.guide-secondary-btn,
.guide-close {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(37, 99, 235, 0.14);
}

.guide-tab.active,
.guide-primary-btn {
  background: var(--muncard-gradient);
  color: #ffffff;
}

.guide-head-copy h2 {
  color: var(--ink);
}

.guide-head-copy p,
.guide-card p {
  color: #475569;
}

.loading-card {
  border-radius: 8px;
  border-color: rgba(37, 99, 235, 0.12);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.62), rgba(37, 99, 235, 0.12), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.68);
}

.spinner {
  border-color: rgba(37, 99, 235, 0.14);
  border-top-color: #2563eb;
}

@media (min-width: 900px) {
  .tabs {
    flex-wrap: wrap;
  }

  .tabs .tab {
    flex: 1 1 128px;
  }
}

@media (max-width: 700px) {
  .shell {
    padding: 10px 9px 28px;
  }

  .app-hero {
    border-radius: 14px;
    padding: 11px;
  }

  .app-hero-main {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 20px;
  }

  .brand-copy h1 {
    font-size: 20px;
  }

  .brand-kicker {
    font-size: 9px;
  }

  .hero-role {
    min-height: 30px;
    padding: 0 9px;
    font-size: 10px;
  }

  .hero-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .hero-stats-grid div {
    padding: 7px 6px;
  }

  .hero-stats-grid span {
    font-size: 9px;
  }

  .hero-stats-grid b {
    font-size: 12px;
  }

  .tabs {
    top: 6px;
    border-radius: 12px;
    padding: 6px;
  }

  .tabs .tab,
  .subtabs .subtab {
    min-height: 38px;
    border-radius: 8px;
    padding: 0 10px 0 30px;
    font-size: 11px;
  }

  .tabs .tab::before,
  .subtabs .subtab::before {
    left: 10px;
  }

  .panel {
    padding: 11px;
  }

  .form-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 10px;
  }

  .transaction-side {
    min-width: 92px;
  }

  .guide-bubble {
    right: 8px;
    bottom: 8px;
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .guide-bubble-core {
    inset: 5px;
  }

  .guide-bubble-badge {
    width: 28px;
    height: 28px;
    font-size: 8px;
  }
}

@media (max-width: 420px) {
  .app-hero-main {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hero-role {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .hero-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  #fx-canvas {
    display: none;
  }
}

/* EOF final override: smooth compact cards + animated 7Color 3D background */
body::before {
  content: "" !important;
  position: fixed !important;
  inset: -30% !important;
  display: block !important;
  pointer-events: none !important;
  z-index: 0 !important;
  opacity: 0.28 !important;
  border-radius: 0 !important;
  background:
    conic-gradient(from var(--v7-bg-angle), rgba(20, 184, 166, 0.34), rgba(37, 99, 235, 0.3), rgba(217, 70, 239, 0.24), rgba(239, 68, 68, 0.18), rgba(245, 158, 11, 0.24), rgba(34, 197, 94, 0.28), rgba(14, 165, 233, 0.26), rgba(20, 184, 166, 0.34)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)) !important;
  filter: blur(18px) saturate(1.18) !important;
  transform: perspective(900px) rotateX(54deg) rotateZ(0deg) scale(1.12) !important;
  animation: v7BackgroundSpin 18s linear infinite !important;
}

body::after {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  display: block !important;
  pointer-events: none !important;
  z-index: 0 !important;
  opacity: 0.2 !important;
  border-radius: 0 !important;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.62) 46%, transparent 62%),
    linear-gradient(90deg, rgba(37, 99, 235, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 184, 166, 0.12) 1px, transparent 1px) !important;
  background-size: 180% 100%, 34px 34px, 34px 34px !important;
  transform: translateZ(0) !important;
  animation: v7GridDrift 9s ease-in-out infinite alternate !important;
}

.compact-info-card {
  display: block;
  padding: 10px 11px;
  overflow: hidden;
  contain: layout paint style;
}

.compact-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.compact-main,
.compact-title,
.compact-title b {
  min-width: 0;
}

.compact-title {
  display: flex;
  align-items: baseline;
  gap: 7px;
  line-height: 1.18;
}

.compact-title span,
.compact-balance span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.compact-title b,
.compact-balance b {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-title b {
  flex: 1 1 auto;
}

.compact-meta {
  display: flex;
  align-items: center;
  gap: 4px 8px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
}

.compact-meta span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: rgba(100, 116, 139, 0.58);
}

.compact-side {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 88px;
  text-align: right;
}

.compact-balance b {
  font-size: 14px;
}

.compact-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(37, 99, 235, 0.09);
}

.compact-info-card.transaction-card .compact-balance b,
.compact-info-card.log-card.transaction-card .compact-balance b {
  color: #15803d;
}

.compact-info-card.clickable {
  cursor: pointer;
}

@media (max-width: 700px) {
  body::before {
    opacity: 0.22 !important;
    animation-duration: 24s !important;
  }

  body::after {
    opacity: 0.16 !important;
    animation-duration: 12s !important;
  }

  .compact-info-card {
    padding: 9px 10px;
  }

  .compact-card-head {
    grid-template-columns: minmax(0, 1fr) minmax(76px, auto);
    gap: 7px;
  }

  .compact-title {
    display: grid;
    gap: 2px;
  }

  .compact-title b {
    font-size: 14px;
  }

  .compact-meta {
    font-size: 10px;
  }

  .compact-meta span {
    max-width: 132px;
  }

  .compact-balance b {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none !important;
  }
}

/* Absolute last modal viewport override: detail popup opens on the current screen. */
body.modal-lock .app-scroller {
  overflow: hidden !important;
}

.modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 1000 !important;
  display: grid !important;
  place-items: center !important;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)) !important;
  overflow: hidden !important;
  overscroll-behavior: contain !important;
}

.modal[hidden] {
  display: none !important;
}

.modal-card {
  width: min(560px, calc(100vw - 24px)) !important;
  max-height: min(82vh, calc(100dvh - 28px)) !important;
  overflow: auto !important;
  -webkit-overflow-scrolling: touch !important;
  margin: 0 !important;
  transform: translateZ(0) !important;
}

.guide-card {
  width: min(840px, calc(100vw - 24px)) !important;
}

@media (max-width: 700px) {
  .modal {
    align-items: center !important;
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)) !important;
  }

  .modal-card {
    width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    border-radius: 16px !important;
  }
}
