:root {
  color-scheme: light;
  --paper: #f5f7f3;
  --white: #fff;
  --ink: #192a23;
  --forest: #101c19;
  --muted: #54635c;
  --line: #dce4db;
  --accent: #c3f56b;
  --deep-green: #234d38;
  --shell: 1120px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #4a8d58; outline-offset: 3px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 5; padding: .75rem 1rem; background: var(--accent); color: var(--forest); }
.shell { width: min(var(--shell), calc(100% - 80px)); margin-inline: auto; }

.topbar { background: var(--forest); border-bottom: 1px solid #ffffff18; color: #f5fff3; }
.nav { min-height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; line-height: 1.15; font-weight: 750; white-space: nowrap; }
.brand-icon { width: 33px; height: 33px; padding: 8px; background: var(--accent); color: var(--forest); border-radius: 9px; display: flex; gap: 2px; align-items: end; justify-content: center; }
.brand-icon i { background: currentColor; border-radius: 1px; width: 4px; height: 5px; }
.brand-icon i:nth-child(2) { height: 10px; }
.brand-icon i:nth-child(3) { height: 15px; }
.nav nav { display: flex; justify-content: center; gap: clamp(12px, 3vw, 38px); }
.nav nav a { color: #b6c7bc; padding: 25px 2px; border-bottom: 2px solid transparent; font-size: 14px; white-space: nowrap; }
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }
.nav-account { display: flex; gap: 12px; align-items: center; white-space: nowrap; }
#nav-balance { color: var(--accent); font-size: 13px; font-variant-numeric: tabular-nums; }

.hero { overflow: hidden; color: #f8fff7; background: radial-gradient(ellipse at 78% 28%, #294e3b 0, #182d24 30%, var(--forest) 69%); }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; min-height: 325px; gap: 24px; }
.hero-text { padding: 48px 0; position: relative; z-index: 1; }
.eyebrow { font: 700 12px/1.5 ui-monospace, "Microsoft YaHei", monospace; letter-spacing: .1em; }
.hero .eyebrow { color: #c0d3c6; margin-bottom: 17px; }
.light-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; background: var(--accent); box-shadow: 0 0 12px #c3f566a8; }
.hero h1 { font-size: clamp(37px, 5vw, 64px); font-weight: 750; line-height: 1.16; letter-spacing: -.045em; }
.hero h1 span { color: var(--accent); }
.hero-desc { color: #c4d5c9; font-size: 15px; margin-top: 20px; max-width: 35ch; }
.hero-graphic { position: relative; height: 305px; isolation: isolate; }
.hero-graphic::after, .hero-graphic::before { content: ""; display: block; position: absolute; top: 50%; left: 50%; translate: -50% -50%; z-index: -1; background: #b2e49335; }
.hero-graphic::before { width: 100%; height: 1px; }
.hero-graphic::after { width: 1px; height: 100%; }
.radar { position: absolute; top: 50%; left: 50%; translate: -50% -50%; aspect-ratio: 1; border: 1px solid #b2e49338; border-radius: 100%; }
.radar-wide { width: 290px; }
.radar-mid { width: 224px; }
.radar-core { width: 150px; background: #a0eb7d0e; }
.graphic-phone { position: absolute; width: 87px; height: 144px; border-radius: 18px; background: #172820; border: 2px solid #aff0a1; top: 50%; left: 50%; translate: -50% -50%; rotate: -10deg; padding: 37px 14px 12px; display: grid; gap: 7px; align-content: start; box-shadow: 0 0 43px #9dfa9a22; }
.graphic-phone span { position: absolute; width: 22px; height: 3px; background: #aff0a1; border-radius: 3px; left: 50%; translate: -50%; top: 10px; }
.graphic-phone b { display: block; height: 7px; border-radius: 10px; background: #aff0a16e; }
.graphic-phone b:nth-child(3) { width: 70%; }
.graphic-phone b:nth-child(4) { width: 88%; }
.graphic-tag { position: absolute; top: 43%; left: calc(50% + 16px); display: flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 8px; background: var(--accent); color: var(--forest); box-shadow: 0 7px 35px #0a1a12a8; font: 900 13px/1 ui-monospace, monospace; }
.graphic-tag i { width: 13px; height: 9px; border: 1px solid currentColor; border-radius: 2px; position: relative; }
.graphic-tag i::after { content: ""; position: absolute; width: 7px; height: 7px; rotate: 45deg; left: 2px; top: -3px; border-right: 1px solid; border-bottom: 1px solid; }
.graphic-label { position: absolute; top: 18%; left: 3%; color: #c8edba; font: 700 9px/1.5 ui-monospace, monospace; letter-spacing: .12em; }

.content { padding-block: 42px 56px; }
.inner-page { min-height: 62vh; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 21px; }
.section-heading h1, .section-heading h2 { font-size: clamp(25px, 4vw, 34px); line-height: 1.25; font-weight: 750; letter-spacing: -.035em; }
.section-heading p:not(.eyebrow) { color: var(--muted); margin-top: 6px; font-size: 14px; }
.index-label { color: var(--deep-green); margin-bottom: 8px; }
.catalog-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 2px 6px #1a312309; }
.catalog-steps { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.catalog-step { min-width: 0; padding: 22px; }
.catalog-next { border-left: 1px solid var(--line); }
.catalog-next .catalog-step + .catalog-step { border-top: 1px solid var(--line); }
.step-title { display: flex; gap: 10px; align-items: center; margin-bottom: 15px; }
.step-title > span { display: grid; place-items: center; min-width: 29px; height: 26px; border-radius: 6px; background: #e7f0e2; color: var(--deep-green); font: 750 12px ui-monospace, monospace; }
.step-title h3 { font-size: 17px; }
.country-heading { display: flex; justify-content: space-between; align-items: center; gap: 9px; margin-bottom: 12px; }
.country-heading .step-title { margin: 0; }
.btn.country-top { min-height: 31px; padding: 5px 8px; background: #e9f4df; color: var(--deep-green); }
.btn.country-top:not(:disabled):hover { background: #dceecf; }
.country-list { list-style: none; margin: 7px 0 0; padding: 2px 3px; max-height: 383px; overflow: auto; scrollbar-gutter: stable; }
.country-list:empty { display: none; }
.country-list li + li { border-top: 1px solid var(--line); }
.country-list .country-choice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: center; width: 100%; padding: 7px 6px; min-height: 53px; text-align: left; white-space: normal; }
.country-list .country-choice:hover, .country-list .country-choice[aria-pressed="true"] { background: #eef6e8; border-color: #d6e6d0; }
.country-flag { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; overflow: hidden; border-radius: 50%; background: #e7f0e2; color: var(--deep-green); font-size: 13px; box-shadow: inset 0 0 0 1px #203c2420; }
.country-flag img { display: block; width: 100%; height: 100%; object-fit: cover; }
.country-label, .country-price { display: grid; gap: 4px; min-width: 0; }
.country-label strong { overflow-wrap: anywhere; }
.country-stock, .country-price span { font-size: 11px; line-height: 1.3; color: var(--muted); font-weight: 500; }
.country-price { text-align: right; white-space: nowrap; color: var(--deep-green); font-variant-numeric: tabular-nums; }
#country-status { margin-top: 8px; }
#country-more { margin-top: 8px; }
.service-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; max-height: 315px; margin: 0; padding: 2px 2px 5px; overflow: auto; }
.service-list .service-button { justify-content: start; gap: 8px; width: 100%; height: 46px; padding: 5px 7px; border: 1px solid var(--line); background: #f8faf7; text-align: left; }
.service-list .service-button:hover { border-color: #7aa781; background: #edf5e8; }
.service-button > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.service-logo { flex: 0 0 29px; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: #e7f0e2; color: var(--deep-green); font-weight: 800; }
.service-logo:has(svg, img) { background: #fff; }
.service-logo svg, .service-logo img { display: block; width: 21px; height: 21px; }
.service-logo img { object-fit: contain; border-radius: 4px; }
.selected-service { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 10px; background: #f1f6ee; border: 1px solid var(--line); border-radius: 10px; }
.selected-service strong { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.checkout-step > .btn { margin-top: 12px; }
#service-count { margin: 10px 0 6px; }
#service-more { margin-top: 8px; }
label { display: grid; gap: 6px; color: var(--ink); font-size: 14px; font-weight: 650; }
input:not([type="checkbox"], [type="radio"]), select { width: 100%; min-height: 43px; min-width: 0; padding: 7px 10px; background: #f9fbf8; color: var(--ink); border: 1px solid #cbd8cc; border-radius: 8px; font-weight: 500; }
select:disabled { color: var(--muted); }
.checkbox { display: flex; align-items: center; gap: 8px; }
input[type="checkbox"] { width: 17px; height: 17px; margin: 0; accent-color: var(--deep-green); }
.empty { padding: 28px 21px; color: var(--muted); text-align: center; font-size: 14px; }
.notice { padding: 10px 13px; color: #294632; background: #ebf5e9; border-radius: 8px; overflow-wrap: anywhere; font-size: 14px; }
.notice.error { background: #fdf1eb; color: #8c3624; }
.catalog-panel .notice { margin: 0 21px 15px; }
.inner-page > .notice { margin-bottom: 15px; }
.guide { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; gap: 14px; }
.guide > div { display: flex; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; }
.guide > div > span { align-self: start; padding: 5px 8px; border-radius: 5px; background: #e6efdf; color: #315d3f; font: 750 12px ui-monospace, monospace; }
.guide strong { font-size: 14px; }
.guide p, .muted { font-size: 13px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 8px; min-height: 37px; padding: 7px 13px; font-size: 13px; font-weight: 700; line-height: 1.25; color: inherit; background: transparent; cursor: pointer; white-space: nowrap; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: #1a2d20; border-color: #aadd52; }
.btn.primary:not(:disabled):hover { background: #d2fb93; }
.btn.secondary { background: var(--white); color: #294c36; border-color: #cbd8cc; }
.btn.secondary:not(:disabled):hover { background: #eaf3e8; }
.btn.ghost { border-color: #97b3a483; color: #f4fff2; }
.btn.ghost:not(:disabled):hover { border-color: var(--accent); color: var(--accent); }
.btn.text { color: var(--deep-green); }
.btn.text:hover { text-decoration: underline; }
.btn.icon { min-height: 33px; min-width: 33px; font-size: 21px; font-weight: 500; padding: 0; }
.btn.icon:hover { background: var(--paper); }

.wallet-grid, .admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.balance-panel, .funding-panel, .form-panel { padding: 22px; }
.balance-panel { display: flex; align-items: start; flex-direction: column; gap: 8px; background: #193127; color: #e5f1e4; }
.balance-panel strong { font-size: clamp(26px, 5vw, 42px); color: var(--accent); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.funding-panel h2, .form-panel h2, .review-heading { font-size: 19px; }
.funding-panel h2 { margin: 10px 0 6px; }
.funding-panel p { font-size: 14px; color: var(--muted); }
.form-panel { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.form-panel .btn { align-self: start; }
.field-action { display: flex; gap: 8px; margin-top: -6px; }
.field-action .btn { align-self: stretch; }
.review-heading { margin: 23px 0 12px; }
.orders-list { display: grid; gap: 12px; }
.order { display: grid; gap: 10px; padding: 15px 20px; min-width: 0; }
.order-heading { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.order-heading h3 { font-size: 17px; }
.order-heading p { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.pill { display: inline-block; padding: 4px 9px; border-radius: 99px; background: #ecf2eb; color: #45584a; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.waiting, .pill.pending, .pill.review { background: #fff1ce; color: #725215; }
.pill.received, .pill.charged { background: #e3f4dd; color: #275c31; }
.pill.failed { background: #fcebe3; color: #8c3624; }
.order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.offer-duration { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.sms-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.sms-list li { padding: 8px 12px; border-radius: 8px; background: #f1f5ef; font-size: 14px; overflow-wrap: anywhere; }
.sms-list time { color: var(--muted); display: block; font-size: 12px; }
.sms-list strong { font-variant-numeric: tabular-nums; }
.sms-list p { white-space: pre-wrap; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 650; overflow-wrap: anywhere; }
.order .facts dd { font-variant-numeric: tabular-nums; }
.order .notice { max-width: 100%; }

.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.stat-card { padding: 18px; display: grid; gap: 10px; }
.stat-card strong { font-size: 25px; overflow-wrap: anywhere; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.subnav [aria-pressed="true"] { background: var(--deep-green); color: white; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 18px 0; }
.filter-bar > input { flex: 1 1 200px; min-width: 0; }
.filter-bar > select { width: auto; }
.filter-bar label { display: grid; gap: 6px; font-size: 13px; }
.filter-bar input[type="date"] { min-width: 0; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; align-items: center; margin: 24px 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: white; }
.data-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.data-table th, .data-table td { text-align: left; padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; min-width: 95px; max-width: 400px; }
.data-table th { background: #f1f5ef; white-space: nowrap; }
.data-table .btn { padding: 6px 10px; font-size: 13px; white-space: nowrap; }
.mono { display: block; font-family: monospace; font-size: 11px; margin-top: 6px; overflow-wrap: anywhere; }
.amount-in { color: #247145; }
.stack { display: grid; gap: 14px; }
.management-list { margin-top: 18px; }
.announcement-card { padding: 22px; }
.announcement-card h2 { margin: 8px 0 14px; overflow-wrap: anywhere; }
.announcement-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.announcement-banner { display: flex; align-items: center; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.announcement-banner a { color: var(--ink); overflow-wrap: anywhere; }
textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: inherit; resize: vertical; }
@media (max-width: 600px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat-card { padding: 13px; }
  .stat-card strong { font-size: 20px; }
  .filter-bar > label { flex: 1 1 130px; min-width: 0; }
  .subnav { gap: 6px; }
  .subnav .btn { padding: 8px 10px; font-size: 13px; }
  .announcement-card { padding: 15px; }
}
.footer-inner { display: flex; min-height: 76px; justify-content: space-between; align-items: center; gap: 15px; }
.footer-inner > span:first-child { font-weight: 750; color: var(--ink); }
dialog { width: min(430px, calc(100vw - 30px)); color: var(--ink); border: 1px solid var(--line); border-radius: 15px; padding: 0; }
dialog::backdrop { background: #10221dc0; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 19px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 19px; }
.dialog-form { display: grid; gap: 14px; padding: 19px; }
.duration-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.duration-picker legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.duration-options { display: grid; gap: 6px; max-height: min(34vh, 280px); padding: 2px 3px; overflow: auto; }
.duration-choice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 41px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.duration-choice:has(input:checked) { background: #eef7e7; border-color: #91b387; }
.duration-choice input { width: 17px; height: 17px; margin: 0; accent-color: var(--deep-green); }
.duration-price { font-variant-numeric: tabular-nums; color: var(--deep-green); }
.country-stats-dialog { width: min(610px, calc(100vw - 30px)); }
.country-stats-content { padding: 17px 19px; display: grid; gap: 11px; }
.country-stats-rows { display: grid; gap: 0; list-style: none; padding: 0 7px 0 0; margin: 0; max-height: min(55vh, 505px); overflow-y: auto; }
.country-stats-rows li { display: grid; gap: 6px; border-bottom: 1px solid var(--line); padding: 8px 1px; }
.country-stats-rows li:last-child { border-bottom: 0; }
.country-stat-title { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.country-stat-title .country-flag { width: 24px; height: 24px; flex-basis: 24px; }
.country-metric { display: grid; grid-template-columns: minmax(92px, auto) minmax(38px, 1fr) 60px; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.country-metric strong { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.country-metric progress { appearance: none; width: 100%; height: 7px; border: 0; border-radius: 9px; overflow: hidden; color: #487f57; background: #e9eee7; }
.country-metric progress::-webkit-progress-bar { background: #e9eee7; }
.country-metric progress::-webkit-progress-value { background: currentColor; border-radius: 9px; }
.country-metric progress::-moz-progress-bar { background: currentColor; border-radius: 9px; }
.country-metric.orders progress { color: #6476ad; }
.country-metric.success progress { color: #23896f; }

@media (max-width: 790px) {
  .shell { width: calc(100% - 40px); }
  .nav { gap: 18px; }
  .hero-inner { grid-template-columns: 1.25fr .75fr; min-height: 320px; }
  .hero-graphic { height: 230px; }
  .radar-wide { width: 215px; }
  .radar-mid { width: 162px; }
  .radar-core { width: 115px; }
  .graphic-label { display: none; }
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .shell { width: calc(100% - 30px); }
  .nav { grid-template-columns: 1fr auto; gap: 0 10px; min-height: auto; padding-top: 11px; }
  .nav nav { grid-row: 2; grid-column: 1 / -1; justify-content: start; gap: 18px; overflow: auto; }
  .nav nav a { padding: 11px 0 9px; font-size: 13px; }
  .hero-inner { display: block; position: relative; min-height: auto; }
  .hero-text { padding-block: 38px 41px; }
  .hero h1 { font-size: clamp(31px, 8.5vw, 45px); }
  .hero .eyebrow { margin-bottom: 12px; }
  .hero-desc { font-size: 14px; }
  .hero-graphic { display: none; }
  .content { padding-block: 31px 42px; }
  .section-heading { align-items: start; }
  .catalog-meta { align-items: end; flex-direction: column-reverse; gap: 5px; white-space: nowrap; }
  .catalog-meta .btn, #orders-refresh, #admin-refresh { min-height: 34px; padding-inline: 9px; }
  .catalog-steps { grid-template-columns: minmax(0, 1fr); }
  .catalog-step { padding: 15px; }
  .catalog-next { border-left: 0; border-top: 1px solid var(--line); }
  .catalog-panel .notice { margin-inline: 13px; }
  .guide, .wallet-grid, .admin-grid { grid-template-columns: 1fr; gap: 8px; }
  .order, .balance-panel, .funding-panel, .form-panel { padding: 13px; }
}
