.customer-nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; background:var(--surface); border:1px solid var(--line); padding:4px; border-radius:8px; margin-block:8px 18px; }
.customer-nav[hidden],#customer-catalog[hidden],#customer-orders[hidden] { display:none; }
.customer-nav button { margin:0; background:transparent; color:var(--secondary); min-height:44px; padding:6px; font-size:.9rem; }
.customer-nav button[aria-pressed=true] { background:var(--vermilion); color:var(--near-black); }
.catalog-list { display:grid; gap:12px; }
.catalog-plan { padding:16px; border:1px solid var(--line); background:var(--surface); border-radius:10px; }
.catalog-quota,.catalog-price { display:block; text-align:right; unicode-bidi:isolate; font-weight:700; font-size:1.55rem; margin-block:12px 0; }
.catalog-price { color:var(--vermilion); }
.catalog-note { color:var(--secondary); font-size:.82rem; margin-block:6px 12px; }
.catalog-state { border-top:1px solid var(--line); padding-top:10px; font-size:.8rem; color:var(--secondary); margin-block-end:0; }

.catalog-location-label { display:block; font-size:.8rem; color:var(--secondary); margin-block:8px 4px; }
.catalog-location-select { width:100%; min-height:48px; font:inherit; color:var(--ink); background:var(--surface); border:1px solid var(--line); border-radius:8px; padding:8px 12px; margin-block-end:16px; }
.catalog-location-select:focus-visible { outline:2px solid var(--ink); outline-offset:3px; }

.catalog-preflight { width:100%; min-height:44px; margin-block:12px 0; }
.catalog-preflight:disabled { opacity:.65; cursor:wait; }
.catalog-preflight-summary:not(:empty) { border-top:1px solid var(--line); margin-block-start:12px; padding-block-start:12px; font-size:.86rem; }

.catalog-order-confirm { width:100%; min-height:44px; margin-block:8px; }
.catalog-order-confirm:disabled { opacity:.65; }
.catalog-order-id { overflow-wrap:anywhere; font-size:.8rem; unicode-bidi:isolate; text-align:left; }

.orders-list { display:grid; gap:12px; }
.orders-card { border:1px solid var(--line); background:var(--surface); border-radius:10px; padding:16px; }
.orders-refresh { width:100%; min-height:44px; margin-block:8px 12px; }
.orders-refresh:disabled { opacity:.65; }
.orders-id { overflow-wrap:anywhere; font-size:.8rem; unicode-bidi:isolate; text-align:left; }
.orders-price { display:block; color:var(--vermilion); font-size:1.35rem; text-align:right; }
.orders-metric { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px; border-top:1px solid var(--line); padding-block:8px; font-size:.85rem; }

.orders-invoice-request { width:100%; min-height:44px; margin-block:8px; }
.orders-invoice-request:disabled { opacity:.65; }
.orders-stars-link { display:flex; align-items:center; justify-content:center; box-sizing:border-box; width:100%; min-height:44px; margin-block:8px; padding:10px 12px; font:inherit; font-weight:600; text-align:center; text-decoration:none; color:var(--ink); background:var(--surface); border:1px solid var(--line); border-radius:8px; }
.orders-stars-link:focus-visible { outline:2px solid var(--vermilion); outline-offset:3px; }
.orders-invoice-outcome:not(:empty) { font-size:.85rem; margin-block:8px; }

.lifecycle-panel .configuration-slot { margin-block:12px; }
.lifecycle-output:not(:empty) { display:grid; gap:8px; }
.lifecycle-output select { width:100%; min-height:44px; font:inherit; color:var(--ink); background:var(--surface); border:1px solid var(--line); border-radius:8px; padding:8px 12px; }
.lifecycle-output button, .lifecycle-open, .lifecycle-refresh { min-height:44px; }
.lifecycle-output button:disabled { opacity:.65; }
.lifecycle-terms:empty { display:none; }
.lifecycle-terms label { display:flex; align-items:center; gap:8px; }

/* Customer V5 — country-first shopping and order history */
.customer-product #logout { display:none !important; }
.customer-product .product-header { justify-content:center; padding-bottom:18px; }
.customer-product .catalog-location-select[hidden] { display:none !important; }
.customer-product .catalog-intro { color:var(--real-muted);margin:0 0 16px;font-size:13px; }
.customer-product .catalog-location-label { font-family:var(--font-heading);font-weight:700;color:var(--real-text);font-size:15px;margin-bottom:10px; }
.customer-product .country-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:24px;}
.customer-product .country-card {position:relative;display:grid;grid-template-columns:1fr auto;gap:4px 8px;align-items:center;text-align:start;padding:14px;min-height:110px;margin:0;background:var(--real-card);color:var(--real-text);border:1px solid var(--real-line);border-radius:20px;}
.customer-product .country-card[aria-pressed=true] {border-color:var(--real-accent);background:var(--real-elevated);box-shadow:inset 0 0 0 1px var(--real-accent);}
.customer-product .country-flag {grid-column:1;font-size:28px;line-height:1.2;}
.customer-product .country-name {grid-column:1/-1;font-family:var(--font-heading);font-size:15px;}
.customer-product .country-code {grid-column:2;grid-row:1;color:var(--real-muted);font-size:11px;direction:ltr;}
.customer-product .country-available,.customer-product .country-closed {grid-column:1/-1;font-size:11px;color:var(--real-muted);}
.customer-product .country-available {color:#32966e;}
.customer-product .catalog-plan {grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:16px;gap:8px 10px;}
.customer-product .catalog-plan .plan-name {font-size:17px;}
.customer-product .catalog-quota {grid-row:2;grid-column:1;font-size:clamp(23px,6.6vw,32px);font-variant-numeric:tabular-nums;}
.customer-product .catalog-plan>.catalog-note {grid-row:3;grid-column:1/-1;margin:0;}
.customer-product .catalog-pricing {grid-row:2;grid-column:2;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:baseline;gap:2px 8px;direction:ltr;}
.customer-product .catalog-original-price {font-size:13px;color:var(--real-muted);white-space:nowrap;}
.customer-product .catalog-price {font-size:21px;white-space:nowrap;}
.customer-product .catalog-discount {flex-basis:100%;direction:rtl;text-align:left;color:var(--real-accent);font-size:10px;}
.customer-product .catalog-state {border:0;padding:0;margin:0 0 4px;}
.customer-product .catalog-preflight {margin-top:5px;}
.customer-product .orders-toolbar {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px;}
.customer-product .orders-refresh {width:auto;min-height:36px;margin:0;padding:5px 13px;font-size:12px;border-radius:20px;}
.customer-product .orders-group-title {font-family:var(--font-heading);font-size:14px;color:var(--real-muted);margin:12px 4px 0;}
.customer-product .orders-card {padding:15px;margin:0;border-radius:20px;}
.customer-product .orders-card-head,.customer-product .orders-card-meta {display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;}
.customer-product .orders-card-head .plan-name {font-size:16px;}
.customer-product .orders-status {background:var(--real-elevated);color:var(--real-muted);font-size:11px;border-radius:99px;padding:4px 10px;}
.customer-product .orders-status[data-status=pending],.customer-product .orders-status[data-status=provisioning] {color:var(--real-accent);}
.customer-product .orders-card-meta {margin:12px 0;}
.customer-product .orders-country {font-size:13px;color:var(--real-muted);}
.customer-product .orders-price {margin:0;font-size:20px;}
.customer-product .orders-details {border-top:1px solid var(--real-line);padding-top:10px;font-size:12px;}
.customer-product .orders-details summary {cursor:pointer;color:var(--real-muted);}
.customer-product .orders-details .orders-id {overflow-wrap:anywhere;user-select:all;}
.customer-product .orders-stars-link {font-size:13px;border-radius:13px;}
@media (max-width:340px){.customer-product .country-grid{grid-template-columns:1fr}.customer-product .catalog-pricing{gap:2px 4px}}
