:root {
  --site-bg: #f5f6f8;
  --site-ink: #202e48;
  --site-muted: #5c6e86;
  --site-accent: #325b9b;
  --site-hover: #234681;
  --site-line: #dde5f0;
  --site-tint: #f3f6fc;
  --site-surface: #fff;
  --site-hero-muted: #dce7f8;
  --site-shadow: 0 7px 25px #273f6609;
  --form-control-gap: 12px;
  --form-action-gap: 14px;
  background: var(--site-bg);
  color: var(--site-ink);
}
body { background: var(--site-bg); }
.primary,.guide-link { background: var(--site-accent); }
.primary:hover,.guide-link:hover { background: var(--site-hover); }
.secondary { border-color: var(--site-line); color: var(--site-ink); }
.secondary:hover { background: #ebf2ff; }
dialog { border-color: var(--site-line); }
.support-entry,.support-panel { --support-theme: #243b60; --support-hover: #325585; }

.code-row,.toolbar,.guide-admin form>div,.country-tools { gap: var(--form-control-gap); }
.guide-admin form>div { flex-wrap: wrap; }
.service-list,.country-list { margin-block-start: var(--form-control-gap); }
.sms-pricing-form { gap: var(--form-action-gap); }
#auth-form .submit,.chat-send,#create-recharge,.channel-form .button { margin-block-start: var(--form-action-gap); }
.guide-unlock>button { margin-block-start: var(--form-action-gap); }
.guide-key button { margin-block-start: var(--form-control-gap); }
.buy-button { margin-block-start: 8px; }
:is(#profile-form,#wallet-adjust-form,#customer-refund-form,#guide-bundle-form,#topup-form)>.button {
  margin-block-start: var(--form-action-gap);
}
:is(#resource-form,#recharge-review-form)>.dialog-actions {
  flex-wrap: wrap;
  gap: var(--form-control-gap);
  margin-block-start: var(--form-action-gap);
}
#human-check-retry { margin-block-start: 8px; }
.guide-doc a:any-link:not(.guide-link) {
  color: #1558bd;
  text-decoration: underline;
  text-underline-offset: .14em;
}
.guide-doc a:any-link:not(.guide-link):hover { color: #104a9e; }

.site-hero {
  padding: clamp(18px,3vw,31px) clamp(17px,3vw,34px);
  border: 1px solid #344c74;
  border-radius: 22px;
  background: radial-gradient(ellipse at 90% -25%, #4c70a2, transparent 65%), linear-gradient(115deg, #1e2d49, #304d77);
  color: #fff;
  box-shadow: 0 12px 28px #182e5421;
}
.site-hero h1 { margin: 0; color: inherit; font-size: clamp(24px,3vw,34px); letter-spacing: -.035em; }
.site-hero p { margin: 7px 0 0; color: var(--site-hero-muted); font-size: 14px; line-height: 1.65; }
.site-hero .button,.site-hero .guide-link { background: #f5f8ff; color: #294873; border-color: #ffffff75; text-decoration: none; }
.site-hero .button:hover,.site-hero .guide-link:hover { background: #dbe8ff; }
.site-hero .guide-link { white-space: nowrap; }
.site-hero-content { display: flex; align-items: center; gap: 17px; }
.site-hero-icon { display: grid; place-items: center; flex: none; width: 62px; height: 62px; border-radius: 16px; background: #e6eefb; }
.site-hero-icon img { display: block; width: 37px; height: 37px; object-fit: contain; }

.site-sidebar { border-color: var(--site-line); }
.site-nav a { border: 1px solid transparent; border-radius: 10px; }
.site-nav a:hover,.site-nav [aria-current=page] { border-color: #dce6f9; background: #ebf2ff; color: #244a85; }
#sidebar-profile {
  padding: 12px;
  border: 1px solid var(--site-line);
  border-radius: 12px;
  background: var(--site-tint);
}
.sidebar-balance strong,[data-wallet-balance] { font-variant-numeric: tabular-nums; }
.account-main,.account-shell>.home-services { width: calc(100% - var(--site-side)); max-width: 1280px; }
.home-services { grid-template-columns: repeat(2,minmax(0,1fr)); }
.home-services .site-hero { grid-column: 1/-1; }
.home-services .service-card,.account-order,.account-table-wrap,.account-wallet-balance {
  border-color: var(--site-line);
  border-radius: 16px;
  box-shadow: var(--site-shadow);
}
.home-services .service-card { display:flex;flex-direction:column;align-items:flex-start;width:100%;min-width:0;padding:clamp(17px,3vw,27px);border:1px solid var(--site-line);background:var(--site-surface);color:var(--site-ink);text-decoration:none; }
.home-services .service-card:hover { border-color: #9db6dd; }
.home-services .service-icon { display:grid;place-items:center;width:64px;height:64px;margin-bottom:17px;border-radius:18px;background:#eaf0fa; }
.home-services .service-icon img { width: 46px; height: 46px; }
.home-services .guide-tile .service-icon img { width: 38px; height: 38px; }
.home-services .service-card h2 { margin:0 0 9px;font-size:21px;color:var(--site-ink);overflow-wrap:anywhere; }
.home-services .service-card p { flex:1;margin:0 0 17px;color:var(--site-muted);font-size:15px;line-height:1.7;overflow-wrap:anywhere; }
.service-footnote { margin-bottom: 14px; color: var(--site-muted); }
.service-open { display:inline-block;padding:9px 15px;border-radius:8px;background:#eaf1ff;color:#294f8a;font-size:14px;font-weight:600; }
.service-card:hover .service-open { background: #dce9ff; }
.storefront-status { grid-column: 1/-1; margin: 0; padding: 18px; border: 1px solid var(--site-line); border-radius: 14px; background: var(--site-surface); color: var(--site-muted); }
.catalog-price { color: var(--site-accent); margin: 0 0 13px; font-size: 18px; font-variant-numeric: tabular-nums; }
.deployment-icon { width: 33px; height: 29px; position: relative; color: #365b93; }
.deployment-icon::before,.deployment-icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 8px;
  border: 2px solid currentColor; border-radius: 4px;
  background: radial-gradient(circle at 5px 50%,currentColor 1.5px,transparent 2px);
}
.deployment-icon::before { top: 1px; }
.deployment-icon::after { bottom: 1px; }
.product-description,.product-note { color: var(--site-muted); line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.product-description { margin: 8px 0; font-size: 14px; }
.product-note { margin: 12px 0 0; font-size: 13px; }
.product-explanation { margin: 18px 0; padding: 17px 20px; border: 1px solid var(--site-line); border-radius: 13px; background: #eef3fa; }
.product-explanation h2 { margin: 0; font-size: 16px; }
.product-highlights { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 10px 0 0; list-style: none; }
.product-highlights li { padding: 6px 9px; border-radius: 8px; background: #fff; color: #324b70; font-size: 13px; }
@media(min-width:1200px){.home-services[data-product-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}}
.account-head { margin-bottom: 18px; }
.account-head h1 { font-size: clamp(24px,3vw,34px); }
.account-wallet-balance { background: var(--site-tint); }
.account-wallet-balance strong { color: #284c85; }
.account-table th,.order-chip { background: #eaf1ff; color: #355889; }
.order-chip { border-radius: 30px; }
.account-feedback:not(:empty),.account-empty {
  margin: 12px 0;
  padding: 15px;
  border: 1px solid var(--site-line);
  border-radius: 12px;
  background: var(--site-surface);
}

.guide-main,.recharge { max-width: 1100px; margin-top: 8px; }
.guide-main>.site-hero,.recharge>.site-hero { margin: 15px 0 20px; }
.guide-main .guide-product { margin: 0; gap: 16px; border: 0; background: none; box-shadow: none; overflow: visible; }
.guide-product>div,.recharge-card,.guide-doc { border: 1px solid var(--site-line); border-radius: 17px; background: var(--site-surface); box-shadow: var(--site-shadow); }
.guide-product>div h2 { margin: 0 0 9px; font-size: 18px; }
.guide-panel .guide-price { color: #284c85; }
.guide-benefits li,.pay-summary { background: var(--site-tint); }
.recharge>.back-link,.guide-main>.guide-back { color: var(--site-muted); font-size: 13px; }
.recharge-intro,.recharge-card { min-width: 0; }
.recharge-intro { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.recharge-intro h1,.recharge-intro p { color: inherit; }
.recharge-intro p { color: var(--site-hero-muted); }
.recharge-balance { display: grid; flex: none; gap: 4px; min-width: 110px; padding: 9px 12px; border: 1px solid #ffffff3d; border-radius: 12px; background: #162b4c45; color: var(--site-hero-muted); font-size: 12px; }
.recharge-balance strong { color: #fff; font-size: 21px; }
.recharge-record:first-child { margin-top: 11px; }
.guide-doc-header { max-width: 860px; width: calc(100% - 32px); margin: 18px auto 0; padding: 16px 20px; }
.guide-doc-header a { color: #fff; }
.guide-doc-header nav a { color: #fff; }
.guide-doc-header .reader-brand { display: inline-flex; padding: 7px 9px; border-radius: 9px; background: #f5f8ff; }
.guide-doc-header .reader-brand img { width: 136px; }
.guide-doc { margin-top: 17px; }

.workspace .page-header { margin-bottom: 18px; }
.workspace .page-header h1 { margin: 0; }
.workspace .page-header .eyebrow { margin: 0 0 6px; color: var(--site-hero-muted); }
.workspace .sidebar,.workspace .panel,.workspace .stats>div,.login-card { border-color: var(--site-line); }
.workspace .panel,.workspace .stats>div,.login-card { box-shadow: var(--site-shadow); }
.workspace .sidebar .nav.active { background: #eaf1ff; color: #294f8a; }

.not-found { max-width: 680px; margin: clamp(30px,10vh,100px) auto 0; width: calc(100% - 36px); }
.not-found .site-hero { margin-bottom: 15px; }
.not-found-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.not-found-actions a { text-decoration: none; }

@media (min-width: 850px) {
  .recharge { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); align-items: start; gap: 0 16px; }
  .recharge-intro,.recharge>.back-link { grid-column: 1/-1; }
  .recharge-history { margin-top: 0; }
}
@media (max-width: 760px) {
  .account-main,.account-shell>.home-services { width: 100%; }
}
@media (max-width: 640px) {
  .site-hero { border-radius: 17px; }
  .site-hero-icon { width: 48px; height: 48px; border-radius: 12px; }
  .site-hero-icon img { width: 29px; height: 29px; }
  .site-hero-content { gap: 11px; }
  .account-head { flex-wrap: wrap; }
  .account-head-actions { flex-wrap: wrap; }
  .home-services { grid-template-columns: 1fr; }
  .recharge-intro { flex-wrap: wrap; }
}
