/* XI Labels visual system. Loaded after the base layout styles. */
:root {
  --ink: #17382e;
  --ink2: #52675c;
  --line: #dce6dc;
  --cream: #f7f9f6;
  --mint: #c9ee9c;
  --mint2: #eaf7dc;
  --green: #216447;
  --shadow: 0 12px 32px rgba(21, 57, 42, .045);
}
body { background: var(--cream); color: var(--ink); font-size: 14px; }
h1, h2, h3 { letter-spacing: -.045em; }
h1 { line-height: 1.08; }
a, button, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #9ed273; outline-offset: 3px; }
.page-width { width: min(1200px, calc(100% - 56px)); }

/* Header and language control */
.site-header {
  height: 78px;
  padding-inline: max(28px, calc((100vw - 1200px) / 2));
  gap: 27px;
  background: rgba(255, 255, 255, .94);
  border-color: #e8eee8;
  box-shadow: 0 1px 12px rgba(19, 54, 37, .025);
  position: relative;
  z-index: 10;
}
.brand { display: inline-flex; align-items: center; font-size: 1.44rem; letter-spacing: -.075em; }
.brand-lockup { display: flex; flex-direction: column; line-height: .88; font-size: 1.1rem; letter-spacing: -.055em; }
.brand-lockup small { margin-top: 4px; font: 800 .57rem 'DM Sans', Arial, sans-serif; letter-spacing: .21em; color: #3f8a5b; }
.brand-mark {
  color: #d5f4b0;
  background: var(--ink);
  border-radius: 10px;
  width: 33px;
  height: 33px;
  margin-right: 9px;
  font-size: 19px;
  box-shadow: 0 4px 10px rgba(22, 56, 41, .12);
}
.brand-dot { color: #70a95d; }
.site-header nav { gap: 26px; margin-left: auto; font-size: .88rem; }
.site-header nav > a:not(.nav-cta), .nav-button { color: #40584a; transition: color .15s; }
.site-header nav > a:not(.nav-cta):hover, .nav-button:hover { color: var(--green); }
.nav-cta {
  border-radius: 11px;
  padding: 10px 17px;
  font-size: .86rem;
  box-shadow: 0 4px 11px rgba(23, 56, 46, .12);
  transition: transform .15s, box-shadow .15s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(23, 56, 46, .16); }
.nav-button { padding: 6px 0; }
.language-menu { position: relative; margin-left: 1px; font-size: .84rem; font-weight: 700; }
.language-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 139px;
  height: 39px;
  padding: 0 10px 0 12px;
  color: #315441;
  background: #f7faf7;
  border: 1px solid #dce8de;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::marker { content: ''; }
.language-menu summary:hover, .language-menu[open] summary {
  border-color: #aacbb0;
  background: white;
  box-shadow: 0 3px 12px rgba(29, 84, 53, .07);
}
.language-globe { width: 17px; height: 17px; flex: none; color: #3f7954; }
.language-chevron { width: 14px; height: 14px; margin-left: auto; flex: none; transition: transform .15s; }
.language-menu[open] .language-chevron { transform: rotate(180deg); }
.language-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 224px;
  padding: 9px;
  background: #fff;
  border: 1px solid #e0e9e0;
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(18, 52, 36, .16);
  z-index: 40;
}
.language-caption {
  display: block;
  padding: 8px 10px 10px;
  color: #7c9182;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.language-option {
  width: 100%;
  min-height: 43px;
  border: 0;
  border-radius: 9px;
  display: grid;
  grid-template-columns: 29px 1fr 18px;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  text-align: left;
  background: transparent;
  color: #304d3e;
  font-weight: 700;
  cursor: pointer;
}
.language-option:hover, .language-option:focus-visible { background: #f2f8f1; }
.language-option.is-active { color: #1d6342; background: #ecf6e8; }
.language-code {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: #f0f4ef;
  border-radius: 7px;
  font-size: .73rem;
  font-weight: 800;
}
.is-active .language-code { background: #d5eccd; }
.language-check { visibility: hidden; justify-self: center; color: #348155; font-size: 1rem; }
.is-active .language-check { visibility: visible; }

/* Landing page */
.hero { gap: 7%; min-height: 640px; padding-block: 52px 45px; }
.hero-copy { padding-bottom: 8px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.hero .eyebrow::before { content: ''; width: 7px; height: 7px; background: #64ab70; border-radius: 50%; }
.hero h1 { font-size: clamp(3.35rem, 5.2vw, 5.45rem); max-width: 660px; margin: 25px 0 22px; }
.hero h1 em { color: #3f8a5b; }
.hero-copy p { max-width: 510px; color: #546d5c; line-height: 1.75; }
.actions { margin: 31px 0 29px; }
.button { border-radius: 11px; min-height: 46px; padding: 12px 19px; gap: 16px; }
.button.primary { box-shadow: 0 5px 13px rgba(23, 56, 46, .12); }
.button.secondary { border-color: #d9e4da; }
.button.secondary:hover { border-color: #9fbda5; }
.hero-proof { padding-top: 3px; color: #587a62; }
.hero-art {
  height: 480px;
  border-radius: 26px;
  background: linear-gradient(145deg, #e8f5e2 0%, #d7edcb 58%, #c8e5b9 100%);
  border: 1px solid #d8e9d2;
}
.orb-one { background: rgba(181, 226, 161, .64); }
.orb-two { background: rgba(141, 206, 134, .65); }
.floating-label {
  border: 1px solid #e3ebe3;
  border-radius: 11px;
  transform: rotate(-6deg);
  box-shadow: 0 25px 45px rgba(25, 70, 39, .16);
}
.art-star { color: #3c8b61; opacity: .8; }
.steps { padding-block: 48px 46px; }
.steps h2 { margin-top: 11px; }
.step-grid { gap: 18px; margin-top: 27px; }
.step-grid article { min-height: 187px; padding: 26px 27px; border-radius: 16px; box-shadow: var(--shadow); }
.step-grid h3 { margin: 8px 0 10px; font-size: 1.3rem; }
.step-grid p { line-height: 1.65; }
.step-number { color: #45855d; }

/* Customer and operations pages */
.app-page { padding-top: 44px; }
.page-heading { margin-bottom: 31px; }
.page-heading h1, .app-page > h1 { font-size: clamp(2.55rem, 4vw, 3.75rem); }
.page-heading p, .app-page > p { line-height: 1.65; }
.stat-grid { gap: 16px; }
.stat-card { border-radius: 16px; min-height: 142px; padding: 24px 25px; box-shadow: var(--shadow); }
.stat-card.featured { background: linear-gradient(135deg, #173b30, #1e5940); }
.stat-card > span { color: #617e69; font-size: .89rem; }
.stat-card strong { font-size: 2.6rem; letter-spacing: -.055em; }
.stat-card small { color: #687e6e; line-height: 1.4; }
.admin-page .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 810px; }
.quick-grid { gap: 16px; }
.quick-card {
  min-height: 132px;
  border: 1px solid #d5e8d4;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff9e9, #e8f5e4);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.quick-card:nth-child(2) { background: linear-gradient(135deg, #fbf6e8, #f7f1dd); border-color: #eee4c9; }
.quick-card:hover { transform: translateY(-3px); box-shadow: 0 14px 24px rgba(25, 58, 35, .09); }
.quick-card strong { font-size: 1.3rem; }
.quick-icon { color: #377b50; }
.section-heading { margin-top: 41px; }
.section-heading h2 { font-size: 1.42rem; }
.section-heading a, .table-wrap a, .small-link, .back-link { color: #286e47; }
.table-wrap { border-radius: 14px; box-shadow: var(--shadow); }
.empty-orders { padding: 38px 30px; text-align: center; }
.empty-orders p { margin-bottom: 17px; color: #708675; }
th { background: #f8faf8; color: #728675; font-size: .7rem; letter-spacing: .075em; }
th, td { padding: 15px 19px; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #fafcf9; }
.status { font-size: .72rem; border-radius: 7px; padding: 5px 9px; }
.filter-row a { border-color: #d9e5da; background: white; }
.filter-row a.active { border-color: var(--ink); }
.account-links a { padding: 9px 14px; background: #eef5ed; border-radius: 9px; }
.card { border-radius: 16px; box-shadow: var(--shadow); }
.number-pill { border-radius: 9px; }
.form-section { padding: 28px 29px; }
.field label { color: #3d5848; font-size: .84rem; }
.field input, .card input:not([type=checkbox]), .auth-card input {
  border-color: #cfddcf;
  background: white;
  border-radius: 9px;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .card input:not([type=checkbox]):focus, .auth-card input:focus {
  outline: 0;
  border-color: #6dab78;
  box-shadow: 0 0 0 3px rgba(127, 190, 127, .17);
}
.auth-wrap { gap: 8%; }
.auth-card { padding: 36px; }
.auth-intro p { line-height: 1.7; }
.notice { border-radius: 11px; }
.summary-card { top: 28px; }
.fail-form button { border-radius: 7px; }
.site-footer { max-width: 1200px; color: #75897a; }
.topup-card { display:grid; grid-template-columns:1.35fr 1fr; gap:44px; padding:32px; margin:28px 0; }
.topup-card h2 { margin-top:10px; font-size:1.7rem; }
.topup-card p { max-width:520px; line-height:1.7; color:#62796c; }
.payment-steps { display:flex; flex-wrap:wrap; gap:12px; margin:24px 0; font-size:.84rem; font-weight:650; color:#24634b; }
.payment-steps span { padding:8px 12px; background:#eff6f0; border-radius:8px; }
.topup-form { display:flex; flex-direction:column; gap:14px; }
.topup-form label { margin:0; font-weight:650; }
.amount-input { display:flex; align-items:center; border:1px solid #b9cfc2; border-radius:10px; padding:0 14px; background:#fff; }
.amount-input span { font-size:1.6rem; }
.amount-input input { border:0; box-shadow:none; padding:12px; margin:0; font-size:1.8rem; font-weight:650; min-width:0; width:100%; background:transparent; }
.amount-input:focus-within { outline:2px solid #397957; outline-offset:2px; }
.amount-presets { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.amount-presets button { border:1px solid #d9e4dc; background:#f6faf7; border-radius:8px; padding:9px; cursor:pointer; color:#24573f; font-weight:650; }
.amount-presets button:hover { background:#e7f3e8; border-color:#80ad90; }
.payment-note { font-size:.83rem; color:#6a7f71; line-height:1.6; }
.payment-result { max-width:720px; margin:30px auto; padding:40px; text-align:center; }
.payment-result .button { margin:12px 6px; }
.payment-result p { line-height:1.7; overflow-wrap:anywhere; }
.payment-total { font-size:3rem; font-weight:750; color:#194a36; margin:20px 0; }
.payment-total small { font-size:1rem; color:#718579; }
@media (max-width:760px) { .topup-card { grid-template-columns:1fr; padding:24px; gap:20px; } .payment-result { padding:26px; } }

html:lang(zh-hans) .eyebrow, html:lang(zh-hant) .eyebrow { letter-spacing: .09em; }
html:lang(zh-hans) .hero h1, html:lang(zh-hant) .hero h1 { line-height: 1.13; }

@media (max-width: 900px) {
  .site-header { height: auto; min-height: 74px; padding: 14px 24px; gap: 12px; flex-wrap: wrap; }
  .site-header nav { gap: 14px; flex-wrap: wrap; }
  .hero { min-height: 0; gap: 30px; padding-top: 60px; }
  .hero-art { height: 400px; }
}
@media (max-width: 600px) {
  .page-width { width: calc(100% - 32px); }
  .site-header { padding: 13px 16px; }
  .site-header .brand { order: 1; }
  .site-header nav { order: 3; width: 100%; margin-left: 0; gap: 13px; font-size: .8rem; }
  .language-menu { order: 2; margin-left: auto; }
  .language-menu summary { min-width: 122px; height: 36px; padding-inline: 9px; gap: 7px; }
  .language-popover { width: 214px; }
  .hero { padding-top: 45px; }
  .hero h1 { font-size: clamp(2.7rem, 10vw, 3.6rem); }
  .hero-copy p { font-size: 1.02rem; }
  .hero-art { height: 320px; border-radius: 20px; }
  .floating-label { transform: rotate(-6deg) scale(.76); }
  .steps { padding-top: 42px; }
  .step-grid article { min-height: 0; padding: 22px 24px; }
  .stat-card { min-height: 126px; padding: 20px; }
  .admin-page .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: center; }
  .auth-card { padding: 26px; }
  .form-section { padding: 23px; }
  .site-footer { padding-inline: 16px; }
}

/* The public rate is the primary product message. */
.hero h1 { font-size:clamp(3.2rem,5.5vw,5.5rem); letter-spacing:-.055em; }
.hero h1 em { white-space:nowrap; }
.hero-price { font-variant-numeric:lining-nums; }
.rate-seal { position:absolute; z-index:3; right:24px; bottom:24px; width:132px; height:148px; background:#173f31; color:#fff; border:1px solid #ffffff35; border-radius:20px; display:flex; flex-direction:column; align-items:center; justify-content:center; box-shadow:0 12px 30px #173f3126; transform:rotate(5deg); }
.rate-seal span,.rate-seal small { font-size:.65rem; letter-spacing:.14em; font-weight:700; }
.rate-seal strong { font-size:3.6rem; line-height:1.2; letter-spacing:-.06em; font-weight:650; }
.status.deleted { background:#f2ebe1; color:#7b5b31; }
.processing-notice { display:flex; align-items:flex-start; gap:12px; padding:17px 19px; margin:20px 0; border:1px solid #d8e5df; border-radius:14px; background:#edf4f0; color:#234e3d; }
.processing-notice svg { width:22px; height:22px; flex:0 0 22px; margin-top:1px; }
.processing-notice strong { display:block; font-size:.94rem; line-height:1.45; }
.processing-notice p, .hero-copy .processing-notice p { font-size:.84rem; line-height:1.55; margin:5px 0 0; color:#556f62; }
.summary-card .processing-notice { padding:14px; gap:9px; }
@media(max-width:600px) { .hero h1 { font-size:clamp(2.7rem,10.6vw,3.6rem); } .rate-seal { width:105px;height:120px;right:16px;bottom:16px; } .rate-seal strong { font-size:2.9rem; } }
