/* Earnora Agent — land + app + KYC */
/* --css-build: r105 */
:root {
  --ag-max: none;
  --ag-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ag-lift: 0 14px 32px rgba(0, 0, 0, 0.22);
}
body.theme-agent-app { --phone-w: 100%; }

/* One page scrollbar only — never html + body + inner. */
html:has(body.theme-agent-land) {
  height: auto !important;
  min-height: 100%;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
body.theme-agent-land {
  display: block !important;
  height: auto !important;
  min-height: 100dvh !important;
  overflow: visible !important;
  padding: 0 !important;
  overscroll-behavior-y: auto;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(61, 207, 142, 0.16), transparent 55%),
    radial-gradient(700px 380px at 0% 20%, rgba(232, 194, 122, 0.08), transparent 50%),
    var(--bg);
}
.theme-agent-land .ag-land-wrap,
.theme-agent-land main,
.theme-agent-land .ag-page-land {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}
.theme-agent-land .ag-land-wrap:not(.is-auth) {
  min-height: 100dvh;
  padding-top: 4.4rem;
}
.theme-agent-land .ag-land-wrap.is-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-content: safe center;
  min-height: 100dvh;
  padding: 1.25rem 1rem;
}
.theme-agent-land .ag-land-wrap.is-auth main {
  width: 100%;
  max-width: 560px;
  margin: auto 0;
}
.ag-apply-page {
  width: min(560px, 100%);
  margin: 0 auto;
}
.ag-apply-brand {
  text-align: center;
  margin-bottom: 1.15rem;
}
.ag-apply-brand .ag-brand {
  justify-content: center;
  font-size: 1.35rem;
}
.ag-apply-brand p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.ag-apply-card {
  padding: 1.45rem 1.35rem 1.2rem;
  border-radius: 28px;
  background: linear-gradient(180deg, #15241d 0%, #0e1713 100%);
  border: 1px solid rgba(61, 207, 142, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.ag-apply-track {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.ag-apply-track::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 0.78rem;
  height: 2px;
  background: rgba(238, 243, 239, 0.1);
}
.ag-apply-track li {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.ag-apply-track li span {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  background: #101a16;
  border: 2px solid rgba(238, 243, 239, 0.16);
  color: var(--muted);
}
.ag-apply-track li.is-on,
.ag-apply-track li.is-done { color: var(--ink); }
.ag-apply-track li.is-on span {
  background: #14c97a;
  border-color: #14c97a;
  color: #062016;
  box-shadow: 0 0 0 4px rgba(20, 201, 122, 0.18);
}
.ag-apply-track li.is-done span {
  background: #14c97a;
  border-color: #14c97a;
  color: #062016;
}
.ag-apply-form { display: grid; gap: 0.85rem; }
.ag-apply-step[hidden] { display: none !important; }
.ag-apply-step { display: grid; gap: 0.85rem; }
.ag-apply-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}
.ag-apply-head h1 {
  margin: 0.15rem 0 0.3rem;
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}
.ag-apply-head .muted { margin: 0; font-size: 0.86rem; line-height: 1.4; max-width: 34ch; }
.ag-apply-crumb {
  margin: 0;
  color: #1ee08c;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ag-apply-art { flex-shrink: 0; filter: drop-shadow(0 10px 18px rgba(20, 201, 122, 0.28)); }
.ag-apply-names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.ag-apply-field { display: grid; gap: 0.35rem; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.ag-apply-input,
.ag-kyc-input {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 3rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(238, 243, 239, 0.08);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.ag-apply-input:focus-within,
.ag-kyc-input:focus-within {
  border-color: rgba(61, 207, 142, 0.55);
  box-shadow: 0 0 0 3px rgba(61, 207, 142, 0.14);
  background: rgba(0, 0, 0, 0.48);
}
.ag-apply-input.is-ok,
.ag-kyc-input.is-ok { border-color: rgba(61, 207, 142, 0.5); }
.ag-apply-input.is-bad,
.ag-kyc-input.is-bad { border-color: rgba(232, 92, 92, 0.55); }
.ag-apply-input.is-area,
.ag-kyc-input.is-area {
  align-items: flex-start;
  min-height: 6.2rem;
  padding: 0.65rem 0.95rem;
  border-radius: 18px;
}
.ag-apply-input:has(:disabled),
.ag-kyc-input:has(:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}
.ag-apply-live {
  min-height: 1.15em;
  margin: 0.12rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--muted);
}
.ag-apply-live.is-ok { color: #3dcf8e; }
.ag-apply-live.is-bad { color: #ef6b6b; }
.ag-apply-live.is-wait { color: var(--muted); }
.ag-apply-ico,
.ag-send-field-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--muted);
}
.ag-apply-input input,
.ag-apply-input select,
.ag-apply-input textarea,
.ag-kyc-input input,
.ag-kyc-input select,
.ag-kyc-input textarea {
  flex: 1;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0.7rem 0;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  resize: vertical;
  -webkit-appearance: none;
  appearance: none;
}
.ag-apply-input input::placeholder,
.ag-apply-input textarea::placeholder,
.ag-kyc-input input::placeholder,
.ag-kyc-input textarea::placeholder {
  color: #6f8378;
  opacity: 1;
}
.ag-apply-input input[type="date"],
.ag-kyc-input input[type="date"] {
  color-scheme: dark;
}
.ag-apply-input input[type="number"],
.ag-kyc-input input[type="number"] {
  -moz-appearance: textfield;
}
.ag-apply-input input[type="number"]::-webkit-outer-spin-button,
.ag-apply-input input[type="number"]::-webkit-inner-spin-button,
.ag-kyc-input input[type="number"]::-webkit-outer-spin-button,
.ag-kyc-input input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ag-apply-input.is-select,
.ag-kyc-input.is-select { position: relative; padding-right: 0.5rem; }
.ag-apply-input select,
.ag-kyc-input select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%238aa396' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5l4 4 4-4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.15rem center !important;
  padding-right: 1.4rem !important;
}
.ag-apply-field .es-wrap {
  flex: 1;
  min-width: 0;
  margin: 0 !important;
  width: auto;
}
.ag-apply-input .es-native { display: none !important; }
.ag-apply-input .es-trigger {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0;
  padding: 0.55rem 0.1rem 0.55rem 0 !important;
  min-height: 0;
  transform: none !important;
}
.ag-apply-input .es-wrap.is-open .es-trigger,
.ag-apply-input .es-trigger:hover,
.ag-apply-input .es-trigger:focus-visible,
.ag-apply-input .es-trigger:active {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
.ag-apply-input .es-label {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.ag-apply-input .es-chevron {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.12);
}
.ag-apply-input .es-wrap.is-open .es-chevron {
  background: rgba(61, 207, 142, 0.22);
}
.ag-apply-card { overflow: visible; }
.ag-apply-card .es-panel.is-open {
  border-radius: 18px;
  max-height: 240px;
}
.ag-apply-go,
a.ag-apply-go,
button.ag-apply-go {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.05rem;
  border: 0;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  color: #062016;
  text-decoration: none;
  background: linear-gradient(180deg, #5ef0b0 0%, #1ee08c 55%, #14c97a 100%);
  box-shadow: 0 10px 28px rgba(30, 224, 140, 0.28);
  cursor: pointer;
  transition: transform 0.28s var(--ag-ease), box-shadow 0.28s var(--ag-ease), filter 0.22s ease;
}
.ag-apply-go:hover,
a.ag-apply-go:hover,
button.ag-apply-go:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(30, 224, 140, 0.34);
}
.ag-apply-go:active,
a.ag-apply-go:active,
button.ag-apply-go:active {
  transform: translateY(0);
  filter: brightness(0.98);
}
.ag-apply-nav { display: flex; gap: 0.6rem; }
.ag-apply-nav .ag-apply-go { width: auto; flex: 1.4; }
.ag-apply-back,
a.ag-apply-back,
button.ag-apply-back {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 3.05rem;
  border-radius: 999px;
  border: 1px solid rgba(238, 243, 239, 0.12);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.28s var(--ag-ease), border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}
.ag-apply-back:hover,
a.ag-apply-back:hover,
button.ag-apply-back:hover {
  border-color: rgba(61, 207, 142, 0.35);
  background: rgba(61, 207, 142, 0.06);
  transform: translateY(-1px);
}
.ag-apply-review {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(238, 243, 239, 0.04);
  border: 1px solid rgba(238, 243, 239, 0.08);
  display: grid;
  gap: 0.55rem;
}
.ag-apply-review div { display: flex; justify-content: space-between; gap: 1rem; }
.ag-apply-review dt { color: var(--muted); font-size: 0.78rem; }
.ag-apply-review dd { margin: 0; font-weight: 700; text-align: right; word-break: break-word; }
.ag-apply-legal { margin: 0; text-align: center; font-size: 0.78rem; color: var(--muted); }
.ag-apply-forgot { margin: -0.15rem 0 0; text-align: right; font-size: 0.8rem; }
.ag-apply-forgot a { color: var(--accent); font-weight: 700; text-decoration: none; }
.ag-apply-legal a { color: var(--accent); font-weight: 700; }
.ag-apply-switch {
  margin: 1.05rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}
.ag-apply-switch a { color: var(--accent); font-weight: 800; text-decoration: none; }
@media (max-width: 700px) {
  .theme-agent-land .ag-land-wrap.is-auth {
    padding: 1rem 0.85rem calc(1rem + env(safe-area-inset-bottom, 0px));
  }
  .ag-apply-page { width: 100%; }
  .ag-apply-art { display: none; }
  .ag-apply-names { grid-template-columns: 1fr; }
  .ag-apply-track li { font-size: 0; }
  .ag-verify-facts { grid-template-columns: 1fr; }
  .ag-page-hero .ag-apply-go { max-width: none; }
}
.ag-land-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 0.85rem 1.25rem;
  animation: ag-nav-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.ag-land-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  margin: 0;
}
.ag-land-nav.is-scrolled {
  background: rgba(12, 18, 16, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.ag-land-nav nav { display: flex; gap: 0.85rem; align-items: center; }
.ag-land-nav nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; transition: color 0.2s ease; }
.ag-land-nav nav a:not(.btn):hover { color: var(--ink); }
.ag-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
}
.ag-brand em { font-style: normal; color: var(--accent); }
.ag-brand img { border-radius: 10px; }

/* Don't inherit member landing hide-until-reveal — that left this page blank. */
body.theme-agent-land [data-land-reveal] {
  opacity: 1;
  transform: none;
}

.ag-hero-visual {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ag-hero {
  position: relative;
  z-index: 1;
  min-height: calc(100dvh - 4.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2rem 1.5rem 3.5rem;
  box-sizing: border-box;
}
.ag-section {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2.4rem 1.5rem;
  box-sizing: border-box;
}
.ag-foot {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 2rem 1.25rem 2.2rem;
  background: rgba(238, 243, 239, 0.035);
  border-top: 1px solid rgba(238, 243, 239, 0.1);
  backdrop-filter: blur(16px);
}
.ag-foot-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .ag-land-nav { padding-left: 2rem; padding-right: 2rem; }
  .ag-hero,
  .ag-section,
  .ag-foot {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}
.ag-hero-glow {
  position: absolute;
  inset: -20% -30% auto;
  height: 70%;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(61, 207, 142, 0.28), transparent 58%),
    radial-gradient(ellipse at 80% 40%, rgba(232, 194, 122, 0.12), transparent 45%);
  animation: ag-glow 10s ease-in-out infinite alternate;
}
.ag-hero-aurora {
  position: absolute;
  inset: -10% -20% 30%;
  background: conic-gradient(from 180deg at 50% 0%, rgba(61, 207, 142, 0.16), transparent 40%, rgba(232, 194, 122, 0.1), transparent 75%);
  filter: blur(28px);
  animation: ag-aurora 14s ease-in-out infinite alternate;
  opacity: 0.85;
}
.ag-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(238, 243, 239, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 243, 239, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
}
.ag-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}
.ag-hero-orb-a {
  width: 120px; height: 120px; right: 8%; top: 22%;
  background: radial-gradient(circle, rgba(61, 207, 142, 0.45), transparent 70%);
  animation: ag-orb 9s ease-in-out infinite alternate;
}
.ag-hero-orb-b {
  width: 90px; height: 90px; left: 6%; top: 38%;
  background: radial-gradient(circle, rgba(232, 194, 122, 0.35), transparent 70%);
  animation: ag-orb 11s ease-in-out infinite alternate-reverse;
}
.ag-hero-logo {
  display: block;
  width: 140px;
  height: 140px;
  margin: 0 0 1.4rem;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(61, 207, 142, 0.25));
  animation: ag-logo-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both, ag-float 6s ease-in-out 1s infinite;
}
.ag-hero-copy { position: relative; z-index: 1; }
.ag-kicker {
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-size: 0.78rem;
  margin: 0 0 0.8rem;
  animation: ag-rise 0.7s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ag-hero h1, .ag-section h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}
.ag-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 16ch;
  animation: ag-rise 0.8s 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ag-lede, .ag-sub { color: var(--muted); max-width: 52ch; line-height: 1.55; }
.ag-lede { animation: ag-rise 0.8s 0.34s cubic-bezier(0.22, 1, 0.36, 1) both; }
.ag-hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.4rem; }
.ag-hero-cta { animation: ag-rise 0.8s 0.46s cubic-bezier(0.22, 1, 0.36, 1) both; }
.ag-hero-cta .btn { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.ag-hero-cta .btn:hover { transform: translateY(-2px); }

.ag-steps { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 1rem; }
.ag-steps li {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.2rem;
}
.ag-section.is-in .ag-steps li {
  animation: ag-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ag-section.is-in .ag-steps li:nth-child(1) { animation-delay: 0.06s; }
.ag-section.is-in .ag-steps li:nth-child(2) { animation-delay: 0.16s; }
.ag-section.is-in .ag-steps li:nth-child(3) { animation-delay: 0.26s; }
.ag-step-num {
  display: block;
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.45rem;
}
.ag-steps strong { display: block; margin-bottom: 0.25rem; }
.ag-steps li > span:last-child { color: var(--muted); }

.ag-stat {
  margin-top: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(61,207,142,.12), var(--bg-elev));
  border: 1px solid var(--line);
}
.ag-section.is-in .ag-stat { animation: ag-rise 0.65s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both; }
.ag-stat span { color: var(--muted); display: block; font-size: 0.85rem; }
.ag-stat em { display: block; margin-top: 0.35rem; font-style: normal; color: var(--accent-2); font-size: 0.85rem; }

.ag-kyc-tiles { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; gap: 0.85rem; }
.ag-kyc-tiles li {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.ag-section.is-in .ag-kyc-tiles li { animation: ag-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
.ag-section.is-in .ag-kyc-tiles li:nth-child(1) { animation-delay: 0.06s; }
.ag-section.is-in .ag-kyc-tiles li:nth-child(2) { animation-delay: 0.14s; }
.ag-section.is-in .ag-kyc-tiles li:nth-child(3) { animation-delay: 0.22s; }
.ag-kyc-tiles strong { display: block; margin-bottom: 0.2rem; }
.ag-kyc-tiles span { color: var(--muted); }

.ag-end { margin-bottom: 0; }
.ag-foot-brand p { color: var(--muted); max-width: 36ch; margin: 0.7rem 0 0; line-height: 1.5; }
.ag-foot-cols { display: grid; gap: 1.2rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ag-foot-cols h3 {
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.55rem;
}
.ag-foot-cols a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 0.18rem 0;
  opacity: 0.85;
}
.ag-foot-cols a:hover { color: var(--accent); opacity: 1; }
.ag-foot-reach { display: flex; gap: 1rem; }
.ag-foot-reach a { color: var(--muted); }
.ag-foot-bottom {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.ag-foot-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

@keyframes ag-nav-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes ag-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes ag-logo-in {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes ag-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes ag-aurora {
  from { transform: translateY(0) scale(1) rotate(0deg); }
  to { transform: translateY(18px) scale(1.08) rotate(8deg); }
}
@keyframes ag-orb {
  from { transform: translateY(0); opacity: 0.35; }
  to { transform: translateY(-22px); opacity: 0.7; }
}
@keyframes ag-glow {
  from { opacity: 0.85; transform: scale(1); }
  to { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 720px) {
  .ag-foot-cols { grid-template-columns: 1fr 1fr; }
  .ag-hero-logo { width: 110px; height: 110px; }
}

.theme-agent-app .ag-bal-chip {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent);
}
.theme-agent-app .app-topbar {
  overflow: visible;
  z-index: 50;
}
.theme-agent-app .app-topbar-right {
  gap: 0.65rem;
}
.ag-user { position: relative; }
.ag-user-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 14px;
}
.ag-user-av {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #234236, #163028);
  color: var(--accent);
  font-weight: 800;
  border: 1px solid rgba(61, 207, 142, 0.28);
  box-shadow: 0 0 0 0 rgba(61, 207, 142, 0);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.ag-user-btn:hover .ag-user-av,
.ag-user.is-open .ag-user-av {
  box-shadow: 0 0 0 3px rgba(61, 207, 142, 0.22);
  transform: scale(1.04);
}
.ag-user-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  min-width: 220px;
  padding: 0.45rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #1a2a23, #101714);
  border: 1px solid rgba(61, 207, 142, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px) scale(0.96);
  transform-origin: top right;
  transition:
    opacity 0.2s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.22s;
}
.ag-user.is-open .ag-user-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}
.ag-user-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.55rem 0.7rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid rgba(238, 243, 239, 0.08);
}
.ag-user-card .ag-user-av { width: 36px; height: 36px; border-radius: 12px; font-size: 0.9rem; }
.ag-user-card strong { display: block; font-size: 0.88rem; }
.ag-user-card small { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.04em; }
.ag-user-menu a,
.ag-user-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.62rem 0.7rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
}
.ag-user-menu a:hover,
.ag-user-menu button:hover {
  background: rgba(61, 207, 142, 0.12);
  color: var(--accent);
}
.ag-user-menu form { margin: 0; }
.ag-side-logo { display: none; }
.ag-nav-more,
.ag-side-pro { display: none; }
.ag-aid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  min-width: 0;
}
.ag-aid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}
.ag-aid-row { display: flex; align-items: center; gap: 0.4rem; }
.ag-aid strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}
.ag-aid-copy {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(238, 243, 239, 0.06);
  color: var(--muted);
  cursor: pointer;
}
.ag-aid-copy:hover { color: var(--accent); }
.ag-bell {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(61, 207, 142, 0.16);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #12201a;
  color: #d7e6dc;
  cursor: pointer;
}
.ag-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0 0.7rem 0 0.2rem;
  border: 1px solid rgba(61, 207, 142, 0.16);
  border-radius: 999px;
  background: #12201a;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ag-user-chip .ag-user-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.ag-user-name { display: none; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-user-chip svg { color: var(--muted); }
body.theme-agent-app .app-topbar { background: #0b1410; }
.ag-dash h1, .ag-page h1 { font-family: var(--display); margin: 0.15rem 0 0.35rem; }
.ag-quick, .ag-kyc-nav { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1rem 0; }
.ag-metrics {
  list-style: none; padding: 0; margin: 1.2rem 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem;
}
.ag-metrics li {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
}
.ag-metrics span { display: block; color: var(--muted); font-size: 0.78rem; }
.ag-status-row { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.ag-pill {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: var(--bg-soft);
  text-transform: capitalize;
}
.ag-pill.is-active, .ag-pill.is-approved, .ag-pill.is-ok { color: var(--accent); }
.ag-pill.is-pending, .ag-pill.is-wait { color: var(--accent-2); }
.ag-pill.is-suspended, .ag-pill.is-rejected { color: var(--danger); }
.ag-alert {
  background: rgba(232, 194, 122, 0.08);
  border: 1px solid rgba(232, 194, 122, 0.25);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin: 1rem 0;
}
.ag-rows { list-style: none; padding: 0; margin: 0; }
.ag-rows li {
  display: flex; justify-content: space-between; gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.22s ease, transform 0.22s var(--ag-ease), padding 0.22s ease;
}
.ag-rows.is-rich li {
  margin: 0 -0.35rem;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
  border-radius: 12px;
}
.ag-rows.is-rich li:hover,
.ag-rows li:hover {
  background: rgba(61, 207, 142, 0.05);
  transform: translateX(2px);
}
.ag-page, .ag-dash, .ag-kyc, .ag-home, .ag-send, .ag-recv, .ag-float {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.25rem 0 1.5rem;
  box-sizing: border-box;
}
.ag-dash-hero { margin-bottom: 0.25rem; }
.ag-dash-hero .ag-quick { margin-top: 0.85rem; }
.ag-dash-grid { display: grid; gap: 1.25rem; }
.ag-dash-grid h2, .ag-page h2, .ag-panel h2 { margin: 0 0 0.55rem; font-size: 1.05rem; }
.ag-page-head { margin-bottom: 1.15rem; }
.ag-page-head .eyebrow { color: var(--accent); font-weight: 700; margin: 0 0 0.2rem; letter-spacing: 0.04em; }
.ag-page-head h1 { margin: 0 0 0.3rem; font-family: var(--display); letter-spacing: -0.03em; }
.ag-page-head .muted { max-width: 42rem; }
.ag-page-split { display: grid; gap: 1.4rem; }
.ag-hero-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.1rem;
  padding: 1.25rem 1.3rem;
  margin-bottom: 1.1rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(61, 207, 142, 0.12), transparent 42%),
    linear-gradient(165deg, #16241d, #101714);
  border: 1px solid rgba(61, 207, 142, 0.2);
}
.ag-hero-card h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin: 0.1rem 0 0.35rem; }
.ag-hero-card .ag-quick { margin: 0; }
.ag-hero-card .ag-status-row { margin: 0.7rem 0 0; }
.ag-panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.15rem 1.2rem 1.1rem;
  transition: border-color 0.28s ease, box-shadow 0.28s var(--ag-ease), transform 0.28s var(--ag-ease);
}
.ag-panel:hover {
  border-color: rgba(61, 207, 142, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}
.ag-empty { color: var(--muted); margin: 0.4rem 0 0.2rem; font-size: 0.9rem; }
.ag-home-hello {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.ag-home-greet { margin: 0; color: var(--muted); font-size: 0.82rem; }
.ag-home-hello h2 {
  margin: 0.1rem 0 0.25rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  letter-spacing: -0.04em;
}
.ag-home-lede { margin: 0; color: var(--muted); max-width: 34rem; }
.ag-home-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; color: var(--muted); font-size: 0.78rem; font-weight: 600; text-align: right; }
.ag-home-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cfe8d8;
}
.ag-home-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1ee08c;
  box-shadow: 0 0 0 4px rgba(30, 224, 140, 0.16);
}
.ag-home-top { display: grid; gap: 1rem; margin-bottom: 1.1rem; }
.ag-home-float {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.35rem 1.25rem;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(61, 207, 142, 0.2), transparent 48%),
    linear-gradient(165deg, #173328 0%, #0e1713 72%);
  border: 1px solid rgba(61, 207, 142, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transition: border-color 0.3s ease, box-shadow 0.3s var(--ag-ease), transform 0.3s var(--ag-ease);
}
.ag-home-float:hover {
  border-color: rgba(61, 207, 142, 0.38);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}
.ag-home-float-copy { position: relative; z-index: 1; min-width: 0; }
.ag-home-art { flex-shrink: 0; width: min(42%, 220px); }
.ag-home-art svg { width: 100%; height: auto; display: block; }
.ag-home-float-glow {
  position: absolute;
  right: -40px;
  top: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 207, 142, 0.35), transparent 68%);
  pointer-events: none;
}
.ag-home-float .eyebrow { position: relative; margin: 0; color: #8ef0c0; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.7rem; }
.ag-home-amount {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.35rem 0 0.2rem;
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 2.8rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.ag-eye {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(238, 243, 239, 0.08);
  color: var(--muted);
  cursor: pointer;
}
.ag-home-float .muted { position: relative; margin: 0 0 1rem; }
.ag-home-actions { position: relative; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.ag-home-act {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.55rem;
  padding: 0 1rem 0 0.45rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #5ef0b0, #14c97a);
  color: #062016;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.28s var(--ag-ease), box-shadow 0.28s ease, filter 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}
.ag-home-act:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 24px rgba(30, 224, 140, 0.28);
}
.ag-home-act i {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(6, 32, 22, 0.14);
  font-style: normal;
  font-size: 0.78rem;
}
.ag-home-act.is-ghost {
  background: rgba(238, 243, 239, 0.06);
  color: var(--ink);
  border: 1px solid rgba(238, 243, 239, 0.12);
}
.ag-home-act.is-ghost:hover {
  border-color: rgba(61, 207, 142, 0.3);
  background: rgba(61, 207, 142, 0.08);
  box-shadow: none;
  filter: none;
}
.ag-home-act.is-ghost i { background: rgba(238, 243, 239, 0.08); }
.ag-home-float .ag-status-row { position: relative; margin: 0.95rem 0 0; }
.ag-need {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.3rem 1.2rem;
  border-radius: 26px;
  background: linear-gradient(180deg, #16140e, #10140f);
  border: 1px solid rgba(232, 194, 122, 0.22);
}
.ag-need-kicker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.45rem;
  color: #f0c14a;
  font-weight: 800;
}
.ag-need-kicker span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(240, 193, 74, 0.14);
}
.ag-need-copy { margin: 0 0 1rem; color: var(--muted); }
.ag-need-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #5ef0b0, #14c97a);
  color: #062016;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.28s var(--ag-ease), box-shadow 0.28s ease, filter 0.22s ease;
}
.ag-need-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 24px rgba(30, 224, 140, 0.28);
}
.ag-need-steps {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  margin: 1.15rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.ag-need-steps li { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; flex: 1; position: relative; }
.ag-need-steps li + li::before {
  content: "";
  position: absolute;
  left: -50%;
  top: 13px;
  width: 100%;
  height: 2px;
  background: rgba(238, 243, 239, 0.1);
  z-index: 0;
}
.ag-need-steps span {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1a221d;
  border: 1px solid rgba(238, 243, 239, 0.12);
}
.ag-need-steps .is-on { color: var(--ink); }
.ag-need-steps .is-on span {
  background: #14c97a;
  color: #062016;
  border-color: #14c97a;
}
.ag-metrics.is-icons { margin-top: 0; }
.ag-metrics.is-icons li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: #101714;
  border: 1px solid transparent;
  transition: transform 0.28s var(--ag-ease), border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}
.ag-metrics.is-icons li:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 207, 142, 0.2);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  background: #121a16;
}
.ag-metrics .ag-metric-ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #16241c;
  color: #1ee08c;
  font-size: 0;
  border: 1px solid rgba(30, 224, 140, 0.14);
}
.ag-metric-ico svg {
  width: 18px;
  height: 18px;
  display: block;
}
.ag-metric-copy { min-width: 0; }
.ag-metric-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.ag-metrics.is-icons strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.ag-blank {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.25rem;
  min-height: 160px;
  color: var(--muted);
}
.ag-blank span {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.35rem;
  background: rgba(238, 243, 239, 0.05);
  color: #8aa094;
  font-size: 1.1rem;
}
.ag-blank strong { color: var(--ink); }
.ag-blank p { margin: 0; max-width: 16rem; font-size: 0.82rem; }
.ag-quick-block { margin-top: 1.35rem; }
.ag-quick-block h2 { margin: 0 0 0.75rem; font-size: 1.05rem; }
.ag-quick-grid { display: grid; gap: 0.7rem; }
.ag-quick-grid a {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: #101714;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: transform 0.28s var(--ag-ease), border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}
.ag-quick-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 207, 142, 0.28);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  background: #121a16;
}
.ag-quick-grid a:hover em {
  transform: translateX(3px);
}
.ag-quick-grid em {
  transition: transform 0.28s var(--ag-ease);
}
.ag-quick-grid i {
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #16241c;
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
}
.ag-quick-grid b { font-size: 0.95rem; }
.ag-quick-grid span { color: var(--muted); font-size: 0.78rem; }
.ag-quick-grid em {
  grid-row: 1 / span 2;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}
.ag-send { padding: 0 0 1.5rem; }
.ag-send-hero,
.ag-kyc-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.ag-send-hero h1,
.ag-kyc-hero h1 {
  margin: 0.1rem 0 0.3rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  letter-spacing: -0.04em;
}
.ag-send-hero-side,
.ag-kyc-hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.ag-crumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}
.ag-crumb a { color: var(--muted); text-decoration: none; }
.ag-crumb a:hover { color: var(--accent); }
.ag-crumb strong { color: var(--ink); }
.ag-send-art,
.ag-kyc-art { opacity: 0.95; }
.ag-send-grid,
.ag-kyc-layout { display: grid; gap: 1.1rem; }
.ag-kyc-layout > form,
.ag-kyc-form { min-width: 0; }
.ag-send-side {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}
.ag-send-side .ag-panel { padding-bottom: 1.35rem; }
.ag-send-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.ag-send-card-head h2 { margin: 0; }
.ag-send-card-head .muted { margin: 0.15rem 0 0; }
.ag-send-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #16241c;
  color: #1ee08c;
}
.ag-send-ico svg { width: 18px; height: 18px; display: block; }
.ag-send .ag-kyc-field em,
.ag-send .ag-apply-field em,
.ag-kyc .ag-apply-field em { color: #f0c14a; font-style: normal; }
.ag-send .ag-opt { color: var(--muted); font-weight: 600; }
.ag-send-field-ico { color: var(--muted); font-weight: 800; }
.ag-send-clear {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(238, 243, 239, 0.08);
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}
.ag-send-clear:hover {
  background: rgba(61, 207, 142, 0.16);
  color: #1ee08c;
}
.ag-send-lookup-msg { margin: 0.35rem 0 0; color: #f0a3a3; font-size: 0.8rem; font-weight: 600; }
.ag-send-member[hidden] { display: none !important; }
.ag-send-member {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.85rem 0 1.1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: #0d1411;
  border: 1px solid rgba(30, 224, 140, 0.16);
  transform-origin: top center;
}
.ag-send-member.is-in {
  animation: ag-member-in 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes ag-member-in {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ag-send-verified {
  margin-left: auto;
  color: #1ee08c;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}
.ag-send-since { color: var(--muted); font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.ag-send-amount-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0.45rem 0 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.ag-send-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ag-send-chip {
  min-height: 2rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(238, 243, 239, 0.1);
  background: #0d1411;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s var(--ag-ease), border-color 0.22s ease, color 0.22s ease, background 0.22s ease;
}
.ag-send-chip:hover {
  border-color: rgba(30, 224, 140, 0.4);
  color: #1ee08c;
  background: rgba(30, 224, 140, 0.08);
  transform: translateY(-1px);
}
.ag-send-chip:active { transform: translateY(0); }
.ag-send-count { color: var(--muted); font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.ag-send-submit {
  margin-top: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.ag-send-submit:disabled { opacity: 0.45; cursor: not-allowed; }
.ag-send-bal-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.ag-send-refresh {
  margin-left: auto;
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
}
.ag-send-bal-amt {
  margin: 0.65rem 0 0.15rem;
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}
.ag-send-sum { margin: 0; }
.ag-send-sum div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(238, 243, 239, 0.06);
}
.ag-send-sum dt { color: var(--muted); font-size: 0.82rem; }
.ag-send-sum dd { margin: 0; font-weight: 700; text-align: right; }
.ag-send-sum .is-total { border-bottom: 0; padding-top: 0.75rem; }
.ag-send-sum .is-total dd { color: #1ee08c; }
.ag-send-secure ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.ag-send-secure li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
  font-size: 0.84rem;
}
.ag-send-secure li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1ee08c;
  font-weight: 800;
}
.ag-send-recent-meta { display: grid; justify-items: end; gap: 0.1rem; text-align: right; }
.ag-send-recent-meta small { color: var(--muted); font-size: 0.72rem; }
.ag-send-recent-meta .is-ok { color: #1ee08c; font-weight: 700; }
.ag-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.ag-panel-head h2 { margin: 0; }
.ag-panel-head a {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.22s var(--ag-ease);
}
.ag-panel-head a:hover { color: #5ef0b0; transform: translateX(2px); }
.ag-rows.is-rich li { align-items: center; padding: 0.75rem 0; }
.ag-row-av {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(61, 207, 142, 0.12);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.82rem;
}
.ag-row-av.is-gold { background: rgba(232, 194, 122, 0.14); color: var(--accent-2); }
.ag-row-copy { flex: 1; min-width: 0; }
.ag-row-copy b { display: block; font-size: 0.9rem; }
.ag-row-copy small { color: var(--muted); font-size: 0.75rem; }
.ag-rows .is-pos { color: var(--accent); }
.ag-form label, .ag-kyc-form label { display: block; margin: 0.65rem 0; font-size: 0.9rem; }
.ag-kyc-form .ag-kyc-field,
.ag-kyc-form .ag-apply-field { margin: 0; display: grid; }
.ag-kyc-form .ag-id-tile { display: flex; margin: 0; }
.ag-kyc-form .ag-check { display: flex; margin: 1rem 0 0.4rem; }
/* Bare inputs (legacy) → same Earnora control */
.ag-form > label > input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ag-form > label > select,
.ag-form > label > textarea,
.ag-sheet-form > label > input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ag-sheet-form > label > select,
.ag-sheet-form > label > textarea,
.ag-kyc-form > label > input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.ag-kyc-form > label > select,
.ag-kyc-form > label > textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  margin-top: 0.35rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(238, 243, 239, 0.08);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.ag-form > label > textarea,
.ag-sheet-form > label > textarea,
.ag-kyc-form > label > textarea {
  min-height: 6.2rem;
  border-radius: 18px;
  resize: vertical;
}
.ag-form > label > input:focus,
.ag-form > label > select:focus,
.ag-form > label > textarea:focus,
.ag-sheet-form > label > input:focus,
.ag-sheet-form > label > select:focus,
.ag-sheet-form > label > textarea:focus,
.ag-kyc-form > label > input:focus,
.ag-kyc-form > label > select:focus,
.ag-kyc-form > label > textarea:focus {
  border-color: rgba(61, 207, 142, 0.55);
  box-shadow: 0 0 0 3px rgba(61, 207, 142, 0.14);
  background: rgba(0, 0, 0, 0.48);
}
.ag-form > label > input::placeholder,
.ag-form > label > textarea::placeholder,
.ag-sheet-form > label > input::placeholder,
.ag-sheet-form > label > textarea::placeholder,
.ag-kyc-form > label > input::placeholder,
.ag-kyc-form > label > textarea::placeholder {
  color: #6f8378;
  opacity: 1;
}
.ag-wallet-bal { font-family: var(--display); font-size: 1.8rem; margin: 0.2rem 0 1rem; }
.ag-logout { margin-top: 2rem; }

.ag-kyc-status { text-align: center; padding: 1.5rem 0.4rem 2rem; }
.ag-kyc-step[hidden] { display: none !important; }
.ag-kyc-track {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  margin: 0 0 1.15rem;
  padding: 0 0.2rem 0.85rem;
  position: relative;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.ag-kyc-track::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  top: 14px;
  height: 2px;
  background: rgba(238, 243, 239, 0.08);
}
.ag-kyc-track li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  text-align: center;
}
.ag-kyc-track li span {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #121a16;
  border: 1px solid rgba(238, 243, 239, 0.12);
}
.ag-kyc-track li.is-on,
.ag-kyc-track li.is-done { color: var(--ink); }
.ag-kyc-track li.is-on span {
  background: #14c97a;
  color: #062016;
  border-color: #14c97a;
}
.ag-kyc-track li.is-done span {
  background: rgba(20, 201, 122, 0.22);
  color: #8ef0c0;
  border-color: transparent;
}
.ag-kyc-card {
  padding: 1.35rem 1.3rem 1.25rem;
  border-radius: 24px;
  background: linear-gradient(180deg, #121a16, #0e1512);
  border: 1px solid rgba(61, 207, 142, 0.14);
  transition: border-color 0.28s ease, box-shadow 0.28s var(--ag-ease);
}
.ag-kyc-card:hover {
  border-color: rgba(61, 207, 142, 0.28);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}
.ag-kyc-card h2,
.ag-kyc-step h3 {
  margin: 0.15rem 0 0.35rem;
  font-family: var(--display);
  letter-spacing: -0.03em;
  font-size: 1.2rem;
}
.ag-kyc-side { display: grid; gap: 1.25rem; align-content: start; }
.ag-kyc-side .ag-panel { padding-bottom: 1.35rem; }
.ag-kyc-side-nav { margin-top: 0.7rem; }
.ag-kyc-main .ag-alert { margin: 0 0 1rem; }
.ag-kyc-layout .ag-apply-nav { flex-wrap: wrap; margin-top: 1.1rem; }
.ag-info-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.ag-info-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
.ag-info-steps span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #14c97a;
  color: #062016;
  font-weight: 800;
  font-size: 0.72rem;
}
.ag-metric-ico.is-wait,
.ag-send-ico.is-wait {
  color: #f0c14a;
  background: rgba(240, 193, 74, 0.12);
  border-color: rgba(240, 193, 74, 0.28);
}
.ag-metric-ico.is-bad {
  color: #f0a3a3;
  background: rgba(232, 92, 92, 0.12);
  border-color: rgba(232, 92, 92, 0.28);
}
.ag-kyc-intro { text-align: center; margin-bottom: 1.1rem; }
.ag-kyc-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(61, 207, 142, 0.12);
  border: 1px solid rgba(61, 207, 142, 0.32);
  color: #1ee08c;
}
.ag-kyc-badge.is-wait {
  color: #f0c14a;
  background: rgba(240, 193, 74, 0.12);
  border-color: rgba(240, 193, 74, 0.32);
}
.ag-kyc-need { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: 0.7rem; }
.ag-kyc-need li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  background: #0d1411;
}
.ag-kyc-need .ag-metric-ico { width: 40px; height: 40px; }
.ag-kyc-need .ag-metric-ico svg { width: 18px; height: 18px; display: block; }
.ag-kyc-need strong { display: block; color: var(--ink); }
.ag-kyc-need div span { color: var(--muted); font-size: 0.8rem; }
.ag-kyc-need .ag-metric-ico { color: #1ee08c; }
.ag-kyc-grid { display: grid; gap: 0.75rem; margin: 1rem 0 0.4rem; }
.ag-kyc-field { display: grid; gap: 0.35rem; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
/* .ag-kyc-input shares .ag-apply-input styles above */
.ag-kyc-result {
  max-width: 520px;
  margin: 1.5rem auto;
  padding: 2rem 1.4rem 1.5rem;
  text-align: center;
  border-radius: 26px;
  background: linear-gradient(180deg, #121a16, #0e1512);
  border: 1px solid rgba(61, 207, 142, 0.16);
}
.ag-kyc-result.is-wait { border-color: rgba(240, 193, 74, 0.22); }
.ag-kyc-result h1 { margin: 0.15rem 0 0.35rem; }
.ag-kyc-result .ag-need-steps { max-width: 320px; margin: 1.2rem auto 1.3rem; }
.ag-kyc-result-actions,
.ag-kyc-result .ag-apply-back { margin-top: 0.85rem; }
.ag-verify-hero {
  padding: 1.3rem 1.2rem 1.15rem;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(61, 207, 142, 0.18), transparent 46%),
    linear-gradient(165deg, #173328 0%, #0e1713 74%);
  border: 1px solid rgba(61, 207, 142, 0.28);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  transition: border-color 0.3s ease, box-shadow 0.3s var(--ag-ease);
}
.ag-verify-hero:hover {
  border-color: rgba(61, 207, 142, 0.42);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}
.ag-verify-hero.is-wait {
  background:
    linear-gradient(180deg, rgba(240, 193, 74, 0.14), transparent 46%),
    linear-gradient(165deg, #241c10 0%, #14110c 74%);
  border-color: rgba(240, 193, 74, 0.28);
}
.ag-verify-top {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  text-align: left;
}
.ag-verify-top .ag-kyc-badge { margin: 0; flex-shrink: 0; }
.ag-verify-kicker {
  margin: 0;
  color: #1ee08c;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ag-verify-hero.is-wait .ag-verify-kicker { color: #f0c14a; }
.ag-verify-top h2 {
  margin: 0.12rem 0 0.18rem;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.ag-verify-top .muted { margin: 0; }
.ag-verify-facts {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(61, 207, 142, 0.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}
.ag-verify-facts li { display: grid; gap: 0.18rem; text-align: left; }
.ag-verify-facts span { color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; }
.ag-verify-facts strong { color: var(--ink); font-size: 0.92rem; font-weight: 700; overflow-wrap: anywhere; }
.ag-verify-hero .ag-need-steps { margin: 1.1rem 0 0; }
.ag-verify-actions { display: grid; gap: 0.6rem; margin-top: 1rem; }
.ag-verify-actions-row { display: flex; gap: 0.6rem; }
.ag-page-hero {
  padding: 1.25rem 1.2rem 1.2rem;
  margin-bottom: 1.15rem;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(61, 207, 142, 0.16), transparent 48%),
    linear-gradient(165deg, #173328 0%, #0e1713 74%);
  border: 1px solid rgba(61, 207, 142, 0.24);
  transition: border-color 0.3s ease, box-shadow 0.3s var(--ag-ease);
}
.ag-page-hero:hover {
  border-color: rgba(61, 207, 142, 0.38);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}
.ag-page-hero-amt {
  margin: 0.2rem 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  letter-spacing: -0.04em;
}
.ag-page-hero .ag-apply-go { margin-top: 1rem; max-width: min(18rem, 100%); }
.ag-sheet-form { display: grid; gap: 0.75rem; margin-top: 0.85rem; }

/* Kill global app.css input chrome inside agent wrapped controls */
body.theme-agent-app .ag-apply-input input,
body.theme-agent-app .ag-apply-input select,
body.theme-agent-app .ag-apply-input textarea,
body.theme-agent-app .ag-kyc-input input,
body.theme-agent-app .ag-kyc-input select,
body.theme-agent-app .ag-kyc-input textarea,
body.theme-agent-land .ag-apply-input input,
body.theme-agent-land .ag-apply-input select,
body.theme-agent-land .ag-apply-input textarea {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  min-height: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.theme-agent-app .ag-apply-input input:focus,
body.theme-agent-app .ag-apply-input select:focus,
body.theme-agent-app .ag-apply-input textarea:focus,
body.theme-agent-app .ag-kyc-input input:focus,
body.theme-agent-app .ag-kyc-input select:focus,
body.theme-agent-app .ag-kyc-input textarea:focus,
body.theme-agent-land .ag-apply-input input:focus,
body.theme-agent-land .ag-apply-input select:focus,
body.theme-agent-land .ag-apply-input textarea:focus {
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}
body.theme-agent-app .ag-apply-input input:-webkit-autofill,
body.theme-agent-app .ag-kyc-input input:-webkit-autofill,
body.theme-agent-land .ag-apply-input input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  transition: background-color 9999s ease-in-out 0s;
  box-shadow: 0 0 0 1000px transparent inset !important;
}
.ag-field-hint { color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.ag-panel-follow { margin-top: 1.25rem; }
.ag-status-follow { margin-top: 1rem; }
.ag-profile-top { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1rem; }
.ag-profile-top strong { display: block; font-size: 1.05rem; }
.ag-profile-top .muted { margin: 0.15rem 0 0; }
.ag-profile-av {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(61, 207, 142, 0.16);
  border: 1px solid rgba(61, 207, 142, 0.28);
  color: #1ee08c;
  font-weight: 800;
  font-size: 1.15rem;
}
.ag-kyc-file { min-height: 1.2rem; margin: 0.2rem 0 0; color: var(--accent); font-size: 0.8rem; font-weight: 700; }
.ag-shield {
  width: 64px; height: 64px; margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(61, 207, 142, 0.12);
  border: 1px solid rgba(61, 207, 142, 0.35);
  font-size: 1.4rem;
}
.ag-shield.is-spin {
  border-color: var(--accent-2);
  animation: ag-spin 1.1s linear infinite;
  background: conic-gradient(from 0deg, var(--accent-2), transparent 70%);
}
@keyframes ag-spin { to { transform: rotate(360deg); } }
.ag-kyc-progress { list-style: none; padding: 0; display: flex; justify-content: space-between; gap: 0.4rem; font-size: 0.78rem; color: var(--muted); }
.ag-kyc-progress .is-done, .ag-kyc-progress .is-active { color: var(--accent); }
.ag-kyc-crumb { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; margin: 0 0 0.35rem; }
.ag-id-tiles { display: grid; gap: 0.7rem; margin: 1rem 0; }
.ag-id-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1.05rem 0.8rem;
  border-radius: 16px;
  border: 1px solid rgba(238, 243, 239, 0.1);
  background: #0d1411;
  cursor: pointer;
  text-align: center;
}
.ag-id-tile input { position: absolute; opacity: 0; pointer-events: none; }
.ag-id-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #16241c;
  color: #1ee08c;
}
.ag-id-ico svg { width: 20px; height: 20px; display: block; }
.ag-id-tile:has(input:checked) {
  border-color: rgba(30, 224, 140, 0.55);
  background: rgba(20, 201, 122, 0.08);
  box-shadow: 0 0 0 3px rgba(30, 224, 140, 0.12);
}
.ag-frame {
  position: relative;
  margin: 0.95rem 0 0.7rem;
  min-height: 200px;
  border-radius: 18px;
  border: 1px dashed rgba(30, 224, 140, 0.28);
  background:
    radial-gradient(circle at 50% 40%, rgba(30, 224, 140, 0.08), transparent 55%),
    #0a100e;
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.ag-frame.is-card { aspect-ratio: 1.58 / 1; }
.ag-frame.is-oval { min-height: 260px; }
.ag-frame video, .ag-frame img { width: 100%; height: 100%; object-fit: cover; }
.ag-frame-guides {
  position: absolute; inset: 12px;
  border: 2px solid rgba(61,207,142,0.55);
  border-radius: 10px;
  pointer-events: none;
}
.ag-oval {
  position: absolute;
  width: 58%;
  height: 72%;
  border: 2px solid rgba(61,207,142,0.7);
  border-radius: 50%;
  pointer-events: none;
}
.ag-frame-hint { position: absolute; bottom: 12px; color: #9bb0a4; font-size: 0.8rem; font-weight: 600; }
.ag-kyc-step.has-file .ag-frame { border-style: solid; border-color: rgba(30, 224, 140, 0.35); }
.ag-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 1rem 0 0.4rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: #0d1411;
  font-size: 0.88rem;
}
.ag-check input { width: auto; margin-top: 0.2rem; accent-color: #14c97a; }

@media (display-mode: standalone) {
  .theme-agent-app .app-phone { border-radius: 0; max-width: none; min-height: 100dvh; }
}

/* Tablet: use the full screen, keep bottom tabs */
@media (min-width: 700px) and (max-width: 899px) {
  body.theme-agent-app {
    display: block !important;
    place-items: unset !important;
    padding: 0 !important;
    height: 100dvh !important;
    overflow: hidden !important;
    background: var(--bg) !important;
  }
  body.theme-agent-app .app-phone {
    width: 100% !important;
    max-width: none !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body.theme-agent-app .ag-metrics { grid-template-columns: repeat(2, 1fr); }
  body.theme-agent-app .ag-dash-grid { grid-template-columns: 1fr; }
  body.theme-agent-app .ag-dash,
  body.theme-agent-app .ag-page,
  body.theme-agent-app .ag-page-wide,
  body.theme-agent-app .ag-home,
  body.theme-agent-app .ag-send,
  body.theme-agent-app .ag-recv,
  body.theme-agent-app .ag-float,
  body.theme-agent-app .ag-kyc {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
  }
}

/* Desktop: sidebar + wide content */
@media (min-width: 900px) {
  html:has(body.theme-agent-app) {
    height: 100%;
    overflow: hidden;
  }
  body.theme-agent-app {
    display: block !important;
    place-items: unset !important;
    padding: 0 !important;
    height: 100dvh !important;
    overflow: hidden !important;
    background:
      radial-gradient(900px 420px at 12% -8%, rgba(61, 207, 142, 0.14), transparent 55%),
      var(--bg) !important;
  }
  body.theme-agent-app .app-phone {
    width: 100% !important;
    max-width: none !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    display: block;
    overflow: hidden;
  }
  body.theme-agent-app .app-tabbar,
  body.theme-agent-app .app-phone:has(.app-tabbar) .app-tabbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    width: 240px;
    height: 100dvh;
    padding: 1.15rem 0.95rem 1.15rem !important;
    background: #08110d;
    border-right: 1px solid rgba(61, 207, 142, 0.1);
    pointer-events: auto;
    z-index: 40 !important;
    display: flex;
    flex-direction: column;
  }
  body.theme-agent-app .app-topbar {
    position: fixed;
    top: 0;
    left: 240px;
    right: 0;
    padding: 0.85rem 1.6rem;
    z-index: 39;
    background: #071410;
    border-bottom: 1px solid rgba(61, 207, 142, 0.08);
  }
  body.theme-agent-app .app-scroll,
  body.theme-agent-app .app-phone:has(.app-tabbar) .app-scroll {
    position: relative;
    margin-left: 240px;
    margin-top: 68px;
    height: calc(100dvh - 68px);
    padding: 1.5rem 1.85rem 2.2rem !important;
    scrollbar-width: thin;
  }
  body.theme-agent-app .ag-side-logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    margin: 0 0 1.15rem;
    padding: 0.15rem 0.35rem 1rem;
    color: var(--ink);
    text-decoration: none;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.02rem;
    border-bottom: 1px solid rgba(61, 207, 142, 0.12);
  }
  body.theme-agent-app .ag-side-logo img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  body.theme-agent-app .ag-side-logo em {
    font-style: normal;
    color: var(--accent);
  }
  body.theme-agent-app .app-tabbar-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 2px 0 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(30, 224, 140, 0.5) rgba(255, 255, 255, 0.05);
  }
  body.theme-agent-app .app-tabbar-inner::-webkit-scrollbar {
    width: 6px;
  }
  body.theme-agent-app .app-tabbar-inner::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    margin: 6px 0;
  }
  body.theme-agent-app .app-tabbar-inner::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(94, 240, 176, 0.75), rgba(20, 201, 122, 0.42));
    border-radius: 999px;
    border: 1px solid transparent;
    background-clip: padding-box;
  }
  body.theme-agent-app .app-tabbar-inner::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5ef0b0, #14c97a);
  }
  body.theme-agent-app .app-tabbar-inner::-webkit-scrollbar-corner {
    background: transparent;
  }
  body.theme-agent-app .tab-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.7rem;
    min-height: 42px;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 999px;
    color: #b7c8bd;
  }
  body.theme-agent-app .tab-item::before { display: none; }
  body.theme-agent-app .tab-item:hover { background: rgba(238, 243, 239, 0.04); color: #eef3ef; }
  body.theme-agent-app .tab-item.is-active,
  body.theme-agent-app .tab-item.tab-center.is-active {
    background: #1ee08c;
    color: #062016;
  }
  body.theme-agent-app .tab-item.is-active .tab-ico,
  body.theme-agent-app .tab-item.is-active .tab-label {
    color: #062016;
    opacity: 1;
    transform: none;
  }
  body.theme-agent-app .tab-item.tab-center {
    min-height: 42px;
  }
  body.theme-agent-app .tab-fab {
    width: 22px !important;
    height: 22px !important;
    margin-top: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    filter: none !important;
  }
  body.theme-agent-app .tab-fab::after { display: none !important; }
  body.theme-agent-app .tab-item.tab-center.is-active .tab-fab {
    box-shadow: none !important;
    color: inherit !important;
  }
  body.theme-agent-app .ag-nav-more { display: flex; }
  body.theme-agent-app .ag-side-pro {
    display: block;
    margin-top: auto;
    flex-shrink: 0;
    padding: 0.65rem 0.85rem 0.7rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #1a160c, #12140e);
    border: 1px solid rgba(232, 194, 122, 0.2);
  }
  body.theme-agent-app .ag-side-pro-ico {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(240, 193, 74, 0.16);
    color: #f0c14a;
  }
  body.theme-agent-app .ag-side-pro strong {
    display: block;
    margin: 0.28rem 0 0.08rem;
    color: #f0c14a;
    font-size: 0.92rem;
    line-height: 1.2;
  }
  body.theme-agent-app .ag-side-pro p {
    margin: 0 0 0.5rem;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.3;
  }
  body.theme-agent-app .ag-side-pro a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.1rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #5ef0b0, #14c97a);
    color: #062016;
    font-weight: 800;
    font-size: 0.82rem;
    text-decoration: none;
  }
  body.theme-agent-app .ag-user-name { display: inline; }
  body.theme-agent-app .ag-home-top { grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr); align-items: stretch; }
  body.theme-agent-app .ag-home-top.is-full { grid-template-columns: 1fr; }
  body.theme-agent-app .ag-quick-grid { grid-template-columns: repeat(4, 1fr); }
  body.theme-agent-app .ag-send-grid,
  body.theme-agent-app .ag-kyc-layout { grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr); align-items: start; }
  body.theme-agent-app .ag-recv-grid { grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.78fr); align-items: start; }
  body.theme-agent-app .ag-recv-stats { grid-template-columns: repeat(4, 1fr); }
  body.theme-agent-app .ag-float-stats { grid-template-columns: minmax(240px, 1.45fr) repeat(3, minmax(0, 1fr)); }
  body.theme-agent-app .ag-float-stats li.is-hero { grid-column: auto; }
  body.theme-agent-app .ag-float-grid { grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.78fr); }
  body.theme-agent-app .app-phone:has(.app-tabbar),
  body.theme-agent-app .app-phone {
    padding-bottom: 0 !important;
  }
  body.theme-agent-app .ag-dash,
  body.theme-agent-app .ag-page-wide,
  body.theme-agent-app .ag-page,
  body.theme-agent-app .ag-kyc,
  body.theme-agent-app .ag-home,
  body.theme-agent-app .ag-send,
  body.theme-agent-app .ag-recv,
  body.theme-agent-app .ag-float,
  body.theme-agent-app .ag-kyc-form {
    max-width: none !important;
    margin: 0 !important;
    width: 100% !important;
  }
  body.theme-agent-app .ag-metrics {
    grid-template-columns: repeat(4, 1fr);
  }
  body.theme-agent-app .ag-dash-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  body.theme-agent-app .ag-page-split {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 1.5rem;
  }
  body.theme-agent-app .ag-kyc-grid { grid-template-columns: 1fr 1fr; }
  body.theme-agent-app .ag-kyc-field.is-full,
  body.theme-agent-app .ag-apply-field.is-full { grid-column: 1 / -1; }
  body.theme-agent-app .ag-verify-actions {
    max-width: 28rem;
  }
  body.theme-agent-app .app-scroll,
  body.theme-agent-app .app-phone:has(.app-tabbar) .app-scroll {
    padding: 1.35rem 1.5rem 2rem !important;
  }
}

@media (min-width: 800px) {
  .ag-steps { grid-template-columns: repeat(3, 1fr); }
  .ag-kyc-tiles { grid-template-columns: repeat(3, 1fr); }
  .ag-id-tiles { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  body.theme-agent-app .app-tabbar,
  body.theme-agent-app .app-phone:has(.app-tabbar) .app-tabbar,
  body.theme-agent-app.theme-app .app-tabbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    width: 240px !important;
    height: 100dvh !important;
    padding: 1.15rem 0.95rem 1.15rem !important;
  }
  body.theme-agent-app .app-topbar {
    position: fixed !important;
    top: 0 !important;
    left: 240px !important;
    right: 0 !important;
  }
  body.theme-agent-app .app-scroll,
  body.theme-agent-app .app-phone:has(.app-tabbar) .app-scroll,
  body.theme-agent-app.theme-app .app-scroll {
    margin-left: 240px !important;
    margin-top: 68px !important;
    height: calc(100dvh - 68px) !important;
    padding: 1.4rem 1.75rem 2rem !important;
    padding-bottom: 2rem !important;
  }
}

@media (min-width: 768px) {
  body.theme-agent-app.theme-app {
    display: block !important;
    place-items: unset !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100dvh !important;
    overflow: hidden !important;
    background: var(--bg) !important;
  }
  body.theme-agent-app .app-phone,
  body.theme-agent-app.theme-app .app-phone {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

@media (max-width: 899px) {
  body.theme-agent-app .ag-kyc,
  body.theme-agent-app .ag-page,
  body.theme-agent-app .ag-home,
  body.theme-agent-app .ag-send,
  body.theme-agent-app .ag-recv,
  body.theme-agent-app .ag-float,
  body.theme-agent-app .ag-dash {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-bottom: calc(var(--tab-h, 84px) + 1.4rem);
  }
  body.theme-agent-app .app-scroll {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .ag-verify-actions { max-width: none; }
  .ag-page-hero .ag-apply-go { max-width: none; }
}

@media (max-width: 699px) {
  .ag-home-hello { flex-direction: column; align-items: flex-start; }
  .ag-home-meta { align-items: flex-start; text-align: left; }
  .ag-home-art { width: 118px; }
  .ag-quick-grid { grid-template-columns: 1fr; }
  .ag-metrics.is-icons { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .ag-kyc-track li { font-size: 0; }
  .ag-kyc-track li.is-on { font-size: 0.72rem; }
  .ag-send-hero,
  .ag-kyc-hero { flex-direction: column; }
  .ag-send-hero-side,
  .ag-kyc-hero-side { align-items: flex-start; }
  .ag-send-art,
  .ag-kyc-art { display: none; }
  .ag-send-member { flex-wrap: wrap; }
  .ag-send-since { width: 100%; }
  .ag-panel { padding: 1rem 0.95rem 0.95rem; border-radius: 18px; }
  .ag-home-float,
  .ag-page-hero,
  .ag-verify-hero { border-radius: 22px; padding: 1.15rem 1rem 1.05rem; }
  .ag-verify-actions-row { flex-direction: column; }
  .ag-verify-actions-row .ag-apply-back { width: 100%; }
  .ag-dash-grid { gap: 0.95rem; }
  body.theme-agent-app .app-scroll {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }
}

/* Soft page enter + stagger */
@keyframes ag-soft-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
body.theme-agent-app .app-scroll > .ag-home,
body.theme-agent-app .app-scroll > .ag-page,
body.theme-agent-app .app-scroll > .ag-kyc,
body.theme-agent-app .app-scroll > .ag-send,
body.theme-agent-app .app-scroll > .ag-dash,
body.theme-agent-app .app-scroll > .ag-recv,
body.theme-agent-app .app-scroll > .ag-float {
  animation: ag-soft-in 0.45s var(--ag-ease) both;
}
body.theme-agent-app .ag-soft > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ag-ease), transform 0.45s var(--ag-ease);
}
body.theme-agent-app .ag-soft.is-ready > * {
  opacity: 1;
  transform: translateY(0);
}
body.theme-agent-app .ag-soft.is-ready > *:nth-child(1) { transition-delay: 0.02s; }
body.theme-agent-app .ag-soft.is-ready > *:nth-child(2) { transition-delay: 0.07s; }
body.theme-agent-app .ag-soft.is-ready > *:nth-child(3) { transition-delay: 0.12s; }
body.theme-agent-app .ag-soft.is-ready > *:nth-child(4) { transition-delay: 0.17s; }
body.theme-agent-app .ag-soft.is-ready > *:nth-child(5) { transition-delay: 0.22s; }
body.theme-agent-app .ag-soft.is-ready > *:nth-child(6) { transition-delay: 0.27s; }
body.theme-agent-app .ag-soft.is-ready > *:nth-child(7) { transition-delay: 0.32s; }
body.theme-agent-app .ag-soft.is-ready > *:nth-child(8) { transition-delay: 0.37s; }
body.theme-agent-app .ag-soft.is-ready > *:nth-child(n+9) { transition-delay: 0.4s; }

body.theme-agent-app .tab-item {
  transition: color 0.22s ease, background 0.22s var(--ag-ease), transform 0.22s var(--ag-ease);
}
body.theme-agent-app .tab-item:active { transform: scale(0.96); }
body.theme-agent-app .ag-pill {
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}
body.theme-agent-app .ag-kyc-card,
body.theme-agent-app .ag-send-panel,
body.theme-agent-app .ag-send-side > * {
  transition: border-color 0.28s ease, box-shadow 0.28s var(--ag-ease), transform 0.28s var(--ag-ease);
}

/* —— Receive (Cash Out) —— */
.ag-recv-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.2rem;
}
.ag-recv-hero .eyebrow {
  margin: 0;
  color: #1ee08c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ag-recv-hero h1 {
  margin: 0.2rem 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: -0.04em;
}
.ag-recv-hero > div > .muted {
  max-width: 36rem;
  margin: 0;
  line-height: 1.45;
}
.ag-recv-hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}
.ag-recv-art {
  flex-shrink: 0;
  filter: drop-shadow(0 12px 28px rgba(30, 224, 140, 0.18));
}
.ag-recv-demo {
  margin: 0 0 1rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  background: rgba(240, 193, 74, 0.1);
  border: 1px solid rgba(240, 193, 74, 0.22);
  color: #f0c14a;
  font-size: 0.8rem;
  font-weight: 700;
}
.ag-recv-demo.is-warn {
  background: rgba(239, 107, 107, 0.1);
  border-color: rgba(239, 107, 107, 0.28);
  color: #ef6b6b;
}
.ag-recv-member > div { min-width: 0; }
.ag-recv-addr {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 11rem;
}
.ag-recv-pay:disabled,
.ag-recv-reject:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.ag-recv-stats {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.ag-recv-stats li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.05rem 1.1rem;
  border-radius: 18px;
  background: linear-gradient(160deg, #121a16 0%, #0d1411 100%);
  border: 1px solid rgba(61, 207, 142, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 0.28s var(--ag-ease), border-color 0.28s ease, box-shadow 0.28s ease;
}
.ag-recv-stats li:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 207, 142, 0.3);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.ag-recv-stats li > div span { display: block; color: var(--muted); font-size: 0.74rem; font-weight: 700; }
.ag-recv-stats li > div strong {
  display: block;
  margin-top: 0.18rem;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.ag-recv-stat-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid transparent;
}
.ag-recv-stat-ico.is-gold {
  color: #f0c14a;
  background: rgba(240, 193, 74, 0.12);
  border-color: rgba(240, 193, 74, 0.28);
  box-shadow: 0 0 18px rgba(240, 193, 74, 0.18);
}
.ag-recv-stat-ico.is-mint {
  color: #1ee08c;
  background: rgba(30, 224, 140, 0.12);
  border-color: rgba(30, 224, 140, 0.28);
  box-shadow: 0 0 18px rgba(30, 224, 140, 0.2);
}
.ag-recv-stat-ico.is-violet {
  color: #b39dff;
  background: rgba(179, 157, 255, 0.12);
  border-color: rgba(179, 157, 255, 0.28);
  box-shadow: 0 0 18px rgba(179, 157, 255, 0.18);
}
.ag-recv-stat-ico.is-sky {
  color: #6ec8ff;
  background: rgba(110, 200, 255, 0.12);
  border-color: rgba(110, 200, 255, 0.28);
  box-shadow: 0 0 18px rgba(110, 200, 255, 0.18);
}
.ag-recv-side-lede {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}
.ag-recv-details .ag-apply-field { margin-bottom: 0.65rem; }
.ag-recv-panel-head-link,
.ag-recv-table-card .ag-panel-head a {
  color: #1ee08c;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}
.ag-recv-table-card .ag-panel-head a:hover { text-decoration: underline; }
.ag-recv-grid { display: grid; gap: 1.15rem; }
.ag-recv-main { display: grid; gap: 1rem; min-width: 0; }
.ag-recv-side { display: grid; gap: 1rem; align-content: start; }
.ag-recv-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 0 0 0.85rem;
  padding: 0 0 0.9rem;
  border-bottom: 1px solid rgba(238, 243, 239, 0.08);
}
.ag-recv-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-width: 0;
}
.ag-recv-tabs button {
  min-height: 2.2rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(238, 243, 239, 0.1);
  background: #0d1411;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s var(--ag-ease);
}
.ag-recv-tabs button:hover { color: var(--ink); border-color: rgba(61, 207, 142, 0.28); }
.ag-recv-tabs button.is-on {
  background: linear-gradient(180deg, #5ef0b0, #14c97a);
  border-color: transparent;
  color: #062016;
  box-shadow: 0 8px 20px rgba(30, 224, 140, 0.25);
}
.ag-recv-search {
  flex: 0 1 240px;
  width: min(240px, 100%);
  min-width: 180px;
  margin-left: auto;
  min-height: 2.4rem !important;
  padding: 0 0.8rem !important;
}
.ag-recv-search input { padding: 0.55rem 0 !important; font-size: 0.86rem !important; }
.ag-recv-seeall {
  color: #1ee08c;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.ag-recv-seeall:hover { text-decoration: underline; }
.ag-recv-table-card { overflow: hidden; }
.ag-recv-table-wrap.is-empty {
  overflow: visible;
  margin: 0;
}
.ag-recv-table-wrap.is-empty .ag-recv-table { min-width: 0; }
.ag-recv-table-wrap.is-empty thead { display: none; }
.ag-recv-table-wrap {
  overflow-x: auto;
  margin: 0.35rem -0.25rem 0;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 224, 140, 0.45) rgba(255, 255, 255, 0.05);
}
.ag-recv-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.ag-recv-table th {
  text-align: left;
  padding: 0.55rem 0.65rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(238, 243, 239, 0.08);
  white-space: nowrap;
}
.ag-recv-table td {
  padding: 0.8rem 0.65rem;
  border-bottom: 1px solid rgba(238, 243, 239, 0.06);
  vertical-align: middle;
  font-size: 0.9rem;
}
.ag-recv-table tbody tr {
  transition: background 0.2s ease;
}
.ag-recv-table tbody tr:hover { background: rgba(61, 207, 142, 0.04); }
.ag-recv-table tbody tr[hidden] { display: none; }
.ag-recv-check { width: 2.2rem; }
.ag-recv-check-lab {
  display: grid;
  place-items: center;
  cursor: pointer;
}
.ag-recv-check-lab input { width: auto; accent-color: #14c97a; }
.ag-recv-member {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 9rem;
}
.ag-recv-av {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(61, 207, 142, 0.14);
  color: #1ee08c;
}
.ag-recv-av.is-gold { background: rgba(240, 193, 74, 0.16); color: #f0c14a; }
.ag-recv-av.is-blue { background: rgba(110, 200, 255, 0.16); color: #6ec8ff; }
.ag-recv-av.is-pink { background: rgba(255, 130, 170, 0.16); color: #ff82aa; }
.ag-recv-av.is-mint { background: rgba(61, 207, 142, 0.14); color: #1ee08c; }
.ag-recv-mono { font-variant-numeric: tabular-nums; color: #cfe8d8; font-weight: 600; }
.ag-recv-amt { font-weight: 800; white-space: nowrap; }
.ag-recv-muted { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.ag-recv-method {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}
.ag-recv-method.is-bkash { background: rgba(226, 27, 112, 0.16); color: #ff6aa8; }
.ag-recv-method.is-nagad { background: rgba(242, 120, 28, 0.16); color: #ff9a4d; }
.ag-recv-method.is-rocket { background: rgba(122, 63, 168, 0.18); color: #c59bff; }
.ag-recv-method.is-bank { background: rgba(56, 132, 255, 0.16); color: #7eb0ff; }
.ag-recv-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}
.ag-recv-status.is-pending { background: rgba(240, 193, 74, 0.14); color: #f0c14a; }
.ag-recv-status.is-processing { background: rgba(110, 200, 255, 0.14); color: #6ec8ff; }
.ag-recv-status.is-completed { background: rgba(30, 224, 140, 0.14); color: #1ee08c; }
.ag-recv-status.is-rejected { background: rgba(239, 107, 107, 0.14); color: #ef6b6b; }
.ag-recv-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.ag-recv-pay,
.ag-recv-reject,
.ag-recv-more {
  min-height: 2rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s var(--ag-ease), filter 0.2s ease, background 0.2s ease;
}
.ag-recv-pay {
  background: linear-gradient(180deg, #5ef0b0, #14c97a);
  color: #062016;
  box-shadow: 0 6px 16px rgba(30, 224, 140, 0.22);
}
.ag-recv-pay:hover { filter: brightness(1.05); transform: translateY(-1px); }
.ag-recv-reject {
  background: rgba(238, 243, 239, 0.06);
  border: 1px solid rgba(238, 243, 239, 0.12);
  color: var(--ink);
}
.ag-recv-reject:hover { border-color: rgba(239, 107, 107, 0.4); color: #ef6b6b; }
.ag-recv-more {
  width: 2rem;
  padding: 0;
  background: transparent;
  color: var(--muted);
}
.ag-recv-comm { color: #1ee08c; font-size: 0.88rem; }
.ag-recv-methods-label {
  margin: 0.85rem 0 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.ag-recv-methods { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ag-recv-copy {
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(61, 207, 142, 0.1);
  color: #1ee08c;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.ag-recv-copy:hover { background: rgba(61, 207, 142, 0.2); transform: scale(1.05); }
.ag-recv-steps {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.ag-recv-steps li {
  display: flex;
  gap: 0.75rem;
  position: relative;
}
.ag-recv-steps li + li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: -0.85rem;
  width: 2px;
  height: 0.85rem;
  background: rgba(61, 207, 142, 0.22);
}
.ag-recv-steps span {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(30, 224, 140, 0.14);
  border: 1px solid rgba(30, 224, 140, 0.28);
  color: #1ee08c;
  font-size: 0.75rem;
  font-weight: 800;
}
.ag-recv-steps strong { display: block; font-size: 0.9rem; }
.ag-recv-steps small { display: block; margin-top: 0.12rem; color: var(--muted); font-size: 0.78rem; }
.ag-recv-empty-row td { border-bottom: 0; }

/* Agent wallet / float */
.ag-float-art { filter: drop-shadow(0 16px 32px rgba(30, 224, 140, 0.22)); }
.ag-float-stats {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.ag-float-stats li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.05rem 1.1rem;
  border-radius: 20px;
  background: linear-gradient(165deg, #121c18 0%, #0c1411 100%);
  border: 1px solid rgba(61, 207, 142, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  min-width: 0;
}
.ag-float-stats li.is-hero {
  grid-column: 1 / -1;
  padding: 1.15rem 1.2rem;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(30, 224, 140, 0.12), transparent 55%),
    linear-gradient(165deg, #132019 0%, #0c1411 100%);
  border-color: rgba(61, 207, 142, 0.22);
}
.ag-float-stats li > div { min-width: 0; }
.ag-float-stats li span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ag-float-stats li strong {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--display);
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.ag-float-stats li.is-hero strong { font-size: clamp(1.7rem, 3vw, 2.05rem); }
.ag-float-stats li small {
  display: block;
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.ag-float-delta {
  display: inline-flex;
  margin-top: 0.28rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: #1ee08c;
}
.ag-float-delta.is-down { color: #ef6b6b; }
.ag-float-stat-ico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #1ee08c;
  background: rgba(30, 224, 140, 0.12);
  border: 1px solid rgba(30, 224, 140, 0.28);
  box-shadow: 0 0 18px rgba(30, 224, 140, 0.16);
}
.ag-float-stat-ico.is-wallet {
  border-radius: 14px;
  background: rgba(30, 224, 140, 0.1);
}
.ag-float-stat-ico svg { width: 20px; height: 20px; display: block; }
.ag-float-grid { display: grid; gap: 1.15rem; margin-bottom: 1.15rem; }
.ag-float-side { display: grid; gap: 1rem; align-content: start; }
.ag-float-label {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}
.ag-float-methods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}
.ag-float-method {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-height: 6.1rem;
  padding: 0.85rem 0.4rem 0.75rem;
  border-radius: 16px;
  border: 1px solid rgba(238, 243, 239, 0.1);
  background: #0d1411;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s var(--ag-ease), box-shadow 0.22s ease;
}
.ag-float-method:hover:not(:disabled) {
  border-color: rgba(30, 224, 140, 0.35);
  transform: translateY(-2px);
}
.ag-float-method.is-on {
  border-color: #1ee08c;
  background: rgba(30, 224, 140, 0.08);
  box-shadow: 0 0 0 1px rgba(30, 224, 140, 0.35), 0 10px 22px rgba(30, 224, 140, 0.12);
}
.ag-float-method:disabled { opacity: 0.45; cursor: not-allowed; }
.ag-float-hint {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.ag-float-mico b {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}
.ag-float-mico {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
}
.ag-float-mico.is-sm {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
  display: inline-grid;
}
.ag-float-method.is-bkash .ag-float-mico,
.ag-float-mico.is-bkash { background: #e21b70; }
.ag-float-method.is-nagad .ag-float-mico,
.ag-float-mico.is-nagad { background: #f2781c; }
.ag-float-method.is-rocket .ag-float-mico,
.ag-float-mico.is-rocket { background: #7a3fa8; }
.ag-float-method.is-bank .ag-float-mico,
.ag-float-mico.is-bank { background: #3b82f6; }
.ag-float-check {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  display: none;
  place-items: center;
  background: #14c97a;
  color: #062016;
}
.ag-float-method.is-on .ag-float-check { display: grid; }
.ag-float-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}
.ag-float-chip {
  min-height: 2.15rem;
  padding: 0 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(238, 243, 239, 0.1);
  background: #0d1411;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.ag-float-chip:hover:not(:disabled) { border-color: rgba(30, 224, 140, 0.4); color: #1ee08c; }
.ag-float-chip.is-on {
  background: linear-gradient(180deg, #5ef0b0, #14c97a);
  border-color: transparent;
  color: #062016;
}
.ag-float-chip:disabled { opacity: 0.45; cursor: not-allowed; }
.ag-float-continue { width: 100%; margin-top: 0.85rem; }
.ag-float-details { margin-top: 0.35rem; }
.ag-float-details[hidden] { display: none !important; }
.ag-float-pay {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(30, 224, 140, 0.06);
  border: 1px solid rgba(30, 224, 140, 0.16);
}
.ag-float-instr { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.8rem; line-height: 1.4; }
.ag-float-file input { padding: 0.55rem 0; }
.ag-float-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.85rem;
}
.ag-float-actions .ag-apply-go { flex: 1; }
.ag-float-back {
  min-height: 2.6rem;
  padding: 0 0.95rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.ag-float-back:hover { color: var(--ink); }
.ag-float-notes {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(30, 224, 140, 0.1), transparent 55%),
    linear-gradient(165deg, #121c18 0%, #0c1411 100%);
  border-color: rgba(61, 207, 142, 0.22);
}
.ag-float-notes ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.ag-float-notes li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}
.ag-float-notes li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #1ee08c;
  font-weight: 800;
}
.ag-float-table { min-width: 640px; }
.ag-float-tables .ag-panel-head { align-items: flex-start; }
.ag-float-tables .ag-panel-head .muted { margin: 0.15rem 0 0; font-size: 0.78rem; }
.ag-float-type {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(30, 224, 140, 0.12);
  color: #1ee08c;
}
.ag-float-type.is-out { background: rgba(239, 107, 107, 0.12); color: #ef6b6b; }
.ag-float-type.is-gear { background: rgba(110, 200, 255, 0.12); color: #6ec8ff; }
.ag-recv-amt.is-pos { color: #1ee08c; }
.ag-float-st {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}
.ag-float-st.is-pending { background: rgba(240, 193, 74, 0.16); color: #f0c14a; }
.ag-float-st.is-done { background: rgba(30, 224, 140, 0.16); color: #1ee08c; }
.ag-float-st.is-bad { background: rgba(239, 107, 107, 0.16); color: #ef6b6b; }
.ag-float-view {
  border: 0;
  background: none;
  color: #1ee08c;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}
.ag-float-view:hover { text-decoration: underline; }
.ag-float-dialog {
  width: min(420px, calc(100vw - 2rem));
  padding: 1.15rem 1.2rem 1.2rem;
  border: 1px solid rgba(61, 207, 142, 0.22);
  border-radius: 18px;
  background: #101814;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.ag-float-dialog::backdrop { background: rgba(0, 0, 0, 0.55); }
.ag-float-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.ag-float-dialog-head h3 { margin: 0; font-size: 1.05rem; }
.ag-float-dialog-x {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(238, 243, 239, 0.08);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
}
.ag-float-dl { margin: 0 0 1rem; display: grid; gap: 0.55rem; }
.ag-float-dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
}
.ag-float-dl dt { color: var(--muted); font-weight: 700; }
.ag-float-dl dd { margin: 0; font-weight: 800; text-align: right; word-break: break-all; }

@media (max-width: 699px) {
  .ag-recv-hero { flex-direction: column; }
  .ag-recv-hero-side { align-items: flex-start; width: 100%; }
  .ag-recv-art { display: none; }
  .ag-recv-toolbar { flex-direction: column; align-items: stretch; }
  .ag-recv-search { min-width: 0; width: 100%; margin-left: 0; flex: 1 1 auto; }
  .ag-recv-stats { grid-template-columns: 1fr 1fr; gap: 0.55rem; }
  .ag-recv-stats li { padding: 0.85rem 0.8rem; }
  .ag-recv-stats strong { font-size: 1rem; }
  .ag-float-stats { grid-template-columns: 1fr; gap: 0.55rem; }
  .ag-float-stats li.is-hero { grid-column: auto; }
  .ag-float-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-float-art { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ag-hero-aurora, .ag-hero-glow, .ag-hero-orb, .ag-hero-logo,
  .ag-kicker, .ag-hero h1, .ag-lede, .ag-hero-cta, .ag-land-nav {
    animation: none !important;
  }
  .ag-section.is-in .ag-steps li,
  .ag-section.is-in .ag-stat,
  .ag-section.is-in .ag-kyc-tiles li {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  body.theme-agent-app .app-scroll > .ag-home,
  body.theme-agent-app .app-scroll > .ag-page,
  body.theme-agent-app .app-scroll > .ag-kyc,
  body.theme-agent-app .app-scroll > .ag-send,
  body.theme-agent-app .app-scroll > .ag-recv,
  body.theme-agent-app .app-scroll > .ag-float,
  body.theme-agent-app .app-scroll > .ag-dash,
  body.theme-agent-app .ag-soft > * {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .ag-panel:hover,
  .ag-metrics.is-icons li:hover,
  .ag-quick-grid a:hover,
  .ag-home-act:hover,
  .ag-apply-go:hover,
  .ag-send-chip:hover {
    transform: none !important;
  }
}


/* ==========================================================================
   Earnora Agent — responsive shell v2 (body.ag-v2 / .ag-shell)
   mobile < 768: full-bleed app, sticky safe-area app bar, docked bottom tabs
   tablet 768–1099: icon rail sidebar · desktop ≥ 1100: full sidebar, full-width content
   Palette/fonts unchanged (tokens from app.css :root).
   ========================================================================== */
body.ag-v2 {
  --touch: 44px;
  --gutter: max(1rem, env(safe-area-inset-left, 0px));
  --gutter-r: max(1rem, env(safe-area-inset-right, 0px));
  --m-tab-h: 64px;
  --rail-w: 84px;
  --side-w: 252px;
  --top-h: 68px;
  --content-gutter: 1.5rem;
}
html body.ag-v2.theme-agent-app {
  display: block !important;
  place-items: unset !important;
  padding: 0 !important;
  height: 100dvh !important;
  overflow: hidden !important;
  background:
    radial-gradient(1000px 480px at 15% -10%, rgba(61, 207, 142, 0.11), transparent 60%),
    var(--bg) !important;
}
html body.ag-v2 .app-phone.ag-shell {
  width: 100% !important;
  max-width: none !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent;
}
html body.ag-v2 .ag-shell .app-scroll:focus { outline: none; }
html body.ag-v2 .ag-shell .app-scroll { overflow-x: hidden; }
html body.ag-v2 .ag-shell .app-scroll > * {
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box;
}

/* Keyboard focus ring */
body.ag-v2 :is(a, button, summary, [role="button"], [role="tab"], [role="menuitem"]):focus-visible,
body.ag-v2-land :is(a, button, summary, [role="button"]):focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px !important;
}
body.ag-v2 :is(input, select, textarea):focus-visible,
body.ag-v2-land :is(input, select, textarea):focus-visible {
  outline: 2px solid rgba(61, 207, 142, 0.45);
  outline-offset: 1px;
}

/* 44px touch targets in the app bar */
html body.ag-v2 .ag-shell .ag-bell { width: var(--touch); height: var(--touch); }
html body.ag-v2 .ag-shell .ag-user-chip { min-height: var(--touch); }
html body.ag-v2 .ag-shell .ag-aid-copy { position: relative; }
html body.ag-v2 .ag-shell .ag-aid-copy::after { content: ""; position: absolute; inset: -8px; }
html body.ag-v2 .ag-shell .ag-user-menu :is(a, button) { min-height: var(--touch); }

/* Tap feedback, no hover dependence on touch */
body.ag-v2 :is(.btn, .tab-item, .ag-home-act, .ag-quick-grid a, .ag-bell, .ag-user-chip, .ag-aid-copy, .ag-panel-head a, .ag-send-chip),
body.ag-v2-land :is(.btn, .ag-land-nav a) {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
@media (hover: none) {
  body.ag-v2 :is(.ag-panel, .ag-metrics.is-icons li, .ag-quick-grid a, .ag-home-act, .btn):hover { transform: none !important; }
  body.ag-v2 :is(.btn, .ag-home-act, .ag-quick-grid a, .ag-bell, .ag-user-chip, .tab-item, .ag-send-chip):active,
  body.ag-v2-land .btn:active {
    transform: scale(0.97) !important;
    transition: transform 0.08s ease;
  }
}

/* ---------- MOBILE (< 768px) ---------- */
@media (max-width: 767.98px) {
  html body.ag-v2 .ag-shell .app-topbar {
    position: sticky;
    top: 0;
    min-height: calc(60px + env(safe-area-inset-top, 0px));
    padding: calc(0.55rem + env(safe-area-inset-top, 0px)) var(--gutter-r) 0.55rem var(--gutter);
    background: rgba(11, 20, 16, 0.94);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid rgba(238, 243, 239, 0.06);
    z-index: 30;
  }
  html body.ag-v2 .app-phone.ag-shell,
  html body.ag-v2 .app-phone.ag-shell:has(.app-tabbar) { padding-bottom: 0 !important; }
  html body.ag-v2 .ag-shell .app-scroll,
  html body.ag-v2 .ag-shell:has(.app-tabbar) .app-scroll {
    padding-left: var(--gutter) !important;
    padding-right: var(--gutter-r) !important;
    padding-bottom: calc(var(--m-tab-h) + env(safe-area-inset-bottom, 0px) + 1.5rem) !important;
    scroll-padding-bottom: calc(var(--m-tab-h) + env(safe-area-inset-bottom, 0px) + 1rem);
  }
  /* Docked edge-to-edge bottom tab bar */
  html body.ag-v2 .ag-shell .app-tabbar.ag-nav {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    z-index: 9999 !important;
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px) !important;
    background: rgba(9, 16, 13, 0.95);
    border-top: 1px solid rgba(238, 243, 239, 0.08);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    pointer-events: auto;
  }
  html body.ag-v2 .ag-shell .ag-nav .app-tabbar-inner {
    max-width: 560px;
    margin: 0 auto;
    min-height: var(--m-tab-h);
    padding: 0.3rem 0.4rem 0.35rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    align-items: center;
  }
  html body.ag-v2 .ag-shell .ag-nav .tab-item {
    min-height: 54px;
    min-width: var(--touch);
    font-size: 0.66rem;
    border-radius: 14px;
  }
  html body.ag-v2 .ag-shell .ag-nav .tab-item.is-active { background: transparent; }
  html body.ag-v2 .ag-shell .ag-nav .tab-item.is-active .tab-ico {
    background: rgba(61, 207, 142, 0.12);
    border-radius: 10px;
  }
  html body.ag-v2 .ag-shell .ag-nav .tab-ico { width: 40px; height: 28px; }
  html body.ag-v2 .ag-shell .ag-nav .tab-fab {
    width: 52px;
    height: 52px;
    margin-top: -26px;
    box-shadow:
      0 10px 24px rgba(61, 207, 142, 0.35),
      0 0 0 5px rgba(9, 16, 13, 0.96),
      0 0 0 6px rgba(61, 207, 142, 0.16);
  }
  /* Prevent iOS focus-zoom (pinch-zoom is allowed again) */
  body.ag-v2 :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([readonly]), select, textarea),
  body.ag-v2-land :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([readonly]), select, textarea) {
    font-size: 16px;
  }
  /* Agent guest pages: safe areas */
  body.ag-v2-land .ag-land-nav-inner {
    padding-left: var(--gutter, 1rem);
    padding-right: var(--gutter-r, 1rem);
  }
  body.ag-v2-land .ag-land-nav a { min-height: 40px; display: inline-flex; align-items: center; }
  body.ag-v2-land .ag-land-wrap.is-auth main { padding-bottom: env(safe-area-inset-bottom, 0px); }
}
body.ag-v2-land {
  --gutter: max(1rem, env(safe-area-inset-left, 0px));
  --gutter-r: max(1rem, env(safe-area-inset-right, 0px));
}
body.ag-v2-land main:focus { outline: none; }

/* ---------- TABLET + DESKTOP (≥ 768px): sidebar shell ---------- */
@media (min-width: 768px) {
  html body.ag-v2 .app-phone.ag-shell,
  html body.ag-v2 .app-phone.ag-shell:has(.app-tabbar) {
    display: block;
    overflow: hidden;
    padding-bottom: 0 !important;
  }
  html body.ag-v2 .ag-shell .app-tabbar.ag-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    width: var(--rail-w) !important;
    height: 100dvh !important;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    padding: calc(0.9rem + env(safe-area-inset-top, 0px)) 0.7rem calc(0.9rem + env(safe-area-inset-bottom, 0px)) max(0.7rem, env(safe-area-inset-left, 0px)) !important;
    background: linear-gradient(180deg, #0f1814 0%, #0a110e 100%) !important;
    border-right: 1px solid var(--line);
    border-top: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 40 !important;
    overflow: hidden;
  }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-shrink: 0;
    min-height: 48px;
    margin: 0 0 0.85rem;
    padding: 0 0 0.85rem;
    color: var(--ink);
    text-decoration: none;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.02rem;
    border-bottom: 1px solid var(--line);
  }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-logo img { width: 38px; height: 38px; border-radius: 11px; }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-logo span { display: none; }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-logo em { font-style: normal; color: var(--accent); }
  html body.ag-v2 .ag-shell .ag-nav .app-tabbar-inner {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.25rem;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-width: none;
    margin: 0;
    padding: 0 !important;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  html body.ag-v2 .ag-shell .ag-nav .app-tabbar-inner::-webkit-scrollbar { display: none; }
  html body.ag-v2 .ag-shell .ag-nav .tab-item,
  html body.ag-v2 .ag-shell .ag-nav .tab-item.tab-center,
  html body.ag-v2 .ag-shell .ag-nav .ag-nav-more {
    position: relative;
    display: flex !important;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 46px;
    padding: 0.55rem;
    margin: 0;
    border-radius: 14px;
    color: var(--muted);
    background: transparent;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transform: none !important;
  }
  html body.ag-v2 .ag-shell .ag-nav .tab-item::before,
  html body.ag-v2 .ag-shell .ag-nav .tab-item::after,
  html body.ag-v2 .ag-shell .ag-nav .tab-fab::after { display: none !important; }
  html body.ag-v2 .ag-shell .ag-nav .tab-ico,
  html body.ag-v2 .ag-shell .ag-nav .tab-fab {
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
  }
  html body.ag-v2 .ag-shell .ag-nav .tab-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    color: inherit !important;
    font-size: inherit;
  }
  html body.ag-v2 .ag-shell .ag-nav .tab-item:hover { color: var(--ink); background: rgba(238, 243, 239, 0.05); }
  html body.ag-v2 .ag-shell .ag-nav .tab-item.is-active,
  html body.ag-v2 .ag-shell .ag-nav .tab-item.tab-center.is-active {
    color: var(--accent) !important;
    background: rgba(61, 207, 142, 0.12) !important;
    box-shadow: inset 0 0 0 1px rgba(61, 207, 142, 0.22);
  }
  html body.ag-v2 .ag-shell .ag-nav .tab-item.is-active .tab-ico,
  html body.ag-v2 .ag-shell .ag-nav .tab-item.is-active .tab-fab,
  html body.ag-v2 .ag-shell .ag-nav .tab-item.is-active .tab-label { color: var(--accent) !important; }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-pro { display: none !important; }

  /* Top bar = page header aligned with content */
  html body.ag-v2 .ag-shell .app-topbar {
    position: fixed !important;
    top: 0 !important;
    left: var(--rail-w) !important;
    right: 0 !important;
    min-height: var(--top-h);
    padding: calc(0.7rem + env(safe-area-inset-top, 0px)) var(--content-gutter) 0.7rem !important;
    background: rgba(12, 18, 16, 0.8) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    z-index: 39 !important;
  }
  html body.ag-v2 .ag-shell .app-scroll,
  html body.ag-v2 .ag-shell:has(.app-tabbar) .app-scroll {
    position: relative;
    margin-left: var(--rail-w) !important;
    margin-top: calc(var(--top-h) + env(safe-area-inset-top, 0px)) !important;
    height: calc(100dvh - var(--top-h) - env(safe-area-inset-top, 0px)) !important;
    padding: 1.5rem var(--content-gutter) calc(2.25rem + env(safe-area-inset-bottom, 0px)) !important;
    scrollbar-width: thin;
  }
  /* Every logged-in agent screen fills the remaining width beside the sidebar */
  html body.ag-v2 .ag-shell .app-scroll > :is(.ag-dash, .ag-page, .ag-page-wide, .ag-home, .ag-send, .ag-recv, .ag-float, .ag-kyc, .ag-kyc-form),
  html body.ag-v2 .ag-shell :is(.ag-dash, .ag-page, .ag-page-wide, .ag-home, .ag-send, .ag-recv, .ag-float, .ag-kyc, .ag-kyc-form) {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
  }
  html body.ag-v2 .ag-shell .ag-user-name { display: inline; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* Sheets / PWA prompts float as cards on larger screens */
  html body.ag-v2 .ag-shell .pwa-install-sheet {
    left: auto;
    right: 1.5rem;
    bottom: 1.5rem;
    width: min(420px, calc(100% - 3rem));
    border-radius: 20px;
  }
}

/* Tablet (768–899): single-column cards fit the rail layout */
@media (min-width: 768px) and (max-width: 899.98px) {
  html body.ag-v2 .ag-shell .ag-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body.ag-v2 .ag-shell .ag-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Mid widths (900–1099) with the rail: keep two-up grids comfortable */
@media (min-width: 900px) and (max-width: 1099.98px) {
  html body.ag-v2 .ag-shell .ag-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body.ag-v2 .ag-shell .ag-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- DESKTOP (≥ 1100px): full labelled sidebar ---------- */
@media (min-width: 1100px) {
  html body.ag-v2 .ag-shell .app-tabbar.ag-nav {
    width: var(--side-w) !important;
    padding-left: max(1rem, env(safe-area-inset-left, 0px)) !important;
    padding-right: 1rem !important;
  }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-logo { justify-content: flex-start; padding-left: 0.35rem; }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-logo span { display: inline; }
  html body.ag-v2 .ag-shell .ag-nav .tab-item,
  html body.ag-v2 .ag-shell .ag-nav .tab-item.tab-center,
  html body.ag-v2 .ag-shell .ag-nav .ag-nav-more {
    justify-content: flex-start;
    padding: 0.6rem 0.85rem;
  }
  html body.ag-v2 .ag-shell .ag-nav .tab-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
  }
  html body.ag-v2 .ag-shell .ag-nav .tab-item.is-active::before {
    content: "" !important;
    display: block !important;
    position: absolute;
    left: -1rem;
    top: 22%;
    bottom: 22%;
    width: 3px;
    height: auto;
    border-radius: 0 3px 3px 0;
    background: var(--accent);
    opacity: 1;
    transform: none;
  }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-pro { display: grid !important; flex-shrink: 0; margin-top: 0.85rem; }
  html body.ag-v2 .ag-shell .app-topbar { left: var(--side-w) !important; }
  html body.ag-v2 .ag-shell .app-scroll,
  html body.ag-v2 .ag-shell:has(.app-tabbar) .app-scroll {
    margin-left: var(--side-w) !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
  html body.ag-v2 .ag-shell .app-topbar {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}
/* Short desktop screens: hide the promo card so every link stays reachable */
@media (min-width: 1100px) and (max-height: 760px) {
  html body.ag-v2 .ag-shell .ag-nav .ag-side-pro { display: none !important; }
}

/* Installed PWA on a desktop/tablet keeps the sidebar (never the phone tab bar) */
@media (display-mode: standalone) and (min-width: 768px) {
  html body.ag-v2 .app-phone.ag-shell { border-radius: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  body.ag-v2 *,
  body.ag-v2-land * {
    scroll-behavior: auto !important;
  }
  body.ag-v2 :is(.tab-item, .ag-panel, .ag-home-act, .ag-quick-grid a, .btn),
  body.ag-v2-land :is(.btn, .ag-land-nav) {
    transition: none !important;
  }
}


/* ==========================================================================
   Agent wallet — pro dashboard (reuses member wallet components from app.css)
   ========================================================================== */
body.ag-v2 .ag-wallet { display: grid; gap: 1rem; }
body.ag-v2 .ag-wallet > * { margin: 0; }
body.ag-v2 .ag-wallet-hero { margin: 0; }
body.ag-v2 .ag-wallet-hero .wallet-hero-balance { font-size: clamp(2.4rem, 11vw, 3.4rem); }
body.ag-v2 .ag-wallet-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.ag-v2 .ag-wallet-block { margin: 0; }
body.ag-v2 .ag-wallet-kpis { margin: 0; }
body.ag-v2 .ag-wallet-kpis .ag-float-delta {
  display: inline-flex;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}
body.ag-v2 .ag-wallet-kpis .ag-float-delta.is-up { color: var(--accent); background: rgba(61, 207, 142, 0.1); }
body.ag-v2 .ag-wallet-kpis .ag-float-delta.is-down { color: var(--danger); background: rgba(255, 123, 114, 0.1); }

body.ag-v2 .ag-wallet-grid { display: grid; gap: 1rem; align-items: start; }
body.ag-v2 .ag-wallet-main { display: grid; gap: 1rem; min-width: 0; }
body.ag-v2 .ag-wallet-side { min-width: 0; }
body.ag-v2 .ag-wallet-main > .ag-panel { margin: 0; }
body.ag-v2 .ag-wallet-activity { margin: 0; }

body.ag-v2 .ag-wallet-steps {
  list-style: none;
  margin: 0.25rem 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  counter-reset: none;
}
body.ag-v2 .ag-wallet-steps li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-radius: 14px;
  font-size: 0.86rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
}
body.ag-v2 .ag-wallet-steps li span {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.12);
  border: 1px solid rgba(61, 207, 142, 0.28);
}
body.ag-v2 .ag-wallet-notes {
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(232, 194, 122, 0.06);
  border: 1px solid rgba(232, 194, 122, 0.2);
}
body.ag-v2 .ag-wallet-notes strong {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
  font-size: 0.86rem;
  color: var(--accent-2);
}
body.ag-v2 .ag-wallet-notes ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.25rem; }
body.ag-v2 .ag-wallet-notes li { font-size: 0.8rem; color: var(--muted); line-height: 1.45; }

/* Activity rows */
body.ag-v2 .ag-wallet-activity .wallet-tx { grid-template-columns: auto minmax(0, 1fr) auto; }
body.ag-v2 button.wallet-tx.ag-wallet-dep {
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
body.ag-v2 button.wallet-tx.ag-wallet-dep:hover { border-color: rgba(61, 207, 142, 0.35); background: rgba(24, 34, 29, 0.95); }
body.ag-v2 button.wallet-tx.ag-wallet-dep:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.ag-v2 .ag-wallet-dep .wallet-tx-body,
body.ag-v2 .ag-wallet-dep .wallet-tx-meta { display: grid; }
body.ag-v2 .ag-wallet-mico {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.95rem;
}
body.ag-v2 .ag-wallet-mico b { font-size: 0.95rem; }
body.ag-v2 .ag-wallet-activity .ag-float-st { font-size: 0.66rem; padding: 0.15rem 0.5rem; }
body.ag-v2 .ag-wallet-bal { font-size: 0.68rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
body.ag-v2 .wallet-tx-ico.ag-k-deposit,
body.ag-v2 .wallet-tx-ico.ag-k-reversal {
  color: var(--accent); background: rgba(61, 207, 142, 0.1); border-color: rgba(61, 207, 142, 0.22);
}
body.ag-v2 .wallet-tx-ico.ag-k-send,
body.ag-v2 .wallet-tx-ico.ag-k-receive {
  color: var(--accent-2); background: rgba(232, 194, 122, 0.1); border-color: rgba(232, 194, 122, 0.24);
}
body.ag-v2 .wallet-tx-ico.ag-k-commission {
  color: #8fd3ff; background: rgba(143, 211, 255, 0.09); border-color: rgba(143, 211, 255, 0.22);
}
body.ag-v2 .wallet-tx-ico.ag-k-admin {
  color: var(--ink); background: rgba(255, 255, 255, 0.05); border-color: var(--line);
}
body.ag-v2 :is(#ag-deposit, #ag-wallet-activity) { scroll-margin-top: 1rem; }

@media (min-width: 900px) {
  body.ag-v2 .ag-wallet-hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    align-items: end;
    gap: 1.5rem;
    padding: 1.7rem 1.7rem 1.6rem;
  }
  body.ag-v2 .ag-wallet-hero .wh-action { min-height: 88px; }
}
@media (min-width: 1100px) {
  body.ag-v2 .ag-wallet-grid { grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr); gap: 1.25rem; }
}
@media (max-width: 639px) {
  body.ag-v2 .ag-wallet { gap: 0.85rem; }
  body.ag-v2 .ag-wallet-actions { gap: 0.45rem; }
  body.ag-v2 .ag-wallet-actions .wh-action { min-height: 70px; padding: 0.6rem 0.25rem; font-size: 0.76rem; border-radius: 15px; }
  body.ag-v2 .ag-wallet-actions .wh-action-ico { width: 32px; height: 32px; border-radius: 10px; }
  body.ag-v2 .ag-wallet-actions .wh-action-ico svg { width: 18px; height: 18px; }
}

/* Agent wallet — refinement pass */
body.ag-v2 .ag-wallet-bal { font-family: "DM Sans", system-ui, sans-serif; font-weight: 600; }
body.ag-v2 .ag-wallet-activity .wallet-tx-meta strong { font-family: "DM Sans", system-ui, sans-serif; font-weight: 800; }
body.ag-v2 .ag-wallet-activity .wallet-tx-body strong {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.3;
}
body.ag-v2 .ag-wallet-hero .wh-limits { max-width: 460px; }


/* ==========================================================================
   Agent pages after Wallet (Transactions, Commission, Team, Profile, Settings)
   — consistent polished look. Scoped to .ag-page-polish.
   ========================================================================== */
body.ag-v2 .ag-page-polish { display: grid; gap: 1rem; }
body.ag-v2 .ag-page-polish > * { margin: 0; }
body.ag-v2 .ag-page-polish .ag-page-head {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 1.35rem 1.45rem;
  border-radius: 22px;
  border: 1px solid rgba(61, 207, 142, 0.18);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(61, 207, 142, 0.16), transparent 55%),
    linear-gradient(160deg, rgba(22, 34, 28, 0.96), rgba(12, 18, 15, 0.96));
}
body.ag-v2 .ag-page-polish .ag-page-head .eyebrow {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  margin: 0 0 0.35rem;
}
body.ag-v2 .ag-page-polish .ag-page-head h1 { font-size: clamp(1.55rem, 5.5vw, 2.1rem); margin: 0 0 0.25rem; overflow-wrap: anywhere; }
body.ag-v2 .ag-page-polish .ag-page-head .muted { margin: 0; font-size: 0.9rem; overflow-wrap: anywhere; }
body.ag-v2 .ag-head-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0 1.05rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  color: #062016;
  text-decoration: none;
  background: linear-gradient(135deg, #5ef0b0, var(--accent));
  box-shadow: 0 10px 24px -12px rgba(61, 207, 142, 0.7);
  transition: transform 0.15s ease, filter 0.15s ease;
}
body.ag-v2 .ag-head-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
body.ag-v2 .ag-head-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Summary tiles */
body.ag-v2 .ag-kpis { margin: 0; }
body.ag-v2 .ag-kpis .wallet-kpi strong { font-family: "DM Sans", system-ui, sans-serif; font-weight: 800; }

/* List cards */
body.ag-v2 .ag-page-polish .ag-dash-grid { gap: 1rem; }
body.ag-v2 .ag-list-grid { align-items: start; }
body.ag-v2 .ag-page-polish .ag-panel { margin: 0; min-width: 0; }
body.ag-v2 .ag-page-polish .ag-panel-head { align-items: flex-start; margin-bottom: 0.85rem; }
body.ag-v2 .ag-page-polish .ag-panel-head .muted { margin: 0.15rem 0 0; font-size: 0.78rem; }
body.ag-v2 .ag-list-card .wallet-tx-list { margin: 0; }
body.ag-v2 .ag-list-card .wallet-tx { grid-template-columns: auto minmax(0, 1fr) auto; }
body.ag-v2 .ag-list-card .wallet-tx-meta strong { font-family: "DM Sans", system-ui, sans-serif; font-weight: 800; }
body.ag-v2 .ag-list-card .wallet-tx-body strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; overflow-wrap: anywhere; }
body.ag-v2 .ag-list-card .wallet-status { font-size: 0.66rem; }
body.ag-v2 .ag-list-av { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; }
body.ag-v2 .ag-wallet-bal { margin: 0; }
body.ag-v2 .ag-list-card .wallet-activity-empty .btn { margin-top: 0.35rem; }

/* Key/value rows (Profile, Settings) */
body.ag-v2 .ag-page-polish .ag-rows:not(.is-rich) {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
body.ag-v2 .ag-page-polish .ag-rows:not(.is-rich) li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.95rem;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  transform: none;
}
body.ag-v2 .ag-page-polish .ag-rows:not(.is-rich) li:last-child { border-bottom: 0; }
body.ag-v2 .ag-page-polish .ag-rows:not(.is-rich) li span { color: var(--muted); font-size: 0.82rem; flex-shrink: 0; }
body.ag-v2 .ag-page-polish .ag-rows:not(.is-rich) li strong { min-width: 0; text-align: right; font-size: 0.9rem; overflow-wrap: anywhere; }
body.ag-v2 .ag-page-polish .ag-pill { text-transform: capitalize; }
body.ag-v2 .ag-page-polish .ag-status-row { margin: 0 0 1rem; }
body.ag-v2 .ag-page-polish .ag-status-follow { margin: 1rem 0 0; }

/* Forms (Profile) */
body.ag-v2 .ag-page-polish .ag-sheet-form { display: grid; gap: 0.8rem; margin-top: 0.85rem; }
body.ag-v2 .ag-page-polish .ag-sheet-form .ag-apply-go { margin-top: 0.25rem; }
body.ag-v2 .ag-page-polish .ag-logout { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
body.ag-v2 .ag-page-polish .ag-logout .ag-apply-back {
  width: 100%;
  color: var(--danger);
  border-color: rgba(255, 123, 114, 0.28);
  background: rgba(255, 123, 114, 0.05);
}
body.ag-v2 .ag-page-polish .ag-logout .ag-apply-back:hover { background: rgba(255, 123, 114, 0.1); }

/* Settings: equal-width action buttons (KYC was squeezed) */
body.ag-v2 .ag-page-polish .ag-verify-actions-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
body.ag-v2 .ag-page-polish .ag-verify-actions-row > * { width: 100%; min-width: 0; }

/* Team: coming-soon card */
body.ag-v2 .ag-page-polish .ag-verify-hero { margin: 0; }
body.ag-v2 .ag-team-soon {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
body.ag-v2 .ag-team-soon li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}
body.ag-v2 .ag-team-soon li span {
  grid-row: span 2;
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--accent-2);
  background: rgba(232, 194, 122, 0.1);
  border: 1px solid rgba(232, 194, 122, 0.24);
}
body.ag-v2 .ag-team-soon li b { font-size: 0.9rem; }
body.ag-v2 .ag-team-soon li small { color: var(--muted); font-size: 0.78rem; }
body.ag-v2 .ag-page-polish .ag-verify-actions { margin: 0; }

@media (min-width: 640px) {
  body.ag-v2 .ag-kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.ag-v2 .ag-team-soon { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.ag-v2 .ag-page-polish .ag-verify-actions { display: flex; max-width: 460px; }
  body.ag-v2 .ag-page-polish .ag-verify-actions > * { flex: 1; }
}
@media (min-width: 1100px) {
  body.ag-v2 .ag-page-polish .ag-dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
}
@media (max-width: 639px) {
  body.ag-v2 .ag-page-polish { gap: 0.85rem; }
  body.ag-v2 .ag-page-polish .ag-page-head { padding: 1.1rem 1.1rem; border-radius: 20px; }
  body.ag-v2 .ag-head-btn { min-height: 2.35rem; padding: 0 0.85rem; font-size: 0.8rem; }
  body.ag-v2 .ag-head-btn svg { display: none; }
  body.ag-v2 .ag-page-polish .ag-verify-actions-row { grid-template-columns: 1fr; }
}


/* ==========================================================================
   Agent pass 2 — Home, Send, Receive, KYC, landing, auth, 404, chrome.
   Same language as the agent wallet (wallet-hero--pro, wallet-kpi, wallet-tx).
   ========================================================================== */

/* ---- Shared page header card (Send / Receive / KYC) ---- */
body.ag-v2 :is(.ag-send-hero, .ag-recv-hero, .ag-kyc-hero) {
  position: relative;
  overflow: hidden;
  align-items: center;
  margin: 0 0 1rem;
  padding: 1.3rem 1.45rem;
  border-radius: 22px;
  border: 1px solid rgba(61, 207, 142, 0.18);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(61, 207, 142, 0.16), transparent 55%),
    linear-gradient(160deg, rgba(22, 34, 28, 0.96), rgba(12, 18, 15, 0.96));
}
body.ag-v2 :is(.ag-send-hero, .ag-recv-hero, .ag-kyc-hero) .eyebrow {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
body.ag-v2 :is(.ag-send-hero, .ag-recv-hero, .ag-kyc-hero) h1 { font-size: clamp(1.55rem, 5.5vw, 2.1rem); margin: 0 0 0.25rem; }
body.ag-v2 :is(.ag-send-hero, .ag-recv-hero, .ag-kyc-hero) > div > .muted { margin: 0; font-size: 0.9rem; max-width: 40rem; }
body.ag-v2 :is(.ag-send-art, .ag-recv-art, .ag-kyc-art) svg { width: auto; height: 84px; display: block; }
body.ag-v2 :is(.ag-send-hero-side, .ag-recv-hero-side, .ag-kyc-hero-side) { gap: 0.55rem; }

/* ---- KPI-style metric tiles (KYC metrics, Receive stats) ---- */
body.ag-v2 :is(.ag-kyc .ag-metrics.is-icons, .ag-recv-stats) { margin: 0 0 1rem; gap: 0.75rem; }
body.ag-v2 :is(.ag-kyc .ag-metrics.is-icons li, .ag-recv-stats li) {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(24, 34, 29, 0.95), rgba(14, 20, 17, 0.95));
}
body.ag-v2 :is(.ag-kyc .ag-metrics.is-icons strong, .ag-recv-stats li > div strong) {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 800;
}

/* ---- Home (dashboard) ---- */
body.ag-v2 .ag-home-v3 { display: grid; gap: 1rem; }
body.ag-v2 .ag-home-v3 > * { margin: 0; }
body.ag-v2 .ag-home-v3 .ag-home-top { margin: 0; }
body.ag-v2 .ag-home-hero { margin: 0; min-width: 0; }
body.ag-v2 .ag-home-balance {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 800;
}
body.ag-v2 .ag-home-balance .ag-eye { flex-shrink: 0; }
body.ag-v2 .ag-home-balance .ag-eye:hover { color: var(--ink); background: rgba(238, 243, 239, 0.14); }
body.ag-v2 .ag-home-balance .ag-eye:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.ag-v2 .ag-cap { text-transform: capitalize; }
body.ag-v2 .ag-home-top:not(.is-full) .ag-home-hero { grid-template-columns: 1fr; }
body.ag-v2 .ag-home-v3 .ag-need { border-radius: 22px; gap: 0; justify-content: center; }
body.ag-v2 .ag-home-v3 .ag-need-steps { margin: 0.2rem 0 1.1rem; }
body.ag-v2 .ag-home-v3 .ag-need-kicker span { color: #f0c14a; }
body.ag-v2 .ag-home-lists { align-items: start; }
body.ag-v2 .ag-home-quick h2 { margin: 0 0 0.7rem; font-size: 1.05rem; }
body.ag-v2 .ag-home-quick-grid { display: grid; gap: 0.65rem; }
body.ag-v2 .ag-home-quick-grid a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(24, 34, 29, 0.95), rgba(14, 20, 17, 0.95));
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
body.ag-v2 .ag-home-quick-grid a:hover { border-color: rgba(61, 207, 142, 0.35); }
body.ag-v2 .ag-home-quick-grid a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.ag-v2 .ag-hq-ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(61, 207, 142, 0.1);
  border: 1px solid rgba(61, 207, 142, 0.22);
}
body.ag-v2 .ag-hq-copy { display: grid; gap: 0.1rem; min-width: 0; }
body.ag-v2 .ag-hq-copy b { font-size: 0.9rem; }
body.ag-v2 .ag-hq-copy small { color: var(--muted); font-size: 0.76rem; }
body.ag-v2 .ag-hq-go { color: var(--muted); display: grid; }
body.ag-v2 .ag-home-quick-grid a:hover .ag-hq-go { color: var(--accent); }

/* ---- Send ---- */
body.ag-v2 .ag-send .ag-apply-field { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.25rem; row-gap: 0.35rem; }
body.ag-v2 .ag-send .ag-apply-field > em { color: var(--danger); font-style: normal; }
body.ag-v2 .ag-send .ag-apply-field > .ag-apply-input { flex: 1 1 100%; }
body.ag-v2 .ag-send-card .ag-send-amount-meta { margin-top: 0.1rem; }
body.ag-v2 .ag-send-bal {
  border-color: rgba(61, 207, 142, 0.22);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(61, 207, 142, 0.18), transparent 60%),
    linear-gradient(160deg, rgba(22, 36, 29, 0.98), rgba(12, 18, 15, 0.98));
}
body.ag-v2 .ag-send-bal-amt { font-family: "DM Sans", system-ui, sans-serif; font-weight: 800; letter-spacing: -0.02em; }
body.ag-v2 .ag-send-sum > div { padding-block: 0.6rem; }
body.ag-v2 .ag-send-sum dd { font-variant-numeric: tabular-nums; }
body.ag-v2 .ag-send-recent .wallet-tx-body span { font-size: 0.74rem; }

/* ---- Receive: tables become card lists when the column is narrow ---- */
body.ag-v2 .ag-recv-table-card { container-type: inline-size; container-name: agrecv; }
body.ag-v2 .ag-recv-empty { padding: 1.4rem 0.5rem; }
body.ag-v2 .ag-recv-toolbar { gap: 0.55rem 0.75rem; }
body.ag-v2 .ag-recv-search { flex: 0 1 240px; margin-left: auto; }
body.ag-v2 .ag-recv-tabs button { white-space: nowrap; }
@container agrecv (max-width: 860px) {
  .ag-recv-table-wrap { overflow: visible; margin: 0.2rem 0 0; }
  .ag-recv-table { min-width: 0; display: block; }
  .ag-recv-table thead { display: none; }
  .ag-recv-table tbody {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 0.65rem;
  }
  .ag-recv-table tbody tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.65rem;
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.2);
  }
  .ag-recv-table tbody tr:hover { background: rgba(61, 207, 142, 0.05); border-color: rgba(61, 207, 142, 0.25); }
  .ag-recv-table tbody tr[hidden] { display: none; }
  .ag-recv-table td { display: block; padding: 0; border: 0; font-size: 0.86rem; min-width: 0; }
  .ag-recv-table td.ag-recv-check { grid-column: 1; grid-row: 1; width: auto; }
  .ag-recv-table td.ag-rc-member { grid-column: 1 / 3; grid-row: 1; }
  .ag-recv-table td.ag-recv-check + .ag-rc-member { grid-column: 2; }
  .ag-recv-table td.ag-recv-amt { grid-column: 3; grid-row: 1; text-align: right; font-size: 1rem; font-family: "DM Sans", system-ui, sans-serif; }
  .ag-recv-table td.ag-recv-amt::before { display: none; }
  .ag-recv-member { min-width: 0; }
  .ag-recv-member strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ag-recv-table td[data-label]:not(.ag-recv-amt):not(.ag-recv-actions) {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.42rem 0 0;
    margin-top: 0.42rem;
    border-top: 1px dashed rgba(238, 243, 239, 0.07);
    white-space: normal;
  }
  .ag-recv-table td[data-label]:not(.ag-recv-amt):not(.ag-recv-actions)::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
  }
  .ag-recv-table td.ag-recv-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.7rem;
  }
  .ag-recv-table td.ag-recv-actions[data-label]:not([data-label=""])::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    margin-right: auto;
  }
  .ag-recv-table td.ag-recv-actions .ag-recv-pay,
  .ag-recv-table td.ag-recv-actions .ag-recv-reject { flex: 1; min-height: 2.3rem; }
  .ag-recv-table tr.ag-recv-empty-row { display: block; padding: 0; border: 0; background: none; grid-column: 1 / -1; }
  .ag-recv-table tr.ag-recv-empty-row td { display: block; }
}

/* ---- KYC ---- */
body.ag-v2 .ag-kyc-layout .ag-send-sum {
  margin: 0.4rem 0 0;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
body.ag-v2 .ag-kyc-layout .ag-send-sum > div { padding: 0.7rem 0.95rem; margin: 0; border-bottom: 1px solid var(--line); }
body.ag-v2 .ag-kyc-layout .ag-send-sum > div:last-child { border-bottom: 0; }
body.ag-v2 .ag-kyc-layout .ag-send-sum dd { overflow-wrap: anywhere; text-align: right; }
body.ag-v2 .ag-kyc-side-nav { margin-top: 0.6rem; }

/* ---- Chrome ---- */
body.ag-v2 .app-topbar { backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
body.ag-v2 .ag-aid-copy:focus-visible,
body.ag-v2 .ag-bell:focus-visible,
body.ag-v2 .ag-user-chip:focus-visible,
body.ag-v2 .tab-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (min-width: 640px) {
  body.ag-v2 .ag-home-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  body.ag-v2 .ag-home-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
}
@media (max-width: 767px) {
  body.ag-v2 :is(.ag-send-hero, .ag-recv-hero, .ag-kyc-hero) { padding: 1.1rem; border-radius: 20px; align-items: stretch; }
  body.ag-v2 :is(.ag-send-art, .ag-recv-art, .ag-kyc-art) { display: none; }
  body.ag-v2 :is(.ag-send-hero-side, .ag-recv-hero-side, .ag-kyc-hero-side) { align-items: flex-start !important; align-self: stretch; width: 100%; }
  body.ag-v2 :is(.ag-send-hero-side, .ag-recv-hero-side, .ag-kyc-hero-side) .ag-crumb { justify-content: flex-start; }
  body.ag-v2 .ag-home-hello { gap: 0.4rem; }
  body.ag-v2 .ag-home-meta { align-items: flex-start; text-align: left; flex-direction: row; flex-wrap: wrap; gap: 0.6rem; }
}

/* ---- Landing ---- */
body.theme-agent-land .ag-hero,
body.theme-agent-land .ag-section,
body.theme-agent-land .ag-foot-inner { --ag-land-max: 1160px; }
body.theme-agent-land .ag-section > *,
body.theme-agent-land .ag-foot-inner { max-width: var(--ag-land-max); margin-left: auto; margin-right: auto; width: 100%; }
body.theme-agent-land .ag-section > .ag-sub { margin-left: auto; margin-right: auto; }
body.theme-agent-land .ag-section h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); }
body.theme-agent-land .ag-steps li,
body.theme-agent-land .ag-kyc-tiles li {
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(24, 34, 29, 0.92), rgba(14, 20, 17, 0.92));
  backdrop-filter: blur(8px);
}
body.theme-agent-land .ag-steps li:hover,
body.theme-agent-land .ag-kyc-tiles li:hover { border-color: rgba(61, 207, 142, 0.3); }
body.theme-agent-land .ag-step-num {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.8rem;
  background: rgba(61, 207, 142, 0.12);
  border: 1px solid rgba(61, 207, 142, 0.28);
}
body.theme-agent-land .ag-stat {
  max-width: 560px;
  margin-left: max(0px, calc((100% - var(--ag-land-max)) / 2));
  border-radius: 20px;
  border-color: rgba(61, 207, 142, 0.24);
  padding: 1.3rem 1.4rem;
}
body.theme-agent-land .ag-stat strong { display: block; margin-top: 0.3rem; font-size: clamp(1.1rem, 3vw, 1.4rem); font-family: "DM Sans", system-ui, sans-serif; }
body.theme-agent-land .ag-end {
  text-align: left;
}
body.theme-agent-land .ag-end > * { max-width: var(--ag-land-max); }

/* Hero preview card (desktop only) */
body.theme-agent-land .ag-hero-preview { display: none; }
body.theme-agent-land .ag-hp-card {
  padding: 1.4rem 1.45rem;
  border-radius: 26px;
  border: 1px solid rgba(61, 207, 142, 0.26);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(61, 207, 142, 0.22), transparent 55%),
    linear-gradient(160deg, rgba(23, 40, 31, 0.96), rgba(11, 17, 14, 0.96));
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
body.theme-agent-land .ag-hp-top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 1rem; }
body.theme-agent-land .ag-hp-eyebrow { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
body.theme-agent-land .ag-hp-chip { font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; color: var(--accent); background: rgba(61, 207, 142, 0.1); border: 1px solid rgba(61, 207, 142, 0.28); }
body.theme-agent-land .ag-hp-label { display: block; color: var(--muted); font-size: 0.8rem; }
body.theme-agent-land .ag-hp-bal { display: block; margin: 0.15rem 0 0.2rem; font-family: "DM Sans", system-ui, sans-serif; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
body.theme-agent-land .ag-hp-sub { display: block; color: var(--muted); font-size: 0.82rem; }
body.theme-agent-land .ag-hp-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; margin-top: 1.2rem; }
body.theme-agent-land .ag-hp-actions span {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.4rem;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}
body.theme-agent-land .ag-hp-actions span.is-primary { color: #062016; background: linear-gradient(160deg, #5ef0b0, var(--accent)); border-color: transparent; }
body.theme-agent-land .ag-hp-actions i { font-style: normal; font-size: 1rem; }
body.theme-agent-land .ag-hp-feed { list-style: none; margin: 0.8rem 0 0 2rem; padding: 0.5rem; display: grid; gap: 0.4rem; border-radius: 20px; border: 1px solid var(--line); background: rgba(12, 18, 15, 0.85); backdrop-filter: blur(10px); }
body.theme-agent-land .ag-hp-feed li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.65rem; padding: 0.55rem 0.6rem; border-radius: 14px; background: rgba(255, 255, 255, 0.02); font-size: 0.82rem; }
body.theme-agent-land .ag-hp-feed b { font-weight: 600; }
body.theme-agent-land .ag-hp-feed em { font-style: normal; font-weight: 800; color: var(--muted); }
body.theme-agent-land .ag-hp-feed em.is-pos { color: var(--accent); }
body.theme-agent-land .ag-hp-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 0.85rem; font-weight: 800; }
body.theme-agent-land .ag-hp-ico.is-mint { color: var(--accent); background: rgba(61, 207, 142, 0.12); }
body.theme-agent-land .ag-hp-ico.is-sky { color: #8fd3ff; background: rgba(143, 211, 255, 0.1); }
body.theme-agent-land .ag-hp-ico.is-gold { color: var(--accent-2); background: rgba(232, 194, 122, 0.12); }

@media (min-width: 900px) {
  body.theme-agent-land .ag-steps,
  body.theme-agent-land .ag-kyc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  body.theme-agent-land .ag-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    align-items: center;
    column-gap: 3rem;
    padding-left: max(2.5rem, calc((100% - 1160px) / 2));
    padding-right: max(2.5rem, calc((100% - 1160px) / 2));
  }
  body.theme-agent-land .ag-hero h1 { font-size: clamp(2.2rem, 3.7vw, 3.2rem); max-width: 15ch; }
  body.theme-agent-land .ag-hero-logo { width: 104px; height: 104px; margin-bottom: 1.1rem; }
  body.theme-agent-land .ag-hero-preview { display: block; position: relative; z-index: 1; animation: ag-rise 0.8s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both; }
}

/* ---- Auth ---- */
body.theme-agent-land .ag-apply-go { gap: 0.45rem; }
body.theme-agent-land .ag-apply-card {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(61, 207, 142, 0.12), transparent 55%),
    linear-gradient(165deg, rgba(22, 34, 28, 0.97), rgba(12, 18, 15, 0.97));
}
body.theme-agent-land .ag-apply-field input:focus-visible { outline: none; }
body.theme-agent-land .ag-apply-input:focus-within { border-color: rgba(61, 207, 142, 0.55); box-shadow: 0 0 0 3px rgba(61, 207, 142, 0.14); }

/* ---- Agent 404 ---- */
body.ag-err-page { min-height: 100dvh; margin: 0; background: radial-gradient(90% 60% at 50% 0%, rgba(61, 207, 142, 0.14), transparent 60%), var(--bg, #0c1210); }
.ag-err { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 1.4rem; padding: 2rem 1.1rem; box-sizing: border-box; }
.ag-err-card {
  width: min(460px, 100%);
  box-sizing: border-box;
  text-align: center;
  padding: 2rem 1.6rem 1.6rem;
  border-radius: 26px;
  border: 1px solid rgba(61, 207, 142, 0.2);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(61, 207, 142, 0.14), transparent 55%),
    linear-gradient(165deg, rgba(22, 34, 28, 0.97), rgba(12, 18, 15, 0.97));
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
}
.ag-err-code {
  display: block;
  font-family: var(--display);
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #8ef0c0, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ag-err-card h1 { margin: 0.6rem 0 0.4rem; font-family: var(--display); font-size: 1.4rem; }
.ag-err-card .muted { margin: 0 0 1.3rem; line-height: 1.5; }
.ag-err-actions { display: grid; gap: 0.6rem; }
.ag-err-actions a { text-decoration: none; }

body.ag-v2 .ag-list-card .ag-panel-head { align-items: flex-start; margin-bottom: 0.85rem; }
body.ag-v2 .ag-list-card .ag-panel-head .muted { margin: 0.15rem 0 0; font-size: 0.78rem; }
@media (min-width: 1360px) {
  body.ag-v2 .ag-home-quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body.ag-v2 .ag-recv-toolbar > * { min-width: 0; max-width: 100%; }
  body.ag-v2 .ag-recv-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0.1rem; }
  body.ag-v2 .ag-recv-tabs::-webkit-scrollbar { display: none; }
  body.ag-v2 .ag-recv-tabs button { flex-shrink: 0; }
  body.ag-v2 .ag-recv-search { flex: 1 1 100%; width: 100%; min-width: 0; margin-left: 0; }
}
body.ag-v2 .ag-recv-main { grid-template-columns: minmax(0, 1fr); }

body.theme-agent-land .ag-land-nav .ag-brand span,
body.theme-agent-land .ag-land-nav nav a { white-space: nowrap; }
@media (max-width: 420px) {
  body.theme-agent-land .ag-land-nav .ag-brand span { font-size: 0.85rem; }
  body.theme-agent-land .ag-land-nav .ag-brand img { width: 30px; height: 30px; }
  body.theme-agent-land .ag-land-nav nav { gap: 0.6rem; }
  body.theme-agent-land .ag-land-nav { padding-left: 0.4rem; padding-right: 0.4rem; }
}
body.theme-agent-land .ag-land-nav-inner { gap: 0.75rem; }
body.theme-agent-land .ag-land-nav .ag-brand { min-width: 0; }


/* ==========================================================================
   Agent wallet — mockup match (Float page) + shared agent chrome refresh
   Scoped: chrome under html body.ag-v2 .ag-shell, page under .ag-mk
   ========================================================================== */
body.ag-v2 { --mk: #2ee6b0; --mk-2: #1fcf98; --mk-ink: #04241a; --mk-line: rgba(46, 230, 176, 0.14); --mk-card: rgba(12, 26, 21, 0.78); }

/* ---- Top bar ---- */
html body.ag-v2 .ag-shell .ag-aid span { font-size: 0.8rem; font-weight: 500; color: rgba(238, 243, 239, 0.72); letter-spacing: 0; text-transform: none; }
html body.ag-v2 .ag-shell .ag-aid strong { font-size: 1.02rem; font-weight: 800; letter-spacing: 0.01em; }
html body.ag-v2 .ag-shell .ag-aid-copy { width: 26px; height: 26px; border-radius: 7px; background: rgba(255, 255, 255, 0.06); }
html body.ag-v2 .ag-shell .app-topbar-right { display: flex; align-items: center; gap: 0; }
html body.ag-v2 .ag-shell .ag-bell {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(238, 243, 239, 0.1); color: var(--ink);
}
html body.ag-v2 .ag-shell .ag-user { position: relative; margin-left: 1.5rem; }
html body.ag-v2 .ag-shell .ag-user::before {
  content: ""; position: absolute; left: -0.78rem; top: 50%; width: 1px; height: 28px; transform: translateY(-50%);
  background: rgba(238, 243, 239, 0.12);
}
html body.ag-v2 .ag-shell .ag-user-chip {
  min-height: 46px; padding: 4px 14px 4px 5px; gap: 0.6rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(238, 243, 239, 0.1);
}
html body.ag-v2 .ag-shell .ag-user-chip .ag-user-av,
html body.ag-v2 .ag-shell .ag-user-card .ag-user-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(160deg, #27c792, #128a63); color: #eafff6;
  font-weight: 800; font-size: 1rem; box-shadow: none; border: 0;
}
html body.ag-v2 .ag-shell .ag-user-name { font-weight: 700; font-size: 0.95rem; color: var(--ink); }

/* ---- Sidebar ---- */
@media (min-width: 768px) {
  html body.ag-v2 .ag-shell .app-tabbar.ag-nav { background: linear-gradient(180deg, #0b1511 0%, #08100d 100%) !important; border-right-color: rgba(238, 243, 239, 0.07); }
  html body.ag-v2 .ag-shell .ag-nav .tab-item.is-active,
  html body.ag-v2 .ag-shell .ag-nav .tab-item.tab-center.is-active {
    color: var(--mk-ink) !important;
    background: linear-gradient(180deg, #3ef0bd 0%, var(--mk) 55%, #22d6a2 100%) !important;
    box-shadow: 0 8px 22px rgba(46, 230, 176, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  }
  html body.ag-v2 .ag-shell .ag-nav .tab-item.is-active .tab-ico,
  html body.ag-v2 .ag-shell .ag-nav .tab-item.is-active .tab-fab,
  html body.ag-v2 .ag-shell .ag-nav .tab-item.is-active .tab-label { color: var(--mk-ink) !important; }
  html body.ag-v2 .ag-shell .ag-nav .tab-item.is-active::before { display: none !important; }
}
@media (min-width: 1100px) {
  html body.ag-v2.theme-agent-app { --side-w: 236px; }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-logo { gap: 0.7rem; min-height: 56px; padding-left: 0.4rem; }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-logo img { width: 42px; height: 42px; }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-logo span { display: grid !important; line-height: 1.02; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-logo em { display: block; color: var(--mk); }
  html body.ag-v2 .ag-shell .ag-nav .app-tabbar-inner { gap: 0.32rem; }
  html body.ag-v2 .ag-shell .ag-nav .tab-item,
  html body.ag-v2 .ag-shell .ag-nav .tab-item.tab-center,
  html body.ag-v2 .ag-shell .ag-nav .ag-nav-more { min-height: 44px; padding: 0.55rem 0.85rem; gap: 0.85rem; border-radius: 12px; color: rgba(238, 243, 239, 0.88); }
  html body.ag-v2 .ag-shell .ag-nav .tab-label { font-size: 0.95rem; font-weight: 600; }

  html body.ag-v2 .ag-shell .ag-nav .ag-side-pro {
    gap: 0.7rem; padding: 1rem; border-radius: 14px; text-align: left;
    background: linear-gradient(160deg, rgba(120, 88, 30, 0.34) 0%, rgba(40, 32, 18, 0.55) 45%, rgba(18, 22, 18, 0.9) 100%);
    border: 1px solid rgba(232, 194, 122, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.06);
  }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-pro-top { display: flex; align-items: center; gap: 0.75rem; }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-pro-ico {
    width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; margin: 0;
    background: linear-gradient(160deg, #b8862c, #6e4d14); border: 1px solid rgba(255, 211, 106, 0.35); color: #ffd36a; font-size: 0;
  }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-pro strong { display: grid; gap: 0.05rem; color: #fff; font-size: 1.05rem; font-weight: 800; line-height: 1.2; }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-pro strong small { font-size: 0.92rem; font-weight: 500; color: rgba(238, 243, 239, 0.85); }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-pro p { margin: 0; font-size: 0.92rem; line-height: 1.4; color: rgba(238, 243, 239, 0.82); }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-pro a {
    display: flex; align-items: center; justify-content: center; gap: 0.35rem; min-height: 40px; margin-top: 0.15rem;
    border-radius: 10px; font-size: 0.95rem; font-weight: 800; color: var(--mk-ink); text-decoration: none;
    background: linear-gradient(180deg, #3ef0bd, var(--mk) 60%, #22d6a2); box-shadow: 0 8px 20px rgba(46, 230, 176, 0.2);
  }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-pro a:hover { filter: brightness(1.06); }
}

/* ---- Page ---- */
body.ag-v2 .ag-float.ag-mk { position: relative; display: grid; gap: 1.1rem; isolation: isolate; color: var(--ink); }
body.ag-v2 .ag-mk > * { margin: 0; min-width: 0; }
body.ag-v2 .ag-mk .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header with blended hero art */
body.ag-v2 .ag-mk-head {
  position: relative; z-index: 0;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  min-height: 112px; padding: 0.35rem 0 0.15rem;
}
body.ag-v2 .ag-mk-hero {
  position: absolute; z-index: -1; pointer-events: none;
  top: -150px; right: 6%; width: min(860px, 78%); aspect-ratio: 16 / 9;
  background-image: url("../img/agent/wallet-hero.jpg");
  background-image: image-set(url("../img/agent/wallet-hero.webp") type("image/webp"), url("../img/agent/wallet-hero.jpg") type("image/jpeg"));
  background-size: cover; background-position: center;
  -webkit-mask-image: radial-gradient(62% 60% at 64% 52%, #000 38%, rgba(0, 0, 0, 0.55) 62%, transparent 82%);
  mask-image: radial-gradient(62% 60% at 64% 52%, #000 38%, rgba(0, 0, 0, 0.55) 62%, transparent 82%);
  mix-blend-mode: lighten; opacity: 0.95;
}
body.ag-v2 .ag-mk-head-copy { position: relative; max-width: 640px; }
body.ag-v2 .ag-mk-eyebrow { margin: 0 0 0.45rem; color: var(--mk); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
body.ag-v2 .ag-mk-head h1 {
  margin: 0; font-family: var(--display); font-size: clamp(2rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; color: #fff;
}
body.ag-v2 .ag-mk-head-copy > p:last-child { margin: 0.55rem 0 0; color: rgba(238, 243, 239, 0.86); font-size: 1rem; line-height: 1.45; }
body.ag-v2 .ag-mk-crumb { position: relative; display: flex; align-items: center; gap: 0.5rem; padding-top: 0.15rem; font-size: 0.95rem; color: rgba(238, 243, 239, 0.82); white-space: nowrap; }
body.ag-v2 .ag-mk-crumb a { color: inherit; text-decoration: none; }
body.ag-v2 .ag-mk-crumb a:hover { color: var(--mk); }
body.ag-v2 .ag-mk-crumb svg { opacity: 0.7; }
body.ag-v2 .ag-mk-crumb [aria-current] { color: #fff; font-weight: 800; }
body.ag-v2 .ag-mk .ag-wallet-block a { color: inherit; font-weight: 800; }

/* Shared card */
body.ag-v2 .ag-mk-card {
  position: relative; min-width: 0; padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 16px; background: var(--mk-card);
  border: 1px solid var(--mk-line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
body.ag-v2 .ag-mk-card-head { display: flex; align-items: center; gap: 0.95rem; margin-bottom: 1.1rem; }
body.ag-v2 .ag-mk-card-head > div { flex: 1 1 auto; min-width: 0; }
body.ag-v2 .ag-mk-card-head h2 { margin: 0; font-family: "DM Sans", system-ui, sans-serif; font-size: 1.22rem; font-weight: 700; color: #fff; letter-spacing: 0; }
body.ag-v2 .ag-mk-card-head p { margin: 0.25rem 0 0; font-size: 0.92rem; color: rgba(238, 243, 239, 0.78); line-height: 1.4; }
body.ag-v2 .ag-mk-hico {
  width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; color: var(--mk);
  background: linear-gradient(160deg, rgba(46, 230, 176, 0.24), rgba(46, 230, 176, 0.08));
  border: 1px solid rgba(46, 230, 176, 0.32);
}
body.ag-v2 .ag-mk-seeall {
  display: inline-flex; align-items: center; gap: 0.35rem; flex-shrink: 0; min-height: 34px; padding: 0 0.85rem;
  border-radius: 9px; border: 1px solid rgba(238, 243, 239, 0.2); color: #fff; font-size: 0.86rem; font-weight: 700; text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
}
body.ag-v2 .ag-mk-seeall:hover { border-color: rgba(46, 230, 176, 0.5); color: var(--mk); }

/* Stats band */
body.ag-v2 .ag-mk-stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 2.05fr) repeat(3, minmax(0, 1fr)); align-items: center;
  padding: 1.35rem 1.4rem; border-radius: 16px;
  background: linear-gradient(100deg, rgba(22, 64, 48, 0.78) 0%, rgba(14, 40, 31, 0.72) 45%, rgba(12, 34, 27, 0.6) 100%);
  border: 1px solid rgba(46, 230, 176, 0.26);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
body.ag-v2 .ag-mk-float { display: flex; align-items: center; gap: 1.6rem; min-width: 0; padding-right: 1rem; }
body.ag-v2 .ag-mk-stat { display: flex; align-items: center; gap: 1rem; min-width: 0; padding: 0.35rem 0.9rem 0.35rem 1.35rem; border-left: 1px solid rgba(238, 243, 239, 0.1); }
body.ag-v2 .ag-mk-stat > div,
body.ag-v2 .ag-mk-float-copy { display: grid; gap: 0.3rem; min-width: 0; }
body.ag-v2 .ag-mk-tile {
  width: 60px; height: 60px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; color: #fff;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.05);
}
body.ag-v2 .ag-mk-tile.is-lg { width: 80px; height: 80px; border-radius: 14px; color: var(--mk); background: linear-gradient(160deg, rgba(46, 230, 176, 0.18), rgba(46, 230, 176, 0.06)); border-color: rgba(46, 230, 176, 0.18); }
body.ag-v2 .ag-mk-tile.is-mint { color: var(--mk); }
body.ag-v2 .ag-mk-tile.is-blue { color: #38c4ff; background: rgba(36, 120, 200, 0.28); border-color: rgba(56, 196, 255, 0.18); }
body.ag-v2 .ag-mk-label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(238, 243, 239, 0.78); }
body.ag-v2 .ag-mk-amount { font-family: "DM Sans", system-ui, sans-serif; font-size: clamp(1.8rem, 1.2rem + 1.2vw, 2.35rem); font-weight: 700; line-height: 1.05; color: #fff; overflow-wrap: anywhere; }
body.ag-v2 .ag-mk-float small { font-size: 0.9rem; color: rgba(238, 243, 239, 0.85); }
body.ag-v2 .ag-mk-stat strong { font-family: "DM Sans", system-ui, sans-serif; font-size: 1.22rem; font-weight: 700; color: #fff; line-height: 1.15; overflow-wrap: anywhere; }
body.ag-v2 .ag-mk .ag-float-delta { display: inline-flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; background: none; font-size: 0.82rem; font-weight: 700; color: var(--mk); }
body.ag-v2 .ag-mk .ag-float-delta.is-down { color: #ff7b72; }

/* Two-up grids */
body.ag-v2 .ag-mk-grid { display: grid; grid-template-columns: minmax(0, 1.43fr) minmax(0, 1fr); gap: 1.1rem; align-items: stretch; }
body.ag-v2 .ag-mk-grid2 { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr); gap: 1.1rem; align-items: stretch; }

/* Deposit form */
body.ag-v2 .ag-mk .ag-float-label { margin: 0 0 0.6rem; font-size: 0.92rem; font-weight: 600; color: #fff; }
body.ag-v2 .ag-mk .ag-float-hint { margin: -0.3rem 0 0.9rem; }
body.ag-v2 .ag-mk .ag-float-methods { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
body.ag-v2 .ag-mk .ag-float-method {
  justify-content: center; gap: 0.6rem; min-height: 86px; padding: 0.8rem 0.4rem; border-radius: 10px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(238, 243, 239, 0.1);
  font-size: 0.92rem; font-weight: 600; transform: none;
}
body.ag-v2 .ag-mk .ag-float-method:hover:not(:disabled) { transform: none; border-color: rgba(46, 230, 176, 0.4); }
body.ag-v2 .ag-mk .ag-float-method.is-on {
  border: 1.5px solid var(--mk);
  background: linear-gradient(180deg, rgba(46, 230, 176, 0.14), rgba(46, 230, 176, 0.05));
  box-shadow: 0 0 0 3px rgba(46, 230, 176, 0.1), 0 0 22px rgba(46, 230, 176, 0.18);
}
body.ag-v2 .ag-mk .ag-float-check {
  top: -9px; right: -9px; width: 24px; height: 24px; background: var(--mk); color: var(--mk-ink);
  border: 2px solid #0b1813; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
body.ag-v2 .ag-mk .ag-float-check svg { width: 13px; height: 13px; }
body.ag-v2 .ag-mk-logo { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3); }
body.ag-v2 .ag-mk-logo svg { width: 70%; height: 70%; }
body.ag-v2 .ag-mk-logo.is-bkash { background: linear-gradient(160deg, #ff2d84, #d1105f); }
body.ag-v2 .ag-mk-logo.is-nagad { background: radial-gradient(circle at 50% 55%, #4a1407, #2a0b05); }
body.ag-v2 .ag-mk-logo.is-rocket { background: linear-gradient(160deg, #9b3fd6, #6a1fa6); }
body.ag-v2 .ag-mk-logo.is-bank { background: linear-gradient(160deg, #1d6ff2, #0b49b8); }
body.ag-v2 .ag-mk-logo.is-img { background: rgba(255, 255, 255, 0.08); }
body.ag-v2 .ag-mk-logo.is-img img { width: 76%; height: 76%; object-fit: contain; }
body.ag-v2 .ag-mk .ag-float-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.6rem; margin-bottom: 0.65rem; }
body.ag-v2 .ag-mk .ag-float-chip {
  min-height: 38px; padding: 0 0.3rem; border-radius: 8px; font-size: 0.9rem; font-weight: 500;
  background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(238, 243, 239, 0.1); color: #fff;
}
body.ag-v2 .ag-mk .ag-float-chip.is-on {
  background: linear-gradient(180deg, rgba(46, 230, 176, 0.2), rgba(46, 230, 176, 0.1)); border: 1.5px solid var(--mk); color: #fff; font-weight: 600;
}
body.ag-v2 .ag-mk .ag-mk-amt .ag-apply-input {
  min-height: 46px; padding: 0 0.9rem 0 0; gap: 0.85rem; border-radius: 9px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(238, 243, 239, 0.12);
}
body.ag-v2 .ag-mk .ag-mk-amt .ag-apply-ico {
  align-self: stretch; width: 46px; border-radius: 8px 0 0 8px; color: var(--mk); font-size: 1.15rem; font-weight: 700;
  background: rgba(46, 230, 176, 0.12); border-right: 1px solid rgba(46, 230, 176, 0.14);
}
body.ag-v2 .ag-mk .ag-mk-amt input { font-size: 0.95rem; color: #fff; }
body.ag-v2 .ag-mk .ag-mk-min { display: block; margin: 0.4rem 0 0; font-size: 0.78rem; color: rgba(238, 243, 239, 0.6); }
body.ag-v2 .ag-mk .ag-apply-go {
  min-height: 44px; border-radius: 10px; font-size: 1rem; font-weight: 800; color: var(--mk-ink); gap: 0.4rem;
  background: linear-gradient(180deg, #46f5c4 0%, var(--mk) 55%, #20d5a0 100%);
  box-shadow: 0 10px 26px rgba(46, 230, 176, 0.25);
}
body.ag-v2 .ag-mk .ag-float-continue { margin-top: 0.75rem; }
body.ag-v2 .ag-mk .ag-float-pay { border-radius: 12px; }
body.ag-v2 .ag-mk .ag-float-details .ag-apply-input { border-radius: 9px; }

/* Deposit information */
body.ag-v2 .ag-mk-info { display: flex; flex-direction: column; }
body.ag-v2 .ag-mk-steps {
  list-style: none; margin: 0 0 1rem; padding: 0.35rem 0.9rem; border-radius: 10px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(238, 243, 239, 0.06);
}
body.ag-v2 .ag-mk-steps li { display: flex; align-items: center; gap: 1.1rem; min-height: 35px; padding: 0.2rem 0; font-size: 0.92rem; color: rgba(238, 243, 239, 0.92); }
body.ag-v2 .ag-mk-steps li + li { border-top: 1px solid rgba(238, 243, 239, 0.05); }
body.ag-v2 .ag-mk-steps li span {
  width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%;
  background: var(--mk); color: var(--mk-ink); font-size: 0.8rem; font-weight: 800;
  box-shadow: 0 0 12px rgba(46, 230, 176, 0.28);
}
body.ag-v2 .ag-mk-notes {
  display: flex; align-items: flex-start; gap: 0.95rem; margin-top: auto; padding: 0.95rem 1rem; border-radius: 12px;
  background: linear-gradient(160deg, rgba(46, 230, 176, 0.1), rgba(46, 230, 176, 0.03));
  border: 1px solid rgba(46, 230, 176, 0.26);
}
body.ag-v2 .ag-mk-shield { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: rgba(30, 140, 70, 0.35); border: 1px solid rgba(46, 230, 176, 0.2); }
body.ag-v2 .ag-mk-notes strong { display: block; margin: 0.1rem 0 0.35rem; font-size: 0.95rem; font-weight: 700; color: var(--mk); }
body.ag-v2 .ag-mk-notes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.2rem; }
body.ag-v2 .ag-mk-notes li { position: relative; padding-left: 0.85rem; font-size: 0.84rem; line-height: 1.45; color: rgba(238, 243, 239, 0.88); }
body.ag-v2 .ag-mk-notes li::before { content: ""; position: absolute; left: 0.1rem; top: 0.62em; width: 4px; height: 4px; border-radius: 50%; background: rgba(238, 243, 239, 0.75); }

/* Tables */
body.ag-v2 .ag-mk-table-card { padding-bottom: 0.5rem; overflow: hidden; }
body.ag-v2 .ag-mk-table-card .ag-mk-card-head { margin-bottom: 0.9rem; }
body.ag-v2 .ag-mk-table { width: calc(100% + 2.4rem); margin: 0 -1.2rem; border-collapse: collapse; table-layout: auto; font-size: 0.86rem; background: none; border: 0; }
body.ag-v2 .ag-mk-table th,
body.ag-v2 .ag-mk-table td { padding: 0.55rem 0.6rem; text-align: left; vertical-align: middle; border: 0; background: none; white-space: nowrap; }
body.ag-v2 .ag-mk-table th:first-child,
body.ag-v2 .ag-mk-table td:first-child { padding-left: 1.2rem; }
body.ag-v2 .ag-mk-table th:last-child,
body.ag-v2 .ag-mk-table td:last-child { padding-right: 1.2rem; }
body.ag-v2 .ag-mk-table thead th { padding-top: 0.5rem; padding-bottom: 0.5rem; background: rgba(255, 255, 255, 0.04); color: rgba(238, 243, 239, 0.75); font-size: 0.8rem; font-weight: 500; text-transform: none; letter-spacing: 0; }
body.ag-v2 .ag-mk-table tbody tr + tr td { border-top: 1px solid rgba(238, 243, 239, 0.06); }
body.ag-v2 .ag-mk-table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
body.ag-v2 .ag-mk-table .is-num { text-align: right; }
body.ag-v2 .ag-mk-table .is-act { text-align: center; }
body.ag-v2 .ag-mk-ledger tbody td { height: 50px; }
body.ag-v2 .ag-mk-hist tbody td { height: 37px; padding-top: 0.32rem; padding-bottom: 0.32rem; }
body.ag-v2 .ag-mk-tico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; }
body.ag-v2 .ag-mk-tico svg { width: 17px; height: 17px; }
body.ag-v2 .ag-mk-tico.is-deposit,
body.ag-v2 .ag-mk-tico.is-send { background: linear-gradient(160deg, #1f9a6d, #136b4c); color: #eafff6; }
body.ag-v2 .ag-mk-tico.is-receive { background: linear-gradient(160deg, #c79436, #8a6118); }
body.ag-v2 .ag-mk-tico.is-commission { background: linear-gradient(160deg, #2b8fd6, #1b5f9c); }
body.ag-v2 .ag-mk-tico.is-reversal { background: linear-gradient(160deg, #c85a4c, #8f3328); }
body.ag-v2 .ag-mk-tico.is-admin { background: linear-gradient(160deg, #8b4cf0, #5d26c2); }
body.ag-v2 .ag-mk-desc { white-space: normal !important; min-width: 9rem; }
body.ag-v2 .ag-mk-desc strong { display: block; font-size: 0.88rem; font-weight: 700; color: #fff; line-height: 1.25; }
body.ag-v2 .ag-mk-desc small,
body.ag-v2 .ag-mk-when small { display: block; margin-top: 0.1rem; font-size: 0.8rem; color: rgba(238, 243, 239, 0.7); }
body.ag-v2 .ag-mk-when span { display: block; font-size: 0.84rem; color: rgba(238, 243, 239, 0.88); }
body.ag-v2 .ag-mk-hist .ag-mk-when span,
body.ag-v2 .ag-mk-hist .ag-mk-when small { font-size: 0.78rem; line-height: 1.2; margin: 0; }
body.ag-v2 .ag-mk-ref { color: rgba(238, 243, 239, 0.85); font-size: 0.84rem; }
body.ag-v2 .ag-mk-hid { color: rgba(238, 243, 239, 0.7); font-size: 0.82rem; }
body.ag-v2 .ag-mk-amt-cell { font-weight: 700; }
body.ag-v2 .ag-mk-amt-cell.pos { color: var(--mk); }
body.ag-v2 .ag-mk-amt-cell.neg { color: #ff6b6b; }
body.ag-v2 .ag-mk-bal { font-weight: 700; color: var(--mk); }
body.ag-v2 .ag-mk-hamt { font-weight: 500; color: #fff; font-size: 0.84rem; }
body.ag-v2 .ag-mk-hmethod .ag-mk-logo { width: 26px; height: 26px; border-radius: 6px; box-shadow: none; }
body.ag-v2 .ag-mk-hmlabel { display: none; }
body.ag-v2 .ag-mk-pill { display: inline-flex; align-items: center; min-height: 22px; padding: 0 0.6rem; border-radius: 6px; font-size: 0.76rem; font-weight: 600; }
body.ag-v2 .ag-mk-pill.is-pending { color: #ffcf5a; background: rgba(214, 160, 30, 0.28); box-shadow: inset 0 0 0 1px rgba(255, 207, 90, 0.25); }
body.ag-v2 .ag-mk-pill.is-done { color: #3ff0b8; background: rgba(30, 160, 110, 0.28); box-shadow: inset 0 0 0 1px rgba(46, 230, 176, 0.22); }
body.ag-v2 .ag-mk-pill.is-bad { color: #ff8a80; background: rgba(200, 60, 50, 0.26); box-shadow: inset 0 0 0 1px rgba(255, 123, 114, 0.25); }
body.ag-v2 .ag-mk-view {
  min-height: 26px; padding: 0 0.85rem; border-radius: 6px; border: 1px solid rgba(238, 243, 239, 0.18);
  background: rgba(255, 255, 255, 0.04); color: #fff; font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
body.ag-v2 .ag-mk-view:hover { border-color: rgba(46, 230, 176, 0.55); color: var(--mk); }
body.ag-v2 .ag-mk-view:focus-visible,
body.ag-v2 .ag-mk-seeall:focus-visible { outline: 2px solid var(--mk); outline-offset: 2px; }
body.ag-v2 .ag-mk-empty { margin: 0.25rem 0 0.75rem; padding: 1.25rem; border-radius: 12px; border: 1px dashed rgba(238, 243, 239, 0.14); color: rgba(238, 243, 239, 0.7); font-size: 0.88rem; text-align: center; }

/* Responsive */
@media (max-width: 1399.98px) {
  body.ag-v2 .ag-mk-tile { width: 50px; height: 50px; }
  body.ag-v2 .ag-mk-tile svg { width: 22px; height: 22px; }
  body.ag-v2 .ag-mk-tile.is-lg { width: 68px; height: 68px; }
  body.ag-v2 .ag-mk-tile.is-lg svg { width: 30px; height: 30px; }
  body.ag-v2 .ag-mk-float { gap: 1.1rem; }
  body.ag-v2 .ag-mk-stat { gap: 0.75rem; padding-left: 1rem; padding-right: 0.5rem; }
  body.ag-v2 .ag-mk-stat strong { font-size: 1.08rem; }
  body.ag-v2 .ag-mk-label { font-size: 0.68rem; }
  body.ag-v2 .ag-mk-table { font-size: 0.82rem; }
  body.ag-v2 .ag-mk-table th, body.ag-v2 .ag-mk-table td { padding-left: 0.45rem; padding-right: 0.45rem; }
}
@media (max-width: 1239.98px) {
  body.ag-v2 .ag-mk-grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1099.98px) {
  body.ag-v2 .ag-mk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0; }
  body.ag-v2 .ag-mk-float { grid-column: 1 / -1; padding: 0 0 1rem; border-bottom: 1px solid rgba(238, 243, 239, 0.1); }
  body.ag-v2 .ag-mk-stat { border-left: 0; padding-left: 0; }
  body.ag-v2 .ag-mk-stat:nth-child(3) { border-left: 1px solid rgba(238, 243, 239, 0.1); padding-left: 1rem; }
  body.ag-v2 .ag-mk-grid { grid-template-columns: minmax(0, 1fr); }
  body.ag-v2 .ag-mk-hero { right: 0; width: min(760px, 92%); }
}
@media (max-width: 767.98px) {
  body.ag-v2 .ag-float.ag-mk { gap: 0.9rem; }
  body.ag-v2 .ag-mk-head { flex-direction: column; gap: 0.5rem; min-height: 0; padding-top: 0; }
  body.ag-v2 .ag-mk-hero { top: -70px; right: -32%; width: 135%; opacity: 0.8;
    -webkit-mask-image: radial-gradient(55% 55% at 66% 50%, #000 30%, transparent 78%); mask-image: radial-gradient(55% 55% at 66% 50%, #000 30%, transparent 78%); }
  body.ag-v2 .ag-mk-head h1 { font-size: 2rem; }
  body.ag-v2 .ag-mk-head-copy > p:last-child { font-size: 0.9rem; max-width: 30ch; }
  body.ag-v2 .ag-mk-crumb { order: -1; font-size: 0.8rem; gap: 0.3rem; }
  body.ag-v2 .ag-mk-eyebrow { margin-bottom: 0.3rem; }

  /* Stats: 2×2 */
  body.ag-v2 .ag-mk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; padding: 0.6rem; border-radius: 16px; }
  body.ag-v2 .ag-mk-float,
  body.ag-v2 .ag-mk-stat,
  body.ag-v2 .ag-mk-stat:nth-child(3) {
    grid-column: auto; flex-direction: column; align-items: flex-start; gap: 0.55rem;
    padding: 0.8rem; border: 1px solid rgba(238, 243, 239, 0.07); border-radius: 12px; background: rgba(0, 0, 0, 0.16);
  }
  body.ag-v2 .ag-mk-float { background: rgba(46, 230, 176, 0.07); border-color: rgba(46, 230, 176, 0.2); }
  body.ag-v2 .ag-mk-tile, body.ag-v2 .ag-mk-tile.is-lg { width: 38px; height: 38px; border-radius: 10px; }
  body.ag-v2 .ag-mk-tile svg, body.ag-v2 .ag-mk-tile.is-lg svg { width: 20px; height: 20px; }
  body.ag-v2 .ag-mk-amount { font-size: 1.35rem; }
  body.ag-v2 .ag-mk-stat strong { font-size: 1.02rem; }
  body.ag-v2 .ag-mk-float small { font-size: 0.74rem; line-height: 1.3; }
  body.ag-v2 .ag-mk-label { font-size: 0.64rem; }

  body.ag-v2 .ag-mk-card { padding: 1rem; border-radius: 16px; }
  body.ag-v2 .ag-mk-card-head { gap: 0.75rem; margin-bottom: 0.9rem; }
  body.ag-v2 .ag-mk-card-head h2 { font-size: 1.08rem; }
  body.ag-v2 .ag-mk-card-head p { font-size: 0.82rem; }
  body.ag-v2 .ag-mk-hico { width: 42px; height: 42px; }
  body.ag-v2 .ag-mk-seeall { padding: 0 0.65rem; font-size: 0.8rem; min-height: 32px; }
  body.ag-v2 .ag-mk .ag-float-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  body.ag-v2 .ag-mk .ag-float-method { min-height: 74px; }
  body.ag-v2 .ag-mk .ag-float-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.ag-v2 .ag-mk-steps li { gap: 0.8rem; font-size: 0.86rem; }
  body.ag-v2 .ag-mk-notes { padding: 0.85rem; gap: 0.75rem; }
  body.ag-v2 .ag-mk-shield { width: 38px; height: 38px; }

  /* Tables → card lists */
  body.ag-v2 .ag-mk-table-card { padding-bottom: 1rem; }
  body.ag-v2 .ag-mk-table, body.ag-v2 .ag-mk-table tbody { display: block; width: 100%; margin: 0; }
  body.ag-v2 .ag-mk-table thead { display: none; }
  body.ag-v2 .ag-mk-table tbody { display: grid; gap: 0.6rem; }
  body.ag-v2 .ag-mk-table tbody tr {
    display: grid; align-items: center; gap: 0.35rem 0.7rem; padding: 0.75rem 0.8rem; border-radius: 12px;
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(238, 243, 239, 0.07);
  }
  body.ag-v2 .ag-mk-table tbody tr + tr td { border-top: 0; }
  body.ag-v2 .ag-mk-table tbody td,
  body.ag-v2 .ag-mk-table tbody td:first-child,
  body.ag-v2 .ag-mk-table tbody td:last-child { display: block; height: auto; padding: 0; min-width: 0; white-space: normal; text-align: left; }
  body.ag-v2 .ag-mk-ledger tbody tr { grid-template-columns: 34px minmax(0, 1fr) auto; }
  body.ag-v2 .ag-mk-ledger .ag-mk-type { grid-row: 1 / span 2; }
  body.ag-v2 .ag-mk-ledger .ag-mk-desc { grid-column: 2; grid-row: 1; min-width: 0; }
  body.ag-v2 .ag-mk-ledger .ag-mk-amt-cell { grid-column: 3; grid-row: 1; text-align: right; white-space: nowrap; }
  body.ag-v2 .ag-mk-ledger .ag-mk-when { grid-column: 2; grid-row: 2; }
  body.ag-v2 .ag-mk-ledger .ag-mk-when span, body.ag-v2 .ag-mk-ledger .ag-mk-when small { display: inline; font-size: 0.76rem; color: rgba(238, 243, 239, 0.65); }
  body.ag-v2 .ag-mk-ledger .ag-mk-when small::before { content: " · "; }
  body.ag-v2 .ag-mk-ledger .ag-mk-bal { grid-column: 3; grid-row: 2; text-align: right; font-size: 0.76rem; white-space: nowrap; }
  body.ag-v2 .ag-mk-ledger .ag-mk-bal::before { content: "Bal "; color: rgba(238, 243, 239, 0.55); font-weight: 500; }
  body.ag-v2 .ag-mk-ledger .ag-mk-ref { grid-column: 2 / -1; grid-row: 3; font-size: 0.74rem; color: rgba(238, 243, 239, 0.55); overflow-wrap: anywhere; }
  body.ag-v2 .ag-mk-ledger .ag-mk-ref::before { content: "Ref "; }
  body.ag-v2 .ag-mk-hist tbody tr { grid-template-columns: 34px minmax(0, 1fr) auto; }
  body.ag-v2 .ag-mk-hist .ag-mk-hmethod { grid-column: 1; grid-row: 1 / span 2; }
  body.ag-v2 .ag-mk-hist .ag-mk-hmethod .ag-mk-logo { width: 34px; height: 34px; border-radius: 9px; }
  body.ag-v2 .ag-mk-hist .ag-mk-hamt { grid-column: 2; grid-row: 1; font-weight: 700; font-size: 0.92rem; }
  body.ag-v2 .ag-mk-hist .ag-mk-hid { grid-column: 2; grid-row: 2; font-size: 0.74rem; }
  body.ag-v2 .ag-mk-hist .ag-mk-when { grid-column: 2; grid-row: 3; }
  body.ag-v2 .ag-mk-hist .ag-mk-when span, body.ag-v2 .ag-mk-hist .ag-mk-when small { display: inline; font-size: 0.74rem; color: rgba(238, 243, 239, 0.65); }
  body.ag-v2 .ag-mk-hist .ag-mk-when small::before { content: " · "; }
  body.ag-v2 .ag-mk-hist .ag-mk-hst { grid-column: 3; grid-row: 1; text-align: right; }
  body.ag-v2 .ag-mk-hist .is-act { grid-column: 3; grid-row: 2 / span 2; text-align: right; }
  body.ag-v2 .ag-mk-view { min-height: 32px; padding: 0 1rem; }
}
@media (max-width: 379.98px) {
  body.ag-v2 .ag-mk .ag-float-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.ag-v2 .ag-mk-amount { font-size: 1.15rem; }
}

/* Mockup match — pass 2 refinements */
body.ag-v2 .ag-float.ag-mk { overflow-x: clip; }
@media (min-width: 1100px) {
  html body.ag-v2.theme-agent-app { --top-h: 74px; }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-logo { margin-bottom: 1.1rem; padding-bottom: 1rem; }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-logo span { font-family: "DM Sans", system-ui, sans-serif; font-size: 1.32rem; font-weight: 800; letter-spacing: -0.015em; }
  html body.ag-v2 .ag-shell .ag-nav .app-tabbar-inner { gap: 0.12rem; }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-pro { margin-bottom: 0.4rem; }
}
body.ag-v2 .ag-mk-head { min-height: 96px; padding-top: 0.1rem; }
body.ag-v2 .ag-mk-head h1 { font-family: "DM Sans", system-ui, sans-serif; font-weight: 700; font-size: clamp(2rem, 1.5rem + 1.3vw, 2.55rem); letter-spacing: -0.02em; }
body.ag-v2 .ag-mk-eyebrow { margin-bottom: 0.35rem; }
body.ag-v2 .ag-mk-head-copy > p:last-child { margin-top: 0.4rem; }
body.ag-v2 .ag-mk-hero { top: -112px; }
body.ag-v2 .ag-mk-stats { padding: 1.1rem 1.35rem; }
body.ag-v2 .ag-mk-label { font-size: 0.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.ag-v2 .ag-mk-stat { padding-right: 0.4rem; }
body.ag-v2 .ag-mk-stat strong { font-size: 1.16rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow-wrap: normal; }
body.ag-v2 .ag-mk-amount { font-weight: 600; letter-spacing: -0.01em; }
body.ag-v2 .ag-mk-card { padding: 1.05rem 1.2rem 1.1rem; }
body.ag-v2 .ag-mk-card-head { margin-bottom: 0.95rem; }
body.ag-v2 .ag-mk .ag-float-method { min-height: 84px; padding: 0.65rem 0.4rem; gap: 0.5rem; }
body.ag-v2 .ag-mk .ag-float-methods { margin-bottom: 0.85rem; }
body.ag-v2 .ag-mk .ag-mk-amt-label { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
body.ag-v2 .ag-mk .ag-mk-amt-label .ag-mk-min { margin: 0; font-size: 0.76rem; font-weight: 500; color: rgba(238, 243, 239, 0.55); }
body.ag-v2 .ag-mk .ag-float-chips { margin-bottom: 0.55rem; }
body.ag-v2 .ag-mk .ag-float-continue { margin-top: 0.6rem; }
body.ag-v2 .ag-mk-steps { margin-bottom: 0.85rem; }
body.ag-v2 .ag-mk-steps li { min-height: 34px; font-size: 0.9rem; }
body.ag-v2 .ag-mk-notes { padding: 0.8rem 0.95rem; }
body.ag-v2 .ag-mk-notes strong { margin-bottom: 0.25rem; }
body.ag-v2 .ag-mk-notes ul { gap: 0.1rem; }
body.ag-v2 .ag-mk-notes li { font-size: 0.8rem; line-height: 1.4; }
body.ag-v2 .ag-mk-logo.is-nagad { background: radial-gradient(circle at 50% 50%, #5a1a08, #2e0c04); }
@media (max-width: 1399.98px) {
  body.ag-v2 .ag-mk-stat strong { font-size: 1.02rem; }
  body.ag-v2 .ag-mk-label { font-size: 0.64rem; }
}
@media (max-width: 767.98px) {
  body.ag-v2 .ag-mk-stats { align-items: stretch; }
  body.ag-v2 .ag-mk-head h1 { font-size: 2.1rem; }
  body.ag-v2 .ag-mk-hero { top: -70px; }
  body.ag-v2 .ag-mk-stat strong { font-size: 1rem; white-space: normal; overflow-wrap: anywhere; }
  body.ag-v2 .ag-mk-label { white-space: normal; }
}

/* Mockup match — pass 3 */
body.ag-v2 .ag-mk-hero { top: -89px; right: auto; left: calc(71% - 453px); width: 600px; max-width: none; }
body.ag-v2 .ag-mk-notes { gap: 0.75rem; padding: 0.8rem 0.85rem; }
body.ag-v2 .ag-mk-shield { width: 40px; height: 40px; }
body.ag-v2 .ag-mk-notes li { font-size: 0.79rem; }
@media (min-width: 1100px) {
  html body.ag-v2 .ag-shell .ag-nav .ag-side-pro { margin-top: auto; margin-bottom: clamp(0.4rem, calc(100dvh - 880px), 10rem); }
}
@media (max-width: 1099.98px) {
  body.ag-v2 .ag-mk-hero { left: auto; right: 0; width: min(640px, 80%); }
}
@media (max-width: 767.98px) {
  body.ag-v2 .ag-mk-hero { top: -60px; left: auto; right: -30%; width: 125%; }
}
body.ag-v2 .ag-mk-card { padding-top: 0.8rem; }
body.ag-v2 .ag-mk-card-head { margin-bottom: 0.7rem; }
body.ag-v2 .ag-mk-table-card .ag-mk-card-head { margin-bottom: 0.65rem; }
@media (min-width: 1100px) and (max-width: 1399.98px) {
  body.ag-v2 .ag-mk-stats { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
  body.ag-v2 .ag-mk-label { letter-spacing: 0.02em; }
  body.ag-v2 .ag-mk-hero { left: calc(78% - 453px); }
}
@media (min-width: 768px) and (max-width: 1099.98px) {
  body.ag-v2 .ag-mk-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.ag-v2 .ag-mk-stat,
  body.ag-v2 .ag-mk-stat:nth-child(3) { border-left: 1px solid rgba(238, 243, 239, 0.1); padding-left: 1rem; }
  body.ag-v2 .ag-mk-stat:nth-child(2) { border-left: 0; padding-left: 0; }
}
body.ag-v2 .ag-mk-crumb { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85); }


/* ==========================================================================
   Agent KYC — mockup match (verified + other states). Scoped to .ag-kmk
   ========================================================================== */
html body.ag-v2 .ag-shell .ag-bell { position: relative; }
html body.ag-v2 .ag-shell .ag-bell-badge {
  position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 999px; background: #ff4d5e; color: #fff;
  font-size: 0.62rem; font-weight: 800; line-height: 1; border: 2px solid #0b1511; box-sizing: content-box;
}

body.ag-v2 .ag-kyc.ag-kmk { position: relative; isolation: isolate; display: grid; gap: 1.15rem; overflow-x: clip; }
body.ag-v2 .ag-kmk > * { margin: 0; min-width: 0; }

body.ag-v2 .ag-kmk-hero {
  position: absolute; z-index: 3; pointer-events: none;
  top: -132px; right: 0; width: min(940px, 74%); aspect-ratio: 16 / 9;
  background-image: url("../img/agent/kyc-hero.jpg");
  background-image: image-set(url("../img/agent/kyc-hero.webp") type("image/webp"), url("../img/agent/kyc-hero.jpg") type("image/jpeg"));
  background-size: cover; background-position: center;
  -webkit-mask-image: radial-gradient(60% 62% at 74% 52%, #000 45%, rgba(0, 0, 0, 0.6) 66%, transparent 86%);
  mask-image: radial-gradient(60% 62% at 74% 52%, #000 45%, rgba(0, 0, 0, 0.6) 66%, transparent 86%);
  mix-blend-mode: screen;
}
body.ag-v2 .ag-kmk-head { position: relative; z-index: 1; padding: 0.35rem 0 0.2rem; max-width: 640px; }
body.ag-v2 .ag-kmk-head h1 {
  display: flex; align-items: center; gap: 0.75rem; margin: 0;
  font-family: "DM Sans", system-ui, sans-serif; font-size: clamp(2rem, 1.5rem + 1.3vw, 2.55rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: #fff;
}
body.ag-v2 .ag-kmk-badge { display: inline-grid; place-items: center; flex-shrink: 0; filter: drop-shadow(0 0 14px rgba(46, 230, 176, 0.35)); }
body.ag-v2 .ag-kmk-badge.is-wait { filter: drop-shadow(0 0 12px rgba(244, 193, 77, 0.3)); }
body.ag-v2 .ag-kmk-badge.is-bad { filter: drop-shadow(0 0 12px rgba(255, 123, 114, 0.3)); }
body.ag-v2 .ag-kmk-sub { margin: 0.55rem 0 0; font-size: 1.05rem; color: rgba(238, 243, 239, 0.85); line-height: 1.45; }

/* Profile card */
body.ag-v2 .ag-kmk-profile {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 457px) minmax(0, 1fr); align-items: center;
  min-height: 180px; padding: 1.4rem 2.2rem; border-radius: 18px;
  background: linear-gradient(100deg, rgba(24, 74, 54, 0.62) 0%, rgba(14, 44, 33, 0.55) 50%, rgba(10, 34, 26, 0.4) 100%);
  border: 1px solid rgba(46, 230, 176, 0.24);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
body.ag-v2 .ag-kmk-who { display: flex; align-items: center; gap: 1.6rem; min-width: 0; padding-right: 1.5rem; border-right: 1px solid rgba(238, 243, 239, 0.12); min-height: 128px; }
body.ag-v2 .ag-kmk-av {
  width: 88px; height: 88px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #34d9a3, #13996c 70%); color: #fff;
  font-family: "DM Sans", system-ui, sans-serif; font-size: 2.4rem; font-weight: 700;
  box-shadow: 0 0 0 3px rgba(46, 230, 176, 0.22), 0 0 28px rgba(46, 230, 176, 0.28);
}
body.ag-v2 .ag-kmk-who-copy { display: grid; justify-items: start; gap: 0.35rem; min-width: 0; }
body.ag-v2 .ag-kmk-pill {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 0.6rem; border-radius: 999px;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--mk); background: rgba(46, 230, 176, 0.1); border: 1.5px solid rgba(46, 230, 176, 0.6);
}
body.ag-v2 .ag-kmk-pill.is-wait { color: #ffcf5a; background: rgba(214, 160, 30, 0.12); border-color: rgba(255, 207, 90, 0.55); }
body.ag-v2 .ag-kmk-pill.is-bad { color: #ff8a80; background: rgba(200, 60, 50, 0.12); border-color: rgba(255, 123, 114, 0.55); }
body.ag-v2 .ag-kmk-pill.is-idle { color: rgba(238, 243, 239, 0.85); background: rgba(255, 255, 255, 0.05); border-color: rgba(238, 243, 239, 0.3); }
body.ag-v2 .ag-kmk-name { font-family: "DM Sans", system-ui, sans-serif; font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1.2; overflow-wrap: anywhere; }
body.ag-v2 .ag-kmk-when { font-size: 0.95rem; color: rgba(238, 243, 239, 0.78); }
body.ag-v2 .ag-kmk-facts { display: grid; gap: 0.75rem; margin: 0; padding-left: 2.4rem; justify-content: start; }
body.ag-v2 .ag-kmk-fact { display: flex; align-items: center; gap: 1.25rem; min-width: 0; }
body.ag-v2 .ag-kmk-fact > div { display: grid; gap: 0.1rem; min-width: 0; }
body.ag-v2 .ag-kmk-fact dt { font-size: 0.76rem; color: rgba(238, 243, 239, 0.75); }
body.ag-v2 .ag-kmk-fact dd { margin: 0; font-size: 1.05rem; font-weight: 700; color: #fff; overflow-wrap: anywhere; }
body.ag-v2 .ag-kmk-fico {
  width: 39px; height: 39px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; color: #fff;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(238, 243, 239, 0.1);
}
body.ag-v2 .ag-kmk-copy {
  width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; margin-left: 0.6rem; border-radius: 8px; cursor: pointer;
  color: rgba(238, 243, 239, 0.9); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(238, 243, 239, 0.12);
}
body.ag-v2 .ag-kmk-copy:hover { color: var(--mk); border-color: rgba(46, 230, 176, 0.5); }
body.ag-v2 .ag-kmk-copy:focus-visible,
body.ag-v2 .ag-kmk-btn:focus-visible { outline: 2px solid var(--mk); outline-offset: 2px; }

/* Benefits */
body.ag-v2 .ag-kmk-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; position: relative; z-index: 1; }
body.ag-v2 .ag-kmk-perks li {
  display: flex; align-items: flex-start; gap: 1.1rem; min-height: 106px; padding: 1.05rem 1.1rem; border-radius: 14px;
  background: var(--mk-card); border: 1px solid rgba(238, 243, 239, 0.1);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}
body.ag-v2 .ag-kmk-perk-ico {
  width: 62px; height: 62px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; color: var(--mk);
  background: radial-gradient(circle at 40% 35%, rgba(46, 230, 176, 0.2), rgba(46, 230, 176, 0.07)); border: 1px solid rgba(46, 230, 176, 0.18);
}
body.ag-v2 .ag-kmk-perks strong { display: block; margin: 0.45rem 0 0.25rem; font-size: 1rem; font-weight: 700; color: #fff; }
body.ag-v2 .ag-kmk-perks p { margin: 0; font-size: 0.84rem; line-height: 1.45; color: rgba(238, 243, 239, 0.75); }

/* Big actions */
body.ag-v2 .ag-kmk-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; position: relative; z-index: 1; }
body.ag-v2 .ag-kmk-btn {
  display: flex; align-items: center; justify-content: center; gap: 1.1rem; min-height: 60px; padding: 0 1.5rem; border-radius: 999px;
  font-size: 1.12rem; font-weight: 700; text-decoration: none; color: #fff;
  background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(238, 243, 239, 0.18);
  transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}
body.ag-v2 .ag-kmk-btn:hover { border-color: rgba(46, 230, 176, 0.5); transform: translateY(-1px); }
body.ag-v2 .ag-kmk-btn.is-primary {
  color: var(--mk-ink); border: 0;
  background: linear-gradient(180deg, #5cf8cf 0%, var(--mk) 55%, #1fd39f 100%);
  box-shadow: 0 14px 34px rgba(46, 230, 176, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
body.ag-v2 .ag-kmk-btn.is-primary:hover { filter: brightness(1.05); }

/* Other states: existing panels in the same glass language */
body.ag-v2 .ag-kmk .ag-kyc-layout { position: relative; z-index: 1; }
body.ag-v2 .ag-kmk .ag-panel {
  border-radius: 16px; background: var(--mk-card); border: 1px solid var(--mk-line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
body.ag-v2 .ag-kmk .ag-send-card-head h2 { font-family: "DM Sans", system-ui, sans-serif; font-weight: 700; color: #fff; }
body.ag-v2 .ag-kmk .ag-send-ico {
  border-radius: 12px; color: var(--mk);
  background: linear-gradient(160deg, rgba(46, 230, 176, 0.24), rgba(46, 230, 176, 0.08)); border: 1px solid rgba(46, 230, 176, 0.32);
}
body.ag-v2 .ag-kmk .ag-send-ico.is-wait { color: #ffcf5a; background: rgba(214, 160, 30, 0.14); border-color: rgba(255, 207, 90, 0.3); }
body.ag-v2 .ag-kmk .ag-apply-go {
  color: var(--mk-ink); background: linear-gradient(180deg, #46f5c4 0%, var(--mk) 55%, #20d5a0 100%);
  box-shadow: 0 10px 26px rgba(46, 230, 176, 0.25);
}
body.ag-v2 .ag-kmk :is(.ag-info-steps, .ag-need-steps, .ag-kyc-track) li > span:first-child { background: var(--mk); color: var(--mk-ink); }
body.ag-v2 .ag-kmk .ag-kyc-track li:not(.is-on) > span:first-child { background: rgba(255, 255, 255, 0.08); color: rgba(238, 243, 239, 0.7); }
body.ag-v2 .ag-kmk .ag-send-secure { background: linear-gradient(160deg, rgba(46, 230, 176, 0.09), rgba(46, 230, 176, 0.03)); border-color: rgba(46, 230, 176, 0.26); }
body.ag-v2 .ag-kmk .ag-alert { border-radius: 12px; }

/* Responsive */
@media (max-width: 1399.98px) {
  body.ag-v2 .ag-kmk-profile { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding: 1.3rem 1.6rem; }
  body.ag-v2 .ag-kmk-facts { padding-left: 1.6rem; }
  body.ag-v2 .ag-kmk-hero { width: min(820px, 70%); right: -4%; }
  body.ag-v2 .ag-kmk-perks li { gap: 0.85rem; padding: 0.95rem; }
  body.ag-v2 .ag-kmk-perk-ico { width: 52px; height: 52px; }
  body.ag-v2 .ag-kmk-perk-ico svg { width: 22px; height: 22px; }
  body.ag-v2 .ag-kmk-perks strong { margin-top: 0.25rem; font-size: 0.95rem; }
}
@media (max-width: 1099.98px) {
  body.ag-v2 .ag-kmk-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.ag-v2 .ag-kmk-hero { z-index: 0; width: min(760px, 86%); right: -10%; top: -110px; }
  body.ag-v2 .ag-kmk-who { gap: 1.1rem; }
  body.ag-v2 .ag-kmk-av { width: 72px; height: 72px; font-size: 2rem; }
}
@media (max-width: 767.98px) {
  body.ag-v2 .ag-kyc.ag-kmk { gap: 0.9rem; }
  body.ag-v2 .ag-kmk-hero { top: -56px; right: -38%; width: 150%; opacity: 0.9;
    -webkit-mask-image: radial-gradient(48% 52% at 72% 50%, #000 35%, transparent 80%); mask-image: radial-gradient(48% 52% at 72% 50%, #000 35%, transparent 80%); }
  body.ag-v2 .ag-kmk-head { padding: 0.2rem 0 4.2rem; }
  body.ag-v2 .ag-kmk-head h1 { font-size: 1.85rem; gap: 0.5rem; }
  body.ag-v2 .ag-kmk-badge svg { width: 30px; height: 30px; }
  body.ag-v2 .ag-kmk-sub { font-size: 0.92rem; max-width: 26ch; }
  body.ag-v2 .ag-kmk-profile { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1.1rem; border-radius: 16px; min-height: 0; }
  body.ag-v2 .ag-kmk-who { min-height: 0; gap: 0.95rem; padding: 0 0 1rem; border-right: 0; border-bottom: 1px solid rgba(238, 243, 239, 0.12); }
  body.ag-v2 .ag-kmk-av { width: 60px; height: 60px; font-size: 1.65rem; }
  body.ag-v2 .ag-kmk-name { font-size: 1.2rem; }
  body.ag-v2 .ag-kmk-when { font-size: 0.8rem; }
  body.ag-v2 .ag-kmk-facts { padding-left: 0; gap: 0.7rem; }
  body.ag-v2 .ag-kmk-fact { gap: 0.85rem; }
  body.ag-v2 .ag-kmk-fact > div { flex: 1 1 auto; }
  body.ag-v2 .ag-kmk-fact dd { font-size: 0.98rem; }
  body.ag-v2 .ag-kmk-copy { width: 36px; height: 36px; }
  body.ag-v2 .ag-kmk-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
  body.ag-v2 .ag-kmk-perks li { flex-direction: column; gap: 0.55rem; min-height: 0; padding: 0.85rem; }
  body.ag-v2 .ag-kmk-perk-ico { width: 42px; height: 42px; }
  body.ag-v2 .ag-kmk-perk-ico svg { width: 20px; height: 20px; }
  body.ag-v2 .ag-kmk-perks strong { margin: 0 0 0.15rem; font-size: 0.9rem; }
  body.ag-v2 .ag-kmk-perks p { font-size: 0.78rem; }
  body.ag-v2 .ag-kmk-actions { grid-template-columns: minmax(0, 1fr); gap: 0.65rem; }
  body.ag-v2 .ag-kmk-btn { min-height: 54px; font-size: 1.02rem; }
}

/* KYC mockup — pass 2 */
body.ag-v2 .ag-kmk-profile { grid-template-columns: minmax(0, 422px) minmax(0, 1fr); min-height: 164px; padding-top: 1.1rem; padding-bottom: 1.1rem; }
body.ag-v2 .ag-kmk-facts { gap: 0.45rem; }
body.ag-v2 .ag-kmk-head h1 { gap: 0.85rem; }
body.ag-v2 .ag-kmk-badge svg { width: 40px; height: 40px; }
body.ag-v2 .ag-kmk-hero { right: 1.2%; }
/* Short desktop screens: compact Pro card (KYC mockup style) instead of hiding it */
@media (min-width: 1100px) and (max-height: 760px) {
  html body.ag-v2 .ag-shell .ag-nav .ag-side-logo { min-height: 48px; margin-bottom: 0.7rem; padding-bottom: 0.7rem; }
  html body.ag-v2 .ag-shell .ag-nav .app-tabbar-inner { gap: 0.05rem; }
  html body.ag-v2 .ag-shell .ag-nav .tab-item,
  html body.ag-v2 .ag-shell .ag-nav .tab-item.tab-center,
  html body.ag-v2 .ag-shell .ag-nav .ag-nav-more { min-height: 40px; padding-top: 0.4rem; padding-bottom: 0.4rem; }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-pro { display: grid !important; gap: 0.5rem; margin: 0.6rem 0 0; padding: 0.7rem; }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-pro-top { gap: 0.55rem; }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-pro-ico { width: 32px; height: 32px; border-radius: 8px; }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-pro-ico svg { width: 20px; height: 20px; }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-pro strong { display: block; font-size: 0.86rem; color: #ffcf5a; }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-pro strong small { font-size: inherit; font-weight: 800; color: inherit; }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-pro p { font-size: 0.76rem; line-height: 1.3; margin-top: -0.25rem; padding-left: calc(32px + 0.55rem); }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-pro a { min-height: 34px; font-size: 0.84rem; margin-top: 0; }
}

/* KYC mockup — pass 3 */
body.ag-v2 .ag-kmk-name { font-size: 1.65rem; }
body.ag-v2 .ag-kmk-av { width: 92px; height: 92px; }
body.ag-v2 .ag-kmk-perks strong { font-size: 1.05rem; }
body.ag-v2 .ag-kmk-perks p { font-size: 0.86rem; }
@media (min-width: 1100px) and (max-height: 760px) {
  html body.ag-v2 .ag-shell .ag-nav .ag-side-logo { min-height: 46px; margin-bottom: 0.55rem; padding-bottom: 0.55rem; }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-logo img { width: 38px; height: 38px; }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-logo span { font-size: 1.2rem; }
  html body.ag-v2 .ag-shell .ag-nav .tab-item,
  html body.ag-v2 .ag-shell .ag-nav .tab-item.tab-center,
  html body.ag-v2 .ag-shell .ag-nav .ag-nav-more { min-height: 38px; }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-pro { padding: 0.6rem; gap: 0.45rem; margin-top: 0.45rem; }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-pro strong { font-size: 0.8rem; white-space: nowrap; letter-spacing: -0.01em; }
  html body.ag-v2 .ag-shell .ag-nav .ag-side-pro p { font-size: 0.72rem; }
}
@media (min-width: 1100px) and (max-height: 600px) {
  html body.ag-v2 .ag-shell .ag-nav .ag-side-pro { display: none !important; }
}

/* KYC mockup — pass 4: state tint + mobile fixes */
body.ag-v2 .ag-kmk.is-pending .ag-kmk-hero { opacity: 0.75; }
body.ag-v2 .ag-kmk:is(.is-rejected, .is-none) .ag-kmk-hero { opacity: 0.6; filter: saturate(0.7); }
@media (max-width: 1099.98px) {
  body.ag-v2 .ag-kmk-profile { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  body.ag-v2 .ag-kmk-av { width: 72px; height: 72px; }
  body.ag-v2 .ag-kmk-name { font-size: 1.35rem; }
}
@media (max-width: 767.98px) {
  body.ag-v2 .ag-kmk-profile { grid-template-columns: minmax(0, 1fr); padding: 1.1rem; min-height: 0; }
  body.ag-v2 .ag-kmk-av { width: 60px; height: 60px; font-size: 1.65rem; }
  body.ag-v2 .ag-kmk-name { font-size: 1.2rem; }
  body.ag-v2 .ag-kmk-hero { top: 34px; right: -20%; width: 108%; z-index: 0; }
  body.ag-v2 .ag-kmk-head { padding-bottom: 4.6rem; }
  body.ag-v2 .ag-kmk-sub { max-width: 21ch; }
  body.ag-v2 .ag-kmk-badge svg { width: 30px; height: 30px; }
  body.ag-v2 .ag-kmk-facts { gap: 0.6rem; }
}
@media (min-width: 1100px) and (max-width: 1399.98px) {
  body.ag-v2 .ag-kmk-hero { top: -108px; width: min(780px, 72%); right: 0; }
  body.ag-v2 .ag-kmk-perks { gap: 0.85rem; }
  body.ag-v2 .ag-kmk-perks li { gap: 0.7rem; padding: 0.85rem; min-height: 96px; }
  body.ag-v2 .ag-kmk-perk-ico { width: 44px; height: 44px; }
  body.ag-v2 .ag-kmk-perk-ico svg { width: 20px; height: 20px; }
  body.ag-v2 .ag-kmk-perks strong { margin-top: 0.15rem; font-size: 0.92rem; white-space: nowrap; }
  body.ag-v2 .ag-kmk-perks p { font-size: 0.8rem; }
}
@media (min-width: 768px) and (max-width: 1099.98px) {
  body.ag-v2 .ag-kmk-hero { top: -128px; width: min(680px, 78%); right: -6%; }
}
@media (min-width: 768px) and (max-width: 1099.98px) {
  body.ag-v2 .ag-kmk-profile { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(100deg, rgba(24, 74, 54, 0.7) 0%, rgba(14, 44, 33, 0.55) 55%, rgba(10, 34, 26, 0.15) 100%); }
}

/* =====================================================================
   Agent Send — mockup pass (send_mockup.png). Scoped to .ag-smk.
   Form inputs/lookup/chips are intentionally left as-is.
   ===================================================================== */
body.ag-v2 .ag-send.ag-smk { position: relative; isolation: isolate; display: grid; gap: 1.15rem; overflow-x: clip; padding-bottom: 1.5rem; }
body.ag-v2 .ag-smk > * { margin: 0; min-width: 0; }
body.ag-v2 .ag-smk-hero {
  position: absolute; z-index: 0; pointer-events: none;
  top: -72px; left: 24%; width: clamp(320px, 43%, 580px); aspect-ratio: 16 / 9;
  background-image: url("../img/agent/send-hero.jpg");
  background-image: image-set(url("../img/agent/send-hero.webp") type("image/webp"), url("../img/agent/send-hero.jpg") type("image/jpeg"));
  background-size: cover; background-position: center;
  -webkit-mask-image: radial-gradient(58% 58% at 64% 46%, #000 40%, rgba(0, 0, 0, 0.55) 64%, transparent 84%);
  mask-image: radial-gradient(58% 58% at 64% 46%, #000 40%, rgba(0, 0, 0, 0.55) 64%, transparent 84%);
  mix-blend-mode: screen;
}
body.ag-v2 .ag-smk-head {
  position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  min-height: 108px; padding: 0.4rem 0 0;
}
body.ag-v2 .ag-smk-head-copy { max-width: 560px; }
body.ag-v2 .ag-smk-head .ag-mk-eyebrow { margin: 0 0 0.55rem; font-size: 0.78rem; letter-spacing: 0.06em; }
body.ag-v2 .ag-smk-head h1 {
  margin: 0; font-family: "DM Sans", system-ui, sans-serif; font-size: clamp(1.9rem, 1.4rem + 1.1vw, 2.3rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: #fff;
}
body.ag-v2 .ag-smk-head-copy > p:last-child { margin: 0.6rem 0 0; font-size: 1rem; line-height: 1.45; color: rgba(238, 243, 239, 0.86); }
body.ag-v2 .ag-smk-crumb { padding-top: 0.2rem; font-size: 0.9rem; }
body.ag-v2 .ag-smk-crumb [aria-current] { color: var(--mk); font-weight: 600; }

body.ag-v2 .ag-smk .ag-send-grid { position: relative; z-index: 1; display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1100px) {
  body.ag-v2 .ag-smk .ag-send-grid { grid-template-columns: minmax(0, 1.48fr) minmax(320px, 1fr); }
}

/* Left: Member Information shell */
body.ag-v2 .ag-smk .ag-smk-form {
  padding: 1.5rem 1.6rem 1.75rem; border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 40, 31, 0.86), rgba(10, 24, 19, 0.82));
  border: 1px solid rgba(46, 230, 176, 0.16);
}
body.ag-v2 .ag-smk .ag-smk-form .ag-mk-card-head { margin-bottom: 1.6rem; }
body.ag-v2 .ag-smk .ag-smk-form .ag-mk-hico { width: 50px; height: 50px; border-radius: 13px; }
body.ag-v2 .ag-smk .ag-smk-form .ag-mk-card-head h2 { font-size: 1.22rem; }
body.ag-v2 .ag-smk .ag-smk-form .ag-mk-card-head p { font-size: 0.92rem; }
body.ag-v2 .ag-smk .ag-smk-limit { margin: 0; font-size: 0.82rem; }

/* Right column */
body.ag-v2 .ag-smk .ag-smk-side { display: grid; gap: 0.75rem; align-content: start; }
body.ag-v2 .ag-smk .ag-smk-side .ag-mk-card { padding: 1.05rem 1.2rem; border-radius: 16px; }
body.ag-v2 .ag-smk .ag-smk-side h2 { margin: 0; font-family: "DM Sans", system-ui, sans-serif; font-size: 1.02rem; font-weight: 700; color: #fff; letter-spacing: 0; }

body.ag-v2 .ag-smk .ag-smk-bal { display: flex; align-items: center; gap: 1.1rem; min-height: 96px; }
body.ag-v2 .ag-smk-bal-ico {
  width: 64px; height: 56px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; color: var(--mk);
  background: linear-gradient(160deg, rgba(46, 230, 176, 0.22), rgba(46, 230, 176, 0.06)); border: 1px solid rgba(46, 230, 176, 0.3);
}
body.ag-v2 .ag-smk-bal-copy { flex: 1 1 auto; min-width: 0; display: grid; gap: 0.1rem; }
body.ag-v2 .ag-smk-bal-copy > span { font-size: 0.84rem; color: rgba(238, 243, 239, 0.84); }
body.ag-v2 .ag-smk-bal-copy > strong {
  font-family: "DM Sans", system-ui, sans-serif; font-size: clamp(1.5rem, 1.1rem + 0.9vw, 1.85rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.15; color: #fff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
body.ag-v2 .ag-smk-bal-copy > small { font-size: 0.8rem; color: rgba(238, 243, 239, 0.72); }
body.ag-v2 .ag-smk-refresh {
  align-self: flex-start; width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(238, 243, 239, 0.16); text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.3s ease;
}
body.ag-v2 .ag-smk-refresh:hover { color: var(--mk); border-color: rgba(46, 230, 176, 0.5); transform: rotate(60deg); }
body.ag-v2 .ag-smk-refresh:focus-visible { outline: 2px solid var(--mk); outline-offset: 2px; }

body.ag-v2 .ag-smk-card-title { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; color: var(--mk); }
body.ag-v2 .ag-smk .ag-smk-sum .ag-send-sum { margin: 0; }
body.ag-v2 .ag-smk .ag-smk-sum .ag-send-sum > div {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.42rem 0; border: 0;
}
body.ag-v2 .ag-smk .ag-smk-sum .ag-send-sum dt { font-size: 0.86rem; color: rgba(238, 243, 239, 0.78); }
body.ag-v2 .ag-smk .ag-smk-sum .ag-send-sum dd {
  display: inline-flex; align-items: center; gap: 0.45rem; min-width: 0; margin: 0;
  font-size: 0.88rem; font-weight: 700; color: #fff; text-align: right; overflow-wrap: anywhere;
}
body.ag-v2 .ag-smk .ag-smk-sum .ag-send-sum > .is-total { margin-top: 0.5rem; padding-top: 0.85rem; border-top: 1px solid rgba(238, 243, 239, 0.12); }
body.ag-v2 .ag-smk .ag-smk-sum .ag-send-sum > .is-total dt { font-size: 0.95rem; font-weight: 700; color: #fff; }
body.ag-v2 .ag-smk .ag-smk-sum .ag-send-sum > .is-total dd { font-family: "DM Sans", system-ui, sans-serif; font-size: 1.15rem; font-weight: 800; color: #fff; }
body.ag-v2 .ag-smk-sum-av {
  width: 20px; height: 20px; flex-shrink: 0; display: inline-grid; place-items: center; border-radius: 50%;
  font-size: 0.66rem; font-weight: 800; color: #fff; background: #6b2f4f;
}
body.ag-v2 .ag-smk-sum-av[hidden] { display: none; }

body.ag-v2 .ag-smk .ag-smk-secure {
  display: flex; align-items: flex-start; gap: 0.9rem;
  background: linear-gradient(160deg, rgba(46, 230, 176, 0.11), rgba(46, 230, 176, 0.035)); border-color: rgba(46, 230, 176, 0.26);
}
body.ag-v2 .ag-smk-shield {
  width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; color: var(--mk);
  background: rgba(46, 230, 176, 0.14); border: 1px solid rgba(46, 230, 176, 0.3);
}
body.ag-v2 .ag-smk .ag-smk-secure h2 { color: var(--mk); font-size: 0.95rem; margin: 0.45rem 0 0.45rem; }
body.ag-v2 .ag-smk .ag-smk-secure ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.32rem; }
body.ag-v2 .ag-smk .ag-smk-secure li { position: relative; padding-left: 1.4rem; font-size: 0.83rem; color: rgba(238, 243, 239, 0.86); line-height: 1.35; }
body.ag-v2 .ag-smk .ag-smk-secure li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.22rem; width: 0.8rem; height: 0.45rem;
  border-left: 2px solid var(--mk); border-bottom: 2px solid var(--mk); transform: rotate(-45deg); transform-origin: center;
}

body.ag-v2 .ag-smk-recent-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.6rem; }
body.ag-v2 .ag-smk-recent-head a { color: var(--mk); font-size: 0.86rem; font-weight: 700; text-decoration: none; }
body.ag-v2 .ag-smk-recent-head a:hover { text-decoration: underline; }
body.ag-v2 .ag-smk-rows { list-style: none; margin: 0; padding: 0; display: grid; }
body.ag-v2 .ag-smk-rows li {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; align-items: center; gap: 0.75rem;
  padding: 0.72rem 0; border-top: 1px solid rgba(238, 243, 239, 0.07);
}
body.ag-v2 .ag-smk-rows li:first-child { border-top: 0; padding-top: 0.35rem; }
body.ag-v2 .ag-smk-av {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  font-family: "DM Sans", system-ui, sans-serif; font-size: 1.05rem; font-weight: 700; color: #fff;
}
body.ag-v2 .ag-smk-av.is-plum { background: #6b2f4f; }
body.ag-v2 .ag-smk-av.is-rose { background: #8e2f3b; }
body.ag-v2 .ag-smk-av.is-amber { background: #8a6418; }
body.ag-v2 .ag-smk-av.is-teal { background: #1d6b5c; }
body.ag-v2 .ag-smk-av.is-blue { background: #2f4f8e; }
body.ag-v2 .ag-smk-row-who { display: grid; gap: 0.15rem; min-width: 0; }
body.ag-v2 .ag-smk-row-who strong { font-size: 0.88rem; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.ag-v2 .ag-smk-row-who small,
body.ag-v2 .ag-smk-row-meta small { font-size: 0.74rem; color: rgba(238, 243, 239, 0.66); white-space: nowrap; }
body.ag-v2 .ag-smk-row-amt { align-self: start; padding-top: 0.15rem; font-size: 0.88rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.ag-v2 .ag-smk-row-amt.is-void { color: rgba(238, 243, 239, 0.5); text-decoration: line-through; }
body.ag-v2 .ag-smk-row-meta { display: grid; justify-items: end; gap: 0.3rem; }
body.ag-v2 .ag-smk-row-meta .ag-mk-pill { min-height: 20px; font-size: 0.7rem; }
body.ag-v2 .ag-smk-empty { display: grid; justify-items: center; gap: 0.35rem; padding: 1rem 0 0.5rem; text-align: center; }
body.ag-v2 .ag-smk-empty > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--mk); background: rgba(46, 230, 176, 0.12); }
body.ag-v2 .ag-smk-empty strong { color: #fff; }
body.ag-v2 .ag-smk-empty p { margin: 0; font-size: 0.84rem; color: rgba(238, 243, 239, 0.7); }

@media (min-width: 768px) and (max-width: 1099.98px) {
  body.ag-v2 .ag-smk-hero { left: auto; right: 2%; width: min(520px, 62%); top: -64px; }
  body.ag-v2 .ag-smk .ag-smk-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.ag-v2 .ag-smk .ag-smk-recent { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
  body.ag-v2 .ag-send.ag-smk { gap: 0.95rem; }
  body.ag-v2 .ag-smk-hero { left: auto; right: -14%; top: -40px; width: min(380px, 92%); opacity: 0.75; }
  body.ag-v2 .ag-smk-head { flex-direction: column; gap: 0.6rem; min-height: 0; padding-top: 0.2rem; }
  body.ag-v2 .ag-smk-head h1 { font-size: 1.75rem; }
  body.ag-v2 .ag-smk-head-copy > p:last-child { font-size: 0.9rem; max-width: 30ch; }
  body.ag-v2 .ag-smk-crumb { font-size: 0.82rem; }
  body.ag-v2 .ag-smk .ag-smk-form { padding: 1.1rem 1rem 1.25rem; border-radius: 16px; }
  body.ag-v2 .ag-smk .ag-smk-form .ag-mk-card-head { margin-bottom: 1.1rem; }
  body.ag-v2 .ag-smk .ag-smk-form .ag-mk-hico { width: 44px; height: 44px; }
  body.ag-v2 .ag-smk .ag-smk-side .ag-mk-card { padding: 0.95rem 1rem; }
  body.ag-v2 .ag-smk-bal-ico { width: 52px; height: 48px; }
  body.ag-v2 .ag-smk-rows li { grid-template-columns: 38px minmax(0, 1fr) auto; row-gap: 0.25rem; }
  body.ag-v2 .ag-smk-av { width: 38px; height: 38px; font-size: 0.95rem; }
  body.ag-v2 .ag-smk-row-amt { grid-column: 3; grid-row: 1; }
  body.ag-v2 .ag-smk-row-meta { grid-column: 2 / 4; grid-row: 2; display: flex; justify-content: space-between; align-items: center; }
}
/* Send mockup — pass 2 */
body.ag-v2 .ag-smk-hero {
  -webkit-mask-image: radial-gradient(54% 54% at 66% 46%, #000 34%, rgba(0, 0, 0, 0.5) 58%, transparent 76%);
  mask-image: radial-gradient(54% 54% at 66% 46%, #000 34%, rgba(0, 0, 0, 0.5) 58%, transparent 76%);
}
body.ag-v2 .ag-smk .ag-smk-form .ag-apply-field { margin-top: 0.35rem; }
body.ag-v2 .ag-smk .ag-smk-form .ag-send-amount-meta { margin-bottom: 0.35rem; }
body.ag-v2 .ag-smk .ag-smk-form .ag-send-submit { margin-top: 0.9rem; }
@media (max-width: 767.98px) {
  body.ag-v2 .ag-smk-hero { right: -26%; top: -46px; width: min(360px, 90%); opacity: 0.7; }
  body.ag-v2 .ag-smk-head .ag-smk-crumb { order: -1; }
}
/* Send mockup — pass 3 (right column rhythm) */
@media (min-width: 768px) {
  body.ag-v2 .ag-smk .ag-smk-sum .ag-send-sum > div { padding: 0.32rem 0; }
  body.ag-v2 .ag-smk .ag-smk-sum .ag-send-sum > .is-total { margin-top: 0.4rem; padding-top: 0.7rem; }
  body.ag-v2 .ag-smk .ag-smk-side .ag-mk-card.ag-smk-secure { padding-block: 0.9rem; }
  body.ag-v2 .ag-smk-rows li { padding: 0.58rem 0; }
  body.ag-v2 .ag-smk .ag-smk-side .ag-mk-card.ag-smk-recent { padding-bottom: 0.7rem; }
}
@media (max-width: 767.98px) {
  body.ag-v2 .ag-smk-hero { right: -10%; top: -34px; width: min(300px, 78%); opacity: 0.62; }
}
@media (min-width: 768px) and (max-width: 1099.98px) {
  body.ag-v2 .ag-smk .ag-send-grid { grid-template-columns: minmax(0, 1fr); }
  body.ag-v2 .ag-smk-hero { left: 30%; right: auto; width: min(460px, 52%); top: -58px; }
}
@media (min-width: 768px) and (max-width: 1099.98px) {
  body.ag-v2 .ag-smk .ag-smk-side { align-items: start; }
}

/* Agent wallet — no agent deposit methods (admin has none enabled) */
body.ag-v2 .ag-float-empty {
  display: grid; justify-items: center; gap: 0.45rem; padding: 2rem 1.25rem 2.2rem; text-align: center;
  border-radius: 14px; border: 1px dashed rgba(46, 230, 176, 0.24); background: rgba(46, 230, 176, 0.04);
}
body.ag-v2 .ag-float-empty-ico {
  width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 0.35rem; border-radius: 14px; color: var(--mk, #2ee6b0);
  background: linear-gradient(160deg, rgba(46, 230, 176, 0.2), rgba(46, 230, 176, 0.06)); border: 1px solid rgba(46, 230, 176, 0.3);
}
body.ag-v2 .ag-float-empty strong { font-family: "DM Sans", system-ui, sans-serif; font-size: 1.05rem; color: #fff; }
body.ag-v2 .ag-float-empty p { margin: 0; max-width: 34ch; font-size: 0.9rem; line-height: 1.45; color: rgba(238, 243, 239, 0.74); }

/* =====================================================================
   Agent Transactions — mockup pass (transactions_mockup.png). Scoped .ag-txm
   ===================================================================== */
body.ag-v2 .ag-page.ag-txm { position: relative; isolation: isolate; display: grid; gap: 1.1rem; max-width: none; overflow-x: clip; padding-bottom: 1.5rem; }
body.ag-v2 .ag-txm > * { margin: 0; min-width: 0; }
body.ag-v2 .ag-txm .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.ag-v2 .ag-txm-hero {
  position: absolute; z-index: 0; pointer-events: none;
  top: -96px; left: 30%; width: clamp(360px, 50%, 680px); aspect-ratio: 16 / 9;
  background-image: url("../img/agent/transactions-hero.jpg");
  background-image: image-set(url("../img/agent/transactions-hero.webp") type("image/webp"), url("../img/agent/transactions-hero.jpg") type("image/jpeg"));
  background-size: cover; background-position: center;
  -webkit-mask-image: radial-gradient(56% 56% at 62% 48%, #000 36%, rgba(0, 0, 0, 0.5) 60%, transparent 80%);
  mask-image: radial-gradient(56% 56% at 62% 48%, #000 36%, rgba(0, 0, 0, 0.5) 60%, transparent 80%);
  mix-blend-mode: screen;
}
body.ag-v2 .ag-txm-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 128px; padding-top: 0.2rem; }
body.ag-v2 .ag-txm-head-copy { max-width: 640px; }
body.ag-v2 .ag-txm-head .ag-mk-eyebrow { margin: 0 0 0.45rem; font-size: 0.8rem; letter-spacing: 0.06em; }
body.ag-v2 .ag-txm-head h1 { margin: 0; font-family: "DM Sans", system-ui, sans-serif; font-size: clamp(2rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: #fff; }
body.ag-v2 .ag-txm-head-copy > p:last-child { margin: 0.7rem 0 0; font-size: 1rem; line-height: 1.45; color: rgba(238, 243, 239, 0.86); }

body.ag-v2 .ag-txm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; flex-shrink: 0;
  min-height: 42px; padding: 0 1.15rem; border-radius: 12px; border: 0;
  font-weight: 700; font-size: 0.92rem; color: var(--mk-ink); text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, #4ff5c4, var(--mk) 55%, #22d6a2);
  box-shadow: 0 10px 26px rgba(46, 230, 176, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: filter 0.15s ease, transform 0.15s ease;
}
body.ag-v2 .ag-txm-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
body.ag-v2 .ag-txm-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
body.ag-v2 .ag-txm-btn--lg { position: relative; z-index: 1; min-height: 52px; padding: 0 2rem; border-radius: 14px; font-size: 1rem; }
body.ag-v2 .ag-txm-btn.is-ghost { color: #fff; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(238, 243, 239, 0.2); box-shadow: none; }
body.ag-v2 .ag-txm-btn.is-ghost:hover { color: var(--mk); border-color: rgba(46, 230, 176, 0.5); }

/* Stats */
body.ag-v2 .ag-txm-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
body.ag-v2 .ag-txm-stat {
  --tone: 46, 230, 176;
  position: relative; display: flex; align-items: center; gap: 1rem; min-height: 128px; padding: 1rem 2.2rem 1rem 1rem;
  border-radius: 16px; text-decoration: none; color: inherit; overflow: hidden;
  background: linear-gradient(160deg, rgba(var(--tone), 0.14), rgba(var(--tone), 0.04) 70%), rgba(10, 22, 18, 0.82);
  border: 1px solid rgba(var(--tone), 0.28);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
body.ag-v2 .ag-txm-stat:hover { border-color: rgba(var(--tone), 0.55); transform: translateY(-1px); }
body.ag-v2 .ag-txm-stat:focus-visible { outline: 2px solid rgb(var(--tone)); outline-offset: 2px; }
body.ag-v2 .ag-txm-stat.is-blue { --tone: 56, 140, 255; background: linear-gradient(160deg, rgba(40, 110, 230, 0.26), rgba(20, 60, 140, 0.12) 70%), rgba(8, 18, 32, 0.86); }
body.ag-v2 .ag-txm-stat.is-gold { --tone: 236, 168, 40; background: linear-gradient(160deg, rgba(200, 140, 30, 0.3), rgba(120, 80, 10, 0.14) 70%), rgba(24, 18, 8, 0.86); }
body.ag-v2 .ag-txm-tile {
  width: 62px; height: 62px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; color: rgb(var(--tone));
  background: linear-gradient(160deg, rgba(var(--tone), 0.3), rgba(var(--tone), 0.1)); border: 1px solid rgba(var(--tone), 0.38);
}
body.ag-v2 .ag-txm-stat.is-blue .ag-txm-tile { color: #fff; background: linear-gradient(160deg, #2f7bf0, #1c56c4); border-color: rgba(120, 180, 255, 0.5); }
body.ag-v2 .ag-txm-stat.is-gold .ag-txm-tile { color: #fff3d6; background: linear-gradient(160deg, #d99a22, #a86d0f); border-color: rgba(255, 200, 90, 0.5); }
body.ag-v2 .ag-txm-stat-copy { position: relative; z-index: 1; display: grid; gap: 0.18rem; min-width: 0; }
body.ag-v2 .ag-txm-label { font-size: 0.86rem; color: rgba(238, 243, 239, 0.86); }
body.ag-v2 .ag-txm-value { font-family: "DM Sans", system-ui, sans-serif; font-size: clamp(1.35rem, 0.9rem + 0.9vw, 1.8rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.ag-v2 .ag-txm-delta { font-size: 0.8rem; font-weight: 700; color: rgba(238, 243, 239, 0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.ag-v2 .ag-txm-delta small { font-weight: 500; color: rgba(238, 243, 239, 0.55); }
body.ag-v2 .ag-txm-delta.is-up { color: #3ff0b8; }
body.ag-v2 .ag-txm-delta.is-down { color: #ff6b6b; }
body.ag-v2 .ag-txm-delta.is-flat { font-weight: 500; }
body.ag-v2 .ag-txm-sub { font-size: 0.8rem; color: rgba(238, 243, 239, 0.72); }
body.ag-v2 .ag-txm-spark { position: absolute; right: 2.1rem; top: 1.7rem; width: 34%; max-width: 130px; height: 34px; opacity: 0.95; }
body.ag-v2 .ag-txm-chev { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); color: rgba(238, 243, 239, 0.7); display: grid; }

/* Cards */
body.ag-v2 .ag-txm-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
body.ag-v2 .ag-txm .ag-txm-card { padding: 1.15rem 0 0.9rem; border-radius: 18px; background: linear-gradient(180deg, rgba(14, 34, 27, 0.88), rgba(9, 21, 17, 0.84)); scroll-margin-top: 90px; }
body.ag-v2 .ag-txm-card-head { display: flex; align-items: center; gap: 1rem; padding: 0 1.15rem; margin-bottom: 1.1rem; }
body.ag-v2 .ag-txm-card-head > div { flex: 1 1 auto; min-width: 0; }
body.ag-v2 .ag-txm-card-head h2 { margin: 0; font-family: "DM Sans", system-ui, sans-serif; font-size: 1.32rem; font-weight: 700; color: #fff; }
body.ag-v2 .ag-txm-card-head p { margin: 0.2rem 0 0; font-size: 0.9rem; color: rgba(238, 243, 239, 0.78); }
body.ag-v2 .ag-txm-card-head .ag-mk-hico { width: 50px; height: 50px; border-radius: 13px; }
body.ag-v2 .ag-txm-card-head .ag-txm-btn { min-height: 46px; padding: 0 1.4rem; }

body.ag-v2 .ag-txm-tools { display: grid; grid-template-columns: minmax(0, 1fr) 172px; gap: 0.9rem; padding: 0 1.15rem; margin-bottom: 1rem; }
body.ag-v2 .ag-txm-search, body.ag-v2 .ag-txm-select { position: relative; display: flex; align-items: center; min-height: 44px; border-radius: 11px; background: rgba(4, 12, 9, 0.6); border: 1px solid rgba(238, 243, 239, 0.14); }
body.ag-v2 .ag-txm-search:focus-within, body.ag-v2 .ag-txm-select:focus-within { border-color: rgba(46, 230, 176, 0.55); box-shadow: 0 0 0 3px rgba(46, 230, 176, 0.12); }
body.ag-v2 .ag-txm-search svg { position: absolute; left: 0.85rem; color: rgba(238, 243, 239, 0.7); pointer-events: none; }
body.ag-v2 .ag-txm-search input { width: 100%; min-width: 0; height: 42px; padding: 0 0.9rem 0 2.6rem; border: 0; background: transparent; color: #fff; font: inherit; font-size: 0.88rem; outline: none; box-shadow: none; }
body.ag-v2 .ag-txm-search input::placeholder { color: rgba(238, 243, 239, 0.5); }
body.ag-v2 .ag-txm-select select {
  width: 100%; height: 42px; padding: 0 2.2rem 0 0.9rem; border: 0; border-radius: 11px; background: transparent; color: #fff; font: inherit; font-size: 0.88rem; font-weight: 600;
  -webkit-appearance: none; appearance: none; cursor: pointer; outline: none; box-shadow: none;
}
body.ag-v2 .ag-txm-select::after { content: ""; position: absolute; right: 0.95rem; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 2px solid rgba(238, 243, 239, 0.75); border-bottom: 2px solid rgba(238, 243, 239, 0.75); transform: rotate(45deg); pointer-events: none; }
body.ag-v2 .ag-txm-select option { background: #0c1a15; color: #fff; }

body.ag-v2 .ag-txm-pills { display: flex; gap: 0.45rem; padding: 0 1.15rem; margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; }
body.ag-v2 .ag-txm-pills::-webkit-scrollbar { display: none; }
body.ag-v2 .ag-txm-pills button {
  flex: 1 0 auto; min-height: 38px; padding: 0 1.05rem; border-radius: 999px; border: 1px solid rgba(238, 243, 239, 0.12);
  background: rgba(4, 12, 9, 0.5); color: #fff; font: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
body.ag-v2 .ag-txm-pills button:hover { border-color: rgba(46, 230, 176, 0.45); }
body.ag-v2 .ag-txm-pills button.is-on { color: var(--mk-ink); border-color: transparent; background: linear-gradient(180deg, #4ff5c4, var(--mk)); box-shadow: 0 6px 18px rgba(46, 230, 176, 0.25); }
body.ag-v2 .ag-txm-pills button:focus-visible { outline: 2px solid var(--mk); outline-offset: 2px; }

body.ag-v2 .ag-txm-table-wrap { position: relative; }
body.ag-v2 .ag-txm-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
body.ag-v2 .ag-txm-table thead th {
  padding: 0.7rem 0.6rem; text-align: left; font-size: 0.82rem; font-weight: 600; color: rgba(238, 243, 239, 0.86);
  background: rgba(255, 255, 255, 0.025); border-block: 1px solid rgba(238, 243, 239, 0.06); white-space: nowrap;
}
body.ag-v2 .ag-txm-table th:first-child, body.ag-v2 .ag-txm-table td:first-child { padding-left: 1.15rem; width: 2.4rem; }
body.ag-v2 .ag-txm-table th:last-child, body.ag-v2 .ag-txm-table td:last-child { padding-right: 1.15rem; }
body.ag-v2 .ag-txm-table td { padding: 0.62rem 0.6rem; border-bottom: 1px solid rgba(238, 243, 239, 0.06); vertical-align: middle; color: #fff; }
body.ag-v2 .ag-txm-table tbody tr:hover td { background: rgba(46, 230, 176, 0.03); }
body.ag-v2 .ag-txm-table .is-r { text-align: right; }
body.ag-v2 .ag-txm-num { font-weight: 600; color: rgba(238, 243, 239, 0.9); }
body.ag-v2 .ag-txm-member { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
body.ag-v2 .ag-txm-member > span:last-child { display: grid; min-width: 0; }
body.ag-v2 .ag-txm-member strong, body.ag-v2 .ag-txm-desc strong { font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.ag-v2 .ag-txm-member small, body.ag-v2 .ag-txm-desc small { font-size: 0.8rem; color: rgba(238, 243, 239, 0.72); }
body.ag-v2 .ag-txm-desc { display: table-cell; }
body.ag-v2 .ag-txm-desc strong, body.ag-v2 .ag-txm-desc small { display: block; }
body.ag-v2 .ag-txm-av { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 9px; font-weight: 700; color: #fff; font-size: 0.95rem; }
body.ag-v2 .ag-txm-av.is-teal { background: #13795c; }
body.ag-v2 .ag-txm-av.is-lime { background: #8a9a1e; }
body.ag-v2 .ag-txm-av.is-red { background: #c24a44; }
body.ag-v2 .ag-txm-av.is-cyan { background: #138a9a; }
body.ag-v2 .ag-txm-av.is-violet { background: #5b3fd6; }
body.ag-v2 .ag-txm-av.is-amber { background: #b07a14; }
body.ag-v2 .ag-txm-av.is-rose { background: #a63a6b; }
body.ag-v2 .ag-txm-amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.ag-v2 .ag-txm-amt.is-void { color: rgba(238, 243, 239, 0.5); text-decoration: line-through; }
body.ag-v2 .ag-txm-when span, body.ag-v2 .ag-txm-when small { display: block; white-space: nowrap; }
body.ag-v2 .ag-txm-when span { color: rgba(238, 243, 239, 0.92); }
body.ag-v2 .ag-txm-when small { font-size: 0.86rem; color: rgba(238, 243, 239, 0.86); }
body.ag-v2 .ag-txm-table .ag-mk-pill { min-height: 24px; font-size: 0.78rem; }
body.ag-v2 .ag-txm-type { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: #fff; }
body.ag-v2 .ag-txm-type.is-green { background: linear-gradient(160deg, #1fb36b, #128552); color: #d9ffe9; }
body.ag-v2 .ag-txm-type.is-red { background: linear-gradient(160deg, #c2463e, #8f2c26); }
body.ag-v2 .ag-txm-type.is-orange, body.ag-v2 .ag-txm-type.is-gold { background: linear-gradient(160deg, #c98a1c, #8f5f0e); color: #fff1cf; }
body.ag-v2 .ag-txm-type.is-blue, body.ag-v2 .ag-txm-type.is-navy { background: linear-gradient(160deg, #2f6fd6, #1b4aa0); color: #e6f0ff; }
body.ag-v2 .ag-txm-signed { font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.ag-v2 .ag-txm-signed.is-pos { color: #3ff0b8; }
body.ag-v2 .ag-txm-signed.is-neg { color: #ff5c5c; }
body.ag-v2 .ag-txm-bal { color: rgba(238, 243, 239, 0.86); font-variant-numeric: tabular-nums; white-space: nowrap; }
body.ag-v2 .ag-txm-nomatch { margin: 0; padding: 1.4rem 1.15rem; text-align: center; font-size: 0.9rem; color: rgba(238, 243, 239, 0.7); }

body.ag-v2 .ag-txm-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; padding: 1rem 1.15rem 0.2rem; }
body.ag-v2 .ag-txm-foot p { margin: 0; font-size: 0.92rem; color: rgba(238, 243, 239, 0.86); }
body.ag-v2 .ag-txm-pager { display: flex; align-items: center; gap: 0.4rem; }
body.ag-v2 .ag-txm-pager[hidden] { display: none; }
body.ag-v2 .ag-txm-pager button {
  min-width: 34px; height: 34px; padding: 0 0.55rem; border-radius: 9px; border: 1px solid rgba(238, 243, 239, 0.12);
  background: rgba(255, 255, 255, 0.04); color: #fff; font: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer; display: inline-grid; place-items: center;
}
body.ag-v2 .ag-txm-pager button:hover:not(:disabled) { border-color: rgba(46, 230, 176, 0.5); }
body.ag-v2 .ag-txm-pager button.is-arrow { background: rgba(46, 230, 176, 0.1); border-color: rgba(46, 230, 176, 0.25); }
body.ag-v2 .ag-txm-pager button.is-on { color: #fff; border-color: rgba(46, 230, 176, 0.75); background: rgba(46, 230, 176, 0.16); box-shadow: 0 0 0 1px rgba(46, 230, 176, 0.25), 0 0 14px rgba(46, 230, 176, 0.25); }
body.ag-v2 .ag-txm-pager button:disabled { opacity: 0.45; cursor: default; }
body.ag-v2 .ag-txm-pager button:focus-visible { outline: 2px solid var(--mk); outline-offset: 2px; }
body.ag-v2 .ag-txm-gap { padding: 0 0.15rem; color: rgba(238, 243, 239, 0.7); }
body.ag-v2 .ag-txm-more { margin: 0.6rem 1.15rem 0; font-size: 0.8rem; color: rgba(238, 243, 239, 0.62); }
body.ag-v2 .ag-txm-empty { display: grid; justify-items: center; gap: 0.4rem; padding: 2.2rem 1.15rem 2rem; text-align: center; }
body.ag-v2 .ag-txm-empty > span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; color: var(--mk); background: rgba(46, 230, 176, 0.12); border: 1px solid rgba(46, 230, 176, 0.25); }
body.ag-v2 .ag-txm-empty strong { color: #fff; font-size: 1.02rem; }
body.ag-v2 .ag-txm-empty p { margin: 0; font-size: 0.88rem; color: rgba(238, 243, 239, 0.7); }

@media (max-width: 1399.98px) {
  body.ag-v2 .ag-txm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1279.98px) {
  body.ag-v2 .ag-txm-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  body.ag-v2 .ag-page.ag-txm { gap: 0.95rem; }
  body.ag-v2 .ag-txm-hero { left: auto; right: -18%; top: -34px; width: min(340px, 88%); opacity: 0.6; }
  body.ag-v2 .ag-txm-head { flex-direction: column; align-items: stretch; min-height: 0; gap: 0.9rem; }
  body.ag-v2 .ag-txm-head h1 { font-size: 1.8rem; }
  body.ag-v2 .ag-txm-head-copy > p:last-child { font-size: 0.9rem; max-width: 34ch; }
  body.ag-v2 .ag-txm-btn--lg { min-height: 46px; }
  body.ag-v2 .ag-txm-stats { gap: 0.65rem; }
  body.ag-v2 .ag-txm-stat { flex-direction: column; align-items: flex-start; gap: 0.6rem; min-height: 0; padding: 0.85rem 0.8rem; }
  body.ag-v2 .ag-txm-tile { width: 42px; height: 42px; border-radius: 11px; }
  body.ag-v2 .ag-txm-tile svg { width: 20px; height: 20px; }
  body.ag-v2 .ag-txm-value { font-size: 1.2rem; }
  body.ag-v2 .ag-txm-delta small { display: none; }
  body.ag-v2 .ag-txm-delta, body.ag-v2 .ag-txm-sub, body.ag-v2 .ag-txm-label { font-size: 0.74rem; white-space: normal; }
  body.ag-v2 .ag-txm-spark { top: 0.95rem; right: 1.9rem; width: 40%; height: 26px; }
  body.ag-v2 .ag-txm-chev { top: 1.35rem; transform: none; right: 0.5rem; }
  body.ag-v2 .ag-txm .ag-txm-card { padding-top: 1rem; border-radius: 16px; }
  body.ag-v2 .ag-txm-card-head { flex-wrap: wrap; padding: 0 0.95rem; gap: 0.75rem; }
  body.ag-v2 .ag-txm-card-head .ag-mk-hico { width: 42px; height: 42px; }
  body.ag-v2 .ag-txm-card-head h2 { font-size: 1.15rem; }
  body.ag-v2 .ag-txm-card-head .ag-txm-btn { min-height: 40px; padding: 0 0.95rem; font-size: 0.85rem; }
  body.ag-v2 .ag-txm-tools { grid-template-columns: minmax(0, 1fr) 128px; gap: 0.55rem; padding: 0 0.95rem; }
  body.ag-v2 .ag-txm-pills { padding: 0 0.95rem; }
  body.ag-v2 .ag-txm-pills button { flex: 0 0 auto; }
  /* Tables → card lists */
  body.ag-v2 .ag-txm-table thead { display: none; }
  body.ag-v2 .ag-txm-table, body.ag-v2 .ag-txm-table tbody { display: block; }
  body.ag-v2 .ag-txm-table tr[data-row] { display: grid; align-items: center; column-gap: 0.7rem; row-gap: 0.3rem; padding: 0.75rem 0.95rem; border-bottom: 1px solid rgba(238, 243, 239, 0.07); }
  body.ag-v2 .ag-txm-table tr[data-row][hidden] { display: none; }
  body.ag-v2 .ag-txm-table td { display: block; padding: 0 !important; border: 0; width: auto !important; }
  body.ag-v2 .ag-txm-table td.ag-txm-num { display: none; }
  body.ag-v2 .ag-txm-table--cash tr[data-row] { grid-template-columns: minmax(0, 1fr) auto; }
  body.ag-v2 .ag-txm-table--cash td[data-label="Member"] { grid-column: 1; grid-row: 1; }
  body.ag-v2 .ag-txm-table--cash td.ag-txm-amt { grid-column: 2; grid-row: 1; text-align: right; }
  body.ag-v2 .ag-txm-table--cash td.ag-txm-when { grid-column: 1; grid-row: 2; padding-left: calc(36px + 0.7rem) !important; }
  body.ag-v2 .ag-txm-table--cash td.ag-txm-when span, body.ag-v2 .ag-txm-table--cash td.ag-txm-when small { display: inline; font-size: 0.78rem; color: rgba(238, 243, 239, 0.7); }
  body.ag-v2 .ag-txm-table--cash td.ag-txm-when small::before { content: " · "; }
  body.ag-v2 .ag-txm-table--cash td[data-label="Status"] { grid-column: 2; grid-row: 2; text-align: right; }
  body.ag-v2 .ag-txm-table--ledger tr[data-row] { grid-template-columns: 36px minmax(0, 1fr) auto; }
  body.ag-v2 .ag-txm-table--ledger td[data-label="Type"] { grid-column: 1; grid-row: 1 / span 2; }
  body.ag-v2 .ag-txm-table--ledger td.ag-txm-desc { grid-column: 2; grid-row: 1; min-width: 0; }
  body.ag-v2 .ag-txm-table--ledger td.ag-txm-signed { grid-column: 3; grid-row: 1; font-size: 0.95rem; }
  body.ag-v2 .ag-txm-table--ledger td.ag-txm-when { grid-column: 2; grid-row: 2; }
  body.ag-v2 .ag-txm-table--ledger td.ag-txm-when span, body.ag-v2 .ag-txm-table--ledger td.ag-txm-when small { display: inline; font-size: 0.76rem; color: rgba(238, 243, 239, 0.68); }
  body.ag-v2 .ag-txm-table--ledger td.ag-txm-when small::before { content: " · "; }
  body.ag-v2 .ag-txm-table--ledger td.ag-txm-bal { grid-column: 3; grid-row: 2; font-size: 0.76rem; }
  body.ag-v2 .ag-txm-table--ledger td.ag-txm-bal::before { content: "Bal "; color: rgba(238, 243, 239, 0.5); }
  body.ag-v2 .ag-txm-desc strong { font-size: 0.86rem; }
  body.ag-v2 .ag-txm-desc small { font-size: 0.74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.ag-v2 .ag-txm-foot { padding: 0.85rem 0.95rem 0.1rem; justify-content: center; }
  body.ag-v2 .ag-txm-foot p { width: 100%; text-align: center; font-size: 0.84rem; }
  body.ag-v2 .ag-txm-more { margin-inline: 0.95rem; text-align: center; }
}
/* Transactions mockup — pass 2 */
body.ag-v2 .ag-txm-head-copy { max-width: 780px; }
body.ag-v2 .ag-txm-spark { top: auto; bottom: 1.05rem; right: 2.2rem; width: 24%; max-width: 96px; height: 30px; }
@media (max-width: 767.98px) {
  body.ag-v2 .ag-txm-spark { bottom: auto; top: 0.95rem; width: 40%; max-width: 110px; height: 26px; }
}
@media (max-width: 767.98px) {
  body.ag-v2 .ag-txm-card-head { flex-wrap: nowrap; }
  body.ag-v2 .ag-txm-card-head p { font-size: 0.8rem; }
}
body.ag-v2 .ag-txm .ag-txm-select select { background: transparent none !important; border: 0 !important; box-shadow: none !important; min-height: 0; }
@media (max-width: 767.98px) {
  body.ag-v2 .ag-txm-tools { grid-template-columns: minmax(0, 1fr) 118px; }
}
/* Transactions mockup — pass 3: app's enhanced select inside the status filter; single column below 1440 */
body.ag-v2 .ag-txm-select::after { content: none; }
body.ag-v2 .ag-txm-select .es-wrap { width: 100%; }
body.ag-v2 .ag-txm-select .es-trigger {
  width: 100%; min-height: 42px; padding: 0 0.85rem; border: 0 !important; border-radius: 11px; background: transparent !important; box-shadow: none !important;
  color: #fff; font-size: 0.88rem; font-weight: 600;
}
body.ag-v2 .ag-txm-select .es-chevron { width: auto; height: auto; background: none !important; border: 0 !important; box-shadow: none !important; color: rgba(238, 243, 239, 0.8); }
@media (max-width: 1439.98px) {
  body.ag-v2 .ag-txm-grid { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================
   Agent Commission — open header (no boxed card). Scoped .ag-cmh
   ===================================================================== */
body.ag-v2 .ag-page-polish.ag-cmh { position: relative; isolation: isolate; overflow-x: clip; }
body.ag-v2 .ag-cmh > * { position: relative; z-index: 1; }
body.ag-v2 .ag-cmh > .ag-cmh-hero {
  position: absolute; z-index: 0; pointer-events: none;
  top: -18px; right: 150px; width: clamp(400px, 50%, 660px); aspect-ratio: 610 / 154;
  background-image: url("../img/agent/commission-hero.jpg");
  background-image: image-set(url("../img/agent/commission-hero.webp") type("image/webp"), url("../img/agent/commission-hero.jpg") type("image/jpeg"));
  background-size: 100% 100%; background-repeat: no-repeat;
  -webkit-mask-image: radial-gradient(50% 120% at 58% 34%, #000 40%, rgba(0, 0, 0, 0.45) 64%, transparent 84%), linear-gradient(180deg, transparent 0%, #000 22%, #000 46%, rgba(0, 0, 0, 0.35) 72%, transparent 96%);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(50% 120% at 58% 34%, #000 40%, rgba(0, 0, 0, 0.45) 64%, transparent 84%), linear-gradient(180deg, transparent 0%, #000 22%, #000 46%, rgba(0, 0, 0, 0.35) 72%, transparent 96%);
  mask-composite: intersect;
  mix-blend-mode: screen;
}
body.ag-v2 .ag-cmh-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 128px; margin: 0; padding: 0.2rem 0 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
body.ag-v2 .ag-cmh-copy { min-width: 0; max-width: 640px; }
body.ag-v2 .ag-cmh-head .ag-mk-eyebrow { margin: 0 0 0.45rem; font-size: 0.8rem; letter-spacing: 0.06em; }
body.ag-v2 .ag-cmh-head h1 { margin: 0; font-family: "DM Sans", system-ui, sans-serif; font-size: clamp(2rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: #fff; overflow-wrap: anywhere; }
body.ag-v2 .ag-cmh-sub { margin: 0.7rem 0 0; font-size: 1rem; line-height: 1.45; color: rgba(238, 243, 239, 0.86); }
body.ag-v2 .ag-head-btn.ag-cmh-btn { justify-content: center; min-height: 52px; padding: 0 1.8rem; border-radius: 14px; font-size: 1rem; font-weight: 700; color: var(--mk-ink); background: linear-gradient(180deg, #4ff5c4, var(--mk) 55%, #22d6a2); box-shadow: 0 12px 28px -14px rgba(46, 230, 176, 0.75); }
@media (min-width: 768px) and (max-width: 1099.98px) {
  body.ag-v2 .ag-cmh > .ag-cmh-hero { right: 110px; width: clamp(340px, 52%, 500px); top: -10px; }
}
@media (max-width: 767.98px) {
  body.ag-v2 .ag-cmh > .ag-cmh-hero { right: -26%; top: -8px; width: min(420px, 110%); opacity: 0.6; }
  body.ag-v2 .ag-cmh-head { flex-direction: column; align-items: stretch; min-height: 0; gap: 0.9rem; }
  body.ag-v2 .ag-cmh-head h1 { font-size: 1.8rem; }
  body.ag-v2 .ag-cmh-sub { font-size: 0.9rem; max-width: 34ch; }
  body.ag-v2 .ag-head-btn.ag-cmh-btn { min-height: 46px; }
  body.ag-v2 .ag-head-btn.ag-cmh-btn svg { display: inline-block; }
}
