/* Public commerce reading scale. Deliberately separate from admin typography. */
:root {
    --hn-read-ink: #17243b;
    --hn-read-muted: #526176;
    --hn-read-accent: #2458c6;
    --hn-read-soft: #eef4ff;
    --hn-read-border: rgba(103,135,183,.23);
    --hn-read-glass: linear-gradient(145deg,rgba(255,255,255,.96),rgba(240,247,255,.9));
    --hn-read-shadow: 0 12px 34px rgba(31,65,111,.075),inset 0 1px 0 rgba(255,255,255,.95);
    --hn-read-green: #126444;
    --hn-read-amber: #805211;
}
[data-theme="dark"] {
    --hn-read-ink: #eef4ff;
    --hn-read-muted: #b6c4d9;
    --hn-read-accent: #9fc5ff;
    --hn-read-soft: #21344f;
    --hn-read-border: rgba(162,187,225,.25);
    --hn-read-glass: linear-gradient(145deg,rgba(31,47,72,.97),rgba(22,35,56,.96));
    --hn-read-shadow: 0 14px 38px rgba(0,7,21,.24),inset 0 1px 0 rgba(202,225,255,.13);
    --hn-read-green: #95e4bd;
    --hn-read-amber: #f2cf91;
}
.store-main .hn-commerce,dialog.hn-commerce {
    --text-primary: var(--hn-read-ink);
    --text-secondary: var(--hn-read-muted);
    --text-muted: var(--hn-read-muted);
    --hnc-blue-text: var(--hn-read-accent);
    --hnc-green-text: var(--hn-read-green);
    --hnc-amber-text: var(--hn-read-amber);
    font-size: 17px;
    line-height: 1.65;
    color: var(--hn-read-ink);
}
.store-main .hn-commerce .hnc-page-header h1 { font-size:clamp(32px,3vw,42px);font-weight:760;line-height:1.2; }
.store-main .hn-commerce .hnc-subtitle { font-size:17px;line-height:1.65; }
.store-main .hn-commerce .hnc-eyebrow,dialog.hn-commerce .hnc-eyebrow { font-size:13px;font-weight:750;letter-spacing:.085em; }
.store-main .hn-commerce .hnc-panel { background:var(--hn-read-glass);border-color:var(--hn-read-border);border-radius:22px;box-shadow:var(--hn-read-shadow); }
.store-main .hn-commerce .hnc-panel h2 { font-size:23px;font-weight:740;line-height:1.35; }
.store-main .hn-commerce .hnc-button,dialog.hn-commerce .hnc-button {
    min-height:48px;font-size:16px;font-weight:700;line-height:1.4;padding:12px 18px;border-radius:14px;
    border-color:var(--hn-read-border);color:var(--hn-read-accent);background:var(--hn-read-glass);
    box-shadow:0 3px 10px rgba(31,65,111,.04),inset 0 1px 0 rgba(255,255,255,.7);
}
.store-main .hn-commerce .hnc-button-primary,dialog.hn-commerce .hnc-button-primary {
    color:#fff;background:linear-gradient(135deg,#2461d6,#234ab5);border-color:rgba(255,255,255,.38);
    box-shadow:0 6px 16px rgba(32,77,166,.18),inset 0 1px 0 rgba(255,255,255,.3);
}
.store-main .hn-commerce .hnc-button-primary:hover,dialog.hn-commerce .hnc-button-primary:hover { color:#fff;background:linear-gradient(135deg,#1d53c0,#193c9b); }
.store-main .hn-commerce .hnc-button:disabled,dialog.hn-commerce .hnc-button:disabled { box-shadow:none; }
.store-main .hn-commerce :is(input[type="search"],input[type="email"],input[type="text"],input[type="number"],input[type="password"],select,textarea),
dialog.hn-commerce :is(input[type="email"],input[type="text"],textarea) {font-size:16px;line-height:1.5;min-height:46px;}
.store-main .hn-commerce :is(a,button,input,select,textarea,summary):focus-visible,dialog.hn-commerce :is(a,button,input,select,textarea,summary):focus-visible {
    outline:3px solid var(--hn-read-accent);outline-offset:3px;
}
.store-main .hn-commerce :is(.hnc-status,.hnc-note) {font-size:15px;line-height:1.6;}
.store-main .hn-commerce .hnc-status {font-size:14px;font-weight:700;}

/* VPS, Hosting and Proxy share these cards and configuration controls. */
.store-main .hn-commerce.hnv-page {--hnv-blue:var(--hn-read-accent);--hnv-soft:var(--hn-read-soft);}
.store-main .hnv-page .hnv-plan-card {border-radius:24px;background:var(--hn-read-glass);box-shadow:var(--hn-read-shadow);border-color:var(--hn-read-border);}
.store-main .hnv-page .hnv-plan-card:hover {border-color:var(--hn-read-accent);box-shadow:0 16px 38px rgba(31,65,111,.12),inset 0 1px 0 rgba(255,255,255,.65);}
.store-main .hnv-page .hnv-plan-top {flex-wrap:wrap;gap:9px;}
.store-main .hnv-page .hnv-plan-icon {color:var(--hn-read-accent);background:var(--hn-read-soft);}
.store-main .hnv-page .hnv-plan-card h2 {font-size:23px;line-height:1.35;font-weight:760;margin-bottom:16px;}
.store-main .hnv-page .hnv-plan-kind {font-size:14px;color:var(--hn-read-muted);font-weight:650;letter-spacing:.025em;}
.store-main .hnv-page .hnv-recommended {font-size:13px;font-weight:750;color:var(--hn-read-accent);}
.store-main .hnv-page .hnv-plan-price strong {font-size:34px;font-weight:780;line-height:1.2;letter-spacing:-.035em;color:var(--hn-read-accent);}
.store-main .hnv-page .hnv-plan-price>span {font-size:15px;color:var(--hn-read-muted);}
.store-main .hnv-page .hnv-cycle-total {font-size:14px;line-height:1.55;min-height:0;}
.store-main .hnv-page .hnv-plan-specs {gap:13px;padding:18px 0;border-color:var(--hn-read-border);}
.store-main .hnv-page :is(.hnv-plan-specs,.hnv-summary-specs,.hnv-price-breakdown) dt {font-size:15px;font-weight:500;color:var(--hn-read-muted);}
.store-main .hnv-page :is(.hnv-plan-specs,.hnv-summary-specs,.hnv-price-breakdown) dd {font-size:16px;font-weight:720;color:var(--hn-read-ink);}
.store-main .hnv-page .hnv-plan-specs dt i {font-size:14px;color:var(--hn-read-accent);}
.store-main .hnv-page .hnv-plan-details {font-size:16px;line-height:1.65;}
.store-main .hnv-page .hnv-plan-details summary {font-size:15px;font-weight:700;color:var(--hn-read-accent);padding:8px 0;}
.store-main .hnv-page .hcs-product-description {font-size:16px;line-height:1.65;color:var(--hn-read-muted);}
/* Existing legacy buttons use !important; match only their font and touch size. */
.store-main .hnv-page :is(.hnv-plan-buy,.hnv-confirm-button,.hnv-topup-button) {font-size:16px!important;min-height:48px!important;}
.store-main .hnv-page .hnv-filter {font-size:15px;min-height:44px;padding:9px 13px;border-radius:12px;font-weight:650;}
.store-main .hnv-page .hnv-filter span {font-size:13px;}
.store-main .hnv-page .hnv-filter.is-active {background:var(--hn-read-soft);color:var(--hn-read-accent);border-color:var(--hn-read-border);}
.store-main .hnv-page .hnv-select-label {font-size:15px;}
.store-main .hnv-page .hnv-results-row,.store-main .hnv-page .hnv-results-row span:first-child {font-size:15px;line-height:1.6;}
.store-main .hnv-page :is(.hnv-help-note,.hnv-back-link) {font-size:16px;line-height:1.65;}
.store-main .hnv-page .hnv-help-note {border:1px solid var(--hn-read-border);border-radius:16px;}
.store-main .hnv-page .hnv-config-heading h2 {font-size:21px;}
.store-main .hnv-page .hnv-config-heading p {font-size:15px;line-height:1.6;}
.store-main .hnv-page .hnv-step {font-size:15px;width:36px;height:36px;}
.store-main .hnv-page .hnv-radio-option label {font-size:15px;line-height:1.5;min-height:60px;border-radius:14px;}
.store-main .hnv-page .hnv-radio-option input:checked+label {color:var(--hn-read-ink);border-color:var(--hn-read-accent);background:var(--hn-read-soft);}
.store-main .hnv-page .hnv-field>label {font-size:16px;font-weight:650;}
.store-main .hnv-page :is(.hnv-field small,.hnv-resource small,.hnv-duration-grid label small,.hnv-feature-toggle small,.hnv-form-message,.hnv-order-note,.hnv-extra-summary,.hnv-payment-total>small) {font-size:14px;line-height:1.65;}
.store-main .hnv-page :is(.hnv-duration-grid label strong,.hnv-feature-toggle strong,.hnv-resource-label,.hnv-wallet-summary,.hnv-coupon-input button) {font-size:16px;line-height:1.5;}
.store-main .hnv-page .hnv-expand-config summary strong {font-size:19px;}
.store-main .hnv-page .hnv-expand-config summary small {font-size:15px;line-height:1.6;}
.store-main .hnv-page .hnv-summary-title h2 {font-size:22px;}
.store-main .hnv-page .hnv-summary-title small {font-size:14px;}
.store-main .hnv-page .hnv-payment-total>span {font-size:16px;}
.store-main .hnv-page .hnv-payment-total>strong {font-size:34px;color:var(--hn-read-accent);}
.store-main .hnv-page .hnv-wallet-summary>div {flex-wrap:wrap;}
.store-main .hnv-page .hnv-order-grid {grid-template-columns:minmax(0,1fr) minmax(330px,370px);gap:24px;}
.store-main .hnv-page .hnv-feature-toggle {align-items:flex-start;}
.store-main .hnv-page .hnv-feature-toggle input {margin-top:4px;}

/* Account service cards and their purchase dialog. */
.store-main .hn-account-services .hn-account-category-card {overflow:hidden;}
.store-main .hn-account-services .hn-account-category-content h2 {font-size:24px;font-weight:750;}
.store-main .hn-account-services .hn-account-plan-card h2 {font-size:23px!important;line-height:1.4;min-height:0;}
.store-main .hn-account-services :is(.hn-account-category-content p,.hn-account-plan-features,.hn-account-notice) {font-size:16px;line-height:1.65;}
.store-main .hn-account-services :is(.hn-account-category-count,.hn-account-plan-category,.hn-account-breadcrumb,.hn-account-overview p span,.hn-account-plan-footer>span) {font-size:14px;line-height:1.6;}
.store-main .hn-account-services .hn-account-overview p strong {font-size:18px;}
.store-main .hn-account-services .hn-account-feature-heading {font-size:16px;font-weight:720;}
.store-main .hn-account-services .hn-account-category-bottom {font-size:15px;flex-wrap:wrap;}
.store-main .hn-account-services .hn-account-category-bottom strong {font-size:29px;color:var(--hn-read-accent);}
.store-main .hn-account-services .hn-account-plan-price {font-size:16px;}
.store-main .hn-account-services .hn-account-plan-price strong {font-size:34px;color:var(--hn-read-accent);font-weight:780;}
.store-main .hn-account-services .hn-account-wallet {font-size:15px;}
dialog.hn-account-dialog.hn-commerce {width:min(620px,calc(100vw - 32px));padding:26px;border-radius:26px;background:var(--hn-read-glass);border-color:var(--hn-read-border);box-shadow:var(--hn-read-shadow),0 26px 85px rgba(12,25,45,.22);}
dialog.hn-account-dialog h2 {font-size:26px;line-height:1.3;font-weight:750;}
dialog.hn-account-dialog .hn-account-dialog-top button {width:44px;height:44px;flex-shrink:0;}
dialog.hn-account-dialog :is(.hn-account-dialog-description,#hnAccountDialogDescription,.hn-account-dialog-features h3,.hn-account-dialog-features ul,.hn-account-field,.hn-account-balance,.hn-account-message) {font-size:16px;line-height:1.65;}
dialog.hn-account-dialog :is(.hn-account-summary>div,.hn-account-agree) {font-size:15px;line-height:1.6;}
dialog.hn-account-dialog .hn-account-summary-total dd {font-size:34px;color:var(--hn-read-accent);font-weight:780;}
dialog.hn-account-dialog .hn-account-dialog-footnote {font-size:14px;line-height:1.6;}

@supports(backdrop-filter:blur(12px)) {
    .store-main .hn-commerce :is(.hnv-plan-card,.hnv-catalog-controls,.hn-account-category-card,.hn-account-plan-card),dialog.hn-account-dialog.hn-commerce {backdrop-filter:blur(12px) saturate(1.12);-webkit-backdrop-filter:blur(12px) saturate(1.12);}
}
@media(max-width:1200px) {
    .store-main .hnv-page .hnv-order-grid {grid-template-columns:minmax(0,1fr) 330px;gap:18px;}
}
@media(max-width:1020px) {
    .store-main .hnv-page .hnv-order-grid {grid-template-columns:minmax(0,1fr);}
    .store-main .hnv-page .hnv-order-summary {position:static;}
}
@media(max-width:640px) {
    .store-main .hn-commerce,dialog.hn-commerce {font-size:16px;}
    .store-main .hn-commerce .hnc-page-header h1 {font-size:32px;}
    .store-main .hn-commerce .hnc-subtitle {font-size:16px;}
    .store-main .hn-commerce .hnc-eyebrow,dialog.hn-commerce .hnc-eyebrow {font-size:12px;}
    .store-main .hn-commerce .hnc-panel {border-radius:20px;}
    .store-main .hnv-page .hnv-plan-card h2,.store-main .hn-account-services .hn-account-category-content h2 {font-size:22px;}
    .store-main .hnv-page .hnv-plan-price strong,.store-main .hn-account-services .hn-account-plan-price strong {font-size:32px;}
    .store-main .hnv-page .hnv-header-actions .hnc-button {white-space:normal;}
    .store-main .hnv-page .hnv-results-row {display:grid;gap:3px;}
    .store-main .hnv-page .hnv-filter-row {gap:7px;}
    .store-main .hnv-page .hnv-catalog-controls {padding:16px!important;}
    .store-main .hnv-page .hnv-os-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
    .store-main .hnv-page .hnv-duration-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
    .store-main .hnv-page .hnv-radio-option label {font-size:15px;overflow-wrap:anywhere;}
    .store-main .hnv-page .hnv-plan-specs dt {flex-shrink:1;}
    .store-main .hnv-page .hnv-plan-specs dd {max-width:62%;}
    .store-main .hnv-page .hnv-payment-total>strong {font-size:32px;}
    dialog.hn-account-dialog.hn-commerce {padding:20px;width:calc(100vw - 24px);border-radius:22px;}
    dialog.hn-account-dialog h2 {font-size:24px;}
}
@media(prefers-reduced-motion:reduce) {
    .store-main .hn-commerce *,dialog.hn-commerce * {transition:none!important;animation:none!important;scroll-behavior:auto!important;}
}
