.drawer-nav[hidden] { display: none !important; }
.auth-brand { color: inherit; text-decoration: none; }
.area-label { color: #b7cee9; font-size: 12px; font-weight: 700; letter-spacing: .06em; margin: 12px 10px 8px; text-transform: uppercase; }
.area-nav-group { margin: 4px 0; }
.area-nav-group > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: #d8e8ff; font-weight: 700; }
.area-nav-group > summary::before { content: "›"; transform: rotate(90deg); }
.area-nav-group:not([open]) > summary::before { transform: none; }
.area-nav-group .nav-link { margin-left: 12px; width: calc(100% - 12px); }
.drawer-nav .nav-link { min-height: 44px; overflow-wrap: anywhere; }
.drawer-head .brand { min-width: 0; }
.drawer-head .brand > * { min-width: 0; }
.lp-nav > a { color: inherit; text-decoration: none; font: inherit; white-space: nowrap; padding: 8px; }
:root {
  --navy: #071949;
  --navy-2: #0d2d75;
  --blue: #1464f4;
  --cyan: #1db8ff;
  --amber: #ffb400;
  --ink: #14213d;
  --muted: #70809d;
  --line: #e7ecf5;
  --soft: #f5f8fd;
  --green: #15956a;
  --red: #d94f60;
  --sidebar: 245px;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: #f7f9fc;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; background: #f7f9fc; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.app-shell { display: flex; min-height: 100vh; }
.app-shell.auth-mode .sidebar { display: none; }
.app-shell.auth-mode .main-content { margin-left: 0; width: 100%; }
.app-shell.auth-mode .topbar { display: none; }
.sidebar {
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 28px 16px 18px;
  z-index: 5;
}
.brand, .mobile-brand { display: flex; align-items: center; gap: 11px; }
.brand { padding: 0 7px 34px; }
.brand-mark { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 50%; background: transparent; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-copy { display: grid; line-height: 1; gap: 4px; }
.brand-copy strong { font: 700 16px "Space Grotesk", sans-serif; letter-spacing: .055em; white-space: nowrap; }
.brand-copy small { color: #6dcfff; font-size: 8px; font-weight: 700; letter-spacing: .22em; }
.sidebar-label { color: #7185bc; font-size: 10px; font-weight: 700; letter-spacing: .16em; padding: 0 13px 12px; text-transform: uppercase; }
.admin-label { margin-top: 29px; }
.primary-nav { display: grid; gap: 4px; }
.nav-link { color: #aab9dd; display: flex; align-items: center; gap: 12px; border-radius: 10px; font-size: 13px; font-weight: 600; padding: 12px 12px; transition: .2s ease; }
.nav-link:hover { background: rgba(255,255,255,.07); color: white; }
.nav-link.active { background: linear-gradient(100deg, rgba(34, 116, 255, .95), rgba(25, 85, 206, .8)); box-shadow: 0 8px 18px rgba(0, 0, 0, .17); color: #fff; }
.nav-icon { display: inline-grid; place-items: center; font-size: 17px; width: 18px; color: #6dccff; font-weight: 500; }
.nav-link.active .nav-icon { color: white; }
.nav-count { margin-left: auto; background: rgba(255,255,255,.18); border-radius: 99px; color: #fff; font-size: 10px; padding: 2px 7px; }
.sidebar-spacer { flex: 1; min-height: 28px; }
.sidebar-promo { background: linear-gradient(145deg, #11449d, #0a2a6c); border: 1px solid rgba(125, 190, 255, .23); border-radius: 14px; padding: 15px; position: relative; overflow: hidden; }
.sidebar-promo:after { background: rgba(27, 178, 255, .2); border-radius: 50%; content: ""; height: 110px; position: absolute; right: -55px; top: -55px; width: 110px; }
.promo-orb { color: #72d6ff; font-size: 20px; margin-bottom: 12px; }
.sidebar-promo strong { display: block; font-size: 12px; }
.sidebar-promo p { color: #aac5f5; font-size: 10px; line-height: 1.55; margin: 6px 0 14px; }
.sidebar-promo a { color: #8ee3ff; font-size: 10px; font-weight: 700; }
.sidebar-promo a span { font-size: 16px; margin-left: 4px; vertical-align: -1px; }
.sidebar-footer { align-items: center; border-top: 1px solid rgba(255,255,255,.1); display: flex; gap: 9px; margin-top: 17px; padding: 17px 4px 0; }
.sidebar-footer strong, .sidebar-footer span { display: block; }
.sidebar-footer strong { font-size: 11px; }
.sidebar-footer span { color: #8094ca; font-size: 9px; margin-top: 3px; }
.sidebar-footer .icon-button { margin-left: auto; }
.avatar { align-items: center; background: linear-gradient(135deg, #ffcb51, #f08d21); border-radius: 50%; color: #542c00; display: inline-flex; font-size: 10px; font-weight: 800; height: 30px; justify-content: center; width: 30px; }

.main-content { margin-left: var(--sidebar); min-height: 100vh; width: calc(100% - var(--sidebar)); }
.topbar { align-items: center; background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); display: flex; height: 76px; justify-content: space-between; padding: 0 43px; position: sticky; top: 0; z-index: 3; }
.breadcrumbs { align-items: center; color: #9aa7bc; display: flex; font-size: 12px; gap: 12px; }
.breadcrumbs b { color: #c4ccda; font-weight: 400; }
.breadcrumbs strong { color: var(--ink); font-weight: 700; }
.topbar-actions { align-items: center; display: flex; gap: 19px; }
.test-pill { align-items: center; background: #fff8e8; border: 1px solid #ffdda0; border-radius: 99px; color: #976500; display: flex; font-size: 10px; font-weight: 700; gap: 6px; padding: 6px 10px; }
.test-pill i { background: var(--amber); border-radius: 50%; display: inline-block; height: 6px; width: 6px; }
.icon-button { background: transparent; border: 0; color: #9aa6bb; font-size: 19px; padding: 4px; position: relative; }
.notification-dot { background: #ff6b62; border: 2px solid #fff; border-radius: 50%; height: 7px; position: absolute; right: 2px; top: 1px; width: 7px; }
.profile-button { align-items: center; background: transparent; border: 0; color: var(--ink); display: flex; font-size: 11px; font-weight: 700; gap: 8px; justify-content: center; min-height: 44px; min-width: 44px; padding: 0; }
.avatar-small { height: 30px; width: 30px; }
.chevron { color: #9da9bb; font-size: 16px; margin-left: 2px; }


.page-view { margin: 0 auto; max-width: 1340px; padding: 42px 43px 70px; }
.eyebrow { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .17em; margin: 0 0 10px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; }
h1 { font-size: clamp(27px, 3vw, 40px); letter-spacing: -.04em; line-height: 1.1; margin-bottom: 10px; }
h2 { font-size: 20px; letter-spacing: -.03em; }
h3 { font-size: 14px; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.55; }
.section-heading { align-items: end; display: flex; justify-content: space-between; margin: 31px 0 15px; }
.section-heading h2 { margin: 0; }
.section-heading a { color: var(--blue); font-size: 11px; font-weight: 700; }

.hero { background: linear-gradient(117deg, #0b2e81 0%, #1358c5 58%, #158ede 100%); border-radius: 18px; color: white; display: flex; justify-content: space-between; min-height: 230px; overflow: hidden; padding: 36px 42px; position: relative; }
.hero:before, .hero:after { border: 1px solid rgba(255,255,255,.13); border-radius: 50%; content: ""; position: absolute; }
.hero:before { height: 340px; right: -55px; top: -90px; width: 340px; }
.hero:after { height: 290px; right: 0; top: -55px; width: 290px; }
.hero-copy { max-width: 430px; position: relative; z-index: 1; }
.hero .eyebrow { color: #82dcff; }
.hero h1 { font-size: clamp(28px, 3.1vw, 40px); margin-bottom: 13px; max-width: 415px; }
.hero p { color: #c5dcff; font-size: 13px; line-height: 1.6; margin-bottom: 22px; max-width: 365px; }
.hero-actions { align-items: stretch; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .button { min-height: 42px; text-align: center; }
.hero-actions .button-light { background: rgba(255,255,255,.94); color: #0b3685; }
.hero-actions .button-light:hover { background: #fff; }
.hero-art { align-items: center; display: flex; justify-content: center; position: relative; width: 300px; z-index: 1; }
.hero-globe { border: 1px solid rgba(255,255,255,.27); border-radius: 50%; height: 175px; position: absolute; right: 18px; width: 175px; }
.hero-globe:before, .hero-globe:after { border: 1px solid rgba(255,255,255,.18); border-radius: 50%; content: ""; inset: 18px 54px; position: absolute; }
.hero-globe:after { inset: 53px 17px; }
.hero-card { align-items: center; background: rgba(8, 34, 100, .75); border: 1px solid rgba(255,255,255,.26); border-radius: 13px; box-shadow: 0 18px 30px rgba(2, 22, 76, .2); display: flex; gap: 12px; padding: 14px 16px; position: absolute; right: 83px; top: 72px; transform: rotate(-6deg); width: 205px; }
.hero-card-mark { align-items: center; background: white; border-radius: 8px; color: #ffd020; display: flex; font-size: 22px; height: 39px; justify-content: center; width: 31px; }
.hero-card small { color: #9fc0fc; display: block; font-size: 9px; }
.hero-card strong { display: block; font-size: 13px; margin-top: 3px; }
.button { align-items: center; border: 0; border-radius: 8px; display: inline-flex; font-size: 12px; font-weight: 700; gap: 9px; justify-content: center; padding: 12px 17px; transition: .2s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--amber); box-shadow: 0 7px 16px rgba(237, 155, 0, .22); color: #4b2c00; }
.button-blue { background: var(--blue); color: white; }
.button-light { background: white; color: var(--blue); }
.button-quiet { background: var(--soft); color: var(--blue); }
.button-block { width: 100%; }
.language-picker, .auth-language-picker { align-items: center; color: var(--muted); display: inline-flex; gap: 8px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.language-picker select, .auth-language-picker select { background: #fff; border-radius: 8px; color: var(--ink); font-size: 11px; min-width: 112px; padding: 8px 25px 8px 9px; width: auto; }
.auth-language-picker { display: flex; justify-content: center; margin: 0 auto 20px; }
.settings-language-picker { display: flex; justify-content: flex-start; margin: 2px 0 24px; }
.settings-language-picker select { min-width: 170px; }

.metric-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); margin-top: 24px; }
.metric-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.metric-label { color: var(--muted); display: flex; font-size: 10px; font-weight: 600; justify-content: space-between; }
.metric-icon { align-items: center; background: #edf5ff; border-radius: 7px; color: var(--blue); display: inline-flex; font-size: 14px; height: 27px; justify-content: center; width: 27px; }
.metric-card strong { display: block; font: 700 23px "Space Grotesk", sans-serif; letter-spacing: -.04em; margin-top: 13px; }
.metric-foot { color: var(--green); font-size: 10px; margin-top: 6px; }
.metric-foot.neutral { color: var(--muted); }

.content-grid { display: grid; gap: 18px; grid-template-columns: 1.3fr .7fr; }
.card { background: white; border: 1px solid var(--line); border-radius: 13px; padding: 22px; }
.quick-card { min-height: 277px; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.card-title { align-items: center; display: flex; justify-content: space-between; margin-bottom: 20px; }
.card-title h2 { margin: 0; }
.card-title .tiny-link { color: var(--blue); font-size: 10px; font-weight: 700; }
.quick-form { display: grid; gap: 14px; grid-template-columns: .82fr 1.3fr .7fr auto; }
.field label { color: #71809a; display: block; font-size: 10px; font-weight: 700; margin-bottom: 7px; }
.input-wrap { position: relative; }
.input-wrap .country-code { color: var(--ink); font-size: 12px; font-weight: 700; left: 11px; position: absolute; top: 12px; }
.input-wrap .phone-input { padding-left: 42px; }
input, select, textarea { background: #fbfcfe; border: 1px solid #dfe6f1; border-radius: 7px; color: var(--ink); outline: none; padding: 11px 12px; transition: .2s; width: 100%; }
textarea { min-height: 112px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #6ea6ff; box-shadow: 0 0 0 3px rgba(20,100,244,.1); }
.quick-form .button { align-self: end; }
.operator-note { align-items: center; color: var(--green); display: flex; font-size: 10px; gap: 6px; margin-top: 12px; }
.operator-note span { background: #e5f8f0; border-radius: 50%; display: inline-grid; height: 16px; place-items: center; width: 16px; }
.country-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 21px; }
.country-chip { align-items: center; background: #f7f9fd; border: 1px solid var(--line); border-radius: 6px; color: #6b7891; display: flex; font-size: 10px; gap: 6px; padding: 6px 9px; }
.country-chip strong { font-size: 13px; }
.promo-card { background: linear-gradient(145deg, #fff9ed, #fff); border-color: #ffe5af; }
.promo-card .promo-number { color: var(--amber); font: 700 40px "Space Grotesk", sans-serif; margin: 10px 0 2px; }
.promo-card p { color: #85714d; font-size: 11px; line-height: 1.55; }
.promo-card .mini-rule { background: #f4dfb5; height: 1px; margin: 17px 0 13px; }
.promo-card .promo-stat { align-items: center; color: #786541; display: flex; font-size: 10px; justify-content: space-between; }
.promo-card .promo-stat strong { color: var(--ink); font-size: 11px; }

.activity-card { overflow: hidden; padding: 0; }
.activity-card .card-title { padding: 22px 22px 0; }
.transaction-row { align-items: center; border-top: 1px solid #eff2f7; display: grid; gap: 12px; grid-template-columns: 38px 1.25fr 1fr .7fr auto; padding: 14px 22px; }
.transaction-row:hover { background: #fbfcff; }
.country-badge { align-items: center; background: #eff5ff; border-radius: 9px; display: flex; font-size: 17px; height: 36px; justify-content: center; width: 36px; }
.transaction-main strong, .transaction-main span { display: block; }
.transaction-main strong { font-size: 11px; }
.transaction-main span, .transaction-date { color: var(--muted); font-size: 10px; margin-top: 3px; }
.transaction-amount { font-size: 11px; font-weight: 700; }
.status { border-radius: 99px; display: inline-flex; font-size: 9px; font-weight: 700; padding: 5px 8px; }
.status.completed { background: #e8f8f0; color: var(--green); }
.status.processing, .status.pending { background: #fff7e5; color: #b67a05; }
.status.failed { background: #ffedef; color: var(--red); }
.row-arrow { color: #a7b2c4; font-size: 16px; }

.page-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 28px; }
.page-heading h1 { margin-bottom: 7px; }
.page-heading p { color: var(--muted); font-size: 12px; margin: 0; }
.page-actions { display: flex; gap: 10px; }
.recharge-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.3fr) minmax(275px, .7fr); }
.stepper { align-items: center; display: flex; margin-bottom: 22px; }
.step { align-items: center; color: #9da9bd; display: flex; flex: 1; font-size: 10px; font-weight: 700; gap: 7px; }
.step:not(:last-child):after { background: #dfe5ef; content: ""; flex: 1; height: 1px; margin: 0 8px; }
.step.active { color: var(--blue); }
.step.active:not(:last-child):after { background: #a9c8ff; }
.step-number { align-items: center; background: #f1f4f9; border-radius: 50%; display: inline-flex; height: 24px; justify-content: center; width: 24px; }
.step.active .step-number { background: var(--blue); color: #fff; }
.recharge-card { padding: 26px; }
.recharge-card h2 { margin: 0 0 6px; }
.recharge-card .subcopy { color: var(--muted); font-size: 11px; margin-bottom: 24px; }
.form-grid { display: grid; gap: 17px; grid-template-columns: repeat(2, 1fr); }
.form-grid .full { grid-column: 1 / -1; }
.amount-grid { display: grid; gap: 9px; grid-template-columns: repeat(5, 1fr); }
.amount-option { background: white; border: 1px solid #dfe6f1; border-radius: 7px; color: var(--ink); font-size: 12px; font-weight: 700; padding: 11px 4px; }
.amount-option:hover, .amount-option.selected { background: #edf4ff; border-color: var(--blue); color: var(--blue); }
.form-actions { border-top: 1px solid var(--line); display: flex; justify-content: space-between; margin-top: 27px; padding-top: 20px; }
.form-actions .back { background: none; border: 0; color: var(--muted); font-size: 11px; font-weight: 700; }
.order-summary { height: max-content; position: sticky; top: 98px; }
.summary-top { background: linear-gradient(135deg, #09225c, #1355bc); border-radius: 10px 10px 0 0; color: #fff; margin: -22px -22px 20px; padding: 22px; }
.summary-top .eyebrow { color: #8bdbff; }
.summary-top h2 { margin: 0; }
.summary-line { align-items: center; display: flex; font-size: 11px; justify-content: space-between; margin: 14px 0; }
.summary-line span { color: var(--muted); }
.summary-line strong { font-size: 11px; }
.summary-total { align-items: end; border-top: 1px solid var(--line); display: flex; justify-content: space-between; margin-top: 19px; padding-top: 17px; }
.summary-total span { color: var(--muted); font-size: 11px; }
.summary-total strong { color: var(--blue); font: 700 24px "Space Grotesk", sans-serif; }
.secure-note { color: var(--muted); font-size: 10px; line-height: 1.5; margin-top: 17px; text-align: center; }
.secure-note span { color: var(--green); font-size: 13px; margin-right: 4px; }
.notice { background: #f7faff; border-left: 3px solid var(--blue); color: #5b6c87; font-size: 11px; line-height: 1.55; margin: 17px 0; padding: 11px 13px; }
.catalog-mode-notice { margin: 0 0 18px; }
.recipient-choice { display: flex; flex-wrap: wrap; gap: 10px; }
.recipient-choice label { align-items: center; background: #fbfcfe; border: 1px solid #dfe6f1; border-radius: 8px; color: var(--ink); cursor: pointer; display: flex; font-size: 11px; gap: 8px; padding: 12px; }
.recipient-choice input { accent-color: var(--blue); flex: 0 0 auto; margin: 0; width: auto; }
.operator-catalog-card { margin-top: 20px; }
.operator-catalog-card .card-title { align-items: start; gap: 16px; }
.operator-catalog-card .card-title h2 { margin-bottom: 5px; }
.operator-catalog-card .card-title p { margin-bottom: 0; }
.catalog-table-scroll { overflow-x: auto; }
.catalog-country-heading { margin: 20px 0 10px; }
.catalog-country-list { display: flex; flex-wrap: wrap; gap: 8px; }
.failure-mark { background: #ffedef; color: var(--red); }
.success-state .failure-mark { background: #ffedef; color: var(--red); }

.table-card { overflow: auto; padding: 0; }
.filters { align-items: center; background: #fcfdff; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 9px; padding: 15px 20px; }
.filters input { max-width: 240px; }
.filters select { max-width: 155px; padding: 9px 10px; }
.data-table { border-collapse: collapse; min-width: 700px; width: 100%; }
.data-table th { color: #8b98ac; font-size: 9px; font-weight: 700; letter-spacing: .06em; padding: 16px 20px 11px; text-align: left; text-transform: uppercase; }
.data-table td { border-top: 1px solid #eff2f7; font-size: 11px; padding: 15px 20px; white-space: nowrap; }
.data-table td strong { display: block; }
.data-table td small { color: var(--muted); display: block; font-size: 9px; margin-top: 3px; }

.admin-metrics { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; }
.admin-metric { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 17px; }
.admin-metric span { color: var(--muted); font-size: 10px; }
.admin-metric strong { display: block; font: 700 22px "Space Grotesk", sans-serif; margin-top: 12px; }
.admin-metric small { color: var(--green); display: block; font-size: 9px; margin-top: 5px; }
.admin-grid { display: grid; gap: 20px; grid-template-columns: 1.2fr .8fr; }
.chart-card, .pricing-card { min-height: 250px; }
.bar-chart { align-items: end; display: flex; gap: 16px; height: 134px; padding: 0 9px 22px; position: relative; }
.bar-chart:before, .bar-chart:after { border-top: 1px dashed #e5ebf3; content: ""; left: 0; position: absolute; right: 0; }
.bar-chart:before { top: 20px; }
.bar-chart:after { top: 75px; }
.bar { align-items: center; background: linear-gradient(#4bb7ff, #1d67ef); border-radius: 4px 4px 0 0; display: flex; flex: 1; justify-content: center; min-height: 10px; position: relative; z-index: 1; }
.bar:nth-child(2n) { background: linear-gradient(#ffcf54, #f4a900); }
.bar small { bottom: -20px; color: var(--muted); font-size: 9px; position: absolute; }
.pricing-row { align-items: center; border-top: 1px solid #eff2f7; display: flex; font-size: 11px; justify-content: space-between; padding: 14px 0; }
.pricing-row span { color: var(--muted); }
.pricing-input { max-width: 85px; padding: 7px 9px; text-align: right; }

.support-grid, .settings-grid { display: grid; gap: 20px; grid-template-columns: 1.1fr .9fr; }
.support-card h2, .settings-card h2 { margin-top: 0; }
.support-form { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.support-form .full { grid-column: 1 / -1; }
.contact-card { background: linear-gradient(145deg, #092358, #0f4bb1); color: #fff; }
.contact-card h2 { color: #fff; }
.contact-card p { color: #bdd1f8; font-size: 12px; line-height: 1.6; }
.contact-item { align-items: center; border-top: 1px solid rgba(255,255,255,.15); display: flex; font-size: 11px; gap: 10px; padding: 14px 0; }
.contact-item span { color: #81dcff; font-size: 17px; width: 19px; }
.settings-list { display: grid; gap: 18px; }
.setting-row { align-items: center; border-bottom: 1px solid #eff2f7; display: flex; justify-content: space-between; padding-bottom: 17px; }
.setting-row strong { display: block; font-size: 11px; }
.setting-row small { color: var(--muted); display: block; font-size: 10px; margin-top: 5px; }
.toggle { background: #cbd4e3; border: 0; border-radius: 99px; height: 22px; padding: 3px; width: 40px; }
.toggle:after { background: white; border-radius: 50%; content: ""; display: block; height: 16px; transition: .2s; width: 16px; }
.toggle.on { background: var(--blue); }
.toggle.on:after { transform: translateX(18px); }
.legal-list { display: grid; gap: 10px; }
.legal-link { align-items: center; background: #f8fafd; border-radius: 8px; color: var(--blue); display: flex; font-size: 11px; justify-content: space-between; padding: 13px; }

.app-footer { align-items: center; border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; font-size: 10px; gap: 15px; justify-content: space-between; margin-top: 34px; padding: 20px 0 0; }
.app-footer nav { display: flex; flex-wrap: wrap; gap: 15px; }
.app-footer a { color: var(--blue); font-weight: 700; }
.legal-document { line-height: 1.75; max-width: 900px; }
.legal-document p { color: #52627e; font-size: 13px; margin: 0 0 20px; }
.legal-document .button { margin-top: 3px; }
.business-setup-card { margin: 0 0 20px; }
.business-setup-card .card-title { align-items: start; }
.business-setup-card .card-title h2 { color: var(--muted); font: 500 12px "DM Sans", sans-serif; letter-spacing: 0; line-height: 1.5; margin: 0; max-width: 620px; }
.business-setup-card .card-title .eyebrow { margin-bottom: 5px; }
.business-status-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.business-status { align-items: center; background: #f8fafd; border: 1px solid var(--line); border-radius: 9px; display: flex; font-size: 11px; gap: 10px; justify-content: space-between; min-width: 0; padding: 12px; }
.business-status > span:first-child { color: #63728b; font-weight: 600; }
.business-blockers { color: #a23b49; font-size: 11px; line-height: 1.6; margin: 15px 0 0; padding-left: 20px; }
.refund-management { margin: 20px 0; }
.refund-management .card-title { gap: 12px; }
.refund-management .card-title h2 { margin: 0; }
.refund-settings-card { margin: 20px 0; }
.refund-settings-card .card-title { margin-bottom: 13px; }
.refund-settings-toggle { align-items: start; display: flex; gap: 11px; }
.refund-settings-toggle input { accent-color: var(--blue); flex: 0 0 auto; margin: 3px 0 0; width: auto; }
.refund-settings-toggle span, .refund-settings-toggle strong, .refund-settings-toggle small { display: block; }
.refund-settings-toggle strong { color: var(--ink); font-size: 12px; }
.refund-settings-toggle small { color: var(--muted); font-size: 10px; line-height: 1.5; margin-top: 5px; }
.refund-settings-actions { align-items: center; display: flex; gap: 12px; justify-content: flex-end; margin-top: 16px; }
.refund-action-note { color: var(--muted); display: block; font-size: 9px; line-height: 1.4; min-width: 125px; }
.refund-decision { align-items: center; display: flex; gap: 6px; min-width: 420px; }
.refund-decision input { min-width: 120px; padding: 8px; }
.refund-decision .button { font-size: 10px; padding: 9px 10px; white-space: nowrap; }
.refund-review-panel { background: #f8fafd; border: 1px solid var(--line); border-radius: 10px; margin: 16px; padding: 16px; }
.refund-review-panel h3 { margin: 0 0 12px; }
.refund-review-request { align-items: end; display: grid; gap: 12px; grid-template-columns: minmax(220px, 1fr) minmax(200px, .8fr) auto; }
.refund-review-request .field label { line-height: 1.4; }
.refund-review-request .button { min-height: 40px; }
.refund-empty { margin: 0; }
.transaction-detail { margin-top: 6px; white-space: normal; }
.transaction-detail summary { color: var(--blue); cursor: pointer; font-size: 9px; font-weight: 700; }
.receipt-details { background: #f8fafd; border: 1px solid var(--line); border-radius: 8px; color: #52627e; display: grid; font-size: 10px; gap: 7px; line-height: 1.45; margin-top: 9px; max-width: 420px; padding: 12px; white-space: normal; }
.receipt-details strong { color: var(--ink); }
.receipt-details small { color: var(--muted); font-size: 9px; }
.receipt-warning { color: #926207; }
.success-receipt { margin: 20px auto 0; max-width: 450px; text-align: left; }
.success-receipt .receipt-details { margin-left: auto; margin-right: auto; }
.checkout-return-notice { line-height: 1.65; }
.receipt-details > span { overflow-wrap: anywhere; }

.empty-state { align-items: center; background: white; border: 1px dashed #cad5e5; border-radius: 13px; display: flex; flex-direction: column; margin-top: 18px; padding: 50px 20px; text-align: center; }
.empty-icon { align-items: center; background: #edf4ff; border-radius: 50%; color: var(--blue); display: flex; font-size: 24px; height: 54px; justify-content: center; margin-bottom: 14px; width: 54px; }
.empty-state h2 { margin: 0 0 7px; }
.empty-state p { color: var(--muted); font-size: 11px; margin: 0 0 18px; }
.success-state { padding: 42px; text-align: center; }
.success-mark { align-items: center; background: #e5f8ef; border-radius: 50%; color: var(--green); display: flex; font-size: 32px; height: 70px; justify-content: center; margin: 0 auto 18px; width: 70px; }
.success-state h2 { font-size: 26px; margin-bottom: 10px; }
.success-state p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0 auto 22px; max-width: 380px; }
.success-ref { background: #f7f9fd; border-radius: 7px; color: #6e7d94; display: inline-block; font-size: 10px; padding: 9px 13px; }

.toast-region { bottom: 23px; display: grid; gap: 9px; position: fixed; right: 23px; z-index: 20; }
.toast { animation: toast-in .25s ease; background: #14213d; border-left: 3px solid var(--cyan); border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.15); color: #fff; font-size: 11px; max-width: 300px; padding: 13px 16px; }
.toast.error { border-color: #ff7882; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.auth-page { align-items: center; display: flex; justify-content: center; min-height: calc(100vh - 100px); padding: 35px 16px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(8, 35, 93, .08); max-width: 430px; padding: 32px; width: 100%; }
.auth-brand { align-items: center; display: flex; flex-direction: column; gap: 13px; justify-content: center; margin-bottom: 23px; }
.auth-brand .brand-mark { height: 112px; width: 112px; flex-basis: 112px; border-radius: 50%; }
.auth-brand strong { color: var(--navy); font: 700 19px "Space Grotesk", sans-serif; letter-spacing: .11em; }
.auth-brand strong span { color: var(--blue); display: block; font-size: 8px; letter-spacing: .22em; margin-top: 3px; }
.auth-card h1 { font-size: 27px; text-align: center; }
.auth-card > p { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 0 auto 22px; max-width: 295px; text-align: center; }
.auth-form { display: grid; gap: 15px; }
.auth-form .button { margin-top: 4px; }
.auth-switch { color: var(--muted); font-size: 11px; margin: 20px 0 0; text-align: center; }
.auth-switch button { background: none; border: 0; color: var(--blue); font-size: 11px; font-weight: 700; padding: 0; }
.demo-login { background: #f7faff; border: 1px solid #e3edff; border-radius: 8px; color: #60718d; font-size: 10px; line-height: 1.55; margin-top: 19px; padding: 10px 12px; }
.demo-login strong { color: var(--navy); display: block; margin-bottom: 3px; }
.admin-only { display: none; }
.is-admin .admin-only { display: flex; }

@media (max-width: 1050px) {
  :root { --sidebar: 220px; }
  .topbar, .page-view { padding-left: 27px; padding-right: 27px; }
  .breadcrumbs { display: none; }
  .topbar-actions { margin-left: auto; }
  .quick-form { grid-template-columns: 1fr 1fr; }
  .quick-form .button { align-self: center; justify-self: start; }
  .hero-art { display: none; }
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  :root { --sidebar: 0px; }
  .sidebar { display: none; }
  .main-content { margin-left: 0; width: 100%; }
  .topbar { height: 66px; padding: 0 18px; }
  .breadcrumbs { display: none; }
  .mobile-brand { display: flex; }
  .mobile-brand .brand-mark { height: 36px; width: 36px; flex-basis: 36px; border-radius: 9px; }
  .mobile-brand strong { font: 700 15px "Space Grotesk", sans-serif; letter-spacing: .08em; }
  .mobile-brand strong span { color: var(--blue); display: block; font-size: 7px; letter-spacing: .2em; margin-top: 2px; }
  .topbar-actions { gap: 10px; }
  .topbar .language-picker span { display: none; }
  .topbar .language-picker select { min-width: 88px; max-width: 116px; padding: 7px 18px 7px 6px; }
  .test-pill { font-size: 9px; padding: 5px 8px; }
  .profile-name, .chevron { display: none; }
  .page-view { padding: 26px 16px 90px; }
  .hero { min-height: 278px; padding: 28px 24px; }
  .hero-art { bottom: -15px; opacity: .3; position: absolute; right: -32px; }
  .hero h1 { font-size: 29px; }
  .hero-actions { flex-direction: column; max-width: 260px; }
  .hero-actions .button { justify-content: space-between; width: 100%; }
  .metric-grid { gap: 9px; grid-template-columns: repeat(2, 1fr); }
  .metric-card { padding: 14px; }
  .metric-card strong { font-size: 20px; }
  .content-grid, .recharge-layout, .admin-grid, .support-grid, .settings-grid { grid-template-columns: 1fr; }
  .quick-form { grid-template-columns: 1fr 1fr; }
  .quick-form .field:first-child { grid-column: 1 / -1; }
  .promo-card { display: none; }
  .transaction-row { gap: 8px; grid-template-columns: 34px 1fr auto; padding: 13px 15px; }
  .transaction-row .transaction-date, .transaction-row .transaction-amount { display: none; }
  .transaction-row .status { justify-self: end; }
  .row-arrow { display: none; }
  .page-heading { align-items: start; flex-direction: column; gap: 15px; }
  .page-actions { width: 100%; }
  .page-actions .button { flex: 1; }
  .checkout-return-notice { font-size: 10px; }
  .success-state { padding: 28px 16px; }
  .success-receipt { max-width: 100%; }
  .success-receipt .receipt-details { padding: 11px; }
  .form-grid, .support-form { grid-template-columns: 1fr; }
  .form-grid .full, .support-form .full { grid-column: auto; }
  .refund-settings-actions { align-items: stretch; flex-direction: column; }
  .refund-settings-actions .button { width: 100%; }
  .refund-settings-toggle small { font-size: 9px; }
  .amount-grid { grid-template-columns: repeat(3, 1fr); }
  .order-summary { position: static; }
  .step { font-size: 0; gap: 3px; }
  .step-number { font-size: 10px; }
  .step:not(:last-child):after { margin: 0 4px; }
  .recharge-card { padding: 20px 17px; }
  .admin-metrics { gap: 9px; grid-template-columns: repeat(2, 1fr); }
  .admin-metric { padding: 14px; }
  .admin-metric strong { font-size: 19px; }
  .filters { padding: 13px; }
  .app-footer { align-items: flex-start; flex-direction: column; gap: 11px; }
  .app-footer nav { gap: 12px; }
  .business-status-grid { grid-template-columns: 1fr; }
  .business-setup-card .card-title { align-items: flex-start; flex-direction: column; }
  .refund-decision { align-items: stretch; flex-direction: column; min-width: 220px; }
  .refund-review-request { grid-template-columns: 1fr; }
  .refund-review-panel { margin: 12px; padding: 13px; }
  .refund-management .data-table { min-width: 750px; }
  .success-receipt .receipt-details { padding: 11px; }
  .filters input, .filters select { max-width: none; width: 100%; }
}
@media (max-width: 420px) {
  .quick-form { grid-template-columns: 1fr; }
  .quick-form .field:first-child { grid-column: auto; }
  .hero { border-radius: 13px; }
  .topbar-actions .notification-button { display: none; }
  .topbar-actions { gap: 6px; }
  .topbar .language-picker select { max-width: 101px; min-width: 75px; }
}

/* Data / Internet — a distinct product within the existing PAM workspace. */
.product-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.product-switch a { border: 1px solid #dce6f4; border-radius: 9px; background: #fff; color: #456080; font-size: 12px; font-weight: 700; padding: 11px 17px; }
.product-switch a.active { background: #0d2d75; border-color: #0d2d75; color: #fff; }
.data-kicker { color: var(--blue); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; }
.data-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); gap: 20px; align-items: start; }
.data-form { display: grid; gap: 18px; }
.data-form .field label { font-size: 11px; }
.data-plans { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.data-plan { background: #fbfcfe; border: 1px solid #dfe6f1; border-radius: 10px; color: var(--ink); display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 7px; min-height: 128px; padding: 17px; width: 100%; transition: border-color .2s, transform .2s; }
.data-plan:hover { border-color: var(--blue); transform: translateY(-2px); }
.data-plan.selected { background: #edf4ff; border: 2px solid var(--blue); padding: 16px; }
.data-plan strong { font: 700 16px "Space Grotesk", sans-serif; }
.data-plan small { color: #6c7d99; font-size: 11px; }
.data-plan .plan-price { color: var(--blue); font: 700 17px "Space Grotesk", sans-serif; margin-top: auto; }
.data-plan .local-price { color: var(--muted); font-size: 10px; }
.data-state { border: 1px dashed #cbd9ed; background: #f8fbff; border-radius: 10px; padding: 20px; color: #536782; font-size: 12px; line-height: 1.6; }
.data-state p { margin-bottom: 10px; }
.data-state .button { margin-top: 3px; }
.data-error { border-color: #ecc4c9; background: #fff8f8; color: #9c3f51; }
.data-summary .summary-line { gap: 15px; }
.data-summary .summary-line strong { text-align: right; overflow-wrap: anywhere; }
.data-review { background: #f8fafd; border-radius: 10px; padding: 4px 18px; }
.data-controls { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 4px; }
.data-controls .button:disabled, .data-plan:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.data-admin { margin-top: 20px; }
.data-admin .catalog-table-scroll { width: 100%; }
.data-admin .data-table { min-width: 900px; }
.data-admin-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin: 15px 0; }
.data-admin-controls .field { min-width: 190px; }
.type-tag { display: inline-block; color: #1262b9; background: #eaf3ff; border-radius: 5px; font-size: 9px; font-weight: 800; padding: 3px 6px; margin-right: 5px; }
.type-tag.airtime { color: #926112; background: #fff5dd; }
.data-plan-detail { color: #526988; font-size: 10px; margin-top: 4px; white-space: normal; }
@media (max-width: 760px) {
  .data-layout { grid-template-columns: 1fr; }
  .data-plans { grid-template-columns: 1fr; }
  .data-summary { position: static; }
}
@media (max-width: 390px) {
  .topbar-actions .profile-button { display: none; }
  .data-controls .button { width: 100%; }
  .product-switch a { flex: 1; text-align: center; padding: 11px 8px; }
}
/* ---- Regional: profile, payment methods, local quotes, regional admin ---- */
.rg-grid { display: grid; gap: 20px; grid-template-columns: 1.1fr .9fr; align-items: start; }
.rg-stack { display: grid; gap: 20px; }
.rg-form { display: grid; gap: 15px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
.rg-form .full { grid-column: 1 / -1; }
.rg-form small { display: block; margin-top: 6px; }
.rg-phone { display: flex; align-items: stretch; }
.rg-prefix { align-items: center; background: var(--soft); border: 1px solid #dfe6f1; border-right: 0; border-radius: 7px 0 0 7px; color: var(--ink); display: inline-flex; font-size: 12px; font-weight: 700; min-width: 54px; justify-content: center; padding: 0 10px; }
.rg-phone input { border-radius: 0 7px 7px 0; min-width: 0; }
.rg-skeleton { animation: rg-pulse 1.2s ease-in-out infinite; background: #e9eef7; border-radius: 13px; height: 120px; margin-bottom: 16px; }
@keyframes rg-pulse { 50% { opacity: .55; } }
.rg-wallets { display: grid; gap: 8px; margin-top: 12px; }
.rg-wallet { align-items: center; background: #f8fafd; border: 1px solid var(--line); border-radius: 9px; display: flex; font-size: 12px; font-weight: 700; justify-content: space-between; padding: 12px 14px; }
.rg-wallet.active { background: #edf4ff; border-color: #a9c8ff; }
.rg-wallet em { background: var(--blue); border-radius: 99px; color: #fff; font-size: 9px; font-style: normal; margin-left: 6px; padding: 2px 7px; }
.rg-wallet strong { font: 700 16px "Space Grotesk", sans-serif; }
.rg-badge, .rg-tag { border-radius: 99px; display: inline-flex; font-size: 9px; font-style: normal; font-weight: 700; margin-left: 6px; padding: 4px 8px; white-space: nowrap; }
.rg-badge { margin-left: 0; font-size: 10px; }
.rg-badge.verified, .rg-tag.ok { background: #e8f8f0; color: var(--green); }
.rg-badge.pending, .rg-tag.test { background: #fff7e5; color: #b67a05; }
.rg-badge.restricted { background: #ffedef; color: var(--red); }
.rg-badge.unverified, .rg-tag.off { background: #eef1f7; color: #66758f; }
.rg-method-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
.rg-method-card, .rg-saved { align-items: center; background: #f8fafd; border: 1px solid var(--line); border-radius: 10px; display: flex; gap: 12px; justify-content: space-between; padding: 14px; }
.rg-method-card.ready { background: #fff; border-color: #bcd5ff; }
.rg-method-card small, .rg-method-option small { color: var(--muted); display: block; font-size: 10px; line-height: 1.5; margin-top: 5px; max-width: 360px; white-space: normal; }
.rg-method-card strong { font-size: 12px; }
.rg-method-card .button { flex: 0 0 auto; font-size: 10px; padding: 9px 12px; }
.rg-method-card .button:disabled { cursor: not-allowed; opacity: .5; }
.rg-saved { margin-top: 10px; flex-wrap: wrap; }
.rg-saved-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.rg-saved-actions .button { font-size: 10px; padding: 8px 10px; }
.rg-mask { color: var(--muted); font-family: "Space Grotesk", monospace; letter-spacing: .06em; margin-left: 4px; }
.rg-picker { display: grid; gap: 8px; margin-top: 18px; }
.rg-method-option { align-items: flex-start; background: #fbfcfe; border: 1px solid #dfe6f1; border-radius: 8px; cursor: pointer; display: flex; font-size: 11px; gap: 10px; padding: 11px 12px; }
.rg-method-option.is-off { background: #f3f5f9; cursor: not-allowed; opacity: .75; }
.rg-method-option input { accent-color: var(--blue); flex: 0 0 auto; margin: 2px 0 0; width: auto; }
.rg-warn { background: #fff8e8; border-left-color: var(--amber); color: #7a5300; }
.rg-quote-rows { margin: 0; }
.rg-quote-rows .summary-line { margin: 10px 0; }
.rg-quote-rows .summary-line strong { text-align: right; }
.rg-admin { margin-top: 34px; }
.rg-block { margin-top: 18px; }
.rg-admin input[type="search"] { margin-bottom: 12px; }
.rg-country { background: #fbfcfe; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; }
.rg-country > summary { align-items: center; cursor: pointer; display: flex; font-size: 12px; gap: 10px; justify-content: space-between; list-style: none; padding: 12px 14px; }
.rg-country > summary::-webkit-details-marker { display: none; }
.rg-country summary small { color: var(--muted); font-size: 10px; margin-left: 4px; }
.rg-edit { border-top: 1px solid var(--line); display: grid; gap: 14px; padding: 14px; }
.rg-edit fieldset { border: 1px solid var(--line); border-radius: 8px; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 10px 12px; }
.rg-edit legend { color: var(--muted); font-size: 10px; font-weight: 700; padding: 0 6px; }
.rg-edit .button { justify-self: start; }
.rg-check { align-items: center; display: inline-flex; font-size: 11px; gap: 7px; }
.rg-check input { accent-color: var(--blue); width: auto; margin: 0; }
.rg-checks { align-self: end; display: flex; flex-wrap: wrap; gap: 14px; }
.rg-currency-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.rg-currency { background: #f8fafd; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; justify-content: space-between; padding: 10px 12px; }
.rg-currency small { color: var(--muted); font-size: 9px; }
.rg-rate-form { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.rg-inline { align-items: center; display: flex; gap: 6px; }
.rg-inline select { min-width: 120px; padding: 8px; }
.rg-country-list { margin-bottom: 12px; }
@media (max-width: 900px) {
  .rg-grid, .rg-method-grid { grid-template-columns: 1fr; }
  .rg-rate-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .rg-form, .rg-rate-form { grid-template-columns: 1fr; }
  .rg-method-card { align-items: stretch; flex-direction: column; }
  .rg-saved-actions .button { flex: 1 1 auto; }
  .rg-country > summary { align-items: flex-start; flex-direction: column; }
  .rg-inline { flex-wrap: wrap; }
}

.wallet-card { background: linear-gradient(135deg, #0b2e81, #1464f4 70%, #1db8ff); border: 0; color: #fff; max-width: 420px; padding: 20px; }
.wallet-card-top { align-items: center; display: flex; justify-content: space-between; gap: 10px; }
.wallet-card-label { color: #bcd6ff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wallet-card-ccy { background: rgba(255,255,255,.18); border-radius: 99px; font-size: 11px; font-weight: 800; padding: 4px 10px; }
.wallet-card-amount { display: block; font: 700 clamp(26px, 8vw, 34px) "Space Grotesk", sans-serif; letter-spacing: -.04em; margin: 12px 0 6px; overflow-wrap: anywhere; }
.wallet-card-note { color: #c5dcff; font-size: 11px; line-height: 1.5; margin: 0 0 16px; }
.wallet-card-btn { background: #fff; color: #0b3685; width: 100%; }
.wallet-ico { flex: 0 0 auto; }
body.wallet-modal-open { overflow: hidden; }
.wallet-modal { inset: 0; position: fixed; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px; }
.wallet-backdrop { background: rgba(7,25,73,.55); inset: 0; position: absolute; }
.wallet-dialog { background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(7,25,73,.3); display: flex; flex-direction: column; max-height: min(640px, calc(100dvh - 32px)); padding: 18px; position: relative; width: min(460px, 100%); }
.wallet-dialog-head { align-items: center; display: flex; gap: 8px; margin-bottom: 14px; }
.wallet-dialog-head h2 { flex: 1; margin: 0; min-width: 0; }
.wallet-icon-btn { align-items: center; background: var(--soft); border: 0; border-radius: 8px; color: var(--ink); display: inline-flex; height: 36px; justify-content: center; width: 36px; }
.wallet-icon-btn[hidden] { display: none; }
.wallet-icon-btn:focus-visible, .wallet-result:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.wallet-search { align-items: center; background: #fbfcfe; border: 1px solid #dfe6f1; border-radius: 10px; color: var(--muted); display: flex; gap: 8px; padding: 0 12px; }
.wallet-search input { background: transparent; border: 0; box-shadow: none; min-width: 0; padding: 12px 0; }
.wallet-search:focus-within { border-color: #6ea6ff; box-shadow: 0 0 0 3px rgba(20,100,244,.1); }
.wallet-sr { border: 0; clip: rect(0 0 0 0); height: 1px; overflow: hidden; position: absolute; width: 1px; }
.wallet-body { margin-top: 14px; overflow-y: auto; min-height: 120px; }
.wallet-hint, .wallet-list-title { color: var(--muted); font-size: 12px; margin: 0 0 8px; }
.wallet-results { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.wallet-result { align-items: center; background: #f8fafd; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); display: flex; gap: 10px; justify-content: space-between; padding: 11px 12px; text-align: left; width: 100%; }
.wallet-result:hover { background: #edf4ff; border-color: #a9c8ff; }
.wallet-result span { min-width: 0; }
.wallet-result strong, .wallet-result small { display: block; overflow-wrap: anywhere; }
.wallet-result strong { font-size: 13px; }
.wallet-result small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.wallet-result em { color: var(--blue); font-size: 11px; font-style: normal; font-weight: 800; white-space: nowrap; }
.wallet-selected { background: #edf4ff; border: 1px solid #a9c8ff; border-radius: 12px; display: grid; gap: 4px; padding: 16px; }
.wallet-sel-country { font: 700 15px "Space Grotesk", sans-serif; }
.wallet-sel-ccy, .wallet-sel-label { color: var(--muted); font-size: 12px; }
.wallet-sel-label { margin-top: 10px; }
.wallet-selected strong { font: 700 28px "Space Grotesk", sans-serif; letter-spacing: -.03em; overflow-wrap: anywhere; }
.wallet-sel-none { color: #5b6c87; font-size: 13px; margin: 0; }
.wallet-empty, .wallet-error { background: #f8fafd; border: 1px dashed #cad5e5; border-radius: 12px; font-size: 12px; padding: 22px 16px; text-align: center; }
.wallet-error p { margin: 0 0 12px; }
.wallet-skel { display: grid; gap: 8px; }
.wallet-skel i { animation: wallet-pulse 1.1s ease-in-out infinite; background: #eef2f9; border-radius: 10px; height: 46px; }
@keyframes wallet-pulse { 50% { opacity: .5; } }
@media (max-width: 480px) { .wallet-modal { align-items: flex-end; padding: 0; } .wallet-dialog { border-radius: 16px 16px 0 0; max-height: 92dvh; width: 100%; } }

/* ---- Drawer navigation (single nav at every width) ---- */
.main-content, .app-shell .main-content { margin-left: 0; width: 100%; }
.app-shell .sidebar.drawer { display: flex; width: min(300px, 86vw); transform: translateX(-102%); visibility: hidden; transition: transform .26s ease, visibility 0s .26s; z-index: 40; overflow-y: auto; box-shadow: none; }
.app-shell .sidebar.drawer.open { transform: none; visibility: visible; transition: transform .26s ease; box-shadow: 12px 0 40px rgba(4,18,52,.35); }
.app-shell.auth-mode .sidebar.drawer, .app-shell.auth-mode .drawer-overlay { display: none; }
.drawer-overlay { background: rgba(7,25,73,.45); inset: 0; position: fixed; z-index: 30; opacity: 0; transition: opacity .26s ease; }
.drawer-overlay.show { opacity: 1; }
.drawer-head { align-items: center; display: flex; justify-content: space-between; padding-bottom: 22px; }
.drawer-head .brand { padding: 0 4px; }
.drawer-close, .hamburger { align-items: center; background: transparent; border: 0; border-radius: 10px; display: inline-grid; height: 44px; place-items: center; width: 44px; }
.drawer-close { color: #aab9dd; }
.drawer-close:hover { background: rgba(255,255,255,.08); color: #fff; }
.hamburger { align-content: center; color: var(--navy); flex: 0 0 44px; gap: 5px; margin-right: 6px; }
.hamburger span { background: var(--navy); border-radius: 2px; display: block; height: 2px; width: 22px; }
.hamburger:hover { background: var(--soft); }
.topbar { gap: 8px; padding-left: 12px; }
.topbar .mobile-brand { display: flex; margin-right: auto; min-width: 0; }
.topbar .mobile-brand .brand-mark { height: 38px; width: 38px; flex-basis: 38px; border-radius: 9px; }
.topbar .mobile-brand strong { font: 700 15px "Space Grotesk", sans-serif; letter-spacing: .08em; white-space: nowrap; }
.topbar .mobile-brand strong span { color: var(--blue); }
.drawer-nav .nav-link { background: none; border: 0; text-align: left; width: 100%; min-height: 44px; }
.drawer-nav .nav-link.active { background: linear-gradient(100deg, rgba(34,116,255,.95), rgba(25,85,206,.8)); }
.drawer-nav .nav-link.admin-only { display: none; }
.is-admin .drawer-nav .nav-link.admin-only { display: flex; }
.dr-ic { color: #6dccff; flex: 0 0 20px; }
.nav-link.active .dr-ic { color: #fff; }
.drawer-language { border-top: 1px solid rgba(255,255,255,.1); color: #aab9dd; display: grid; font-size: 12px; font-weight: 600; gap: 8px; margin-top: 14px; padding-top: 14px; }
.drawer-language-label { align-items: center; display: flex; gap: 12px; padding: 0 12px; }
.drawer-language select { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; }
.drawer-language select option { color: var(--ink); }
.drawer-logout { background: rgba(255,105,118,.08); border: 1px solid rgba(255,179,187,.25); color: #ffc7cd; margin-top: 10px; min-height: 44px; text-align: left; width: 100%; }
.drawer-logout .dr-ic { color: #ffb3bb; }
.sidebar-footer { margin-top: 12px; padding-top: 14px; }
.drawer-nav a:focus-visible, .drawer-nav button:focus-visible, .drawer-close:focus-visible, .hamburger:focus-visible, .drawer-logout:focus-visible { outline: 2px solid #8ee3ff; outline-offset: 2px; }
body.drawer-open { overflow: hidden; }
@media (max-width: 760px) {
  .topbar { padding: 8px 12px; height: auto; min-height: 76px; flex-wrap: wrap; }
  .topbar-actions { width: 100%; justify-content: flex-end; }
  .topbar-actions .notification-button { display: none; }
  .topbar-actions .test-pill, .topbar-actions .profile-button { display: flex; }
  .topbar .language-picker { display: flex; }
  .page-view { padding-bottom: 40px; }
}
@media (max-width: 400px) { .topbar .mobile-brand strong { font-size: 13px; } .topbar .mobile-brand .brand-mark { height: 32px; width: 32px; flex-basis: 32px; } }
@media (prefers-reduced-motion: reduce) { .app-shell .sidebar.drawer, .drawer-overlay { transition: none; } }

/* ---- role UI: customer home, agent desk, become agent, admin applications ---- */
.customer-only, .drawer-nav .nav-link.customer-only { display: none; }
.is-customer .customer-only, .is-customer .drawer-nav .nav-link.customer-only { display: flex; }
.r-hero { margin-bottom: 8px; }
.r-hero .button { min-height: 44px; }
.r-head { align-items: end; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; margin: 28px 0 12px; }
.r-head h2 { font-size: 18px; margin: 0; }
.r-head .muted { margin: 4px 0 0; }
.r-link { background: none; border: 0; color: #1f6bff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; min-height: 44px; padding: 0 6px; }
.r-link:disabled { opacity: .5; cursor: default; }
.r-na { color: #6b7a99; font-size: .6em; font-weight: 600; }
.r-line { align-items: baseline; display: flex; gap: 8px; justify-content: space-between; }
.r-line i { color: #6b7a99; font-size: 11px; font-style: normal; font-weight: 700; letter-spacing: .06em; }
.r-line b { font-family: "Space Grotesk", sans-serif; font-size: 18px; }
.r-summary { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.r-stat { background: #fff; border: 1px solid #dfe7f6; border-radius: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 16px; }
.r-stat > span, .desk-stat > span, .desk-mini span { color: #5b6b8c; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.r-stat > strong { font-family: "Space Grotesk", sans-serif; font-size: 28px; }
.r-stat-money > div { display: grid; gap: 4px; }
.r-quick { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.r-recipient { background: #fff; border: 1px solid #dfe7f6; border-radius: 14px; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 16px; transition: transform .2s ease, border-color .2s ease; }
.r-recipient:hover { border-color: #8db4ff; transform: translateY(-2px); }
.r-recipient-top { align-items: center; display: grid; gap: 10px; grid-template-columns: auto minmax(0, 1fr) auto; }
.r-recipient-top strong, .r-phone { display: block; overflow-wrap: anywhere; }
.r-phone { color: #5b6b8c; font-size: 12px; }
.r-cc { align-items: center; background: #e9f0ff; border-radius: 10px; color: #1f56c4; display: inline-flex; font-size: 11px; font-weight: 800; height: 36px; justify-content: center; width: 36px; }
.r-type { background: #e9f0ff; border-radius: 99px; color: #1f56c4; font-size: 10px; font-weight: 800; padding: 4px 9px; }
.r-type.data { background: #e6f7ef; color: #14724a; }
.r-recipient-meta { display: grid; gap: 6px; margin: 0; }
.r-recipient-meta div { display: flex; gap: 8px; justify-content: space-between; }
.r-recipient-meta dt { color: #6b7a99; font-size: 12px; }
.r-recipient-meta dd { font-size: 13px; font-weight: 700; margin: 0; overflow-wrap: anywhere; text-align: right; }
.r-recipient .button { margin-top: auto; min-height: 44px; width: 100%; }
.r-empty { align-items: center; background: #f1f6ff; border: 1px dashed #aac4f5; border-radius: 14px; display: flex; gap: 14px; padding: 20px; }
.r-empty p { color: #5b6b8c; margin: 4px 0 0; }
.r-empty-mark { background: #1f6bff; border-radius: 12px; flex: none; height: 40px; width: 40px; }
.r-defs { background: #f1f6ff; border-left: 4px solid #1f6bff; border-radius: 10px; color: #3d4d70; font-size: 13px; line-height: 1.55; margin-top: 24px; padding: 14px 16px; }
.r-defs p { margin: 4px 0 0; }
.r-error, .r-stale { background: #fff4f2; border: 1px solid #f4c3bb; border-radius: 12px; color: #8a2c1c; font-size: 13px; padding: 14px 16px; }
.r-error p { margin: 0 0 10px; }
.r-stale { margin-top: 10px; }
.r-skel-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.r-skel { animation: r-pulse 1.3s ease-in-out infinite; background: #e4ebf8; border-radius: 14px; height: 96px; }
@keyframes r-pulse { 50% { opacity: .45; } }
.r-banner { align-items: center; border-radius: 12px; display: flex; gap: 14px; justify-content: space-between; margin-bottom: 14px; padding: 12px 16px; text-decoration: none; }
.r-banner span { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.r-banner em { font-size: 12px; font-style: normal; font-weight: 800; white-space: nowrap; }
.r-banner-pending { background: #fff7e0; color: #7a5300; }
.r-banner-needs_more_information { background: #e8f0ff; color: #1b4fb3; }
.r-banner-rejected { background: #fdeceb; color: #8a2c1c; }
.r-banner-approved { background: #e6f7ef; color: #14724a; }
.r-banner-note { font-size: 12px; }
/* agent desk: dark seller counter, amber action */
.desk { background: linear-gradient(135deg, #07163f, #0c2a73); border-radius: 18px; color: #fff; display: grid; gap: 22px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); padding: 28px; }
.desk h1 { font-size: clamp(28px, 4vw, 40px); margin: 6px 0; }
.desk p { color: #c4d3f5; margin: 0; }
.desk .eyebrow { color: #ffc54d; }
.desk-actions { align-content: center; display: grid; gap: 10px; }
.desk-actions .button { justify-content: center; min-height: 48px; }
.desk-main { background: #ffb81f; border-color: #ffb81f; color: #1a1300; font-size: 16px; min-height: 56px !important; }
.desk-alt { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff; }
.desk-stats { display: grid; gap: 12px; grid-template-columns: 1.4fr 1fr 1fr; }
.desk-stat { background: #fff; border: 1px solid #dfe7f6; border-radius: 14px; display: grid; gap: 10px; min-width: 0; padding: 18px; }
.desk-stat.main { border-top: 4px solid #1f6bff; }
.desk-stat.gain { background: #eaf8f1; border-color: #bfe6d3; }
.desk-stat > div, .desk-mini > div > div { display: grid; gap: 4px; }
.desk-stat.main .r-line b { font-size: 26px; }
.desk-mini { background: #fff; border: 1px solid #dfe7f6; border-radius: 14px; display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; padding: 16px; }
.desk-mini > div { display: grid; gap: 6px; min-width: 0; }
.desk-mini b { font-family: "Space Grotesk", sans-serif; font-size: 20px; }
.r-quick-agent { grid-template-columns: 1fr; }
.r-quick-agent .r-recipient { align-items: center; display: grid; gap: 14px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr) 170px; }
.r-quick-agent .r-recipient .button { margin: 0; }
.r-quick-agent .r-recipient-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.r-quick-agent .r-recipient-meta div { display: grid; gap: 2px; }
.r-quick-agent .r-recipient-meta dd { text-align: left; }
/* become agent */
.r-appform { margin-top: 16px; padding: 22px; }
.r-status { margin-top: 16px; padding: 22px; }
.r-status-head { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.r-status-label { font-weight: 800; }
.r-pill-approved { background: #e6f7ef; color: #14724a; }
.r-pill-rejected { background: #fdeceb; color: #8a2c1c; }
.r-pill-needs_more_information { background: #e8f0ff; color: #1b4fb3; }
.r-note { background: #f1f6ff; border-radius: 10px; margin: 12px 0; padding: 12px 14px; overflow-wrap: anywhere; }
.r-note p { margin: 4px 0 0; }
.field-error { color: #b3261e; font-size: 12px; margin: 4px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.field [aria-invalid="true"], .field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #d6453a; }
.r-name-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.r-check { align-items: flex-start; cursor: pointer; display: flex; gap: 10px; min-height: 44px; }
.r-check input { flex: none; height: 20px; margin-top: 2px; width: 20px; }
.r-check a { color: #1f6bff; font-weight: 700; text-decoration: underline; }
textarea[data-app-field] { width: 100%; resize: vertical; }
/* admin */
.r-adm-list { display: grid; padding: 0 22px 22px; }
.r-adm-row { border-top: 1px solid #e6ecf8; padding: 14px 0; }
.r-adm-main { align-items: center; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) auto auto; }
.r-adm-main small { color: #6b7a99; display: block; overflow-wrap: anywhere; }
.r-adm-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.r-adm-detail { background: #f6f9ff; border-radius: 12px; margin-top: 12px; padding: 14px; }
.r-adm-detail dl { display: grid; gap: 10px 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 0 0 10px; }
.r-adm-detail dt { color: #6b7a99; font-size: 11px; font-weight: 700; }
.r-adm-detail dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.r-adm-notes { display: grid; font-size: 12px; font-weight: 700; gap: 6px; }
.r-adm-notes textarea { width: 100%; }
@media (max-width: 900px) {
  .r-summary, .desk-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .r-quick { grid-template-columns: 1fr 1fr; }
  .desk { grid-template-columns: 1fr; }
  .desk-stats { grid-template-columns: 1fr; }
  .r-quick-agent .r-recipient { grid-template-columns: 1fr; }
  .r-adm-main { grid-template-columns: 1fr; }
  .r-adm-actions { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .r-quick { grid-template-columns: 1fr; }
  .desk { padding: 20px; }
  .r-summary { gap: 8px; }
  .r-stat { padding: 12px; }
  .r-stat > strong { font-size: 22px; }
  .r-name-row { grid-template-columns: 1fr; }
  .r-banner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 360px) { .desk-mini { grid-template-columns: 1fr; } .r-summary { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .r-skel { animation: none; } .r-recipient { transition: none; } .r-recipient:hover { transform: none; } }
