/* ==========================================================================
   HOSTINGDON — CLIENT AREA + ADMIN LAYER (loads after core.css)
   ========================================================================== */
html { overflow-x: clip; }
body { font-size: 15px; line-height: 1.55; color: var(--ink-soft); background: var(--bg); overflow-x: clip; }
svg:not([width]) { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.nav-link svg:not(.chev) { width: 17px; height: 17px; opacity: .75; }
.fb-secure { display: inline-flex; align-items: center; gap: .45rem; }
.fb-secure svg { width: 15px; height: 15px; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.15rem); }
h2 { font-size: 1.25rem; letter-spacing: -.015em; }
h3 { font-size: 1.05rem; letter-spacing: -.01em; }
.small { font-size: .85rem; }
.text-red { color: var(--error); }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.5rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.btn svg { width: 16px; height: 16px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--green-700); font-weight: 650; cursor: pointer; }
.link-btn:hover { color: var(--navy-700); text-decoration: underline; }
form.inline { display: inline; }
.card { min-width: 0; }
.card-body.flush { padding: 0; }
.card.dark { position: relative; isolation: isolate; overflow: hidden; background: var(--grad-navy); border-color: var(--navy-700); color: #C9D6F2; }
.card.dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 100% 0%, rgba(47, 111, 235, .35), transparent 65%); }
.card.dark h2, .card.dark h3 { color: #fff; }
.card.dark p { color: #B8C7E6; }
.grid { display: grid; gap: 1rem; }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.layout-side { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }

/* stat tiles */
.stats { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stat { position: relative; display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.2rem 1.1rem 1.2rem; color: inherit; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.stat::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--green-500); }
a.stat:hover { border-color: #FDE68A; box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; color: inherit; }
.stat-label { font-size: .82rem; color: var(--muted); font-weight: 650; }
.stat-value { font: 800 1.85rem/1.1 var(--font-display); color: var(--ink); letter-spacing: -.03em; margin-top: .3rem; }
.stat-note { font-size: .78rem; color: var(--muted); margin-top: .25rem; }
.stat.attention::before { background: #F59E0B; }
.stat.attention .stat-value { color: var(--warning); }

/* tables (extra) */
.table a.row-link { font-weight: 650; color: var(--ink); }
.table a.row-link:hover { color: var(--green-700); text-decoration: none; }
.table tfoot td { font-weight: 650; background: var(--bg); }
.table .sub { display: block; font-size: .8rem; color: var(--muted); font-weight: 400; }
.table .num { text-align: right; white-space: nowrap; }
.mono { overflow-wrap: anywhere; }
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.alert ul { margin: .25rem 0 0; padding-left: 1.1rem; }

/* forms (extra) */
.field { display: block; min-width: 0; margin-bottom: 0; }
.field + .field { margin-top: 1rem; }
.field-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid .field + .field { margin-top: 0; }
.field-grid .span-2 { grid-column: 1 / -1; }
.input.is-invalid { border-color: var(--error); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch-text { font-weight: 650; font-size: .92rem; color: var(--ink); }
.switch-text .help { font-weight: 400; margin-top: .15rem; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #CBD5E8; flex-shrink: 0; transition: background .2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + .track { background: var(--green-600); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: var(--focus); }
.form-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: 1.5rem; }

/* tabs, chips, definition lists, misc */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: .7rem 1rem; font-weight: 650; font-size: .9rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--navy-700); text-decoration: none; }
.tabs a.active { color: var(--ink); border-color: var(--green-500); }
.tabs .count { display: inline-block; min-width: 20px; padding: 0 .4rem; margin-left: .3rem; border-radius: 999px; background: var(--line-soft); font-size: .72rem; text-align: center; color: var(--ink-soft); }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.chip { display: inline-flex; align-items: center; padding: .38rem .9rem; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: .85rem; font-weight: 650; color: var(--ink-soft); }
.chip:hover { border-color: var(--navy-500); color: var(--navy-700); text-decoration: none; }
.chip.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.dl { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 0; margin: 0; }
.dl dt, .dl dd { padding: .65rem 0; border-bottom: 1px solid var(--line-soft); margin: 0; }
.dl dt { color: var(--muted); font-size: .86rem; font-weight: 650; padding-right: 1rem; }
.dl dd { font-weight: 550; color: var(--ink); word-break: break-word; }
.dl > :nth-last-child(-n+2) { border-bottom: 0; }
.empty { text-align: center; padding: 2.75rem 1.25rem; color: var(--muted); }
.empty::before { content: ""; display: block; width: 190px; height: 130px; margin: 0 auto 1rem; background: var(--empty-art, url('img/empty-box.svg')) center / contain no-repeat; }
.empty.e-cart::before { background-image: url('img/empty-cart.svg'); }
.empty.e-ticket::before { background-image: url('img/empty-ticket.svg'); }
.empty.e-invoice::before { background-image: url('img/empty-invoice.svg'); }
.empty.e-domain::before { background-image: url('img/empty-domain.svg'); }
.empty h3 { margin-bottom: .4rem; color: var(--ink); }
.empty .btn { margin-top: 1rem; }
.empty.no-art::before { display: none; }
.pager { display: flex; gap: .35rem; justify-content: center; align-items: center; padding: 1rem; flex-wrap: wrap; }
.pager a, .pager span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 .6rem; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; font-size: .86rem; font-weight: 650; color: var(--ink-soft); }
.pager a:hover { border-color: var(--navy-500); color: var(--navy-700); text-decoration: none; }
.pager .current { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.pager .disabled { opacity: .45; }
.secret { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-mono); font-size: .88rem; }
.icon-btn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line-strong); background: #fff; color: var(--muted); }
.icon-btn:hover { color: var(--navy-700); border-color: var(--navy-500); }
.icon-btn svg { width: 14px; height: 14px; }
.thread { display: grid; gap: 1rem; }
.msg { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.msg-head { display: flex; justify-content: space-between; gap: .75rem; padding: .75rem 1.1rem; background: var(--bg); border-bottom: 1px solid var(--line-soft); font-size: .84rem; color: var(--muted); flex-wrap: wrap; }
.msg-head strong { color: var(--ink); }
.msg-body { padding: 1.1rem; white-space: pre-wrap; word-break: break-word; font-size: .94rem; }
.msg.staff { border-color: #FDE68A; }
.msg.staff .msg-head { background: var(--mint-soft); border-color: #FDE68A; }
.attachments { display: flex; gap: .5rem; flex-wrap: wrap; padding: 0 1.1rem 1.1rem; }
.attachments a { display: inline-flex; gap: .35rem; align-items: center; font-size: .82rem; padding: .3rem .65rem; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }
.kv { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.module-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.log-line { font-size: .86rem; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); display: flex; gap: 1rem; }
.log-line time { color: var(--muted); white-space: nowrap; font-size: .8rem; min-width: 140px; }
.code-block { background: var(--navy-950); color: var(--mint); border-radius: var(--radius); padding: .9rem 1.1rem; font-family: var(--font-mono); font-size: .84rem; overflow-x: auto; border: 1px solid var(--navy-700); }
details.more summary { cursor: pointer; font-weight: 650; color: var(--green-700); }
.logo img.custom { height: 32px; width: auto; }

/* ============================ CLIENT AREA FRAME ============================ */
.impersonate { background: #FFF0D1; color: #8A4A07; text-align: center; font-size: .85rem; font-weight: 650; padding: .5rem 1rem; border-bottom: 1px solid #F6D9A0; }
.impersonate a { color: #8A4A07; text-decoration: underline; }
.client .header-actions .btn-label { margin-left: .1rem; }
.c-main { padding: 0 0 clamp(2.5rem, 5vw, 4rem); min-height: 55vh; }
.c-wrap { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.c-wrap { display: flex; flex-direction: column; }
.c-wrap > .page-head { order: -1; }
.c-wrap.narrow { max-width: calc(760px + var(--gutter) * 2); }

/* every client page starts with a navy banner built from .page-head */
.c-wrap > .page-head { position: relative; isolation: isolate; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap;
  margin: 0 calc(50% - 50vw) 1.75rem; padding: clamp(1.4rem, 3vw, 2.1rem) calc(50vw - 50%) clamp(2.1rem, 4vw, 3rem); background: var(--grad-navy); color: #B8C7E6; }
.c-wrap > .page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(55% 90% at 90% 0%, rgba(47, 111, 235, .38), transparent 62%),
  radial-gradient(40% 70% at 0% 100%, rgba(234, 179, 8, .2), transparent 60%); }
.c-wrap > .page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(90deg, transparent, #000 70%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); }
.page-head h1 { color: #fff; margin: 0; }
.page-head .sub { color: #B8C7E6; margin: .4rem 0 0; font-size: .95rem; }
.page-head .btn-outline { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .3); }
.page-head .btn-outline:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .55); color: #fff; }
.page-head .btn-primary { background: #fff; color: var(--navy-900); }
.page-head select { min-height: 40px; }
.page-head .muted, .page-head .help { color: #A9BCE6; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .83rem; color: #93A6CC; margin-bottom: .6rem; }
.crumbs a { font-weight: 650; color: #C9D6F2; }
.crumbs a:hover { color: #fff; text-decoration: none; }
.crumbs span:last-child { color: #fff; }
.c-wrap > .page-head + .alert, .c-wrap > .alert:first-child { margin-top: 0; }

/* dashboard extras */
.welcome { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.welcome img { width: 190px; }

/* auth screens: split layout */
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 100vh; background: #fff; }
.auth-art { position: relative; isolation: isolate; overflow: hidden; background: var(--grad-navy); color: #B8C7E6; padding: clamp(1.75rem, 4vw, 3rem); display: flex; flex-direction: column; }
.auth-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 80% 10%, rgba(47, 111, 235, .4), transparent 65%), radial-gradient(50% 40% at 0% 100%, rgba(234, 179, 8, .22), transparent 60%); }
.auth-art::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%); }
.auth-art .logo { color: #fff; }
.auth-art h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-top: 2.5rem; max-width: 18ch; }
.auth-art h2 span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.auth-art > img { width: 100%; max-width: 520px; margin: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35)); }
.auth-points { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .55rem; font-size: .93rem; color: #D6E0F7; }
.auth-points li::before { content: "✓"; color: var(--lime); font-weight: 800; margin-right: .55rem; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(1.5rem, 4vw, 3rem) var(--gutter); background: var(--bg); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(1.5rem, 5vw, 2.25rem); box-shadow: var(--shadow-md); }
.auth-card.wide { max-width: 720px; }
.auth-card h1 { font-size: 1.65rem; margin-bottom: .35rem; }
.auth-card .lead { color: var(--muted); margin-bottom: 1.5rem; font-size: .98rem; }
.auth-foot { margin-top: 1.25rem; font-size: .9rem; color: var(--muted); text-align: center; }
.auth-back { margin-top: 1.25rem; font-size: .85rem; }
@media (max-width: 960px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-art { padding: 1.1rem var(--gutter); flex-direction: row; align-items: center; }
  .auth-art h2, .auth-art > img, .auth-points { display: none; }
}

/* ============================ STORE ============================ */
.price-cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.price-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 1.6rem 1.5rem 1.5rem; display: flex; flex-direction: column; box-shadow: var(--shadow-xs); transition: transform .2s, box-shadow .2s; }
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.price-card h3 { font-size: 1.2rem; }
.price-card .tag { font-size: .86rem; color: var(--muted); margin-top: .15rem; }
.price-card .amount { font: 800 2.35rem/1 var(--font-display); color: var(--ink); letter-spacing: -.035em; margin-top: 1.1rem; }
.price-card .per { font-size: .9rem; color: var(--muted); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.price-card .billed { font-size: .8rem; color: var(--muted); margin-top: .4rem; }
.price-card ul { list-style: none; padding: 1.1rem 0 0; margin: 1.2rem 0 1.5rem; flex: 1; border-top: 1px solid var(--line-soft); display: grid; gap: .5rem; align-content: start; }
.price-card li { position: relative; padding-left: 1.6rem; font-size: .9rem; color: var(--ink-soft); }
.price-card li::before { content: ""; position: absolute; left: 0; top: .22em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23A16207' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.4l2.3 2.3 4.7-5'/%3E%3C/svg%3E") center/70% no-repeat; }
.price-card.featured { background: var(--grad-navy); border-color: var(--navy-600); color: #C9D6F2; box-shadow: 0 22px 46px rgba(8, 19, 48, .3); }
.price-card.featured h3, .price-card.featured .amount { color: #fff; }
.price-card.featured .tag, .price-card.featured .per, .price-card.featured .billed { color: #9FB0D3; }
.price-card.featured ul { border-color: rgba(255, 255, 255, .12); }
.price-card.featured li { color: #D6E0F7; }
.price-card.featured li::before { background-color: rgba(250, 204, 21, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23FACC15' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.4l2.3 2.3 4.7-5'/%3E%3C/svg%3E"); }
.ribbon { position: absolute; top: -11px; left: 1.5rem; background: var(--grad-lime); color: var(--navy-900); font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .25rem .75rem; border-radius: 999px; box-shadow: 0 6px 14px rgba(234, 179, 8, .35); }
.group-tile { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem; color: inherit; transition: .2s; }
.group-tile:hover { border-color: #FDE68A; box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; color: inherit; }
.group-tile .from { margin-top: .75rem; font-size: .88rem; color: var(--muted); }
.group-tile .from strong { color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; }
.option-list { display: grid; gap: .6rem; }
.option { display: flex; gap: .75rem; align-items: flex-start; padding: .95rem 1.1rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.option:hover { border-color: #9DB0D6; }
.option input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.option:has(input:checked) { border-color: var(--green-500); background: var(--mint-soft); box-shadow: 0 0 0 3px rgba(234, 179, 8, .15); }
.option .opt-title { font-weight: 700; color: var(--ink); }
.option .opt-price { margin-left: auto; font-weight: 800; color: var(--ink); white-space: nowrap; padding-left: .75rem; }
.option .opt-sub { font-size: .82rem; color: var(--muted); }
.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: .92rem; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .9rem; font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.domain-result { display: flex; align-items: center; gap: 1rem; padding: .95rem 1.2rem; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.domain-result:last-child { border-bottom: 0; }
.domain-result .name { font-weight: 800; color: var(--ink); font-size: 1.02rem; }
.search-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--grad-navy); border-radius: var(--radius-xl); padding: clamp(1.5rem, 5vw, 2.5rem); color: #B8C7E6; display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.5rem; align-items: center; }
.search-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 100% 0%, rgba(47, 111, 235, .4), transparent 65%); }
.search-hero h1, .search-hero h2 { color: #fff; }
.search-hero .input { border-color: transparent; }
.search-hero > img { width: 100%; max-width: 330px; margin-left: auto; }
.search-hero .sh-body { min-width: 0; }
@media (max-width: 800px) { .search-hero { grid-template-columns: 1fr; } .search-hero > img { display: none; } }
.steps { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem; font-size: .82rem; font-weight: 700; color: var(--muted); }
.steps span { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .8rem .3rem .35rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.steps b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line-soft); font-size: .72rem; }
.steps .on { color: var(--ink); border-color: #FDE68A; background: var(--mint-soft); }
.steps .on b { background: var(--green-500); color: #fff; }

/* invoice */
.inv-amount { font: 800 2.1rem/1 var(--font-display); color: var(--ink); letter-spacing: -.03em; }
.pay-box { border: 1px solid #FDE68A; background: var(--mint-soft); border-radius: var(--radius-lg); padding: 1.25rem; }
.instructions { white-space: pre-wrap; background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: .9rem 1rem; font-size: .9rem; }
.print-page { background: #fff; max-width: 820px; margin: 0 auto; padding: 2.5rem; }
.print-bar { max-width: 820px; margin: 1rem auto 0; display: flex; gap: .5rem; justify-content: flex-end; padding: 0 1rem; }
.inv-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.stamp { display: inline-block; padding: .3rem .9rem; border: 2px solid currentColor; border-radius: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-4deg); }

/* ============================ ADMIN ============================ */
.a-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--navy-950) 252px, var(--bg) 252px); }
.a-side { background: linear-gradient(180deg, #0A1636 0%, #050B1C 100%); color: #9FB0D3; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; z-index: 60; border-right: 1px solid rgba(255, 255, 255, .06); }
.a-side .logo { color: #fff; padding: 1.15rem 1.25rem 1rem; }
.a-side .logo-dot { color: var(--lime); }
.a-nav { padding: .25rem .75rem 1.5rem; flex: 1; }
.a-nav .sec { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5F76A8; padding: 1.2rem .6rem .4rem; }
.a-nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .65rem; border-radius: 10px; color: #B6C4E3; font-weight: 600; font-size: .9rem; text-decoration: none; transition: background .15s, color .15s; }
.a-nav a svg { width: 17px; height: 17px; opacity: .8; flex-shrink: 0; }
.a-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.a-nav a.active { background: linear-gradient(90deg, rgba(250, 204, 21, .18), rgba(250, 204, 21, .06)); color: var(--lime); box-shadow: inset 2px 0 0 var(--lime); }
.a-nav a.active svg { opacity: 1; }
.a-nav .pill { margin-left: auto; background: var(--lime); color: var(--navy-900); font-size: .7rem; font-weight: 800; border-radius: 999px; padding: .05rem .5rem; }
.a-side-foot { padding: 1rem 1.25rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; }
.a-side-foot a { color: #9FB0D3; }
.a-side-foot a:hover { color: var(--lime); text-decoration: none; }
.a-main { min-width: 0; display: flex; flex-direction: column; }
.a-top { display: flex; align-items: center; gap: .75rem; padding: .7rem var(--gutter); background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.a-search { flex: 1; max-width: 480px; position: relative; }
.a-search input { padding-left: 2.4rem; min-height: 40px; background: var(--bg); }
.a-search svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.a-content { padding: 1.6rem var(--gutter) 3rem; max-width: 1360px; width: 100%; }
.a-content .page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.a-content .page-head h1 { color: var(--ink); }
.a-content .page-head .sub { color: var(--muted); }
.a-content .crumbs { color: var(--muted); } .a-content .crumbs a { color: var(--green-700); } .a-content .crumbs span:last-child { color: var(--ink-soft); }
.a-content .page-head .btn-outline { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.a-content .page-head .btn-outline:hover { background: var(--blue-50); border-color: var(--navy-500); color: var(--navy-700); }
.a-content .page-head .btn-primary { background: var(--navy-900); color: #fff; }
.a-content .empty::before { width: 150px; height: 100px; }
.a-backdrop { display: none; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; align-items: center; justify-content: center; }
.menu-toggle svg { width: 20px; height: 20px; }
.price-grid { width: 100%; border-collapse: collapse; font-size: .88rem; }
.price-grid th, .price-grid td { padding: .5rem .6rem; border-bottom: 1px solid var(--line-soft); text-align: left; }
.price-grid th { font-size: .76rem; color: var(--muted); background: var(--bg); }
.price-grid .input { min-height: 36px; padding: .35rem .6rem; min-width: 90px; }

@media print { .print-bar, .no-print { display: none !important; } body { background: #fff; } .print-page { padding: 0; } }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1100px) {
  .layout-side { grid-template-columns: 1fr; }
  .summary { position: static; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .a-shell { grid-template-columns: 1fr; background: var(--bg); }
  .a-side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  body.nav-open .a-side { transform: none; }
  body.nav-open .a-backdrop { display: block; position: fixed; inset: 0; background: rgba(5, 11, 28, .55); z-index: 55; }
  .a-top .menu-toggle { display: inline-flex; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 14.5px; }
  .grid-2, .field-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .card-head, .card-body { padding-left: 1rem; padding-right: 1rem; }
  .table th, .table td { padding: .65rem .75rem; }
  .table .hide-sm { display: none; }
  .c-wrap > .page-head { align-items: flex-start; }
  .page-head .btn { flex: 1 1 auto; }
  .dl { grid-template-columns: 1fr; }
  .dl dt { border-bottom: 0; padding-bottom: 0; }
  .client .header-actions .btn-label { display: none; }
  .stat-value { font-size: 1.5rem; }
  .form-actions .btn { flex: 1 1 auto; }
  .a-top .btn-label { display: none; }
  .welcome { grid-template-columns: 1fr; } .welcome img { display: none; }
}

/* fixes */
.card > .table-wrap { border-radius: var(--radius-lg); }
a.kv { text-decoration: none; align-items: center; }
a.kv:hover { text-decoration: none; background: var(--bg); }
.kv .badge { flex: none; }
@media (max-width: 1024px) { .client .nav-link { justify-content: flex-start; gap: .8rem; } .client .nav-link svg { width: 20px; height: 20px; } }

/* gateway hand-off pages (Paytm redirect, Razorpay checkout) */
.gw-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem var(--gutter); background: var(--grad-navy); }
.gw-card { width: 100%; max-width: 440px; background: #fff; border-radius: var(--radius-xl); padding: 2rem; text-align: center; box-shadow: var(--shadow-xl); }
.gw-card .logo { justify-content: center; margin-bottom: 1.5rem; }
.gw-card h1 { font-size: 1.4rem; margin-bottom: .4rem; }
.gw-card p { color: var(--muted); margin: 0 0 1.25rem; }
.gw-amount { font: 500 2.2rem/1.1 var(--font-mono) !important; color: var(--ink) !important; letter-spacing: -.04em; margin: .4rem 0 1rem !important; }
.gw-spin { width: 34px; height: 34px; margin: 0 auto 1rem; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--yellow); animation: gwspin .8s linear infinite; }
@keyframes gwspin { to { transform: rotate(360deg); } }
/* settings: webhook URL list */
.url-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem .9rem; margin-top: .6rem; font-size: .84rem; }
.url-list span { color: var(--muted); white-space: nowrap; }
.url-list code { overflow-wrap: anywhere; color: var(--ink); background: rgba(255, 255, 255, .6); padding: .05rem .35rem; border-radius: 4px; }
/* store: yellow selection + accents */
.option:has(input:checked) { box-shadow: 0 0 0 3px rgba(250, 204, 21, .25); }
.stat::before { background: var(--yellow); }
.price-card.featured .ribbon, .ribbon { background: var(--yellow); color: var(--navy-950); box-shadow: none; }
.a-nav a.active { background: rgba(250, 204, 21, .1); color: var(--yellow); box-shadow: inset 2px 0 0 var(--yellow); }
.a-nav .pill { background: var(--yellow); }
.price-card li::before { background-color: var(--mint); }
.avatar { color: var(--yellow); }
.a-content .crumbs a { color: var(--navy-600); }
@media (max-width: 680px) {
  .domain-result { gap: .6rem .8rem; }
  .domain-result .grow { flex: 1 1 100%; }
  .domain-result .grow .badge { margin-top: .25rem; }
}

/* ============ auth pages: site header + footer, centered card ============ */
.auth-body { background: var(--bg); }
.auth-page { position: relative; isolation: isolate; min-height: calc(100vh - var(--header-h) - 36px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; padding: clamp(2rem, 6vw, 4.5rem) var(--gutter); }
.auth-page::before { content: ""; position: absolute; inset: 0 0 auto 0; height: clamp(180px, 34vh, 300px); z-index: -1; background: var(--grad-navy); }
.auth-page::after { content: ""; position: absolute; inset: 0 0 auto 0; height: clamp(180px, 34vh, 300px); z-index: -1; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; }
.auth-page .auth-card { width: 100%; max-width: 440px; margin: 0 auto; box-shadow: var(--shadow-xl); border-color: var(--line); }
.auth-page .auth-card.wide { max-width: 720px; }
.auth-page .auth-card h1 { text-align: center; }
.auth-page .auth-card > .lead { text-align: center; }
.auth-page .auth-back, .auth-page .auth-foot { text-align: center; }
.auth-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; font-size: .85rem; color: var(--muted); }
.auth-trust li { display: inline-flex; align-items: center; gap: .4rem; }
.auth-trust svg { width: 15px; height: 15px; color: var(--yellow-ink); }
.auth-minimal-head { display: flex; justify-content: center; padding: 1.25rem var(--gutter); background: var(--navy-950); }
.auth-minimal-head .logo { color: #fff; }
.auth-body .auth-minimal-head + .auth-page { min-height: calc(100vh - 76px); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha-box { display: block; margin: .25rem 0 1rem; }
.captcha-box .error { display: block; margin-top: .35rem; }

/* admin: notification bell + toasts */
.notify-btn { position: relative; width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; color: var(--muted); cursor: pointer; }
.notify-btn svg { width: 18px; height: 18px; }
.notify-btn:hover { color: var(--navy-700); border-color: var(--navy-500); }
.notify-btn[data-state="on"] { color: var(--navy-900); background: var(--mint); border-color: var(--yellow); }
.notify-btn[data-state="blocked"] { color: var(--error); }
.notify-dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--error); box-shadow: 0 0 0 2px #fff; }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 300; display: grid; gap: .6rem; width: min(360px, calc(100vw - 36px)); }
.toast { display: grid; gap: .15rem; padding: .85rem 1rem .85rem 1.1rem; background: var(--navy-900); color: #D6E0F7; border-radius: 12px; box-shadow: var(--shadow-xl); border-left: 4px solid var(--yellow); text-decoration: none; font-size: .88rem; animation: toastIn .25s ease-out; transition: opacity .35s, transform .35s; }
.toast strong { color: #fff; font-size: .95rem; }
.toast:hover { text-decoration: none; color: #fff; }
.toast.toast-ticket, .toast.toast-reply { border-left-color: #60A5FA; }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
.a-content .crumbs a, .a-content .page-head .crumbs a { color: var(--navy-600) !important; }

/* ===== V4: light bluish banners in the client area (match the website hero) ===== */
.c-wrap > .page-head { background: var(--grad-sky); color: var(--body); border-bottom: 1px solid var(--sky-200); }
.c-wrap > .page-head::before { background: none; }
.c-wrap > .page-head::after { opacity: 1; background-image: linear-gradient(rgba(37, 99, 235, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, .06) 1px, transparent 1px); }
.c-wrap > .page-head h1 { color: var(--ink); }
.c-wrap > .page-head .sub, .c-wrap > .page-head .muted, .c-wrap > .page-head .help { color: var(--body); }
.c-wrap > .page-head .crumbs { color: var(--muted); }
body .c-wrap > .page-head .crumbs a { color: var(--sky-700) !important; }
body .c-wrap > .page-head .crumbs span:last-child { color: var(--ink-soft); }
.c-wrap > .page-head .btn-outline { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.c-wrap > .page-head .btn-outline:hover { background: var(--sky-50); border-color: var(--sky-600); color: var(--sky-800); }
.c-wrap > .page-head .btn-primary { background: var(--navy-900); color: #fff; }
.search-hero { background: var(--grad-sky); color: var(--body); border: 1px solid var(--sky-200); }
.search-hero::before { background: none; }
.search-hero h1, .search-hero h2, .search-hero label { color: var(--ink) !important; }
.search-hero p { color: var(--body) !important; }
.search-hero .input { border-color: var(--sky-200); }
.auth-page::before { background: var(--grad-sky); border-bottom: 1px solid var(--sky-200); }
.auth-page::after { background-image: linear-gradient(rgba(37, 99, 235, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, .06) 1px, transparent 1px); }
.stat::before { background: var(--sky-600); }
.price-card li::before { background-color: var(--sky-100); }
