/* HostPanel storefront — an Amazon-style hosting store.
   Brand colors come from CSS variables set by the layout (admin/reseller branding). The call-to-action
   buttons and search button follow the saved PRIMARY color (with its paired primary-text), so the
   Branding → Colors pickers control them; the fallback keeps the original Amazon look if unset. */

:root {
  --maxw: 1500px;
  /* Call-to-action chrome: follows the brand's primary color (set in Branding → Colors). */
  --az-nav: #131921;
  --az-nav2: #232f3e;
  --az-search: var(--primary, #febd69);
  --az-search-h: color-mix(in srgb, var(--primary, #febd69) 85%, black);
  --az-yellow: var(--primary, #ffd814);
  --az-yellow-h: color-mix(in srgb, var(--primary, #ffd814) 86%, black);
  --az-yellow-br: color-mix(in srgb, var(--primary, #ffd814) 78%, black);
  --az-yellow-text: var(--primary-text, #0f1111);
  --az-orange: #f08804;
  --az-link: #007185;
  --az-link-h: #c7511f;
  --az-page: #eaeded;
  --shadow-xs: 0 1px 2px rgba(15, 17, 17, .08);
  --shadow-sm: 0 1px 3px rgba(15, 17, 17, .12);
  --shadow: 0 3px 10px rgba(15, 17, 17, .14);
  --shadow-lg: 0 10px 28px rgba(15, 17, 17, .18);
  --ring: 0 0 0 3px rgba(0, 113, 133, .35);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --tr: .15s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font, "Amazon Ember", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  color: var(--text, #0f1111); background: var(--bg, #eaeded); line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; }
a { color: var(--az-link); text-decoration: none; }
a:hover { color: var(--az-link-h); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2rem); }
h2 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted, #565959); }
.small { font-size: .875rem; }
.lead { font-size: 1.1rem; }
.pre { white-space: pre-line; }
.inline { display: inline; }
.main { min-height: 60vh; }
.section { padding: 32px 0; }
.section-title { text-align: center; margin-bottom: 24px; }

/* ============================ Amazon header ============================ */
.az-header { position: sticky; top: 0; z-index: 40; }
.az-top {
  display: flex; align-items: center; gap: 10px; padding: 7px 14px;
  background: var(--az-nav); color: #fff;
}
.az-logo { display: flex; align-items: center; padding: 8px 9px; border: 1px solid transparent; border-radius: 3px; color: #fff; }
.az-logo:hover { border-color: #fff; text-decoration: none; }
.az-logo-name { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.brand-logo { max-height: 38px; width: auto; }

.az-search { flex: 1 1 auto; display: flex; min-width: 0; max-width: 980px; height: 40px; border-radius: 8px; overflow: hidden; background: #fff; }
.az-search:focus-within { box-shadow: 0 0 0 3px var(--az-search); }
.az-search-input { flex: 1 1 auto; min-width: 0; border: 0; padding: 0 14px; font: inherit; font-size: 15px; color: #0f1111; background: #fff; border-radius: 0; }
.az-search-input:focus { outline: none; box-shadow: none; }
.az-search-btn { flex: 0 0 46px; border: 0; background: var(--az-search); color: #0f1111; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.az-search-btn:hover { background: var(--az-search-h); }

.az-top-right { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.az-block { display: flex; flex-direction: column; justify-content: center; padding: 6px 9px; border: 1px solid transparent; border-radius: 3px; color: #fff; line-height: 1.25; }
.az-block:hover { border-color: #fff; text-decoration: none; color: #fff; }
.az-l1 { font-size: 12px; color: #e3e6e6; }
.az-l2 { font-size: 14px; font-weight: 700; color: #fff; }
.az-logout { padding: 0; margin: 0; background: none; border: 0; }
.az-logout button { display: flex; flex-direction: column; justify-content: center; padding: 6px 9px; border: 1px solid transparent; border-radius: 3px; background: none; color: #fff; font: inherit; line-height: 1.25; text-align: left; cursor: pointer; }
.az-logout button:hover { border-color: #fff; }
.az-cart { display: flex; align-items: flex-end; gap: 4px; padding: 10px 9px 6px; border: 1px solid transparent; border-radius: 3px; color: #fff; position: relative; }
.az-cart:hover { border-color: #fff; text-decoration: none; color: #fff; }
.az-cart-ico { position: relative; display: flex; align-items: flex-end; }
.az-cart-count { position: absolute; top: -10px; left: 15px; min-width: 18px; text-align: center; font-size: 15px; font-weight: 700; color: var(--az-orange); }
.az-cart-label { font-size: 14px; font-weight: 700; }

.az-sub { background: var(--az-nav2); color: #fff; }
.az-sub-inner { display: flex; align-items: center; gap: 4px; padding: 3px 10px; }
.az-burger { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid transparent; border-radius: 3px; color: #fff; font: inherit; font-weight: 700; font-size: .92rem; padding: 7px 8px; cursor: pointer; }
/* On desktop the department menu is already shown inline, so the "All" toggle has nothing to do — hide it. */
@media (min-width: 761px) { .az-burger { display: none; } }
.az-burger:hover { border-color: #fff; }
.az-depts .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; align-items: center; }
.az-depts .menu li { position: relative; }
.az-depts .menu a, .az-depts .menu .link-button { display: block; color: #fff; padding: 7px 11px; font-size: .9rem; font-weight: 500; border: 1px solid transparent; border-radius: 3px; }
.az-depts .menu a:hover, .az-depts .menu .link-button:hover { border-color: #fff; text-decoration: none; }
.az-depts .menu .menu { position: absolute; left: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; min-width: 200px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 6px; box-shadow: var(--shadow-lg); z-index: 5; }
.az-depts .menu li:hover > .menu, .az-depts .menu li:focus-within > .menu { display: flex; }
.az-depts .menu .menu a, .az-depts .menu .menu .link-button { color: var(--text); }
.az-depts .menu .menu a:hover { background: var(--az-page); border-color: transparent; }

@media (max-width: 760px) {
  .az-top { flex-wrap: wrap; }
  .az-search { order: 3; flex-basis: 100%; max-width: none; }
  .az-depts { display: none; position: absolute; left: 0; right: 0; background: var(--az-nav2); padding: 6px 10px 12px; box-shadow: var(--shadow); z-index: 6; }
  .az-depts.open { display: block; }
  .az-depts .menu { flex-direction: column; align-items: stretch; }
  .az-depts .menu .menu { display: flex; position: static; box-shadow: none; border: 0; background: transparent; padding-left: 12px; }
  .az-depts .menu .menu a { color: #fff; }
}

/* ============================ Amazon store grid ============================ */
.az-page { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; max-width: var(--maxw); margin: 0 auto; padding: 18px 16px; }
.az-rail { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; align-self: start; }
.az-rail-h { font-size: 1rem; font-weight: 700; margin: 0 0 8px; }
.az-rail-list { list-style: none; margin: 0; padding: 0; }
.az-rail-list li { margin: 0; }
.az-rail-list a { display: block; padding: 6px 0; font-size: .92rem; color: var(--az-link); }
.az-rail-list li.active a { font-weight: 700; color: var(--text); }
.az-results { min-width: 0; }
.az-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 16px; }
.az-cat-title { margin: 0; font-size: 1.5rem; }
.az-count { margin: 0; color: var(--muted); font-size: .92rem; }
.az-crumbs { color: var(--muted); font-size: .85rem; margin-bottom: 12px; }
.az-crumbs a { color: var(--az-link); }
.az-sep { margin: 0 6px; color: var(--muted); }

.az-cat { margin-bottom: 30px; }
.az-cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.az-cat-head h2 { margin: 0; font-size: 1.3rem; }
.az-see { font-size: .9rem; white-space: nowrap; }
.az-cat-desc { color: var(--muted); font-size: .9rem; margin: 2px 0 14px; }
.az-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.az-empty { color: var(--muted); padding: 24px 0; }

/* ---- Tiles / List view toggle (Amazon-style) ---- */
.az-viewbar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 14px; }
.az-head-right { display: flex; align-items: center; gap: 14px; }
.az-viewlabel { color: var(--muted); font-size: .82rem; }
.az-viewtoggle { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.az-view-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 0; background: var(--surface); color: var(--text); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.az-view-btn + .az-view-btn { border-left: 1px solid var(--border); }
.az-view-btn:hover { background: var(--az-page); }
.az-view-btn.active { background: var(--az-link); color: #fff; }
.az-view-ico { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 14px; height: 14px; }
.az-view-ico span { background: currentColor; border-radius: 1px; }
.az-view-ico.list { grid-template-columns: 1fr; gap: 3px; }
.az-view-ico.list span { height: 3px; }

/* Tiles view: body is transparent so its children flow as the card's own flex column (keeps original layout). */
.az-card-body { display: contents; }

.az-results.view-list .az-grid { grid-template-columns: 1fr; gap: 12px; }
.az-results.view-list .az-card { flex-direction: row; align-items: stretch; padding: 14px 16px; gap: 18px; }
.az-results.view-list .az-card-img { flex: 0 0 180px; width: 180px; height: 135px; margin-bottom: 0; }
.az-results.view-list .az-card-body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.az-results.view-list .az-card-title { -webkit-line-clamp: 1; font-size: 1.15rem; }
.az-results.view-list .az-card-desc { -webkit-line-clamp: 3; }
.az-results.view-list .az-feats { margin-bottom: 12px; }
.az-results.view-list .az-btn { align-self: flex-start; width: auto; margin-top: auto; }
@media (max-width: 620px) {
  .az-results.view-list .az-card { flex-direction: column; }
  .az-results.view-list .az-card-img { width: 100%; flex-basis: auto; height: 170px; margin-bottom: 14px; }
}

.az-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; transition: box-shadow var(--tr), border-color var(--tr); }
.az-card:hover { box-shadow: var(--shadow); border-color: #c7cdd1; }
.az-card-img { display: block; height: 170px; border-radius: 6px; overflow: hidden; margin-bottom: 14px; background: #f3f4f6; }
.az-card-img img { width: 100%; height: 100%; object-fit: cover; }
.az-card-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; text-align: center; padding: 10px; font-weight: 700; font-size: 1rem; color: var(--muted); background: linear-gradient(135deg, #eef1f3, #e2e6ea); }
.az-card-title { display: block; color: var(--az-link); font-size: 1.05rem; font-weight: 600; line-height: 1.3; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.az-card-title:hover { color: var(--az-link-h); }
.az-card-desc { color: var(--muted); font-size: .85rem; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.az-price { display: flex; align-items: baseline; gap: 3px; margin: 2px 0 12px; }
.az-amt { font-size: 1.6rem; font-weight: 700; color: var(--text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.az-per { color: var(--muted); font-size: .85rem; }
.az-feats { list-style: none; margin: 0 0 16px; padding: 0; }
.az-feats li { position: relative; padding: 4px 0 4px 18px; font-size: .82rem; color: #0f1111; }
.az-feats li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--az-orange); }

/* ============================ Yellow Amazon buttons ============================ */
.az-btn { display: inline-flex; align-items: center; justify-content: center; margin-top: auto; padding: 9px 16px; border-radius: 20px; border: 1px solid var(--az-yellow-br); background: var(--az-yellow); color: var(--az-yellow-text); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; text-align: center; box-shadow: var(--shadow-xs); transition: background var(--tr); }
.az-btn:hover { background: var(--az-yellow-h); text-decoration: none; color: var(--az-yellow-text); }
.az-btn:active { background: var(--az-yellow-h); }
.az-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.az-btn.block { display: flex; width: 100%; }

/* ============================ Product (buy-box) page ============================ */
.az-pdp { max-width: var(--maxw); margin: 0 auto; padding: 18px 16px; }
.az-pdp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 320px; gap: 30px; align-items: start; }
.az-pdp-media { align-self: start; }
.az-pdp-img { width: 100%; border: 1px solid var(--border); border-radius: 8px; }
.az-pdp-ph { height: 340px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-weight: 700; font-size: 1.2rem; color: var(--muted); background: linear-gradient(135deg, #eef1f3, #e2e6ea); border: 1px solid var(--border); border-radius: 8px; }
.az-pdp-title { font-size: 1.7rem; font-weight: 600; margin: 0 0 8px; }
.az-pdp-lead { color: #0f1111; font-size: 1.05rem; }
.az-rule { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.az-about { font-size: 1.1rem; font-weight: 700; margin: 0 0 10px; }
.az-pdp-feats { list-style: none; margin: 0; padding: 0; }
.az-pdp-feats li { position: relative; padding: 6px 0 6px 24px; }
.az-pdp-feats li::before { content: "✓"; position: absolute; left: 0; top: 6px; color: #007600; font-weight: 800; }
.az-buybox { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px; align-self: start; position: sticky; top: 16px; box-shadow: var(--shadow-sm); }
.az-bb-note { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; margin: 12px 0 0; }
.az-tick { color: #007600; font-weight: 800; }
.az-promo { max-width: var(--maxw); margin: 28px auto 0; padding: 0 16px; }

@media (max-width: 1000px) { .az-pdp-grid { grid-template-columns: 1fr; } .az-buybox { position: static; } }
@media (max-width: 860px) { .az-page { grid-template-columns: 1fr; } .az-rail { display: none; } }

/* ============================ Buttons / forms (cart, checkout, client) ============================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-align: center; box-shadow: var(--shadow-xs); transition: background var(--tr), box-shadow var(--tr); }
.btn:hover { text-decoration: none; box-shadow: var(--shadow-sm); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { background: var(--az-yellow); border-color: var(--az-yellow-br); color: var(--az-yellow-text); border-radius: 20px; }
.btn-primary:hover { background: var(--az-yellow-h); }
.btn-light { background: #fff; color: var(--az-link); border-color: #fff; }
.btn-sm { padding: 6px 13px; font-size: .875rem; }
.btn-lg { padding: 13px 26px; font-size: 1.05rem; }
.block { display: flex; width: 100%; }
.link-button { background: none; border: 0; box-shadow: none; color: var(--az-link); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.link-button:hover { text-decoration: underline; }
.link-button.danger { color: #c40000; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input:not([type]), select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: var(--surface); color: var(--text); transition: border-color var(--tr), box-shadow var(--tr);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--az-link); box-shadow: var(--ring); }
.check { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; }
legend { font-weight: 700; padding: 0 6px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.form-narrow { max-width: 520px; }

/* ============================ Cards, grids, sections ============================ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 22px; box-shadow: var(--shadow-xs); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.features { list-style: none; padding: 0; margin: 0 0 18px; }
.features li { padding: 6px 0 6px 24px; position: relative; border-bottom: 1px solid var(--border); }
.features li::before { content: "✓"; position: absolute; left: 0; color: #007600; font-weight: 700; }
.feature h3 { font-size: 1.1rem; }
.category-title { margin-top: 28px; }

.hero { position: relative; overflow: hidden; padding: 72px 0; background: linear-gradient(135deg, var(--az-nav), var(--az-nav2)); color: #fff; }
.hero.align-center { text-align: center; }
.hero .lead { font-size: 1.2rem; opacity: .95; max-width: 680px; }
.hero.align-center .lead { margin-left: auto; margin-right: auto; }
.hero .btn-primary { background: var(--az-yellow); color: var(--az-yellow-text); border-color: var(--az-yellow-br); }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 30px; box-shadow: var(--shadow-sm); }
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; color: var(--muted); }
.faq { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); margin: 10px 0 0; }
.quote p { font-style: italic; }
.figure { text-align: center; }
.figure img { border-radius: 8px; box-shadow: var(--shadow-sm); }
.prose p { margin-bottom: 1em; }

/* ============================ Tables ============================ */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table tfoot th { font-size: 1rem; }
.num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-actions { white-space: nowrap; }

/* ============================ Badges, alerts ============================ */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; text-transform: capitalize; background: #e5e7eb; color: #374151; }
.status-active, .status-paid { background: #dcfce7; color: #166534; }
.status-pending, .status-provisioning, .status-unpaid { background: #fef9c3; color: #854d0e; }
.status-suspended, .status-failed, .status-cancelled, .status-terminated { background: #fee2e2; color: #991b1b; }
.alert { padding: 12px 16px; border-radius: 10px; margin: 16px 0; border: 1px solid transparent; }
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.safe-mode { background: #131921; color: #febd69; padding: 8px 16px; text-align: center; font-size: .9rem; }
.safe-mode a { color: #fff; text-decoration: underline; }

/* ============================ Footer ============================ */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 40px; }
.site-footer .footer-top { text-align: center; padding: 14px; background: var(--az-nav2); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 36px 0 10px; }
.footer-inner > div { max-width: 340px; }
.site-footer strong { font-size: 1.1rem; }
.site-footer a { color: var(--footer-text); opacity: .85; }
.site-footer a:hover { opacity: 1; color: var(--footer-text); }
.site-footer .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 0 0; font-size: .85rem; }
.footer-legal a { opacity: .85; }
.footer-legal a + a { position: relative; }
.footer-legal a + a::before { content: "·"; position: absolute; left: -10px; opacity: .6; }
.footer-note { padding: 18px 0 24px; font-size: .85rem; opacity: .7; }

/* ============================ Auth, product-page legacy ============================ */
.product-page { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .product-page { grid-template-columns: 1fr; } }
.auth-card { max-width: 440px; margin: 36px auto; box-shadow: var(--shadow-sm); }

/* ============================ Client area ============================ */
.client-grid { display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
@media (max-width: 860px) { .client-grid { grid-template-columns: 1fr; } }
.client-nav .menu { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; align-items: stretch; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.client-nav .menu a { display: block; padding: 9px 12px; color: var(--text); border-radius: 8px; }
.client-nav .menu a:hover { background: var(--az-page); text-decoration: none; }
.client-nav .menu li.active > a { background: var(--az-page); color: var(--az-link); font-weight: 600; }
.client-main h2 { margin-top: 32px; }
.stat { display: flex; flex-direction: column; gap: 4px; color: var(--text); }
.stat:hover { text-decoration: none; border-color: var(--az-link); }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--az-link); }
.service-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.service-meta { text-align: right; }
.service-tools { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.usage { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.usage-label { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; margin-bottom: 6px; }
.bar { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--az-link); }
.bar-fill.warn { background: #c40000; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.details dt { font-weight: 600; color: var(--muted); }
.details dd { margin: 0; word-break: break-all; }
.actions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.action { padding: 14px; }
.console-log { max-height: 320px; overflow: auto; background: #0b1020; color: #d1fae5; padding: 12px; border-radius: 8px; white-space: pre-wrap; }
.invoice-head, .invoice-parties { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
@media print { .az-header, .site-footer, .client-nav, .btn, .az-btn { display: none !important; } .card { border: 0; box-shadow: none; } }

/* ============================ Console ============================ */
body.blank { background: #000; color: #e5e7eb; }
.console-shell { display: flex; flex-direction: column; height: 100vh; }
.console-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #131921; color: #e5e7eb; }
.console-bar .btn { background: #1f2937; color: #e5e7eb; border-color: #374151; }
.console-bar .spacer { flex: 1; }
.console-screen { flex: 1; overflow: hidden; }

/* ============================ Support area ============================ */
.support-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 24px; }
.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 16px 0; }
.kb-card { display: block; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-xs); }
.kb-card:hover { box-shadow: var(--shadow-sm); text-decoration: none; }
.kb-card h3 { margin: 0; font-size: 1rem; }
.kb-cats ul { columns: 2; list-style: none; padding: 0; }
.kb-body { line-height: 1.7; }
.kb-body pre { background: var(--az-page); padding: 12px 14px; border-radius: 8px; overflow: auto; }
.kb-body code { background: var(--az-page); padding: 1px 5px; border-radius: 4px; }
.ticket-thread { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.msg { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--surface); }
.msg-staff { border-left: 3px solid var(--az-link); }
.msg-note { background: #fff8e1; border-color: #f5e0a3; }
.msg-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; font-size: .9rem; }
.msg-body { white-space: normal; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ============================ Live chat ============================ */
.chat-box { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); padding: 12px; max-width: 680px; }
.chat-log { height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 6px; }
.chat-msg { max-width: 80%; padding: 8px 12px; border-radius: 14px; }
.chat-me { align-self: flex-end; background: var(--az-link); color: #fff; }
.chat-them { align-self: flex-start; background: var(--az-page); border: 1px solid var(--border); }
.chat-system { align-self: center; font-size: .85rem; color: var(--muted); }
.chat-name { display: block; font-size: .72rem; opacity: .75; margin-bottom: 2px; }
.chat-form { display: flex; gap: 8px; margin-top: 10px; }
.chat-form input { flex: 1; }
.chat-status { font-size: .8rem; margin-top: 6px; min-height: 1em; }
.chat-presence { display: flex; align-items: center; gap: 8px; font-size: .85rem; padding: 6px 2px; color: var(--muted); }
.chat-presence .chat-dot { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; flex-shrink: 0; }
.chat-presence.on .chat-dot { background: #16a34a; }
.chat-presence.off .chat-dot { background: #c40000; }

/* ============================ On-site card payment ============================ */
.pay-box { margin-top: 16px; }
.pay-box h3 { margin: 0 0 10px; }
.pay-element { border: 0; padding: 0; background: transparent; min-height: 0; margin: 10px 0; }
.pay-box .pay-msg { margin-top: 10px; min-height: 1em; }
.pf { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin: 0 0 12px; }
.pf-row { display: flex; gap: 12px; }
.pf-row .pf { flex: 1; }
.pf-field { display: block; border: 1px solid var(--border); border-radius: 8px; padding: 13px 12px; margin-top: 6px; background: var(--surface); transition: border-color var(--tr), box-shadow var(--tr); }
.pf-field.StripeElement--focus { border-color: var(--az-link); box-shadow: var(--ring); }
.pf-field.StripeElement--invalid { border-color: #c40000; }

/* Cart add-on sub-lines (sub-packages under a plan) */
.cart-addon td { border-top: 0; padding-top: 4px; padding-bottom: 4px; }
.cart-addon td.sub { padding-left: 26px; color: var(--muted); font-size: .9rem; }
.ship-opts { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.ship-opt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border, #ddd); border-radius: 6px; cursor: pointer; }
.ship-opt input { margin: 0; }
.ship-opt.disabled { opacity: .55; cursor: not-allowed; }

/* Self-contained captcha */
.captcha{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.captcha svg{border:1px solid var(--border);border-radius:8px;display:block}
.captcha-reload{font-size:1.35rem;line-height:1;text-decoration:none;color:var(--muted)}
.captcha-reload:hover{color:var(--az-link,var(--primary))}

/* ============================ Marketing features ============================ */
/* Sale badge + was-price */
.az-card-img { position: relative; }
.az-sale-badge { position: absolute; top: 8px; left: 8px; z-index: 2; background: #cc1100; color: #fff; font-weight: 700; font-size: .78rem; padding: 3px 7px; border-radius: 4px; letter-spacing: .02em; }
.az-was { color: var(--muted); text-decoration: line-through; font-size: .9rem; margin-right: 6px; }
.az-pdp-sale { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 2px; }
.az-pdp-sale .az-amt { font-size: 1.5rem; font-weight: 700; color: #cc1100; }

/* Star ratings (read-only) */
.stars { position: relative; display: inline-block; font-size: 1rem; line-height: 1; white-space: nowrap; font-family: Arial, sans-serif; }
.stars-empty { color: #d5d9d9; }
.stars-full { position: absolute; left: 0; top: 0; overflow: hidden; color: #ffa41c; }
.az-stars { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; text-decoration: none; }
.az-stars-n { color: var(--az-link, var(--primary)); font-size: .82rem; }

/* Announcement bar */
.announce-bar { display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--accent, #ff9900); color: #111; text-align: center; padding: 8px 40px 8px 16px; font-size: .9rem; font-weight: 600; position: relative; }
.announce-bar a { color: #111; text-decoration: underline; }
.announce-x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; font-size: 1.3rem; line-height: 1; cursor: pointer; color: #111; }

/* Hero slider */
.hero-slider { position: relative; }
.hero-slides { position: relative; }
.hero-slide { display: none; }
.hero-slide.active { display: block; animation: heroFade .5s ease; }
@keyframes heroFade { from { opacity: .3; } to { opacity: 1; } }
.hero-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; }
.hero-dot.active { background: #fff; }

/* Trust badges */
.trust-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.trust-item { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; text-align: center; }
.trust-title { font-weight: 700; font-size: 1.05rem; }
.trust-text { color: var(--muted); font-size: .85rem; margin-top: 4px; }

/* Newsletter */
.newsletter-section .newsletter-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 26px; text-align: center; }
.newsletter-form { display: flex; gap: 8px; max-width: 460px; margin: 14px auto 0; }
.newsletter-input { flex: 1 1 auto; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }

/* Coupon box */
.coupon-box { margin: 12px 0; }
.coupon-form { display: flex; gap: 8px; }
.coupon-input { flex: 1 1 auto; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; text-transform: uppercase; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #effaf1; border: 1px solid #b6e6c2; border-radius: 8px; padding: 8px 12px; font-size: .88rem; }
.disc-line { color: #007600; }
.linkish { background: none; border: 0; color: var(--az-link, var(--primary)); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }

/* Reviews */
.az-reviews { max-width: var(--maxw); margin: 24px auto 0; padding: 0 16px; }
.review-form { padding: 16px; margin-bottom: 20px; }
.star-pick { display: inline-flex; flex-direction: row-reverse; gap: 4px; font-size: 1.8rem; margin: 6px 0 12px; }
.star-pick .star-opt input { position: absolute; opacity: 0; }
.star-pick .star-opt span { color: #d5d9d9; cursor: pointer; transition: color .1s; }
.star-pick .star-opt input:checked ~ span,
.star-pick .star-opt:hover span,
.star-pick .star-opt:hover ~ .star-opt span,
.star-pick .star-opt input:checked + span { color: #ffa41c; }
.review-item { border-top: 1px solid var(--border); padding: 12px 0; }
.review-head { display: flex; align-items: center; gap: 8px; }
.review-body { margin: 4px 0 0; }


/* ---- shipped store components (always applied) ---- */
/* HostPanel store components — ALWAYS appended to /theme.css so a saved theme override can't strip
   new-feature styling. Uses theme CSS variables, so brand colors still apply. v117. */

/* ---- Tiles / List view toggle ---- */
.az-viewbar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 14px; }
.az-head-right { display: flex; align-items: center; gap: 14px; }
.az-viewlabel { color: var(--muted); font-size: .82rem; }
.az-viewtoggle { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.az-view-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 0; background: var(--surface); color: var(--text); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.az-view-btn + .az-view-btn { border-left: 1px solid var(--border); }
.az-view-btn:hover { background: var(--az-page, #eaeded); }
.az-view-btn.active { background: var(--az-link, var(--primary, #007185)); color: #fff; }
.az-view-ico { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 14px; height: 14px; }
.az-view-ico span { background: currentColor; border-radius: 1px; }
.az-view-ico.list { grid-template-columns: 1fr; gap: 3px; }
.az-view-ico.list span { height: 3px; }

/* Tiles view: body is transparent so its children flow as the card's own flex column (keeps original layout). */
.az-card-body { display: contents; }

.az-results.view-list .az-grid { grid-template-columns: 1fr; gap: 12px; }
.az-results.view-list .az-card { flex-direction: row; align-items: stretch; padding: 14px 16px; gap: 18px; }
.az-results.view-list .az-card-img { flex: 0 0 180px; width: 180px; height: 135px; margin-bottom: 0; }
.az-results.view-list .az-card-body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.az-results.view-list .az-card-title { -webkit-line-clamp: 1; font-size: 1.15rem; }
.az-results.view-list .az-card-desc { -webkit-line-clamp: 3; }
.az-results.view-list .az-feats { margin-bottom: 12px; }
.az-results.view-list .az-btn { align-self: flex-start; width: auto; margin-top: auto; }
@media (max-width: 620px) {
  .az-results.view-list .az-card { flex-direction: column; }
  .az-results.view-list .az-card-img { width: 100%; flex-basis: auto; height: 170px; margin-bottom: 14px; }
}

.az-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; transition: box-shadow var(--tr, .15s ease), border-color var(--tr, .15s ease); }

/* ============================ Marketing features ============================ */
/* Sale badge + was-price */
.az-card-img { position: relative; }
.az-sale-badge { position: absolute; top: 8px; left: 8px; z-index: 2; background: #cc1100; color: #fff; font-weight: 700; font-size: .78rem; padding: 3px 7px; border-radius: 4px; letter-spacing: .02em; }
.az-was { color: var(--muted); text-decoration: line-through; font-size: .9rem; margin-right: 6px; }
.az-pdp-sale { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 2px; }
.az-pdp-sale .az-amt { font-size: 1.5rem; font-weight: 700; color: #cc1100; }

/* Star ratings (read-only) */
.stars { position: relative; display: inline-block; font-size: 1rem; line-height: 1; white-space: nowrap; font-family: Arial, sans-serif; }
.stars-empty { color: #d5d9d9; }
.stars-full { position: absolute; left: 0; top: 0; overflow: hidden; color: #ffa41c; }
.az-stars { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; text-decoration: none; }
.az-stars-n { color: var(--az-link, var(--primary)); font-size: .82rem; }

/* Announcement bar */
.announce-bar { display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--accent, #ff9900); color: #111; text-align: center; padding: 8px 40px 8px 16px; font-size: .9rem; font-weight: 600; position: relative; }
.announce-bar a { color: #111; text-decoration: underline; }
.announce-x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; font-size: 1.3rem; line-height: 1; cursor: pointer; color: #111; }

/* Hero slider */
.hero-slider { position: relative; }
.hero-slides { position: relative; }
.hero-slide { display: none; }
.hero-slide.active { display: block; animation: heroFade .5s ease; }
@keyframes heroFade { from { opacity: .3; } to { opacity: 1; } }
.hero-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; }
.hero-dot.active { background: #fff; }

/* Trust badges */
.trust-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.trust-item { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; text-align: center; }
.trust-title { font-weight: 700; font-size: 1.05rem; }
.trust-text { color: var(--muted); font-size: .85rem; margin-top: 4px; }

/* Newsletter */
.newsletter-section .newsletter-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 26px; text-align: center; }
.newsletter-form { display: flex; gap: 8px; max-width: 460px; margin: 14px auto 0; }
.newsletter-input { flex: 1 1 auto; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }

/* Coupon box */
.coupon-box { margin: 12px 0; }
.coupon-form { display: flex; gap: 8px; }
.coupon-input { flex: 1 1 auto; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; text-transform: uppercase; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #effaf1; border: 1px solid #b6e6c2; border-radius: 8px; padding: 8px 12px; font-size: .88rem; }
.disc-line { color: #007600; }
.linkish { background: none; border: 0; color: var(--az-link, var(--primary)); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }

/* Reviews */
.az-reviews { max-width: var(--maxw, 1200px); margin: 24px auto 0; padding: 0 16px; }
.review-form { padding: 16px; margin-bottom: 20px; }
.star-pick { display: inline-flex; flex-direction: row-reverse; gap: 4px; font-size: 1.8rem; margin: 6px 0 12px; }
.star-pick .star-opt input { position: absolute; opacity: 0; }
.star-pick .star-opt span { color: #d5d9d9; cursor: pointer; transition: color .1s; }
.star-pick .star-opt input:checked ~ span,
.star-pick .star-opt:hover span,
.star-pick .star-opt:hover ~ .star-opt span,
.star-pick .star-opt input:checked + span { color: #ffa41c; }
.review-item { border-top: 1px solid var(--border); padding: 12px 0; }
.review-head { display: flex; align-items: center; gap: 8px; }
.review-body { margin: 4px 0 0; }

/* ---- Hero slider: readable text on any background ---- */
.hero-slider .hero-slide { position: relative; color: #fff; background-size: cover; background-position: center; background-color: #0f1b2d; }
.hero-slider .hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.2)); }
.hero-slider .hero-inner { position: relative; z-index: 1; max-width: var(--maxw, 1200px); margin: 0 auto; padding: 72px 24px; }
.hero-slider .hero-slide h1 { color: #fff; font-size: 2.4rem; line-height: 1.12; margin: 0 0 12px; max-width: 620px; text-shadow: 0 1px 10px rgba(0,0,0,.25); }
.hero-slider .hero-slide .lead { color: rgba(255,255,255,.94); font-size: 1.15rem; margin: 0 0 20px; max-width: 540px; }
.hero-slider .hero-slide .btn { box-shadow: 0 2px 10px rgba(0,0,0,.2); }
@media (max-width: 680px) { .hero-slider .hero-slide h1 { font-size: 1.7rem; } .hero-slider .hero-inner { padding: 48px 18px; } }
.hero-slider .hero-slide .btn-primary { background: var(--accent, #ff9900); border-color: var(--accent, #ff9900); color: #111; font-weight: 700; }
.hero-slider .hero-slide .btn-primary:hover { filter: brightness(.95); }

/* ---- Product page gallery (multiple images) ---- */
.az-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.az-thumb { padding: 0; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); cursor: pointer; width: 64px; height: 64px; overflow: hidden; }
.az-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.az-thumb.active { border-color: var(--az-link, var(--primary, #007185)); box-shadow: 0 0 0 1px var(--az-link, var(--primary, #007185)); }

/* ---- Terms agreement at checkout ---- */
.agree-check { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0 12px; font-size: .9rem; line-height: 1.3; }
.agree-check input { margin-top: 2px; }
.agree-check.agreed { color: var(--muted); }
[data-agree-gate] { margin-bottom: 6px; }

/* ============================ Nicer forms (always applied, over any saved theme) ============================ */
.main .field, .pay-box .field { margin-bottom: 16px; }
.main .field > span, .pay-box .field > span { display: block; font-weight: 600; font-size: .82rem; color: var(--text); margin-bottom: 6px; letter-spacing: .01em; }
.main .form-grid { display: grid; gap: 14px 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* text-like controls — exclude checkbox/radio/file/color/range so native controls stay intact */
.main input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]):not([type=range]):not([type=submit]):not([type=button]),
.main select, .main textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px;
  font: inherit; line-height: 1.45; background: var(--surface); color: var(--text);
  box-shadow: 0 1px 2px rgba(10,22,40,.04) inset; transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
.main textarea { min-height: 96px; resize: vertical; }
.main input::placeholder, .main textarea::placeholder { color: var(--muted); opacity: .8; }
.main input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]):hover,
.main select:hover, .main textarea:hover { border-color: color-mix(in srgb, var(--text) 28%, var(--border)); }

.main input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]):focus,
.main select:focus, .main textarea:focus {
  outline: none; border-color: var(--primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37,99,235,.16);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #2563eb) 22%, transparent);
}
/* custom select chevron (local SVG, no external asset) */
.main select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23667' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px;
}
.main input:disabled, .main select:disabled, .main textarea:disabled { background: color-mix(in srgb, var(--border) 25%, var(--surface)); color: var(--muted); cursor: not-allowed; }
.main input[aria-invalid="true"], .main .field-error input, .main .field-error textarea { border-color: #cc3344; }

/* checkbox / radio: themed accent + comfortable hit area */
.main input[type=checkbox], .main input[type=radio] { width: 16px; height: 16px; accent-color: var(--primary, #2563eb); cursor: pointer; }
.main .check, .main .agree-check { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 14px; font-size: .92rem; line-height: 1.4; cursor: pointer; }

/* buttons: balanced padding, clear press/focus, full-width helper */
.main .btn { padding: 10px 18px; border-radius: 10px; font-weight: 600; }
.main .btn-primary { border-radius: 10px; }
.main .btn:active { transform: translateY(1px); }
.main .btn:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #2563eb) 30%, transparent); }
.main .btn.block, .main .btn-lg.block { display: flex; width: 100%; }

/* a form card gets a touch more breathing room */
.main .card.form-narrow, .main form.card { padding: 22px; }

/* Structured form layout */
.main .form-section { font-size: 1.02rem; font-weight: 700; margin: 2px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.main form.card .form-section:first-child, .main .card .form-section:first-child { margin-top: 0; }
.main .opt { font-weight: 400; color: var(--muted); font-size: .82em; font-style: normal; }
.main .form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.main .form-grid.cols-3 { grid-template-columns: 2fr 1fr 1fr; }
.main .form-actions { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; gap: 10px; flex-wrap: wrap; }
.main .field .help, .main .help { display: block; color: var(--muted); font-size: .78rem; margin-top: 5px; }
@media (max-width: 560px) { .main .form-grid.cols-2, .main .form-grid.cols-3 { grid-template-columns: 1fr; } }

/* ============================ Interactive captcha ============================ */
.cap { display: block; }
.cap-prompt { display: block; font-weight: 600; font-size: .82rem; color: var(--text); margin-bottom: 7px; }
.cap-prompt .cap-swatch { display: inline-block; width: 15px; height: 15px; border-radius: 3px; border: 1px solid rgba(0,0,0,.2); vertical-align: -2px; margin-left: 2px; }
.cap-widget { border: 1px solid var(--border); border-radius: 10px; background: #eef1fb; padding: 8px; max-width: 320px; }
.cap-widget .cap-img { padding: 0; }
.cap-widget .cap-img svg, .cap-svg { display: block; width: 100%; height: auto; border-radius: 6px; }
.cap-svg { -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.cap-text { margin-top: 8px; max-width: 220px; }
.captcha-field .captcha-reload { display: inline-block; margin-top: 8px; font-size: .82rem; color: var(--az-link, var(--primary)); text-decoration: none; }
.captcha-field .captcha-reload:hover { text-decoration: underline; }

/* slider-driven challenges (slide / rotate) */
.cap-range { width: 100%; margin: 10px 0 2px; accent-color: var(--primary, #2563eb); cursor: grab; }
.cap-range:active { cursor: grabbing; }
.cap-piece { cursor: grab; }

/* click challenges (order / pick) */
.cap-click, .cap-pick { cursor: pointer; }
.cap-click circle { transition: fill .12s ease; }
.cap-click.cap-on circle { fill: #1f9d55; }
.cap-pick > rect:last-of-type { transition: stroke .12s ease; }
.cap-pick.cap-on > rect:last-of-type { stroke: #1f9d55; }

/* Service add-ons list (customer panel) */
.addon-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; max-width: 420px; }
.addon-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }

/* Add-ons store on the service page — styled like store product cards */
.addon-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 0 0 16px; }
.addon-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s ease, border-color .15s ease; }
.addon-card:hover { box-shadow: var(--shadow, 0 6px 18px rgba(10,22,40,.08)); border-color: color-mix(in srgb, var(--primary, #2563eb) 35%, var(--border)); }
.addon-card.owned { border-color: color-mix(in srgb, #1f9d55 45%, var(--border)); }
.addon-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.addon-card-head h4 { margin: 0; font-size: 1rem; }
.addon-card-price { display: flex; align-items: baseline; gap: 4px; }
.addon-card-price .amt { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.addon-card-price .per { color: var(--muted); font-size: .82rem; }
.addon-card .addon-qty { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }
.addon-card .addon-switch { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 600; cursor: pointer; }
.addon-card .addon-switch input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--primary, #2563eb); }
.addon-store-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* List view: one add-on per row (default) */
.addon-store.view-list .addon-cards { grid-template-columns: 1fr; gap: 10px; }
.addon-store.view-list .addon-card { flex-direction: row; align-items: center; gap: 16px; padding: 12px 16px; }
.addon-store.view-list .addon-card-head { flex: 1 1 auto; justify-content: flex-start; gap: 10px; }
.addon-store.view-list .addon-card-price { flex: 0 0 auto; }
.addon-store.view-list .addon-card-price .amt { font-size: 1.15rem; }
.addon-store.view-list .addon-card .addon-qty,
.addon-store.view-list .addon-card .addon-switch { margin-top: 0; flex: 0 0 auto; }
.addon-store.view-list .addon-qty input { width: 90px; }
@media (max-width: 560px) { .addon-store.view-list .addon-card { flex-wrap: wrap; } }

/* Test-order badge (storefront) */
.badge.status-test { background: #5b3bd6; color: #fff; }
