:root{
  --bg:#f3f7fb;--card:#fff;--ink:#172033;--muted:#65758b;--line:#e4ebf3;
  --brand:#123d6b;--brand2:#1769aa;--brand3:#24a1d8;--accent:#f97345;
  --ok:#087f5b;--warn:#9a6700;--bad:#c92a2a;--purple:#6d4aff;
  --shadow:0 12px 34px rgba(26,65,105,.09);--shadow-hover:0 16px 38px rgba(26,65,105,.14)
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;background:radial-gradient(circle at 7% 0%,#eaf7ff 0,transparent 30%),radial-gradient(circle at 90% 12%,#fff0e8 0,transparent 26%),var(--bg);color:var(--ink);min-height:100vh;min-height:100dvh}
a{color:var(--brand2);text-decoration:none}a:hover{text-decoration:none}
.topbar{background:linear-gradient(120deg,#102f52 0%,#164f82 54%,#1677ad 100%);box-shadow:0 8px 28px rgba(15,50,84,.18);position:sticky;top:0;z-index:20}
.topbar .inner{max-width:1320px;margin:auto;padding:10px 20px;display:flex;align-items:center;gap:22px;min-height:72px}
.brand{display:flex;align-items:center;gap:10px;font-weight:850;color:#fff;font-size:20px;letter-spacing:.1px;min-width:max-content}
.brand:hover{color:#fff}
.guest-nav{display:flex;align-items:center;gap:16px;margin-left:auto;font-size:13px;font-weight:700}
.guest-nav a{color:#eaf6ff;padding:9px 10px;border-radius:9px}
.guest-nav a[aria-current="page"]{background:rgba(255,255,255,.13)}
.guest-nav .guest-login{background:#fff;color:#123d6b}
@media(max-width:480px){.guest-nav{gap:4px;font-size:11px}.guest-nav a{padding:8px}.topbar .inner{gap:8px}}
.brand-mark{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,#fff,#dff4ff);color:var(--brand);box-shadow:0 5px 16px rgba(0,0,0,.15);font-weight:900}
.brand-copy{line-height:1.05}.brand small{font-weight:500;color:#cce5f7;font-size:11px;display:block;margin-top:4px;letter-spacing:.3px}
.nav{display:flex;gap:6px;align-items:center;margin-left:auto;flex-wrap:wrap;justify-content:flex-end}
.nav-link{min-height:42px;padding:7px 10px;border-radius:11px;color:#eaf6ff!important;font-size:13px;font-weight:650;display:flex;align-items:center;gap:7px;border:1px solid transparent;transition:.18s ease;line-height:1.12}
.nav-link:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.12);transform:translateY(-1px)}
.nav-link.active{background:#fff;color:var(--brand)!important;box-shadow:0 5px 16px rgba(0,0,0,.14)}
.nav-icon{width:17px;height:17px;display:inline-flex;align-items:center;justify-content:center;opacity:.92;flex:0 0 auto}.nav-icon svg{width:100%;height:100%;fill:currentColor}.nav-stacked{align-items:center}.nav-two-lines{display:flex;flex-direction:column;white-space:nowrap}.nav-two-lines span:last-child{font-size:11px;opacity:.82;margin-top:2px}.nav-logout{color:#ffe9e4!important}
.container{max-width:1320px;margin:26px auto;padding:0 20px}
.page-hero{border-radius:20px;padding:22px 24px;margin-bottom:18px;display:flex;justify-content:space-between;align-items:flex-end;gap:20px;background:linear-gradient(120deg,rgba(255,255,255,.94),rgba(244,251,255,.94));border:1px solid rgba(197,220,239,.8);box-shadow:var(--shadow);position:relative;overflow:hidden}
.page-hero:after{content:"";position:absolute;width:190px;height:190px;border-radius:50%;right:-55px;top:-100px;background:linear-gradient(135deg,rgba(36,161,216,.18),rgba(249,115,69,.15))}.compact-hero{align-items:center}.eyebrow{font-size:10px;font-weight:850;letter-spacing:1.5px;color:var(--brand2);margin-bottom:7px}.hero-note{max-width:640px;color:var(--muted);font-size:13px;line-height:1.55;position:relative;z-index:1}
.card{background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:18px;margin-bottom:18px}.feature-card{border-top:3px solid var(--brand3)}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stats-grid{margin-bottom:18px}.stat{margin:0;display:flex;align-items:center;gap:13px;min-height:112px;position:relative;overflow:hidden;transition:.18s ease}.stat:hover{transform:translateY(-2px);box-shadow:var(--shadow-hover)}.stat:after{content:"";position:absolute;width:85px;height:85px;border-radius:50%;right:-26px;bottom:-34px;opacity:.12}.stat-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-weight:900;flex:0 0 auto}.stat-icon svg{width:22px;height:22px;fill:currentColor}.stat .label{color:var(--muted);font-size:12px;font-weight:750}.stat .value{font-size:23px;font-weight:850;margin-top:5px;letter-spacing:-.5px}.stat-help{font-size:12px;color:#66788d;margin-top:4px}.stat-paid{border-top:3px solid #20a37a}.stat-paid .stat-icon{background:#e8fbf5;color:#087f5b}.stat-paid:after{background:#20a37a}.stat-payable{border-top:3px solid #f6a723}.stat-payable .stat-icon{background:#fff5d9;color:#9a6700}.stat-payable:after{background:#f6a723}.stat-pending{border-top:3px solid #2995d5}.stat-pending .stat-icon{background:#eaf7ff;color:#1769aa}.stat-pending:after{background:#2995d5}.stat-reward{border-top:3px solid #7a5af8}.stat-reward .stat-icon{background:#f0edff;color:#6d4aff}.stat-reward:after{background:#7a5af8}
.title{font-size:27px;font-weight:850;margin:0 0 4px;letter-spacing:-.55px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px}.section-heading h2{font-size:17px;margin:0;font-weight:820}.section-heading p{margin:3px 0 0;color:var(--muted);font-size:12px}
.btn{border:0;border-radius:10px;padding:10px 14px;font-weight:750;cursor:pointer;background:linear-gradient(135deg,var(--brand2),var(--brand3));color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:6px;box-shadow:0 7px 17px rgba(23,105,170,.17);transition:.18s ease;white-space:nowrap}.btn:hover{transform:translateY(-1px);box-shadow:0 9px 21px rgba(23,105,170,.22);color:#fff}.btn:disabled{opacity:.45;cursor:not-allowed;transform:none}.btn.secondary{background:#fff;color:var(--brand);border:1px solid #cbd9e6;box-shadow:none}.btn.secondary:hover{background:#f5faff;color:var(--brand)}.btn.danger{background:var(--bad)}.btn.accent{background:var(--accent)}.btn.small{padding:7px 10px;font-size:12px}
input,select{width:100%;padding:10px 11px;border:1px solid #ced9e5;border-radius:10px;background:#fff;color:var(--ink);outline:none;transition:.16s ease;min-height:40px}input:focus,select:focus{border-color:#5c9fd0;box-shadow:0 0 0 3px rgba(48,136,199,.11)}label{font-size:12px;font-weight:750;display:block;margin:5px 0 6px;color:#46566b}.form-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;align-items:end}
.filter-card{padding:16px 18px}.filter-grid{display:grid;grid-template-columns:minmax(210px,1.4fr) minmax(120px,.7fr) minmax(180px,1fr) minmax(135px,.75fr) minmax(135px,.75fr) auto;gap:10px;align-items:end}.filter-actions{display:flex;gap:7px}.filter-search{min-width:0}
.table-wrap{overflow:auto;border:1px solid #e9eef4;border-radius:12px}table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px;background:#fff}th,td{padding:11px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}th{color:#536377;font-size:11px;font-weight:820;background:linear-gradient(#f7fafc,#f1f6fa);position:sticky;top:0;z-index:2;letter-spacing:.15px}tbody tr{transition:.13s ease}tbody tr:hover{background:#f8fbfe}tbody tr:last-child td{border-bottom:0}.order-table{min-width:1110px}.order-table .nowrap{white-space:nowrap}.product-head{min-width:230px}.product-cell{min-width:230px;width:28%;max-width:330px;white-space:normal;line-height:1.45;overflow-wrap:anywhere;color:#27364a}.order-code{font-size:12px}.date-cell{color:#43556a}.money-col,.money-cell{text-align:right}.money-cell b{color:#0b7297;font-size:13px}.market-badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:8px;font-size:11px;font-weight:780;white-space:nowrap;background:#eef3f8;color:#476079}.market-shopee{background:#fff0eb;color:#d94824}.market-tiktok{background:#eef1f4;color:#111827}.market-lazada{background:#f2edff;color:#6641c7}
.badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#eef2f7;font-size:10.5px;font-weight:800;white-space:nowrap}.badge.ok{background:#e6fcf5;color:var(--ok)}.badge.warn{background:#fff4cf;color:var(--warn)}.badge.bad{background:#fff0f0;color:var(--bad)}
.flash{padding:11px 14px;border-radius:10px;margin-bottom:12px;background:#e7f5ff;color:#1864ab;border:1px solid #cce7fb}.flash.error{background:#fff5f5;color:var(--bad);border-color:#ffdada}.muted{color:var(--muted)}.mono{font-family:Consolas,"SFMono-Regular",monospace}.login{max-width:430px;margin:7vh auto}.login .card{padding:28px}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.pagination{display:flex;gap:8px;align-items:center;justify-content:flex-end;margin-top:12px}.mobile-list{display:none}.ref-box{display:flex;gap:8px}.ref-box input{font-family:Consolas,monospace}.admin-title{display:flex;justify-content:space-between;align-items:center;gap:12px}.one-time{font-size:20px;padding:16px;background:#fff3bf;border:1px solid #ffe066;border-radius:10px;font-family:Consolas,monospace;word-break:break-all}.empty-state{text-align:center!important;color:var(--muted);padding:28px!important}.info-note{margin-bottom:0}.footer{text-align:center;color:#66788d;font-size:12px;padding:22px}.mobile-product{font-weight:750;line-height:1.45;margin:10px 0 12px}.order-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:14px;box-shadow:var(--shadow);margin-bottom:12px}.order-card-top{display:flex;justify-content:space-between;gap:8px;align-items:center}.mobile-order-code{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px dashed #e5ebf1;border-bottom:1px dashed #e5ebf1;font-size:12px}.mobile-order-code span,.order-meta-grid span{color:var(--muted);font-size:11px}.order-meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:11px}.order-meta-grid>div{display:flex;flex-direction:column;gap:4px}.order-meta-grid b{font-size:12px;white-space:nowrap}.mobile-money b{font-size:16px;color:#0b7297}.referral-feature{background:linear-gradient(135deg,#fff,#f8f5ff)}
@media(max-width:1280px){.filter-grid{grid-template-columns:repeat(3,1fr)}.filter-actions{grid-column:auto}.nav-link{padding:7px 8px;font-size:12px}.topbar .inner{gap:10px}.brand{font-size:18px}}
@media(max-width:1024px){.grid{grid-template-columns:repeat(2,1fr)}.form-row{grid-template-columns:1fr 1fr}.desktop-table{display:none}.mobile-list{display:block}.nav{gap:4px}.topbar .inner{align-items:center;flex-wrap:wrap}.brand small{display:none}.nav{width:100%;margin-left:0;justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}.nav-link{flex:0 0 auto}.page-hero{align-items:flex-start;flex-direction:column}.hero-note{display:none}.filter-grid{grid-template-columns:1fr 1fr}.filter-actions{grid-column:1/-1}.filter-actions .btn{flex:1}}
@media(max-width:640px){.grid,.form-row,.filter-grid{grid-template-columns:1fr}.container{padding:0 10px;margin-top:14px}.card{border-radius:13px;padding:14px}.topbar .inner{padding:9px 10px}.brand-mark{width:34px;height:34px}.stat .value{font-size:20px}.page-hero{border-radius:14px;padding:17px}.title{font-size:23px}.filter-actions{grid-column:auto}.order-meta-grid{grid-template-columns:1fr 1fr}.ref-box{flex-direction:column}.ref-box .btn{width:100%}}

/* Converter legacy CSS removed in Phase C; only .converter-page scoped rules remain. */

/* Legacy Converter v1/v2 blocks removed in Phase C. */

/* ==========================================================
   Converter page v20261007b
   Scoped intentionally under .converter-page so old/global
   h3/label/input/a/.btn rules cannot flatten this component.
   ========================================================== */
.converter-page{min-width:0}
.converter-page *{box-sizing:border-box}

.converter-page .converter-form-card{
  padding:22px;
  border-top:3px solid #2d8cf0;
  border-radius:20px;
}
.converter-page .converter-form-card form>label{
  display:block;
  margin:0 0 10px;
  font-size:14px;
  line-height:1.2;
  font-weight:700;
  color:#4b5b72;
}
.converter-page .converter-form-row{
  display:flex;
  align-items:stretch;
  gap:14px;
  min-width:0;
}
.converter-page .converter-form-row input{
  flex:1 1 auto;
  min-width:0;
  width:auto;
  height:54px;
  min-height:54px;
  padding:0 18px;
  border:1px solid #d7e3ef;
  border-radius:16px;
  background:#f7fbff;
  color:#17283e;
  font-size:16px;
  line-height:54px;
  outline:none;
}
.converter-page .converter-form-row input:focus{
  border-color:#2d8cf0;
  box-shadow:0 0 0 3px rgba(45,140,240,.12);
}
.converter-page .converter-form-row .converter-submit-btn{
  flex:0 0 auto;
  min-width:170px;
  height:54px;
  min-height:54px;
  padding:0 20px;
  border:0;
  border-radius:16px;
  background:linear-gradient(135deg,#2d8cf0,#1f6fd1);
  color:#fff;
  font-size:16px;
  font-weight:800;
  box-shadow:0 8px 18px rgba(45,140,240,.24);
}

.converter-page .result-card{
  display:block;
  margin:20px 0;
  padding:22px;
  border:1px solid #e5edf5;
  border-radius:22px;
  background:#fff;
  box-shadow:0 10px 30px rgba(15,23,42,.06);
  min-width:0;
  overflow:hidden;
}
.converter-page .result-card[hidden]{display:none!important}
.converter-page .result-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin:0 0 14px;
}
.converter-page .result-head-left{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  min-width:0;
}
.converter-page .result-card .result-head-left h3{
  margin:0!important;
  padding:0!important;
  font-size:20px!important;
  line-height:1.25!important;
  font-weight:800!important;
  color:#12233d!important;
  letter-spacing:0!important;
}
.converter-page .status-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:6px 12px;
  border-radius:999px;
  font-size:13px;
  line-height:1.1;
  font-weight:800;
  white-space:nowrap;
  border:1px solid transparent;
}
.converter-page .status-badge.done{
  background:#e8f8ef;
  color:#1f9d57;
  border-color:#d7f0e1;
}
.converter-page .status-badge.pending{
  background:#fff6d8;
  color:#9b6b00;
  border-color:#f7e5a8;
}
.converter-page .status-badge.error{
  background:#fff0f0;
  color:#d14343;
  border-color:#f7d4d4;
}
.converter-page .id-badge{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:6px 12px;
  border-radius:999px;
  background:#eef3f8;
  color:#6b7c93;
  font-size:13px;
  line-height:1.1;
  font-weight:800;
  white-space:nowrap;
}
.converter-page .result-time{
  flex:0 0 auto;
  padding-top:5px;
  color:#6b7c93;
  font-size:14px;
  line-height:1.4;
  white-space:nowrap;
}
.converter-page .result-product{
  margin:0 0 18px;
  color:#16253d;
  font-size:18px;
  line-height:1.45;
  font-weight:800;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.converter-page .result-body{
  display:grid;
  grid-template-columns:minmax(0,1fr) 220px;
  gap:16px;
  align-items:stretch;
  min-width:0;
}
.converter-page .result-main{
  min-width:0;
  padding:16px;
  border:1px solid #dce7f2;
  border-radius:18px;
  background:#fcfeff;
}
.converter-page .result-main .mini-label{
  display:block;
  margin:0 0 10px!important;
  padding:0;
  color:#4b5b72;
  font-size:14px;
  line-height:1.2;
  font-weight:700;
}
.converter-page .converted-link-box{
  display:block;
  width:100%;
  min-width:0;
  min-height:48px;
  padding:12px 14px;
  border:1px solid #dce7f2;
  border-radius:14px;
  background:#eef5fb;
  color:#1d5fa8;
  font-family:Consolas,"SFMono-Regular",monospace;
  font-size:14px;
  line-height:1.45;
  font-weight:800;
  overflow-wrap:anywhere;
  word-break:break-all;
}
.converter-page .result-actions{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:10px;
  margin:12px 0 14px;
}
.converter-page .result-actions .btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:48px!important;
  min-height:48px!important;
  margin:0!important;
  padding:0 14px!important;
  border-radius:14px!important;
  font-size:16px!important;
  line-height:1!important;
  font-weight:800!important;
  text-decoration:none!important;
  transform:none!important;
  white-space:nowrap;
}
.converter-page .result-actions .btn.btn-light{
  border:1px solid #cfe0f2!important;
  background:#fff!important;
  color:#2273c9!important;
  box-shadow:none!important;
}
.converter-page .result-actions .btn.btn-light:hover{
  background:#f7fbff!important;
  color:#1d66b4!important;
}
.converter-page .result-actions .btn.btn-primary{
  border:0!important;
  background:linear-gradient(135deg,#2d8cf0,#1f6fd1)!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(45,140,240,.20)!important;
}
.converter-page .result-actions .btn.btn-primary:hover{
  color:#fff!important;
  box-shadow:0 10px 22px rgba(45,140,240,.25)!important;
}
.converter-page .result-actions .btn.is-disabled,
.converter-page .result-actions .btn:disabled{
  pointer-events:none;
  opacity:.5;
  cursor:not-allowed;
}
.converter-page .source-link{
  min-width:0;
  color:#64748b;
  font-size:14px;
  line-height:1.45;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.converter-page .source-link span{font-weight:600}
.converter-page .source-link a{
  color:#3a6ea5!important;
  text-decoration:underline!important;
  overflow-wrap:anywhere;
  word-break:break-all;
}
.converter-page .commission-box{
  display:flex;
  min-width:0;
  min-height:100%;
  padding:18px 16px;
  border:1px solid #f6dfd4;
  border-radius:18px;
  background:linear-gradient(180deg,#fff3ee 0%,#fff8f4 100%);
  flex-direction:column;
  justify-content:center;
}
.converter-page .commission-label{
  margin:0 0 10px;
  color:#f05a28;
  font-size:14px;
  line-height:1.25;
  font-weight:800;
}
.converter-page .commission-value{
  margin:0 0 6px;
  color:#eb4d21;
  font-size:26px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:-.3px;
  overflow-wrap:anywhere;
}
.converter-page .commission-note{
  color:#7f6d68;
  font-size:13px;
  line-height:1.4;
}

.converter-page .converter-history-card{margin-top:20px}
.converter-page .converter-history-wrap{
  border:1px solid #e4ebf2;
  border-radius:14px;
  overflow-x:auto;
  background:#fff;
}
.converter-page .converter-history-table{
  width:100%;
  min-width:1120px;
  border-collapse:separate;
  border-spacing:0;
  background:#fff;
}
.converter-page .converter-history-table thead th{
  padding:11px 10px;
  background:#f3f7fb;
  color:#52647a;
  border-bottom:1px solid #e3ebf2;
  font-size:11px;
  line-height:1.3;
  font-weight:800;
  text-align:left;
  white-space:nowrap;
}
.converter-page .converter-history-table tbody td{
  padding:11px 10px;
  border-bottom:1px solid #edf2f6;
  color:#33465d;
  font-size:12px;
  line-height:1.45;
  vertical-align:top;
}
.converter-page .converter-history-table tbody tr:last-child td{border-bottom:0}
.converter-page .converter-history-table tbody tr:hover{background:#fbfdff}
.converter-page .converter-history-table .converter-stt{
  width:52px;
  min-width:52px;
  text-align:center;
  color:#64748b;
  font-weight:800;
}
.converter-page .converter-history-table .converter-link-cell{
  min-width:190px;
  max-width:260px;
}
.converter-page .converter-history-table .converter-link-cell a{
  display:block;
  max-width:100%;
  color:#3a6ea5;
  text-decoration:underline;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.converter-page .converter-history-table .converter-product-cell{
  min-width:220px;
  max-width:330px;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.converter-page .converter-history-table .money-cell{
  min-width:130px;
  color:#e85b2a;
}
.converter-page .converter-history-table .status-badge{
  min-height:26px;
  padding:5px 9px;
  font-size:11px;
}

@media(max-width:1024px){
  .converter-page .result-body{grid-template-columns:1fr}
  .converter-page .commission-box{min-height:auto}
}

@media(max-width:640px){
  .converter-page .converter-form-card,
  .converter-page .result-card{padding:16px;border-radius:18px}
  .converter-page .converter-form-row{flex-direction:column;align-items:stretch;gap:10px}
  .converter-page .converter-form-row input{width:100%;font-size:15px}
  .converter-page .converter-form-row .converter-submit-btn{width:100%;min-width:0}
  .converter-page .result-head{flex-direction:column;align-items:flex-start;gap:9px}
  .converter-page .result-head-left{width:100%;gap:8px}
  .converter-page .result-card .result-head-left h3{font-size:18px!important}
  .converter-page .result-time{padding-top:0;white-space:normal;font-size:13px}
  .converter-page .result-product{font-size:17px;line-height:1.45;margin-bottom:16px}
  .converter-page .result-main{padding:14px;border-radius:16px}
  .converter-page .result-actions{grid-template-columns:1fr;gap:10px}
  .converter-page .result-actions .btn{width:100%!important}
  .converter-page .commission-box{padding:16px;border-radius:16px}
  .converter-page .commission-value{font-size:26px}

  .converter-page .converter-history-wrap{overflow:visible;border:0;background:transparent}
  .converter-page .converter-history-table{display:block;width:100%;min-width:0;background:transparent}
  .converter-page .converter-history-table thead{display:none}
  .converter-page .converter-history-table tbody{display:block}
  .converter-page .converter-history-table tbody tr{
    display:block;
    margin:0 0 12px;
    padding:12px 14px;
    border:1px solid #e2eaf1;
    border-radius:16px;
    background:#fff;
    box-shadow:0 6px 18px rgba(28,65,98,.045);
  }
  .converter-page .converter-history-table tbody td{
    display:grid;
    grid-template-columns:110px minmax(0,1fr);
    gap:10px;
    align-items:start;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    padding:8px 0!important;
    border:0!important;
    text-align:right!important;
    white-space:normal!important;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  .converter-page .converter-history-table tbody td:before{
    content:attr(data-label);
    color:#6b7c93;
    font-size:11px;
    line-height:1.4;
    font-weight:800;
    text-align:left;
  }
  .converter-page .converter-history-table .converter-stt{text-align:right!important}
  .converter-page .converter-history-table .converter-link-cell a{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
    overflow-wrap:anywhere;
    word-break:break-all;
    text-align:right;
  }
  .converter-page .converter-history-table .status-badge{justify-self:end}
  .converter-page .converter-history-table .empty-state{display:block!important;text-align:center!important;padding:18px!important}
  .converter-page .converter-history-table .empty-state:before{display:none}
}

@media(max-width:640px){
  .converter-page .converter-form-card,
  .converter-page .result-card{padding:14px}
  .converter-page .result-head-left{align-items:flex-start}
  .converter-page .status-badge,.converter-page .id-badge{font-size:12px;padding:5px 9px;min-height:28px}
  .converter-page .result-product{font-size:16px}
  .converter-page .converted-link-box{font-size:13px}
  .converter-page .converter-history-table tbody td{grid-template-columns:92px minmax(0,1fr);gap:8px}
}


/* ===== Skytechs dashboard mobile summary - 2026-10-07c =====
   Four summary cards use a 2x2 layout on phones. This is intentionally
   more readable than squeezing all four into one row and much shorter
   than stacking four full-width cards vertically. */
@media (max-width:640px){
  .stats-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    margin-bottom:14px;
  }
  .stats-grid .stat{
    min-width:0;
    min-height:92px;
    padding:12px 11px;
    gap:8px;
    border-radius:14px;
    align-items:center;
  }
  .stats-grid .stat>div:last-child{min-width:0}
  .stats-grid .stat-icon{
    width:34px;
    height:34px;
    border-radius:10px;
    font-size:16px;
  }
  .stats-grid .stat .label{
    font-size:10.5px;
    line-height:1.2;
    overflow-wrap:anywhere;
  }
  .stats-grid .stat .value{
    font-size:18px;
    line-height:1.18;
    margin-top:3px;
    letter-spacing:-.2px;
    white-space:nowrap;
  }
  .stats-grid .stat-help{display:none}
}
@media (max-width:640px){
  .stats-grid{gap:7px!important}
  .stats-grid .stat{
    min-height:84px;
    padding:10px 9px;
    gap:7px;
  }
  .stats-grid .stat-icon{
    width:30px;
    height:30px;
    border-radius:9px;
    font-size:15px;
  }
  .stats-grid .stat .label{font-size:10px}
  .stats-grid .stat .value{font-size:16px}
}


/* ========================================================================== */
/* Phase A+B mobile UX + orders responsive refresh - 2026-10-07d             */
/* ========================================================================== */

body{min-height:100dvh}
.money-cell,.stat .value,.commission-value,.one-time{font-variant-numeric:tabular-nums}
button,input,select,textarea{font:inherit}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{
  outline:3px solid rgba(45,140,240,.34);
  outline-offset:2px;
}

/* Mobile account menu + bottom thumb navigation. */
.topbar .inner{position:relative}
.mobile-account-toggle,.mobile-account-menu,.mobile-bottom-nav{display:none}
.mobile-account-toggle{
  width:42px;height:42px;padding:0;border:1px solid rgba(255,255,255,.25);border-radius:13px;
  background:rgba(255,255,255,.12);color:#fff;cursor:pointer;align-items:center;justify-content:center;
}
.mobile-account-toggle svg{width:21px;height:21px;fill:currentColor}
.mobile-account-menu{
  position:absolute;right:10px;top:calc(100% - 2px);z-index:45;width:min(230px,calc(100vw - 20px));
  padding:7px;background:#fff;border:1px solid #dfe8f1;border-radius:14px;box-shadow:0 16px 36px rgba(15,47,79,.2)
}
.mobile-account-menu a{display:block;padding:11px 12px;border-radius:10px;color:#26384d;font-size:14px;font-weight:720}
.mobile-account-menu a:active{background:#f1f7fc}
.mobile-account-menu .danger-link{color:#b42318}
.mobile-bottom-nav{
  position:fixed;left:0;right:0;bottom:0;z-index:35;grid-template-columns:repeat(4,minmax(0,1fr));
  padding:7px 8px calc(7px + env(safe-area-inset-bottom));
  border-top:1px solid #dfe8f1;background:rgba(255,255,255,.97);box-shadow:0 -8px 24px rgba(19,55,87,.09);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)
}
.mobile-bottom-link{
  min-width:0;min-height:50px;padding:5px 4px;border-radius:12px;color:#728196;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:3px;font-size:10.5px;font-weight:760;line-height:1.15;text-align:center
}
.mobile-bottom-link svg{width:20px;height:20px;fill:currentColor}
.mobile-bottom-link.active{background:#eaf5ff;color:#1769aa}

/* Orders: search stays visible; advanced filters collapse on phones. */
.orders-filter-form{display:block}
.filter-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}
.filter-search-submit{min-height:40px}
.filter-details{margin-top:12px}
.filter-details>summary{display:none}
.orders-filter-form .filter-grid-advanced{
  grid-template-columns:minmax(130px,.8fr) minmax(170px,1fr) minmax(145px,.85fr) minmax(145px,.85fr) auto;
  gap:10px;align-items:end
}
.order-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}
.order-empty .btn{min-height:42px}
.order-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px}
.pagination-actions{display:flex;align-items:center;gap:8px}

/* Converter paste/share controls. */
.converter-page .converter-input-group{position:relative;display:flex;flex:1 1 auto;min-width:0}
.converter-page .converter-input-group input{width:100%;padding-right:72px}
.converter-page .converter-paste-btn{
  position:absolute;right:7px;top:7px;height:40px;min-width:56px;padding:0 10px;border:1px solid #cfe0f2;border-radius:11px;
  background:#fff;color:#2273c9;font-size:13px;font-weight:800;cursor:pointer
}
.converter-page .result-actions{grid-template-columns:repeat(auto-fit,minmax(125px,1fr))}
.converter-page .result-actions .btn.btn-share{
  border:1px solid #cfe0f2!important;background:#f7fbff!important;color:#1f6fd1!important;box-shadow:none!important
}
.converter-page .result-actions .btn.btn-share:hover{background:#eef6ff!important;color:#195eae!important}

/* Compact mobile converter history helpers are hidden on desktop. */
.converter-page .history-source-mobile,.converter-page .history-mobile-actions{display:none}

/* Tablet/laptop widths that cannot comfortably fit the 1110px order table use cards. */
@media(max-width:1024px){
  .desktop-table{display:none!important}
  .mobile-list{display:block!important}
}

@media(max-width:640px){
  input,select,textarea{font-size:16px!important}
  body.authenticated .container{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
  body.authenticated .footer{padding-bottom:calc(88px + env(safe-area-inset-bottom))}

  .topbar .inner{min-height:60px;padding:8px 12px;flex-wrap:nowrap;justify-content:space-between}
  .desktop-nav{display:none!important}
  .brand{font-size:18px}.brand small{display:none}.brand-mark{width:36px;height:36px;border-radius:11px}
  .mobile-account-toggle{display:inline-flex;flex:0 0 auto}
  .mobile-account-menu:not([hidden]){display:block}
  .mobile-bottom-nav{display:grid}

  .container{margin-top:12px;padding-left:10px;padding-right:10px}
  .orders-hero{padding:14px 15px;margin-bottom:12px;border-radius:15px}
  .orders-hero .eyebrow{display:none}
  .orders-hero .title{font-size:22px;margin-bottom:2px}
  .orders-hero .hero-note{display:none}

  .orders-filter-card{padding:13px 14px}
  .filter-heading{margin-bottom:10px}
  .filter-heading p{display:none}
  .filter-search-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}
  .filter-search-submit{min-width:82px;min-height:46px;padding-left:12px;padding-right:12px}
  .filter-details{margin-top:10px;border-top:1px solid #e7edf3;padding-top:8px}
  .filter-details>summary{
    display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;cursor:pointer;
    color:#40546c;font-size:13px;font-weight:800;list-style:none
  }
  .filter-details>summary::-webkit-details-marker{display:none}
  .filter-details>summary:after{content:"⌄";font-size:18px;color:#6d8298;transition:transform .16s ease}
  .filter-details[open]>summary:after{transform:rotate(180deg)}
  .filter-summary-hint{font-size:10.5px;color:#8a99aa;font-weight:650;margin-left:auto}
  .orders-filter-form .filter-grid-advanced{grid-template-columns:1fr!important;gap:8px;margin-top:8px}
  .orders-filter-form .filter-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;grid-column:auto}
  .orders-filter-form .filter-actions .btn{min-height:44px}

  .order-pagination{display:block;margin-top:14px}
  .pagination-info{display:block;text-align:center;margin-bottom:8px;font-size:12px}
  .pagination-actions{display:flex;width:100%;gap:8px}
  .pagination-actions .btn{flex:1;min-height:44px;font-size:13px}

  .order-empty{padding:22px 12px!important}
  .order-empty .btn{width:min(100%,260px)}

  .converter-page .converter-form-row{gap:10px}
  .converter-page .converter-input-group{width:100%}
  .converter-page .converter-input-group input{font-size:16px!important;padding-right:72px}
  .converter-page .converter-paste-btn{height:40px;top:7px}
  .converter-page .result-actions{grid-template-columns:1fr!important}

  /* History cards: status/time, 2-line product, commission + Copy/Open, source under details. */
  .converter-page .converter-history-table tbody tr[data-job-id]{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "status time"
      "product product"
      "commission commission"
      "actions actions"
      "source source";
    gap:0 10px;padding:13px 14px!important
  }
  .converter-page .converter-history-table tbody tr[data-job-id]>td{
    display:block!important;width:auto!important;min-width:0!important;max-width:none!important;
    padding:0!important;border:0!important;text-align:left!important;white-space:normal!important
  }
  .converter-page .converter-history-table tbody tr[data-job-id]>td:before{display:none!important}
  .converter-page .history-stt-cell{display:none!important}
  .converter-page .history-status-cell{grid-area:status;align-self:center}
  .converter-page .history-time-cell{grid-area:time;align-self:center;color:#7a899a;font-size:11px;text-align:right!important}
  .converter-page .history-product-cell{
    grid-area:product;margin-top:10px;color:#23364d;font-size:13.5px;font-weight:760;line-height:1.42;
    display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden
  }
  .converter-page .history-commission-cell{grid-area:commission;margin-top:10px;color:#e85b2a;font-size:13px}
  .converter-page .history-commission-cell b{font-size:16px}
  .converter-page .history-result-cell{grid-area:actions;margin-top:10px}
  .converter-page .history-source-cell{grid-area:source;margin-top:9px;padding-top:9px!important;border-top:1px dashed #e4ebf2!important}
  .converter-page .history-source-desktop,.converter-page .history-result-desktop{display:none!important}
  .converter-page .history-source-mobile{display:block}
  .converter-page .history-source-mobile summary{cursor:pointer;color:#58708a;font-size:12px;font-weight:760}
  .converter-page .history-source-mobile-value{margin-top:7px;padding:8px 9px;border-radius:9px;background:#f6f9fc;font-size:11px;overflow-wrap:anywhere;word-break:break-all}
  .converter-page .history-source-mobile-value a{white-space:normal!important;text-align:left!important}
  .converter-page .history-mobile-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .converter-page .history-action-btn{
    min-height:42px;padding:0 12px;border:1px solid #cfe0f2;border-radius:11px;background:#fff;color:#2273c9;
    display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;text-decoration:none;cursor:pointer
  }
  .converter-page .history-action-btn.primary{border:0;background:linear-gradient(135deg,#2d8cf0,#1f6fd1);color:#fff}
}

@media(max-width:640px){
  .filter-search-row{grid-template-columns:1fr}
  .filter-search-submit{width:100%;min-height:44px}
  .filter-summary-hint{display:none}
}

@media(hover:none){
  .btn:hover{transform:none!important}
  .stat:hover{transform:none!important;box-shadow:var(--shadow)!important}
  .nav-link:not(.active):hover{transform:none!important;background:transparent!important;border-color:transparent!important}
}

/* Phase A+B small compatibility fixes. */
.converter-page #share-converted-link[hidden]{display:none!important}
@media(max-width:640px){
  .converter-page .converter-history-table tbody tr[data-job-id]{
    grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-areas:
      "stt status time"
      "product product product"
      "commission commission commission"
      "actions actions actions"
      "source source source";
  }
  .converter-page .history-stt-cell{
    display:flex!important;grid-area:stt;align-items:center;justify-content:center;
    min-width:28px!important;height:26px;padding:0 8px!important;border-radius:999px!important;
    background:#eef3f8;color:#64748b;font-size:11px;font-weight:850;text-align:center!important
  }
}


/* ========================================================================== */
/* Phase C + D: maintainability, accessibility and Admin responsive UI        */
/* Breakpoints are standardized to 640px / 1024px / 1280px.                  */
/* ========================================================================== */

.money-cell,.money-col,.stat .value,.commission-value,.one-time,.mono{font-variant-numeric:tabular-nums}

:where(a,button,input,select,textarea,summary):focus-visible{
  outline:3px solid rgba(45,140,240,.32);
  outline-offset:2px;
}

.login-submit,.password-submit{width:100%;margin-top:16px}
.login-help{margin-top:16px}
.password-card{max-width:520px;margin-left:auto;margin-right:auto}
.password-field{position:relative;margin-bottom:10px}
.password-field input{padding-right:66px}
.password-toggle{
  position:absolute;right:7px;top:50%;transform:translateY(-50%);min-width:48px;height:32px;padding:0 9px;
  border:1px solid #cfdce8;border-radius:9px;background:#f7fbff;color:#236aa5;font-size:12px;font-weight:800;cursor:pointer
}
.inline-check{display:inline-flex!important;align-items:center;gap:6px;margin:0!important;font-weight:600!important;white-space:nowrap}
.inline-check input{width:auto;min-height:auto}
.admin-inline-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}

.admin-tabs{
  display:flex;gap:6px;align-items:center;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;
  margin:0 0 18px;padding:6px;border:1px solid #dfe8f1;border-radius:14px;background:rgba(255,255,255,.92);
  box-shadow:0 8px 24px rgba(21,61,96,.06)
}
.admin-tab{
  flex:0 0 auto;min-height:38px;padding:9px 12px;border-radius:10px;color:#52667d;font-size:12px;font-weight:800;white-space:nowrap
}
.admin-tab:hover{background:#f2f7fb;color:#1d67a4}
.admin-tab.active{background:linear-gradient(135deg,#2d8cf0,#1f6fd1);color:#fff;box-shadow:0 6px 14px rgba(45,140,240,.2)}
.admin-stats-grid{margin-top:18px}
.admin-filter-card{margin-top:16px}
.admin-filter-row{grid-template-columns:minmax(240px,1.4fr) minmax(160px,.7fr) auto}
.admin-table-card{padding:14px}
.admin-page .table-wrap{max-height:70vh}
.admin-page .admin-table th{background:#f3f7fb}
.admin-page .admin-table td{overflow-wrap:anywhere}
.admin-section-title{font-size:19px;margin:24px 0 10px;color:#23364d}
.admin-summary-card p:first-child{margin-top:0}
.admin-summary-card p:last-child{margin-bottom:0}
.policy-current{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px;padding:10px 12px;border-radius:11px;background:#f5f9fd;color:#40546c;font-size:13px}
.policy-form{grid-template-columns:1fr 1fr 1fr auto}
.policy-note{margin-bottom:0}

@media(max-width:1280px){
  .admin-tab{padding-left:10px;padding-right:10px}
  .admin-page .admin-table{font-size:12.5px}
}

@media(max-width:1024px){
  .admin-filter-row,.policy-form{grid-template-columns:1fr 1fr}
  .admin-filter-row>div:last-child,.policy-form>div:last-child{align-self:end}
  .admin-page .table-wrap{max-height:none;overflow:visible;border:0;background:transparent}
  .admin-page table.table-cards{display:block;width:100%;background:transparent}
  .admin-page table.table-cards thead{display:none}
  .admin-page table.table-cards tbody{display:block}
  .admin-page table.table-cards tbody tr{
    display:block;margin-bottom:10px;padding:12px 14px;border:1px solid #e2eaf1;border-radius:14px;background:#fff;
    box-shadow:0 6px 18px rgba(28,65,98,.045)
  }
  .admin-page table.table-cards tbody tr:hover{background:#fff}
  .admin-page table.table-cards tbody td{
    display:grid;grid-template-columns:minmax(112px,34%) minmax(0,1fr);gap:10px;align-items:start;
    min-width:0!important;max-width:none!important;width:auto!important;padding:7px 0!important;border:0!important;text-align:left!important;white-space:normal!important
  }
  .admin-page table.table-cards tbody td::before{
    content:attr(data-label);color:#718196;font-size:11px;font-weight:800;line-height:1.35
  }
  .admin-page table.table-cards tbody td[colspan]{display:block!important;text-align:center!important}
  .admin-page table.table-cards tbody td[colspan]::before{display:none}
  .admin-page table.table-cards .actions{justify-content:flex-start}
  .admin-title{align-items:flex-start;flex-direction:column}
}

@media(max-width:640px){
  .admin-tabs{margin:0 -2px 14px;padding:5px;border-radius:12px}
  .admin-tab{min-height:40px;padding:10px 11px;font-size:11.5px}
  .admin-filter-row,.policy-form{grid-template-columns:1fr}
  .admin-filter-row .btn,.policy-form .btn{width:100%;min-height:44px}
  .admin-table-card{padding:10px;background:transparent;border:0;box-shadow:none}
  .admin-page table.table-cards tbody tr{padding:11px 12px}
  .admin-page table.table-cards tbody td{grid-template-columns:minmax(94px,32%) minmax(0,1fr);gap:8px}
  .admin-page table.table-cards .actions{display:grid;grid-template-columns:1fr;gap:7px}
  .admin-page table.table-cards .actions .btn,.admin-page table.table-cards .actions form,.admin-page table.table-cards .actions form .btn{width:100%}
  .policy-current{align-items:flex-start;flex-direction:column}
  .password-card{padding:16px}
}

@media(hover:hover){
  .admin-tab:hover{transform:translateY(-1px)}
}

/* ========================================================================== */
/* UI polish 20261008: red Skytechs logo, stronger primary navigation,        */
/* clearer mobile converter history actions.                                  */
/* ========================================================================== */

/* Skytechs logo: red identity on a white chip so it stays readable on blue. */
.brand{
  padding:5px 10px 5px 5px;
  border-radius:15px;
  background:rgba(255,255,255,.98);
  color:#e3063a!important;
  box-shadow:0 7px 18px rgba(8,31,54,.18);
}
.brand:hover{color:#e3063a!important;background:#fff}
.brand-mark{
  background:linear-gradient(145deg,#ff365f,#e3063a)!important;
  color:#fff!important;
  box-shadow:0 5px 14px rgba(227,6,58,.28)!important;
}
.brand-copy{color:#e3063a!important}
.brand small{color:#66788d!important}

/* Make the three user journeys read as the main actions on desktop too. */
.desktop-nav .nav-link:nth-child(-n+3){
  border-color:rgba(255,255,255,.16);
  background:rgba(255,255,255,.08);
  font-weight:800;
}
.desktop-nav .nav-link:nth-child(-n+3).active{
  background:#fff;
  color:#123d6b!important;
  border-color:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.16);
}

/* Converter history commission label is only needed in compact/mobile cards. */
.converter-page .history-commission-label{display:none}
.converter-page .history-commission-note{display:none}
.converter-page .history-commission-empty{color:#8a98a8}

@media(max-width:640px){
  /* Stronger thumb navigation: all three actions look tappable; active is unmistakable. */
  .mobile-bottom-nav{
    padding:7px 8px calc(7px + env(safe-area-inset-bottom));
    border-top:1px solid #d6e2ed;
    background:rgba(255,255,255,.985);
    box-shadow:0 -10px 30px rgba(17,55,90,.16);
    gap:7px;
  }
  .mobile-bottom-link{
    min-height:56px;
    padding:6px 5px;
    border:1px solid #e1eaf3;
    border-radius:14px;
    background:#f7fbff;
    color:#314b66;
    gap:4px;
    font-size:11.5px;
    font-weight:850;
    letter-spacing:.05px;
    box-shadow:0 2px 8px rgba(28,65,98,.04);
  }
  .mobile-bottom-link svg{width:23px;height:23px}
  .mobile-bottom-link.active{
    border-color:transparent;
    background:linear-gradient(135deg,#2d8cf0,#1f6fd1);
    color:#fff!important;
    box-shadow:0 8px 18px rgba(45,140,240,.28);
  }
  .mobile-bottom-link.active svg{filter:drop-shadow(0 1px 1px rgba(0,0,0,.08))}

  .brand{padding:4px 8px 4px 4px;border-radius:13px}
  .brand-mark{width:36px!important;height:36px!important;border-radius:10px!important}
  .brand-copy{font-size:18px;line-height:1}

  /* Commission reads as one clear sentence: "Hoa hồng ước tính: 12.291 đ". */
  .converter-page .history-commission-cell{
    display:flex!important;
    align-items:baseline!important;
    gap:5px;
    color:#66788d!important;
    font-size:12.5px!important;
    line-height:1.35;
  }
  .converter-page .history-commission-label{
    display:inline!important;
    color:#5d6f83;
    font-weight:800;
    white-space:nowrap;
  }
  .converter-page .history-commission-cell b{
    color:#e85b2a!important;
    font-size:16px!important;
    font-weight:900!important;
  }

  /* Action buttons must remain readable on iOS/Android regardless of global <a> color. */
  .converter-page .history-mobile-actions{gap:9px}
  .converter-page .history-action-btn{
    min-height:44px;
    border:1px solid #bed5ea!important;
    background:#fff!important;
    color:#1769aa!important;
    font-size:13px!important;
    font-weight:850!important;
    box-shadow:0 3px 10px rgba(29,83,126,.06);
  }
  .converter-page a.history-action-btn.primary,
  .converter-page a.history-action-btn.primary:link,
  .converter-page a.history-action-btn.primary:visited{
    border-color:#1f6fd1!important;
    background:linear-gradient(135deg,#2d8cf0,#1f6fd1)!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    text-decoration:none!important;
    box-shadow:0 7px 15px rgba(45,140,240,.22)!important;
  }
}


/* Phone number - one-time add on change-password page */
.phone-once-box{margin:17px 0 15px;padding:14px;border:1px solid #d9e5ef;border-radius:12px;background:#f8fbfe}
.phone-once-title{font-weight:850;color:#23364d;margin-bottom:4px}
.phone-help{font-size:12px;line-height:1.55;color:#66788d;margin:5px 0 10px}
.phone-hint{font-size:11px;color:#75869a;margin-top:6px}
.phone-hint.ok{color:#087f5b;font-weight:750}
.phone-saved-box{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding:13px 14px;border:1px solid #cce7dc;border-radius:12px;background:#f0fbf6}
.phone-saved-box strong{font-size:12px;color:#52677a}
.phone-saved-value{margin-top:4px;font-size:18px;font-weight:850;letter-spacing:.4px;color:#183b2b}
.phone-lock-badge{flex:0 0 auto;padding:6px 9px;border-radius:999px;background:#dff5e8;color:#087f5b;font-size:11px;font-weight:850}
@media(max-width:640px){.phone-saved-box{align-items:flex-start}.phone-once-box{padding:12px}}

/* SKYTECHS_ORDER_STATUS_SPLIT_V4_START */
.order-table{min-width:1260px}
.order-status-note{margin:-2px 0 14px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;color:#536377;font-size:12px;line-height:1.5}
.order-status-note b{color:#24364b}
.badge.order-state,.badge.payment-state{border:1px solid transparent}
.badge.order-placed{background:#eef2f7;color:#5b6878;border-color:#dde4ec}
.badge.order-processing{background:#e7f5ff;color:#1971c2;border-color:#cbe8ff}
.badge.order-completed{background:#e6fcf5;color:#087f5b;border-color:#c3f2e3}
.badge.order-cancelled{background:#fff0f0;color:#c92a2a;border-color:#ffd7d7}
.badge.payment-not-eligible{background:#fff4cf;color:#9a6700;border-color:#ffe79a}
.badge.payment-waiting{background:#e7f5ff;color:#1864ab;border-color:#cce7fb}
.badge.payment-paid{background:#e6fcf5;color:#087f5b;border-color:#c3f2e3}
.badge.payment-failed{background:#fff0f0;color:#c92a2a;border-color:#ffd7d7}
.mobile-status-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0 12px}
.mobile-status-grid>div{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:9px;border:1px solid #e9eef4;border-radius:10px;background:#fbfcfe}
.mobile-status-grid>div>span:first-child{font-size:10.5px;color:var(--muted);font-weight:700}
@media(max-width:420px){.mobile-status-grid{grid-template-columns:1fr}.mobile-status-grid>div{flex-direction:row;align-items:center;justify-content:space-between}}

/* Keep converter history actions centered on phones. The generic history-link
   rule uses display:block and otherwise overrides the button's flex centering. */
@media(max-width:640px){
  .converter-page .history-mobile-actions{
    grid-template-columns:repeat(2,minmax(0,1fr));
    justify-items:stretch;
  }
  .converter-page .converter-history-table .history-mobile-actions .history-action-btn{
    display:flex!important;
    width:min(100%,280px);
    align-items:center;
    justify-content:center;
    text-align:center!important;
    white-space:normal!important;
  }
  .converter-page .history-commission-label{display:block!important;white-space:normal!important}
  .converter-page .history-commission-note{
    display:block;
    margin-top:2px;
    color:#7a899a;
    font-size:11px;
    font-weight:500;
    line-height:1.35;
  }
}
/* SKYTECHS_ORDER_STATUS_SPLIT_V4_END */

.shopping-faq{max-width:100%;margin:24px auto}.shopping-faq h2{font-size:21px}.shopping-faq details,.home-information details{padding:16px 0;border-bottom:1px solid #dfe8f1;scroll-margin-top:100px}.shopping-faq summary,.home-information summary{cursor:pointer;font-weight:750;line-height:1.6}.shopping-faq p,.shopping-faq li,.home-information p{font-size:13px;line-height:1.8;color:#526579}.shopping-faq .shopping-warning{padding:18px;background:#fff8e8;border:1px solid #f2d79c;border-radius:12px}.shopping-warning summary{color:#9b4c12}.information-links{display:flex;flex-wrap:wrap;gap:12px 24px;padding:16px 0}.information-links a{font-size:13px;font-weight:700}

.shopping-faq .sample-faq-answer{padding:14px 0 0;font-size:13px;line-height:1.7;color:#475569}.sample-faq-answer a{color:#ee4d2d;text-decoration:underline}.sample-faq-answer ul,.sample-faq-answer ol{padding-left:22px}.sample-faq-answer>div>div{margin-bottom:12px}.shopping-faq summary{display:flex;gap:12px;align-items:center}.shopping-faq summary:before{content:"?";display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;background:#fff0e8;color:#ee4d2d;border-radius:9px}.shopping-faq .shopping-warning summary:before{content:"!";background:#f59e0b;color:white}

.payment-account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.payment-account-grid>div{display:flex;flex-direction:column;gap:7px;overflow-wrap:anywhere}.payment-account-grid span{font-size:12px;color:#64748b}.payment-account-grid strong{font-size:16px;color:#174a72}.payment-help{font-size:12px;line-height:1.7;color:#62758a}.payment-summary{border-left:4px solid #28a483}.payment-request{padding:18px 0;border-top:1px solid #e2e8f0}.payment-request p{font-size:13px;line-height:1.7}.payment-review-grid{display:grid;grid-template-columns:260px minmax(0,1fr);gap:26px}.payment-qr-preview{max-width:100%;max-height:320px;object-fit:contain;border:1px solid #e2e8f0;border-radius:12px}.payment-review-actions{margin-top:16px}.payment-review-grid p{font-size:13px;overflow-wrap:anywhere}.payment-upload-card input[type=file]{max-width:600px}.payment-summary .section-heading{flex-wrap:wrap}@media(max-width:640px){.payment-account-grid,.payment-review-grid{grid-template-columns:1fr}.payment-qr-preview{max-height:240px}.payment-review-actions{align-items:stretch;flex-direction:column}.payment-request .section-heading{align-items:flex-start;flex-direction:column}}

/* Compact configurable FAQ: one closed attention row, native keyboard-accessible expansion. */
.shopping-faq.faq-banner{border:1px solid #f4c682;border-left:4px solid #ee792d;border-radius:12px;background:#fff7e9;margin:14px 0 20px;padding:0;overflow:hidden;box-shadow:0 3px 12px #c26c1708}.faq-banner>summary.faq-banner-summary{display:flex;align-items:center;gap:10px;padding:13px 16px;min-height:46px;font-weight:800;font-size:13px;color:#984719;cursor:pointer;list-style:none}.faq-banner summary::-webkit-details-marker{display:none}.faq-banner summary{list-style:none}.shopping-faq.faq-banner summary:before,.shopping-faq.faq-banner summary:after{content:none!important;display:none!important}.faq-banner-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.faq-chevron{display:inline-block;flex-shrink:0;font-family:monospace;font-size:20px;font-weight:800;line-height:1;color:#d76522;transition:transform .15s}.faq-banner[open]>.faq-banner-summary>.faq-chevron,.faq-entry[open]>summary>.faq-chevron{transform:rotate(90deg)}.faq-banner-body{padding:0 16px 8px;background:#fff;border-top:1px solid #f5dfbd}.shopping-faq .faq-entry{border:0;border-bottom:1px solid #edf0f3;padding:0;margin:0}.shopping-faq .faq-entry:last-child{border-bottom:0}.shopping-faq .faq-entry>summary{display:flex;align-items:flex-start;gap:12px;padding:15px 0;font-size:13px;line-height:1.6;font-weight:700;color:#33465c;cursor:pointer}.shopping-faq .faq-entry .faq-chevron{font-size:17px;margin-top:2px}.shopping-faq .sample-faq-answer{padding:0 0 14px 27px;font-size:13px;line-height:1.8;color:#53667c}.shopping-faq .sample-faq-answer p{margin:0 0 10px;white-space:pre-wrap}.faq-banner summary:focus-visible,.payment-upload-details>summary:focus-visible{outline:3px solid #f2ae6b;outline-offset:-3px}.payment-summary{scroll-margin-top:100px}.payment-upload-details{border-top:1px solid #e2e8f0;margin-top:15px;padding-top:13px}.payment-upload-details>summary{font-size:13px;color:#1769a2;font-weight:750;cursor:pointer}.payment-upload-body{padding-top:18px}.payment-upload-box{margin-bottom:24px}.payment-upload-body h2{font-size:17px}.payment-history-box>.section-heading{flex-wrap:wrap}.payment-upload-box .muted{font-size:13px;line-height:1.7}@media(max-width:640px){.faq-banner>summary.faq-banner-summary{font-size:12px;padding:11px 12px}.faq-banner-body{padding:0 12px 6px}.shopping-faq .sample-faq-answer{padding-left:0;font-size:12px}.shopping-faq .faq-entry>summary{font-size:12px}}

/* Keep each API commission component on its own readable line. */
.converter-page .commission-breakdown{white-space:pre-line!important;overflow-wrap:anywhere;line-height:1.7}
.converter-page .commission-value.commission-breakdown{font-size:16px;font-weight:750}
.converter-page .history-commission-cell{white-space:normal!important;min-width:265px}
.converter-page .history-commission-cell b.commission-breakdown{display:block;font-size:13px!important}
@media(max-width:760px){
  .converter-page .history-commission-cell{display:block!important;min-width:0}
  .converter-page .history-commission-cell b.commission-breakdown{font-size:13px!important}
}

/* Uploaded website logo: preserve the full transparent artwork. */
.brand img.brand-mark{display:block;width:52px!important;height:52px!important;object-fit:contain;flex:0 0 auto;background:transparent!important;box-shadow:none!important;border-radius:0!important}
.reference-footer-brand{display:inline-flex;align-items:center;gap:10px}
.reference-footer-logo{display:block;width:56px;height:56px;object-fit:contain}
@media(max-width:640px){.brand img.brand-mark{width:44px!important;height:44px!important}}

/* Image-only logo. */
.topbar .brand{padding:5px;min-width:0}

.topbar .brand{padding-right:12px}.brand-tagline{color:#66788d;font-size:13px;font-weight:650;line-height:1.3;white-space:nowrap}@media(max-width:640px){.brand-tagline{font-size:12px}}

