/* Partner portal — shared workspace shell and dashboard */
:root {
    --portal-ink: #171b2b;
    --portal-copy: #465168;
    --portal-muted: #5f697e;
    --muted: #566179;
    --portal-line: #e5e8f0;
    --portal-soft: #f6f7fb;
    --portal-card: #fff;
    --portal-sidebar: #11131f;
    --portal-sidebar-soft: #191c2b;
    --portal-shadow: 0 1px 2px rgba(18, 24, 40, .04), 0 12px 32px rgba(18, 24, 40, .05);
}

body {
    background: var(--portal-soft);
    color: var(--portal-ink);
    font-size: 14px;
}

.portal-shell .text-slate-500,
.portal-shell .text-slate-400,
.portal-shell .empty-hint,
.portal-shell .configured-list small,
.portal-shell .field small { color: var(--portal-muted) !important; }

.portal-shell {
    grid-template-columns: 272px minmax(0, 1fr);
    background: var(--portal-soft);
}

.portal-sidebar {
    position: sticky;
    z-index: 50;
    top: 0;
    height: 100vh;
    padding: 20px 16px 16px;
    background:
        radial-gradient(circle at 10% 0, color-mix(in srgb, var(--brand) 18%, transparent), transparent 34%),
        var(--portal-sidebar);
    color: #b8c0d3;
}

.sidebar-head { display: flex; align-items: flex-start; gap: 8px; }

.portal-brand {
    min-width: 0;
    flex: 1;
    gap: 12px;
    padding: 4px 8px 20px;
    font: inherit;
}

.portal-brand img,
.brand-orb {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
}

.portal-brand img { padding: 5px; background: #fff; }
.brand-orb { font-size: 11px; font-weight: 800; }
.portal-brand > span:last-child { min-width: 0; }
.portal-brand strong,
.portal-brand small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-brand strong { color: #fff; font: 700 14px/1.35 Manrope, sans-serif; }
.portal-brand small { margin-top: 3px; color: #7f899f; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

.portal-nav {
    gap: 2px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 12px 4px 14px 0;
}

.portal-nav__label {
    display: block;
    padding: 17px 12px 7px;
    color: #667188;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.portal-nav a {
    position: relative;
    min-height: 42px;
    gap: 11px;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #9ca7bc;
    font-size: 12.5px;
    font-weight: 600;
}

.portal-nav a b { font-weight: 600; }
.portal-nav__icon { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; color: #737f98; }
.portal-nav__icon svg { width: 18px; height: 18px; }
.portal-nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.portal-nav a.is-active {
    border-color: color-mix(in srgb, var(--brand) 30%, transparent);
    background: color-mix(in srgb, var(--brand) 14%, transparent);
    color: #fff;
    box-shadow: inset 3px 0 var(--brand);
}
.portal-nav a.is-active .portal-nav__icon { color: color-mix(in srgb, var(--brand) 60%, #fff); }

.sidebar-foot { padding: 14px 5px 2px; }
.sidebar-user { gap: 10px; }
.sidebar-user i { width: 36px; height: 36px; border-radius: 11px; background: color-mix(in srgb, var(--brand) 18%, #25293a); color: #fff; }
.sidebar-user span { min-width: 0; }
.sidebar-user strong { overflow: hidden; color: #f8f9fc; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user small { margin-top: 2px; color: #7f899f; font-size: 9.5px; text-transform: capitalize; }
.sidebar-foot form button { display: flex; align-items: center; gap: 7px; margin: 12px 0 0 46px; color: #8f99ae; font-size: 10.5px; }
.sidebar-foot form button:hover { color: #fff; }
.sidebar-foot form svg { width: 14px; height: 14px; }

.portal-main { min-width: 0; }
.portal-topbar {
    position: sticky;
    z-index: 40;
    top: 0;
    height: 76px;
    padding: 0 clamp(24px, 4vw, 52px);
    border-color: var(--portal-line);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 1px 0 rgba(18, 24, 40, .02);
}
.topbar-context { display: flex; align-items: center; gap: 12px; }
.topbar-context p { color: var(--portal-muted); font-size: 10.5px; font-weight: 600; }
.topbar-context p span { margin: 0 4px; color: #c3c8d3; }
.topbar-context strong { display: block; margin-top: 3px; color: var(--portal-ink); font-size: 12px; }
.topbar-actions { gap: 12px; }
.topbar-link { display: inline-flex; align-items: center; gap: 7px; color: #536078; font-size: 11px; font-weight: 650; }
.topbar-link:hover { color: var(--brand); }
.topbar-link svg,
.topbar-actions .btn svg { width: 15px; height: 15px; }
.status-pill { gap: 6px; padding: 7px 10px; background: #eefaf3; color: #157448; font-size: 9px; letter-spacing: .05em; }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: #22a862; box-shadow: 0 0 0 3px rgba(34, 168, 98, .12); }

.portal-content { max-width: 1440px; padding: clamp(28px, 4vw, 48px); }
.page-head { align-items: center; margin-bottom: 28px; }
.page-head h1 { margin: 5px 0 7px; color: var(--portal-ink); font-size: clamp(28px, 3vw, 38px); }
.page-head p { max-width: 690px; color: var(--portal-copy); font-size: 13px; line-height: 1.6; }
.page-kicker { color: var(--brand); font-size: 9.5px; letter-spacing: .14em; }

.panel,
.card,
.metric-card {
    border-color: var(--portal-line);
    background: var(--portal-card);
    box-shadow: var(--portal-shadow);
}
.panel { padding: 25px; border-radius: 18px; }
.card { border-radius: 16px; }
.panel-head { margin-bottom: 22px; padding-bottom: 18px; border-color: #eceef4; }
.panel-head h2 { color: var(--portal-ink); font-size: 16px; }
.panel-head p { color: var(--portal-muted); font-size: 11.5px; line-height: 1.5; }

.btn { min-height: 40px; padding: 10px 17px; border-radius: 10px; font-size: 11.5px; }
.btn-secondary { border-color: var(--portal-line); color: #46516a; background: #fff; }
.btn-secondary:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--portal-line)); color: var(--brand); }
.notice { padding: 14px 17px; border-radius: 12px; font-size: 12px; line-height: 1.55; }

.metric-grid { gap: 16px; margin-bottom: 22px; }
.metric-card { min-height: 126px; padding: 21px; border-radius: 16px; }
.metric-card small { color: var(--portal-muted); font-size: 9.5px; letter-spacing: .025em; text-transform: uppercase; }
.metric-card strong { margin: 12px 0 6px; color: var(--portal-ink); font-size: 24px; }
.metric-card em { color: var(--portal-muted); font-size: 10px; line-height: 1.45; }
.metric-card--brand { background: linear-gradient(145deg, var(--portal-sidebar), #24283b); }
.metric-card--brand strong { color: #fff; }

.dashboard-grid { gap: 22px; }
.table-wrap { scrollbar-width: thin; }
table { width: 100%; }
th { padding: 10px 8px; color: var(--portal-muted); font-size: 9px; }
td { padding-right: 8px; color: #4b566e; font-size: 11.5px; }
.quick-list { gap: 9px; }
.quick-list a { min-height: 43px; padding: 11px 13px; border-color: var(--portal-line); border-radius: 10px; font-size: 11px; }
.badge { padding: 5px 8px; }
.count-badge { font-size: 9px; }
.field label,
label { color: #455068; font-size: 11px; }
.field input,
.field select,
.field textarea,
input,
select,
textarea { min-height: 42px; border-color: #dfe3ec; border-radius: 10px; color: #293248; font-size: 12px; }
.configured-list strong { font-size: 11.5px; }
.configured-list small,
.empty-hint { font-size: 10.5px; }

/* Dashboard */
.partner-welcome {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 22px;
    padding: 30px 32px;
    border: 1px solid var(--portal-line);
    border-radius: 20px;
    background:
        radial-gradient(circle at 88% 20%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 28%),
        linear-gradient(135deg, #fff, #fafaff);
    box-shadow: var(--portal-shadow);
}
.partner-welcome::after { content: ''; position: absolute; right: -35px; bottom: -70px; width: 210px; height: 210px; border: 1px solid color-mix(in srgb, var(--brand) 15%, transparent); border-radius: 50%; }
.partner-welcome__copy { position: relative; z-index: 1; }
.partner-welcome__eyebrow { display: flex; align-items: center; gap: 8px; color: var(--brand); font-size: 9.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.partner-welcome__eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); }
.partner-welcome h1 { margin: 9px 0 7px; color: var(--portal-ink); font-size: clamp(27px, 3.4vw, 40px); letter-spacing: -.045em; }
.partner-welcome p { margin: 0; color: var(--portal-copy); font-size: 13px; }
.partner-welcome__actions { position: relative; z-index: 1; display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.partner-welcome__actions .btn svg { width: 16px; height: 16px; }

.partner-summary { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin-bottom: 16px; }
.summary-card { position: relative; overflow: hidden; min-height: 184px; padding: 25px; border: 1px solid var(--portal-line); border-radius: 18px; background: #fff; box-shadow: var(--portal-shadow); }
.summary-card--wallet { color: #fff; border: 0; background: linear-gradient(140deg, var(--portal-sidebar), #282d43); }
.summary-card--wallet::after { content: ''; position: absolute; width: 190px; height: 190px; right: -60px; top: -75px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 22%, transparent); filter: blur(2px); }
.summary-card__top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.summary-card__label { display: flex; align-items: center; gap: 9px; color: var(--portal-muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.summary-card__label span { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, #fff); }
.summary-card__label svg { width: 16px; height: 16px; }
.summary-card--wallet .summary-card__label { color: #aeb7ca; }
.summary-card--wallet .summary-card__label span { color: #fff; background: rgba(255, 255, 255, .1); }
.summary-card__value { position: relative; z-index: 1; display: block; margin-top: 20px; color: var(--portal-ink); font: 750 clamp(28px, 3vw, 38px)/1.1 Manrope, sans-serif; letter-spacing: -.035em; }
.summary-card--wallet .summary-card__value { color: #fff; }
.summary-card__foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; }
.summary-card__foot p { margin: 0; color: var(--portal-muted); font-size: 10.5px; line-height: 1.5; }
.summary-card--wallet .summary-card__foot p { color: #aeb7ca; }
.summary-card__foot a { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; color: var(--brand); font-size: 10.5px; font-weight: 700; }
.summary-card--wallet .summary-card__foot a { color: #fff; }
.summary-card__foot svg { width: 14px; height: 14px; }
.wallet-meter { position: relative; z-index: 1; height: 5px; margin-top: 18px; overflow: hidden; border-radius: 10px; background: rgba(255, 255, 255, .12); }
.wallet-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #bf9aff); }

.partner-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.partner-kpi { padding: 19px; border: 1px solid var(--portal-line); border-radius: 16px; background: #fff; box-shadow: var(--portal-shadow); }
.partner-kpi__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--portal-muted); font-size: 10px; font-weight: 650; }
.partner-kpi__head span:last-child { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, #fff); }
.partner-kpi__head svg { width: 14px; height: 14px; }
.partner-kpi strong { display: block; margin: 12px 0 5px; color: var(--portal-ink); font: 750 23px/1.1 Manrope, sans-serif; }
.partner-kpi small { color: var(--portal-muted); font-size: 9.5px; }

.dashboard-main { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(285px, .55fr); gap: 22px; }
.client-name { display: flex; align-items: center; gap: 10px; }
.client-name__avatar { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border-radius: 9px; color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, #fff); font-size: 9px; font-weight: 800; }
.action-stack { display: grid; gap: 10px; }
.action-card { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--portal-line); border-radius: 12px; background: #fff; transition: .18s ease; }
.action-card:hover { border-color: color-mix(in srgb, var(--brand) 38%, var(--portal-line)); box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 8%, transparent); transform: translateY(-1px); }
.action-card > span:first-child { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, #fff); }
.action-card svg { width: 17px; height: 17px; }
.action-card > span:nth-child(2) { min-width: 0; flex: 1; }
.action-card strong,
.action-card small { display: block; }
.action-card strong { color: var(--portal-ink); font-size: 11px; }
.action-card small { margin-top: 3px; color: var(--portal-muted); font-size: 9.5px; }
.action-card > svg { width: 14px; color: #a0a8b8; }

@media (max-width: 1180px) {
    .partner-kpis { grid-template-columns: repeat(2, 1fr); }
    .dashboard-main { grid-template-columns: 1fr; }
}

@media (max-width: 1050px) and (min-width: 821px) {
    .portal-shell { grid-template-columns: 244px minmax(0, 1fr); }
    .portal-sidebar { padding: 20px 13px 16px; }
    .portal-brand { justify-content: flex-start; padding: 4px 7px 20px; }
    .portal-brand > span:last-child,
    .portal-nav a > b,
    .sidebar-user > span,
    .sidebar-foot button { display: block; }
    .portal-nav a { justify-content: flex-start; padding: 9px 10px; }
    .sidebar-user { justify-content: flex-start; }
}

@media (max-width: 820px) {
    body.partner-menu-open { overflow: hidden; }
    .portal-shell { display: block; }
    .portal-sidebar { position: fixed; z-index: 90; top: 0; bottom: 0; left: 0; width: min(290px, 88vw); height: 100dvh; transform: translateX(-100%); transition: transform .22s ease; }
    .portal-sidebar.is-open { transform: none; }
    .portal-brand { justify-content: flex-start; }
    .portal-brand > span:last-child,
    .portal-nav a > b,
    .sidebar-user > span,
    .sidebar-foot button { display: block; }
    .portal-nav a { justify-content: flex-start; }
    .sidebar-user { justify-content: flex-start; }
    .sidebar-close { display: grid; }
    .sidebar-backdrop { position: fixed; z-index: 85; inset: 0; display: block; visibility: hidden; background: rgba(13, 16, 27, .56); opacity: 0; transition: .2s; }
    .sidebar-backdrop.is-open { visibility: visible; opacity: 1; }
    .mobile-menu { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid var(--portal-line); border-radius: 10px; background: #fff; }
    .mobile-menu svg { width: 18px; height: 18px; }
    .portal-topbar { height: 70px; padding: 0 16px; }
    .topbar-link { display: none; }
    .portal-content { padding: 24px 16px; }
    .partner-welcome { align-items: flex-start; padding: 25px; flex-direction: column; }
    .partner-summary { grid-template-columns: 1fr; }
    .dashboard-grid,
    .form-grid,
    .gateway-grid,
    .provider-fields { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .topbar-actions .status-pill,
    .topbar-actions .btn span { display: none; }
    .topbar-actions .btn { width: 40px; padding: 0; }
    .partner-welcome__actions { width: 100%; align-items: stretch; flex-direction: column; }
    .partner-welcome__actions .btn { width: 100%; }
    .partner-kpis,
    .metric-grid { grid-template-columns: 1fr; }
    .summary-card__foot { align-items: flex-start; flex-direction: column; }
    .panel { padding: 20px 17px; }
}

/* Unified Partner website customizer */
.customizer-page-head .btn svg { width: 15px; height: 15px; }
.required-note { display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; color: var(--portal-muted); font-size: 9.5px; font-weight: 650; }
.required-note span,
.required-mark { color: #d92d4c; font-weight: 800; }
.realtime-error { display: block; margin-top: 6px; color: #c52f49; font-size: 9.5px; font-weight: 600; }
.field.is-invalid > input,
.field.is-invalid > select,
.field.is-invalid > textarea,
.field.is-invalid .color-control,
.field.is-invalid .domain-input { border-color: #dc4961 !important; box-shadow: 0 0 0 3px rgba(220, 73, 97, .1) !important; }
.field.is-valid > input:not([type="color"]),
.field.is-valid > select,
.field.is-valid > textarea,
.field.is-valid .color-control,
.field.is-valid .domain-input { border-color: #4aaa73; }
.customizer-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); align-items: start; gap: 24px; }
.customizer-nav { position: sticky; top: 100px; display: grid; gap: 4px; padding: 16px; border: 1px solid var(--portal-line); border-radius: 16px; background: rgba(255, 255, 255, .82); box-shadow: var(--portal-shadow); backdrop-filter: blur(12px); }
.customizer-nav > strong { padding: 3px 9px 10px; color: var(--portal-ink); font: 700 12px Manrope, sans-serif; }
.customizer-nav a { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 8px 9px; border-radius: 9px; color: var(--portal-copy); font-size: 10.5px; font-weight: 650; }
.customizer-nav a:hover { color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, #fff); }
.customizer-nav a span { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 7px; color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, #fff); font-size: 8px; font-weight: 800; }
.customizer-nav > small { margin-top: 10px; padding: 13px 9px 3px; border-top: 1px solid var(--portal-line); color: var(--portal-muted); font-size: 9px; line-height: 1.55; }
.customizer-content { min-width: 0; display: grid; gap: 20px; }
.customizer-content > form { display: grid; gap: 20px; }
.customizer-section { scroll-margin-top: 96px; }
.customizer-section__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 25px; padding-bottom: 19px; border-bottom: 1px solid #eceef4; }
.customizer-section__head > span { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border-radius: 9px; color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, #fff); font-size: 9px; font-weight: 800; }
.customizer-section__head h2 { margin: 0 0 4px; color: var(--portal-ink); font-size: 17px; }
.customizer-section__head p { margin: 0; color: var(--portal-muted); font-size: 11px; line-height: 1.5; }
.field--full { grid-column: 1 / -1; }
.form-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field > small { color: var(--portal-muted); font-size: 9.5px; line-height: 1.45; }

.appearance-grid { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(380px, 1.2fr); align-items: start; gap: 32px; }
.color-grid,
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.color-control { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 6px 10px; border: 1px solid #dfe3ec; border-radius: 10px; background: #fff; }
.color-control input[type=color] { width: 30px; min-height: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; }
.color-control output { color: #435069; font: 650 11px/1 Inter, sans-serif; text-transform: uppercase; }
.upload-box { display: flex; min-height: 72px; align-items: center; gap: 11px; margin: 0; padding: 12px; border: 1px dashed #cfd5e1; border-radius: 11px; color: var(--portal-copy); background: #fafbfc; cursor: pointer; transition: .18s ease; }
.upload-box:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 4%, #fff); }
.upload-box > svg { width: 20px; height: 20px; flex: 0 0 20px; color: var(--brand); }
.upload-box strong,
.upload-box small { display: block; }
.upload-box strong { font-size: 10.5px; }
.upload-box small { margin-top: 3px; color: var(--portal-muted); font-size: 8.5px; }

.brand-preview { padding: 14px; border: 1px solid var(--portal-line); border-radius: 16px; background: #f7f8fb; }
.brand-preview__label { display: flex; align-items: center; justify-content: space-between; padding: 1px 2px 11px; }
.brand-preview__label span { color: var(--portal-ink); font-size: 10px; font-weight: 750; }
.brand-preview__label small { color: var(--portal-muted); font-size: 8.5px; text-transform: uppercase; letter-spacing: .07em; }
.brand-preview__browser { overflow: hidden; min-height: 300px; border: 1px solid #dfe3eb; border-radius: 12px; background: #fff; box-shadow: 0 16px 35px rgba(24, 30, 49, .09); }
.brand-preview__bar { display: flex; align-items: center; gap: 5px; height: 31px; padding: 0 10px; border-bottom: 1px solid #e8eaf0; background: #f6f7fa; }
.brand-preview__bar i { width: 6px; height: 6px; border-radius: 50%; background: #cbd0da; }
.brand-preview__bar i:first-child { background: #ed9096; }
.brand-preview__bar i:nth-child(2) { background: #e8bf69; }
.brand-preview__bar i:nth-child(3) { background: #70c991; }
.brand-preview__bar span { overflow: hidden; max-width: 190px; margin-left: 10px; color: #8a93a5; font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.brand-preview__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 17px; border-bottom: 1px solid #eceef3; }
.brand-preview__identity { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-preview__identity img,
.brand-preview__identity > span { width: 25px; height: 25px; flex: 0 0 25px; object-fit: contain; border-radius: 7px; }
.brand-preview__identity > span { display: grid; place-items: center; color: #fff; background: var(--preview-primary); font-size: 7px; font-weight: 800; }
.brand-preview__identity strong { overflow: hidden; max-width: 150px; color: var(--preview-secondary); font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.brand-preview__nav > small { color: #7e8799; font-size: 7px; }
.brand-preview__hero { padding: 42px 24px 35px; text-align: center; background: radial-gradient(circle at 80% 15%, color-mix(in srgb, var(--preview-primary) 12%, transparent), transparent 35%), #fff; }
.brand-preview__hero > span { color: var(--preview-primary); font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.brand-preview__hero h3 { margin: 10px 0 7px; color: var(--preview-secondary); font-size: 23px; letter-spacing: -.04em; }
.brand-preview__hero p { max-width: 300px; margin: auto; color: #6a7487; font-size: 9px; }
.brand-preview__hero button { margin-top: 18px; padding: 9px 14px; border: 0; border-radius: 8px; color: #fff; background: var(--preview-primary); font-size: 8px; font-weight: 750; }

.customizer-save { position: sticky; z-index: 20; bottom: 15px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--portal-line)); border-radius: 14px; background: rgba(255, 255, 255, .94); box-shadow: 0 14px 35px rgba(18, 24, 40, .13); backdrop-filter: blur(14px); }
.customizer-save strong,
.customizer-save small { display: block; }
.customizer-save strong { color: var(--portal-ink); font-size: 11.5px; }
.customizer-save small { margin-top: 3px; color: var(--portal-muted); font-size: 9.5px; }

.dns-guide { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 24px; padding: 16px; border-radius: 13px; background: #f7f8fb; }
.dns-guide > div { display: flex; align-items: center; gap: 10px; }
.dns-guide > div > span { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 8px; color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, #fff); font-size: 9px; font-weight: 800; }
.dns-guide p { margin: 0; }
.dns-guide strong,
.dns-guide small { display: block; }
.dns-guide strong { color: var(--portal-ink); font-size: 10px; }
.dns-guide small { margin-top: 3px; color: var(--portal-muted); font-size: 8.5px; }
.dns-guide > i { color: #a5adbc; font-style: normal; }
.domain-add-form { margin-bottom: 22px; padding: 17px; border: 1px solid var(--portal-line); border-radius: 13px; }
.domain-input { display: flex; align-items: center; overflow: hidden; border: 1px solid #dfe3ec; border-radius: 10px; background: #fff; }
.domain-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.domain-input > span { padding-left: 12px; color: #98a0af; font-size: 11px; }
.domain-input input { min-width: 0; border: 0; box-shadow: none !important; }
.domain-input .btn { margin: 4px; flex: 0 0 auto; }
.domain-list { display: grid; gap: 10px; }
.domain-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--portal-line); border-radius: 12px; background: #fff; }
.domain-card__icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, #fff); }
.domain-card__icon svg { width: 17px; height: 17px; }
.domain-card__body { min-width: 0; }
.domain-card__body strong,
.domain-card__body small { display: block; }
.domain-card__body strong { overflow: hidden; color: var(--portal-ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.domain-card__body small { margin-top: 3px; color: var(--portal-muted); font-size: 9px; }
.domain-card__body p { margin: 7px 0 0; color: #c24155; font-size: 9px; }
.domain-card__status { display: flex; align-items: center; gap: 6px; }
.primary-label { padding: 4px 7px; border-radius: 99px; color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, #fff); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.domain-card__actions { display: flex; align-items: center; gap: 10px; }
.domain-card__actions button,
.domain-card__actions a { color: var(--brand); font-size: 9.5px; font-weight: 700; white-space: nowrap; }
.customizer-empty { padding: 28px; border: 1px dashed #d4d9e3; border-radius: 13px; color: var(--portal-muted); text-align: center; }
.customizer-empty > svg { width: 25px; margin: 0 auto 8px; color: var(--brand); }
.customizer-empty strong { display: block; color: var(--portal-ink); font-size: 11px; }
.customizer-empty p { margin: 5px 0 0; font-size: 9.5px; }
.dns-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 18px; padding: 14px; border: 1px solid #cddcf5; border-radius: 11px; color: #315b92; background: #f2f7ff; }
.dns-note > svg { width: 18px; flex: 0 0 18px; }
.dns-note p { margin: 0; }
.dns-note strong,
.dns-note span { display: block; }
.dns-note strong { font-size: 10px; }
.dns-note span { margin-top: 3px; font-size: 9px; line-height: 1.5; }

.sender-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 15px; border: 1px solid var(--portal-line); border-radius: 12px; }
.sender-state { display: flex; align-items: center; gap: 11px; min-width: 0; }
.sender-state__icon { display: grid; width: 35px; height: 35px; flex: 0 0 35px; place-items: center; border-radius: 10px; color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, #fff); }
.sender-state__icon svg { width: 17px; height: 17px; }
.sender-state strong,
.sender-state small { display: block; }
.sender-state strong { overflow: hidden; color: var(--portal-ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.sender-state small { margin-top: 3px; color: var(--portal-muted); font-size: 9px; }
.sender-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }

@media (max-width: 1120px) {
    .customizer-layout { grid-template-columns: 1fr; }
    .customizer-nav { position: static; display: flex; overflow-x: auto; padding: 10px; scrollbar-width: none; }
    .customizer-nav::-webkit-scrollbar { display: none; }
    .customizer-nav > strong,
    .customizer-nav > small { display: none; }
    .customizer-nav a { flex: 0 0 auto; }
    .appearance-grid { grid-template-columns: 1fr; }
    .brand-preview { max-width: 680px; }
}

@media (max-width: 760px) {
    .form-grid--three { grid-template-columns: 1fr; }
    .dns-guide { grid-template-columns: 1fr; }
    .dns-guide > i { display: none; }
    .domain-card { grid-template-columns: auto minmax(0, 1fr); }
    .domain-card__status,
    .domain-card__actions { grid-column: 2; }
    .customizer-save { align-items: stretch; flex-direction: column; }
    .customizer-save .btn { width: 100%; }
}

@media (max-width: 520px) {
    .color-grid,
    .upload-grid { grid-template-columns: 1fr; }
    .brand-preview__nav > small { display: none; }
    .domain-input { align-items: stretch; flex-direction: column; padding: 5px; }
    .domain-input > span { padding: 8px 8px 0; }
    .domain-input .btn { width: auto; }
    .domain-card__actions { align-items: flex-start; flex-direction: column; }
    .sender-row { align-items: flex-start; flex-direction: column; }
    .sender-form { grid-template-columns: 1fr; }
}

/* Branded Partner client login */
.partner-login-shell { width: min(980px, 100%); margin: 0 auto; }
.partner-login-back { display: inline-flex; margin: 0 0 17px; color: var(--portal-copy); font-size: 10.5px; font-weight: 700; }
.partner-login-back:hover { color: var(--brand); }
.partner-login-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr); overflow: hidden; border: 1px solid var(--portal-line); border-radius: 23px; background: #fff; box-shadow: 0 26px 75px rgba(18, 24, 40, .12); }
.partner-login-main { padding: clamp(30px, 5vw, 52px); }
.partner-login-kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--brand); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.partner-login-kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 11%, transparent); }
.partner-login-main h1 { margin: 11px 0 8px; color: var(--portal-ink); font-size: clamp(29px, 4vw, 39px); letter-spacing: -.045em; }
.partner-login-intro { max-width: 470px; margin: 0 0 27px; color: var(--portal-copy); font-size: 12.5px; line-height: 1.65; }
.partner-login-form { display: grid; gap: 17px; }
.partner-login-form .field label { margin-bottom: 7px; }
.login-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.login-label-row a { color: var(--brand); font-size: 9.5px; font-weight: 700; }
.password-control { position: relative; }
.password-control input { padding-right: 60px; }
.password-control button { position: absolute; top: 50%; right: 10px; padding: 5px; color: var(--brand); font-size: 9px; font-weight: 750; transform: translateY(-50%); }
.login-remember { display: flex; align-items: center; gap: 9px; margin: -2px 0 1px; color: var(--portal-copy); font-size: 10px; font-weight: 550; }
.login-remember input { width: 16px; min-height: 16px; height: 16px; margin: 0; padding: 0; border-radius: 5px; }
.partner-login-submit { width: 100%; min-height: 45px; font-size: 12px; }
.partner-login-help { margin: 20px 0 0; color: var(--portal-muted); font-size: 10px; text-align: center; }
.partner-login-help a,
.partner-login-register a { color: var(--brand); font-weight: 700; }
.partner-login-side { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 52px); color: #fff; background: radial-gradient(circle at 95% 10%, color-mix(in srgb, var(--brand) 35%, transparent), transparent 34%), linear-gradient(150deg, var(--brand2), #172139); }
.partner-login-side::after { content: ''; position: absolute; right: -85px; bottom: -110px; width: 250px; height: 250px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 50%; }
.partner-login-side__eyebrow { color: #c8d1e1; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.partner-login-side h2 { position: relative; z-index: 1; margin: 13px 0 12px; color: #fff; font-size: clamp(24px, 3vw, 32px); line-height: 1.18; letter-spacing: -.035em; }
.partner-login-side > p { position: relative; z-index: 1; margin: 0; color: #c4cede; font-size: 11.5px; line-height: 1.65; }
.partner-login-side ul { position: relative; z-index: 1; display: grid; gap: 12px; margin: 27px 0; padding: 25px 0; border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); list-style: none; }
.partner-login-side li { display: flex; align-items: center; gap: 9px; color: #e3e8f0; font-size: 10.5px; }
.partner-login-side li span { display: grid; width: 21px; height: 21px; flex: 0 0 21px; place-items: center; border-radius: 50%; color: #fff; background: color-mix(in srgb, var(--brand) 48%, transparent); font-size: 9px; font-weight: 900; }
.partner-login-trust { position: relative; z-index: 1; padding: 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 11px; background: rgba(255, 255, 255, .055); }
.partner-login-trust strong,
.partner-login-trust small { display: block; }
.partner-login-trust strong { color: #fff; font-size: 10.5px; }
.partner-login-trust small { margin-top: 4px; color: #abb7ca; font-size: 8.5px; line-height: 1.5; }
.partner-login-register { margin: 18px 0 0; color: var(--portal-copy); font-size: 10.5px; text-align: center; }

@media (max-width: 780px) {
    .partner-login-card { grid-template-columns: 1fr; }
    .partner-login-side { grid-row: 1; }
    .partner-login-side ul { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
    .auth-wrap { padding-right: 12px; padding-left: 12px; }
    .partner-login-card { border-radius: 17px; }
    .partner-login-main,
    .partner-login-side { padding: 26px 20px; }
    .partner-login-side ul { grid-template-columns: 1fr; }
}
