@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);
}

/* Final theme override */
:root {
  --bg: #fff4fa;
  --bg-glow-a: rgba(255, 79, 180, 0.18);
  --bg-glow-b: rgba(168, 85, 247, 0.14);
  --bg-glow-c: rgba(255, 122, 24, 0.12);
  --ink: #1b1320;
  --muted: rgba(77, 53, 74, 0.72);
  --line: rgba(220, 139, 184, 0.2);
  --panel: rgba(255, 255, 255, 0.88);
  --soft: rgba(255, 255, 255, 0.58);
  --dark: #ffffff;
  --good: #12816a;
  --bad: #c84c72;
  --warn: #c97b00;
  --shadow: 0 22px 52px rgba(173, 75, 123, 0.14);
  --glass: blur(18px) saturate(1.15);
  --accent-a: #ff4fb4;
  --accent-b: #a855f7;
  --accent-c: #ff7a18;
  --accent-d: #ffb6db;
  --panel-edge: rgba(255, 79, 180, 0.28);
  --card-depth: 0 14px 34px rgba(160, 76, 122, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 79, 180, 0.14), transparent 26%),
    radial-gradient(circle at 86% 10%, rgba(168, 85, 247, 0.12), transparent 24%),
    radial-gradient(circle at 80% 82%, rgba(255, 122, 24, 0.08), transparent 26%),
    linear-gradient(180deg, #fffefc 0%, #fff6fb 40%, #fff1f8 100%);
}

body::before {
  background: radial-gradient(circle, rgba(255, 79, 180, 0.16), rgba(255, 255, 255, 0.04) 58%, transparent 72%);
}

body::after {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12), rgba(255, 255, 255, 0.04) 58%, transparent 72%);
}

.shell {
  width: min(1120px, calc(100% - 16px));
  padding: 12px 8px 34px;
}

.tabs {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.tab,
.subtab,
.secondary,
.icon-btn,
.small-btn,
.copy-btn,
.hero-link,
.wide-primary,
.bank-tab {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 251, 0.86)) padding-box,
    linear-gradient(135deg, rgba(255, 79, 180, 0.42), rgba(255, 255, 255, 0.88), rgba(168, 85, 247, 0.42)) border-box;
  color: var(--ink);
  box-shadow: var(--card-depth);
  backdrop-filter: var(--glass);
}

.tab.active,
.subtab.active,
.bank-tab.active {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 79, 180, 0.96), rgba(168, 85, 247, 0.94) 62%, rgba(255, 122, 24, 0.92)) padding-box,
    linear-gradient(135deg, rgba(255, 79, 180, 0.7), rgba(255, 255, 255, 0.78), rgba(168, 85, 247, 0.7)) border-box;
}

.panel,
.notice,
.card,
.hero-card,
.panel-card,
.stat-card,
.modal-card,
.guide-card {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 251, 0.88)) padding-box,
    linear-gradient(135deg, rgba(255, 79, 180, 0.42), rgba(255, 255, 255, 0.88), rgba(168, 85, 247, 0.42)) border-box;
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass);
}

.panel {
  padding: 16px;
  border-radius: 24px;
}

.hero-card,
.panel-card,
.stat-card,
.modal-card,
.guide-card,
.card,
.notice {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
}

.hero-card::before,
.panel-card::before,
.stat-card::before,
.modal-card::before,
.guide-card::before,
.card::before,
.notice::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 79, 180, 0.82), rgba(255, 255, 255, 0.84), rgba(168, 85, 247, 0.82), rgba(255, 122, 24, 0.78));
  background-size: 300% 300%;
  animation: borderFlow 8s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-card,
.panel-card,
.card,
.notice {
  padding: 14px;
}

.hero-top,
.section-head,
.split-title,
.card-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.hero-tools,
.va-actions,
.transaction-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.stats-grid-compact .stat-card {
  min-height: 96px;
}

.stat-card {
  padding: 12px 12px 10px;
}

.stat-number {
  font-size: 20px;
  line-height: 1.05;
  font-weight: 900;
  margin: 3px 0 6px;
}

.hero-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.hero-link,
.wide-primary {
  min-height: 42px;
  border-radius: 16px;
  padding: 0 14px;
  font-weight: 850;
}

.bank-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bank-tab {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
}

.inline-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline-actions input {
  flex: 1;
}

input,
select,
textarea {
  border: 1px solid rgba(215, 130, 184, 0.22);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-radius: 16px;
}

input,
select {
  height: 42px;
}

.wide-primary,
.small-btn,
.copy-btn,
.icon-btn {
  min-height: 38px;
}

.small-btn,
.copy-btn,
.icon-btn {
  padding: 0 10px;
  border-radius: 14px;
}

.pill {
  background: rgba(255, 79, 180, 0.12);
  color: var(--ink);
  border: 1px solid rgba(255, 79, 180, 0.2);
}

.paid {
  background: rgba(18, 129, 106, 0.12);
  border-color: rgba(18, 129, 106, 0.2);
}

.pending {
  background: rgba(255, 122, 24, 0.12);
  border-color: rgba(255, 122, 24, 0.2);
}

.rejected {
  background: rgba(200, 76, 114, 0.12);
  border-color: rgba(200, 76, 114, 0.2);
}

.qr-box img {
  background: #fff;
  border: 1px solid rgba(255, 79, 180, 0.18);
  box-shadow: 0 14px 32px rgba(151, 64, 110, 0.12);
}

.modal {
  background: rgba(18, 12, 20, 0.48);
  backdrop-filter: blur(18px);
}

.modal-card {
  width: min(720px, calc(100vw - 20px));
  max-height: min(88vh, 900px);
  overflow: auto;
}

.toast {
  background: rgba(29, 18, 33, 0.92);
  color: #fff;
}

.guide-bubble {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 79, 180, 0.96), rgba(168, 85, 247, 0.94)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 122, 24, 0.7)) border-box;
  color: #fff;
}

.guide-card {
  width: min(760px, calc(100vw - 20px));
}

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

@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 900px) {
  .stats-grid,
  .admin-stats .stats-grid,
  .admin-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero-actions,
  .va-actions,
  .transaction-side,
  .hero-tools {
    justify-content: flex-start;
  }

  .inline-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

:root {
  --bg: #fff4fa;
  --bg-glow-a: rgba(255, 79, 180, 0.18);
  --bg-glow-b: rgba(168, 85, 247, 0.14);
  --bg-glow-c: rgba(255, 122, 24, 0.12);
  --ink: #1b1320;
  --muted: rgba(77, 53, 74, 0.72);
  --line: rgba(220, 139, 184, 0.2);
  --panel: rgba(255, 255, 255, 0.88);
  --soft: rgba(255, 255, 255, 0.58);
  --dark: #ffffff;
  --good: #12816a;
  --bad: #c84c72;
  --warn: #c97b00;
  --shadow: 0 22px 52px rgba(173, 75, 123, 0.14);
  --glass: blur(18px) saturate(1.15);
  --accent-a: #ff4fb4;
  --accent-b: #a855f7;
  --accent-c: #ff7a18;
  --accent-d: #ffb6db;
  --panel-edge: rgba(255, 79, 180, 0.28);
  --card-depth: 0 14px 34px rgba(160, 76, 122, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  color: var(--ink);
  background: var(--bg);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 79, 180, 0.14), transparent 26%),
    radial-gradient(circle at 86% 10%, rgba(168, 85, 247, 0.12), transparent 24%),
    radial-gradient(circle at 80% 82%, rgba(255, 122, 24, 0.08), transparent 26%),
    linear-gradient(180deg, #fffefc 0%, #fff6fb 40%, #fff1f8 100%);
}

body::before {
  background: radial-gradient(circle, rgba(255, 79, 180, 0.16), rgba(255, 255, 255, 0.04) 58%, transparent 72%);
}

body::after {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12), rgba(255, 255, 255, 0.04) 58%, transparent 72%);
}

.shell {
  width: min(1120px, calc(100% - 16px));
  padding: 12px 8px 34px;
}

.shell-premium::before {
  inset: 4px 0 auto;
  height: 180px;
  opacity: 0.48;
  background:
    linear-gradient(135deg, rgba(255, 79, 180, 0.12), transparent 48%),
    linear-gradient(220deg, rgba(168, 85, 247, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 80%);
}

.tabs {
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.subtabs {
  gap: 6px;
}

.tab,
.subtab,
.secondary,
.icon-btn,
.small-btn,
.copy-btn,
.hero-link,
.wide-primary,
.bank-tab {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 251, 0.86)) padding-box,
    linear-gradient(135deg, rgba(255, 79, 180, 0.42), rgba(255, 255, 255, 0.88), rgba(168, 85, 247, 0.42)) border-box;
  color: var(--ink);
  box-shadow: var(--card-depth);
  backdrop-filter: var(--glass);
}

.tab,
.subtab,
.bank-tab {
  min-height: 40px;
  border-radius: 16px;
  font-weight: 850;
  padding: 0 10px;
}

.tab.active,
.subtab.active,
.bank-tab.active {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 79, 180, 0.96), rgba(168, 85, 247, 0.94) 62%, rgba(255, 122, 24, 0.92)) padding-box,
    linear-gradient(135deg, rgba(255, 79, 180, 0.7), rgba(255, 255, 255, 0.78), rgba(168, 85, 247, 0.7)) border-box;
}

.panel,
.notice,
.card,
.hero-card,
.panel-card,
.stat-card,
.modal-card,
.guide-card {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 251, 0.88)) padding-box,
    linear-gradient(135deg, rgba(255, 79, 180, 0.42), rgba(255, 255, 255, 0.88), rgba(168, 85, 247, 0.42)) border-box;
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass);
}

.panel {
  padding: 16px;
  border-radius: 24px;
}

.hero-card,
.panel-card,
.stat-card,
.modal-card,
.guide-card,
.card,
.notice {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
}

.hero-card::before,
.panel-card::before,
.stat-card::before,
.modal-card::before,
.guide-card::before,
.card::before,
.notice::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 79, 180, 0.82), rgba(255, 255, 255, 0.84), rgba(168, 85, 247, 0.82), rgba(255, 122, 24, 0.78));
  background-size: 300% 300%;
  animation: borderFlow 8s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-card,
.panel-card,
.card,
.notice {
  padding: 14px;
}

.hero-top,
.section-head,
.split-title,
.card-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.hero-top {
  align-items: flex-start;
}

.hero-tools,
.va-actions,
.transaction-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.stats-grid-compact .stat-card {
  min-height: 96px;
}

.stat-card {
  padding: 12px 12px 10px;
}

.stat-number {
  font-size: 20px;
  line-height: 1.05;
  font-weight: 900;
  margin: 3px 0 6px;
}

.hero-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.hero-link,
.wide-primary {
  min-height: 42px;
  border-radius: 16px;
  padding: 0 14px;
  font-weight: 850;
}

.hero-link.secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 241, 248, 0.9)) padding-box,
    linear-gradient(135deg, rgba(255, 79, 180, 0.28), rgba(168, 85, 247, 0.28)) border-box;
}

.panel-card + .panel-card,
.hero-card + .panel-card {
  margin-top: 12px;
}

.va-create-form,
.beneficiary-form,
.form-grid {
  display: grid;
  gap: 10px;
}

.va-create-form {
  margin-top: 12px;
}

.va-create-form label,
.beneficiary-form label,
.form-grid label,
.card label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
}

.bank-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bank-tab {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
}

.inline-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline-actions input {
  flex: 1;
}

input,
select,
textarea {
  border: 1px solid rgba(215, 130, 184, 0.22);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-radius: 16px;
}

input,
select {
  height: 42px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(88, 59, 79, 0.42);
}

button {
  min-height: 42px;
  border-radius: 16px;
  font-weight: 850;
}

.wide-primary,
.small-btn,
.copy-btn,
.icon-btn {
  min-height: 38px;
}

.small-btn,
.copy-btn,
.icon-btn {
  padding: 0 10px;
  border-radius: 14px;
}

.copy-btn,
.secondary,
.icon-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 244, 250, 0.88)) padding-box,
    linear-gradient(135deg, rgba(255, 79, 180, 0.28), rgba(168, 85, 247, 0.28)) border-box;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 79, 180, 0.12);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(255, 79, 180, 0.2);
}

.paid {
  background: rgba(18, 129, 106, 0.12);
  border-color: rgba(18, 129, 106, 0.2);
}

.pending {
  background: rgba(255, 122, 24, 0.12);
  border-color: rgba(255, 122, 24, 0.2);
}

.rejected {
  background: rgba(200, 76, 114, 0.12);
  border-color: rgba(200, 76, 114, 0.2);
}

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

.empty {
  padding: 14px;
  text-align: center;
  color: var(--muted);
}

.card-title {
  font-size: 16px;
  font-weight: 900;
}

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

.card-sub + .card-sub {
  margin-top: 2px;
}

.card.clickable,
.va-card.clickable,
.money-card {
  cursor: pointer;
}

.va-card {
  padding-top: 13px;
}

.bank-tag {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(255, 79, 180, 0.24);
  background: rgba(255, 79, 180, 0.08);
}

.reveal-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.reveal-btn {
  border: 0;
  background: transparent;
  min-height: 20px;
  padding: 0;
  color: var(--accent-a);
  font-size: 13px;
}

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

.qr-box {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}

.qr-box img {
  width: min(240px, 70vw);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(255, 79, 180, 0.18);
  box-shadow: 0 14px 32px rgba(151, 64, 110, 0.12);
}

.modal {
  background: rgba(18, 12, 20, 0.48);
  backdrop-filter: blur(18px);
}

.modal-card {
  width: min(720px, calc(100vw - 20px));
  max-height: min(88vh, 900px);
  overflow: auto;
}

.result-lines {
  display: grid;
  gap: 10px;
}

.toast {
  background: rgba(29, 18, 33, 0.92);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.guide-bubble {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 79, 180, 0.96), rgba(168, 85, 247, 0.94)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 122, 24, 0.7)) border-box;
  color: #fff;
}

.guide-bubble-core {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.guide-bubble-badge {
  font-size: 11px;
  font-weight: 900;
}

.guide-card {
  width: min(760px, calc(100vw - 20px));
}

.guide-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.guide-tab,
.guide-primary-btn,
.guide-secondary-btn {
  border-radius: 14px;
}

.guide-note-card {
  color: var(--ink);
}

.admin-stats,
.ranking-summary,
.admin-grid.two {
  gap: 10px;
}

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

.accordion-card {
  border-radius: 20px;
}

.accordion-head {
  min-height: 52px;
}

.accordion-body {
  padding: 14px;
}

@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 900px) {
  .stats-grid,
  .admin-stats .stats-grid,
  .admin-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-top,
  .section-head,
  .split-title,
  .card-row,
  .guide-head {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero-actions,
  .va-actions,
  .transaction-side,
  .hero-tools {
    justify-content: flex-start;
  }

  .inline-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .inline-actions .small-btn {
    width: 100%;
  }
}

* {
  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;
  }
}

/* Tail theme override */
:root {
  --bg: #fff4fa;
  --ink: #1b1320;
  --muted: rgba(77, 53, 74, 0.72);
  --panel: rgba(255, 255, 255, 0.88);
  --shadow: 0 22px 52px rgba(173, 75, 123, 0.14);
  --accent-a: #ff4fb4;
  --accent-b: #a855f7;
  --accent-c: #ff7a18;
  --panel-edge: rgba(255, 79, 180, 0.28);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 79, 180, 0.14), transparent 26%),
    radial-gradient(circle at 86% 10%, rgba(168, 85, 247, 0.12), transparent 24%),
    linear-gradient(180deg, #fffefc 0%, #fff6fb 40%, #fff1f8 100%);
}

.hero-card,
.panel-card,
.card,
.stat-card,
.modal-card,
.guide-card,
.notice,
.panel {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 251, 0.88)) padding-box,
    linear-gradient(135deg, rgba(255, 79, 180, 0.42), rgba(255, 255, 255, 0.88), rgba(168, 85, 247, 0.42)) border-box;
  box-shadow: var(--shadow);
}

.tab,
.subtab,
.small-btn,
.copy-btn,
.icon-btn,
.hero-link,
.wide-primary,
.bank-tab {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 251, 0.86)) padding-box,
    linear-gradient(135deg, rgba(255, 79, 180, 0.42), rgba(255, 255, 255, 0.88), rgba(168, 85, 247, 0.42)) border-box;
}

.tab.active,
.subtab.active,
.bank-tab.active {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 79, 180, 0.96), rgba(168, 85, 247, 0.94) 62%, rgba(255, 122, 24, 0.92)) padding-box,
    linear-gradient(135deg, rgba(255, 79, 180, 0.7), rgba(255, 255, 255, 0.78), rgba(168, 85, 247, 0.7)) border-box;
}

.hero-actions,
.va-actions,
.transaction-side,
.hero-tools {
  gap: 8px;
}

.guide-bubble {
  background:
    linear-gradient(135deg, rgba(255, 79, 180, 0.96), rgba(168, 85, 247, 0.94)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 122, 24, 0.7)) border-box;
  color: #fff;
}

/* Cambodia theme override */
:root {
  --bg: #f3f5fa;
  --bg-glow-a: rgba(3, 46, 161, 0.16);
  --bg-glow-b: rgba(213, 31, 52, 0.16);
  --bg-glow-c: rgba(255, 255, 255, 0.2);
  --ink: #091426;
  --muted: rgba(9, 20, 38, 0.68);
  --line: rgba(3, 46, 161, 0.16);
  --panel: rgba(255, 255, 255, 0.9);
  --soft: rgba(255, 255, 255, 0.76);
  --dark: #071a5f;
  --good: #0f8a57;
  --bad: #c5223a;
  --warn: #ad6a00;
  --shadow: 0 26px 64px rgba(7, 25, 95, 0.14);
  --glass: blur(20px) saturate(1.08);
  --accent-a: #032ea1;
  --accent-b: #d51f34;
  --accent-c: #ffffff;
  --accent-d: #88a1ff;
  --panel-edge: rgba(3, 46, 161, 0.18);
  --card-depth: 0 18px 44px rgba(7, 25, 95, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body {
  background:
    radial-gradient(circle at 15% 20%, rgba(3, 46, 161, 0.18), transparent 30%),
    radial-gradient(circle at 82% 14%, rgba(213, 31, 52, 0.2), transparent 28%),
    linear-gradient(180deg, #d51f34 0 14%, #f7f8fc 14% 22%, #032ea1 22% 78%, #f7f8fc 78% 86%, #d51f34 86% 100%);
  color: var(--ink);
}

body::before {
  background: radial-gradient(circle, rgba(3, 46, 161, 0.16), rgba(255, 255, 255, 0.02) 58%, transparent 70%);
}

body::after {
  background: radial-gradient(circle, rgba(213, 31, 52, 0.18), rgba(255, 255, 255, 0.02) 58%, transparent 70%);
}

.shell-premium::before {
  background:
    linear-gradient(180deg, rgba(213, 31, 52, 0.22) 0 20%, rgba(3, 46, 161, 0.18) 20% 80%, rgba(213, 31, 52, 0.22) 80% 100%);
  opacity: 1;
}

.tab,
.subtab,
.secondary,
.icon-btn,
.small-btn,
.copy-btn,
.hero-link,
.wide-primary,
.bank-tab {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.9)) padding-box,
    linear-gradient(135deg, rgba(3, 46, 161, 0.48), rgba(255, 255, 255, 0.92), rgba(213, 31, 52, 0.48)) border-box;
  color: var(--ink);
}

.tab.active,
.subtab.active,
.bank-tab.active {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(3, 46, 161, 0.98), rgba(19, 78, 216, 0.95) 52%, rgba(213, 31, 52, 0.94)) padding-box,
    linear-gradient(135deg, rgba(3, 46, 161, 0.74), rgba(255, 255, 255, 0.82), rgba(213, 31, 52, 0.74)) border-box;
}

.panel,
.notice,
.card,
.hero-card,
.panel-card,
.stat-card,
.modal-card,
.guide-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 249, 255, 0.88)) padding-box,
    linear-gradient(135deg, rgba(213, 31, 52, 0.36), rgba(255, 255, 255, 0.94), rgba(3, 46, 161, 0.38)) border-box;
  box-shadow: var(--shadow);
}

.guide-bubble {
  background:
    linear-gradient(135deg, rgba(3, 46, 161, 0.98), rgba(213, 31, 52, 0.94)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.5)) border-box;
  color: #fff;
  box-shadow: 0 18px 40px rgba(7, 25, 95, 0.26);
}

input,
select,
textarea {
  border: 1px solid rgba(3, 46, 161, 0.14);
  background: rgba(255, 255, 255, 0.96);
}
