:root {
  --navy: #032d67;
  --navy-950: #031b3f;
  --blue: #0353ac;
  --cyan: #0db5e9;
  --green: #159447;
  --violet: #6557c9;
  --ink: #101d2f;
  --text: #334155;
  --muted: #718096;
  --line: #dbe3ec;
  --line-soft: #eaf0f5;
  --surface: #ffffff;
  --canvas: #f5f8fa;
  --blue-soft: #eaf4ff;
  --green-soft: #eaf8ef;
  --cyan-soft: #e8faff;
  --violet-soft: #f0edff;
  --header: 76px;
  --sidebar: 270px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "Urbanist", Arial, sans-serif; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 20px; height: 20px; stroke-width: 1.8; }

.topbar { position: fixed; inset: 0 0 auto; height: var(--header); z-index: 50; display: flex; align-items: center; gap: 38px; padding: 0 32px; color: #fff; background: linear-gradient(115deg, #031b3f 0%, #032d67 60%, #021934 100%); border-bottom: 1px solid rgba(255,255,255,.08); }
.brand { display: inline-flex; width: 166px; flex: 0 0 auto; }
.brand img { width: 100%; height: auto; filter: brightness(0) invert(1); }
.topnav { display: flex; align-items: center; gap: 32px; font-weight: 600; }
.topnav a { position: relative; color: rgba(255,255,255,.85); }
.topnav a:hover { color: #fff; }
.topnav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -10px; height: 2px; background: var(--cyan); transition: right .2s; }
.topnav a:hover::after { right: 0; }
.top-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.icon-button { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; color: inherit; background: transparent; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; cursor: pointer; }
.notification-dot { position: absolute; top: -6px; right: -5px; display: grid; place-items: center; width: 20px; height: 20px; color: #003263; background: var(--cyan); border: 2px solid var(--navy); border-radius: 50%; font-size: 11px; font-weight: 800; }
.support-link, .account-menu { display: flex; align-items: center; gap: 9px; color: #fff; background: transparent; border: 0; font-weight: 600; cursor: pointer; }
.support-link svg, .account-menu svg { width: 18px; }
.account-menu { padding-left: 17px; border-left: 1px solid rgba(255,255,255,.18); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; color: #fff; background: var(--blue); border: 1px solid rgba(255,255,255,.35); border-radius: 50%; font-weight: 800; }
.avatar.large { width: 46px; height: 46px; font-size: 18px; }
.mobile-menu { display: none; }

.portal-shell { min-height: 100vh; padding-top: var(--header); }
.sidebar { position: fixed; inset: var(--header) auto 0 0; z-index: 40; display: flex; flex-direction: column; width: var(--sidebar); overflow-y: auto; padding: 25px 18px; background: #fff; border-right: 1px solid var(--line); isolation: isolate; }
.account-summary { display: flex; align-items: center; gap: 12px; padding: 0 10px 22px; border-bottom: 1px solid var(--line); }
.account-summary div { min-width: 0; }
.account-summary strong, .account-summary small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-summary small { margin-top: 3px; color: var(--muted); font-size: 13px; }
.side-section { position: relative; z-index: 10; padding-top: 22px; }
.side-section.side-bottom { position: relative; z-index: 20; flex: 0 0 auto; padding-top: 18px; margin-top: 8px; border-top: 1px solid var(--line); background: #fff; pointer-events: auto; isolation: isolate; }
.side-label { display: block; padding: 0 12px 9px; color: #8390a1; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.side-link { position: relative; z-index: 12; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; margin: 3px 0; padding: 0 12px; color: #405066; border-radius: 6px; font-weight: 600; cursor: pointer; pointer-events: auto !important; touch-action: manipulation; }
.side-link > * { pointer-events: none; }
.side-link > svg { width: 19px; color: #64748b; }
.side-link .side-arrow { width: 15px; margin-left: auto; }
.side-link:hover { color: var(--blue); background: #f4f8fc; }
.side-link.active { color: var(--blue); background: #e9f4ff; box-shadow: inset 3px 0 var(--blue); }
.side-link.active > svg { color: var(--blue); }
.side-logout { position: relative; z-index: 6; display: block; width: 100%; margin: 0; pointer-events: auto; }
.side-logout .side-link { position: relative; z-index: 7; display: flex; width: 100%; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; pointer-events: auto; touch-action: manipulation; }
.side-logout .side-link:hover { color: #b42318; background: #fff2f0; }
.side-logout-link { position: relative; z-index: 8; pointer-events: auto !important; touch-action: manipulation; }
.side-logout-link:hover { color: #b42318; background: #fff2f0; }
.side-bottom .side-link,
.side-knowledge-link,
.side-logout-link { position: relative; z-index: 21; pointer-events: auto !important; cursor: pointer; touch-action: manipulation; }
.top-logout { position: relative; z-index: 60; pointer-events: auto !important; }
.support-panel { position: relative; z-index: 1; flex: 0 0 auto; margin-top: 12px; padding: 18px; background: linear-gradient(145deg, #edf7ff, #f6fbff); border: 1px solid #d4e8f9; border-radius: 8px; }
.support-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px; color: var(--blue); background: #fff; border-radius: 7px; box-shadow: 0 5px 15px rgba(3,83,172,.1); }
.support-panel strong { display: block; }
.support-panel p { margin: 5px 0 12px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.support-panel a { color: var(--blue); font-size: 13px; font-weight: 700; }
.sidebar-backdrop { display: none; }

.main-content { min-height: calc(100vh - var(--header)); margin-left: var(--sidebar); padding: 34px 38px 60px; }
.preview-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 11px 14px; color: #5c4610; background: #fff9e7; border: 1px solid #ead9a3; border-radius: 6px; font-size: 14px; }
.preview-banner svg { width: 18px; color: #a47700; }
.preview-banner a { margin-left: auto; color: #7c5b00; font-weight: 700; }
.page-heading { display: flex; align-items: flex-end; gap: 20px; min-height: 82px; margin-bottom: 28px; }
.page-heading > div { margin-right: auto; }
.eyebrow { display: block; margin-bottom: 6px; color: var(--blue); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.page-heading h1 { margin: 0; color: var(--ink); font-size: 34px; line-height: 1.1; }
.page-heading p { margin: 7px 0 0; color: var(--muted); font-size: 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 6px; font-weight: 700; cursor: pointer; }
.button svg { width: 18px; }
.button.primary { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 7px 17px rgba(3,83,172,.16); }
.button.primary:hover { background: #034996; }
.button.secondary { color: var(--blue); background: #fff; border-color: #b9c9d9; }
.button.compact { min-height: 38px; padding: 0 15px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.metric-card { position: relative; display: flex; align-items: center; gap: 14px; min-height: 132px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px; transition: transform .18s, box-shadow .18s; }
a.metric-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(26,54,93,.08); }
.metric-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; }
.metric-icon.blue { color: var(--blue); background: var(--blue-soft); }
.metric-icon.cyan { color: #0787ad; background: var(--cyan-soft); }
.metric-icon.green { color: var(--green); background: var(--green-soft); }
.metric-icon.violet { color: var(--violet); background: var(--violet-soft); }
.metric-card small, .metric-card span { display: block; color: var(--muted); font-size: 13px; }
.metric-card strong { display: block; margin: 2px 0 4px; font-size: 27px; }
.metric-card .metric-arrow { position: absolute; top: 16px; right: 16px; width: 17px; color: #a5b0be; }

.content-grid { display: grid; gap: 20px; }
.content-grid > * { min-width: 0; }
.content-grid.wide-left { grid-template-columns: minmax(0, 1.8fr) minmax(280px, .7fr); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line-soft); }
.panel-heading h2 { margin: 0; font-size: 19px; }
.panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.panel-heading > a { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-size: 13px; font-weight: 700; }
.panel-heading > a svg { width: 15px; }
.service-row { display: grid; grid-template-columns: 42px minmax(180px, 1.2fr) 90px minmax(118px, .7fr) 18px; align-items: center; gap: 14px; min-height: 78px; padding: 10px 22px; border-bottom: 1px solid var(--line-soft); }
.service-row:last-child { border-bottom: 0; }
.service-row:hover { background: #f9fbfd; }
.product-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; color: var(--blue); background: var(--blue-soft); border-radius: 7px; }
.product-icon svg { width: 19px; }
.service-name strong, .service-name small, .service-due small { display: block; }
.service-name small, .service-due small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.service-due { font-size: 14px; font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 7px; width: max-content; padding: 5px 9px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.status i { width: 7px; height: 7px; border-radius: 50%; }
.status.good { color: #0b7333; background: #e9f8ef; }
.status.good i { background: #18a84f; }
.status.warn { color: #966306; background: #fff5da; }
.status.warn i { background: #e39a0d; }
.status.muted { color: #5f6c7c; background: #edf1f5; }
.status.muted i { background: #8390a1; }
.renewal-panel { min-width: 0; }
.renewal-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 83px; padding: 13px 20px; border-bottom: 1px solid var(--line-soft); }
.renewal-row:last-child { border-bottom: 0; }
.calendar-date { display: grid; place-items: center; height: 50px; color: var(--blue); background: var(--blue-soft); border-radius: 6px; font-size: 11px; text-transform: uppercase; }
.calendar-date strong { display: block; margin-bottom: -8px; font-size: 19px; }
.renewal-row div { min-width: 0; }
.renewal-row div strong, .renewal-row div small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.renewal-row div small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.auto-renew { color: #167441; font-size: 11px; font-weight: 700; }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.quick-actions > a { display: flex; align-items: center; gap: 13px; min-height: 82px; padding: 15px 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.quick-actions > a:hover { border-color: #aecbe8; box-shadow: 0 7px 18px rgba(26,54,93,.06); }
.quick-actions > a > span { display: grid; place-items: center; width: 38px; height: 38px; color: var(--blue); background: var(--blue-soft); border-radius: 7px; }
.quick-actions div { margin-right: auto; }
.quick-actions strong, .quick-actions small { display: block; }
.quick-actions small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.quick-actions > a > svg { width: 17px; color: #98a4b3; }

.panel-tools { display: flex; align-items: center; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--line-soft); }
.panel-tools select, .email-toolbar select, .modal select { min-height: 42px; padding: 0 36px 0 12px; color: var(--text); background: #fff; border: 1px solid #cdd8e3; border-radius: 6px; }
.search-field { position: relative; display: block; width: min(360px, 100%); }
.search-field svg { position: absolute; top: 12px; left: 12px; width: 17px; color: #7b899b; }
.search-field input { width: 100%; min-height: 42px; padding: 0 12px 0 38px; border: 1px solid #cdd8e3; border-radius: 6px; outline: none; }
.search-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(3,83,172,.1); }
.panel-tools select { margin-left: auto; }
.text-action { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: var(--blue); font-weight: 700; }
.text-action svg { width: 16px; }
.data-table { width: 100%; }
.table-head, .table-row { display: grid; align-items: center; gap: 18px; padding: 0 22px; }
.table-head { min-height: 48px; color: #7a8798; background: #f9fbfc; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.table-row { min-height: 76px; color: var(--text); border-bottom: 1px solid var(--line-soft); }
.table-row:last-child { border-bottom: 0; }
a.table-row:hover { background: #f9fbfd; }
.service-columns { grid-template-columns: minmax(260px, 1.6fr) .6fr .7fr .7fr 20px; }
.domain-columns { grid-template-columns: minmax(260px, 1.5fr) .55fr .7fr .55fr 20px; }
.invoice-columns { grid-template-columns: minmax(180px, 1fr) .8fr .7fr .65fr 30px; }
.mailbox-columns { grid-template-columns: minmax(280px, 1.4fr) minmax(190px, 1fr) .5fr 100px; }
.table-primary { display: flex; align-items: center; gap: 12px; min-width: 0; }
.table-primary > span:last-child { min-width: 0; }
.table-primary strong, .table-primary small, .table-row > span > small { display: block; }
.table-primary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-primary small, .table-row > span > small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.row-action { display: grid; place-items: center; width: 30px; height: 30px; color: var(--blue); background: #f1f6fb; border-radius: 6px; }
.row-action svg { width: 16px; }
.toggle-label { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.toggle-label i { position: relative; width: 30px; height: 17px; background: #bbc5d0; border-radius: 20px; }
.toggle-label i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 11px; height: 11px; background: #fff; border-radius: 50%; transition: left .2s; }
.toggle-label.on i { background: var(--green); }
.toggle-label.on i::after { left: 16px; }
.empty-state { padding: 50px 20px; text-align: center; }
.empty-state > svg { width: 38px; height: 38px; color: #a5b1bf; }
.empty-state h3 { margin: 10px 0 5px; }
.empty-state p { margin: 0 0 18px; color: var(--muted); }

.domain-stats, .email-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.domain-stats > div, .email-metrics > div { display: flex; align-items: center; gap: 14px; min-height: 104px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.domain-stats p, .email-metrics p { margin: 0; }
.domain-stats small, .email-metrics small, .domain-stats strong, .email-metrics strong { display: block; }
.domain-stats small, .email-metrics small { color: var(--muted); font-size: 13px; }
.domain-stats strong, .email-metrics strong { margin-top: 3px; font-size: 23px; }

.billing-summary { display: grid; grid-template-columns: 1fr 1.25fr .8fr; gap: 18px; margin-bottom: 20px; }
.balance-card, .payment-card, .credit-card { min-height: 180px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.balance-card { padding: 24px; color: #fff; background: linear-gradient(130deg, #032d67, #0353ac); border: 0; }
.balance-card > span { color: rgba(255,255,255,.7); font-size: 13px; }
.balance-card > strong { display: block; margin: 8px 0 3px; font-size: 36px; }
.balance-card p { margin: 0 0 22px; color: rgba(255,255,255,.72); }
.balance-card a { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.balance-card a svg { width: 16px; }
.payment-card .panel-heading { padding: 19px 20px; }
.card-line { display: flex; align-items: center; gap: 13px; padding: 21px; }
.payment-mark { display: grid; place-items: center; width: 52px; height: 34px; color: #133b8b; background: #edf3ff; border: 1px solid #ccd9f2; border-radius: 5px; font-size: 11px; font-weight: 800; font-style: italic; }
.card-line div { margin-right: auto; }
.card-line strong, .card-line small { display: block; }
.card-line small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.card-line a { color: var(--blue); font-size: 13px; font-weight: 700; }
.credit-card { display: flex; align-items: center; gap: 14px; padding: 24px; }
.credit-card small, .credit-card strong, .credit-card a { display: block; }
.credit-card small { color: var(--muted); }
.credit-card strong { margin: 4px 0 12px; font-size: 25px; }
.credit-card a { color: var(--blue); font-size: 13px; font-weight: 700; }

.email-toolbar { display: flex; align-items: flex-end; gap: 22px; margin-bottom: 16px; padding: 18px 20px; }
.email-toolbar label { display: grid; gap: 7px; min-width: 300px; font-size: 13px; font-weight: 700; }
.email-plan { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.email-plan small { color: var(--muted); }
.email-table .table-row { min-height: 82px; }
.storage > span { display: block; margin-bottom: 7px; font-size: 13px; }
.storage > i { display: block; width: 100%; height: 7px; overflow: hidden; background: #e5ebf0; border-radius: 10px; }
.storage > i b { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.table-footer { padding: 16px; color: var(--muted); background: #fafcfd; border-top: 1px solid var(--line-soft); text-align: center; font-size: 13px; }

.order-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.product-choice { position: relative; display: flex; flex-direction: column; min-height: 285px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 8px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.product-choice:hover { transform: translateY(-3px); border-color: #a9c9e7; box-shadow: 0 14px 30px rgba(26,54,93,.08); }
.product-choice.featured { background: linear-gradient(150deg, #fff 35%, #eef7ff); border-color: #9ec8ed; }
.choice-label { position: absolute; top: 18px; right: 18px; padding: 5px 9px; color: #075b7c; background: #dff7ff; border-radius: 4px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.choice-icon { display: grid; place-items: center; width: 50px; height: 50px; color: var(--blue); background: var(--blue-soft); border-radius: 8px; }
.choice-icon svg { width: 23px; height: 23px; }
.product-choice h2 { margin: 21px 0 8px; font-size: 22px; }
.product-choice p { max-width: 560px; margin: 0 0 18px; color: var(--muted); line-height: 1.55; }
.product-choice > strong { color: var(--text); }
.choice-action { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 24px; color: var(--blue); font-weight: 800; }
.choice-action svg { width: 17px; }
.product-group { display: block; margin: 10px 0 3px; color: var(--blue); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.checkout-strip { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: var(--shadow-sm); }
.checkout-strip > div { flex: 1; }
.checkout-strip strong { color: var(--navy); font-size: 15px; }
.checkout-strip p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.support-hero { padding: 32px; background: linear-gradient(120deg, #fff 0%, #f2f9ff 100%); }
.support-hero h2 { margin: 7px 0; color: var(--navy); font-size: 28px; }
.support-hero p { margin: 0 0 22px; color: var(--muted); }
.support-search { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; overflow: hidden; max-width: 720px; min-height: 52px; padding-left: 16px; border: 1px solid #cad9e7; border-radius: 6px; background: #fff; }
.support-search svg { width: 18px; color: #77879a; }
.support-search input { min-width: 0; height: 50px; border: 0; outline: 0; padding: 0 13px; color: var(--navy); }
.support-search button { align-self: stretch; border: 0; padding: 0 22px; background: var(--blue); color: #fff; font-weight: 800; cursor: pointer; }
.support-grid, .security-grid { display: grid; gap: 16px; margin-top: 18px; }
.support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.security-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.support-choice, .security-choice { display: flex; align-items: center; gap: 14px; min-height: 126px; padding: 20px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: var(--shadow-sm); color: inherit; }
.support-choice > div, .security-choice > div { flex: 1; min-width: 0; }
.support-choice > svg, .security-choice > svg { width: 18px; color: #8a99aa; }
.support-choice strong, .security-choice strong { display: block; color: var(--navy); font-size: 14px; }
.support-choice p, .security-choice p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.support-note { display: flex; align-items: flex-start; gap: 13px; margin-top: 18px; padding: 18px 20px; }
.support-note > svg { width: 18px; color: var(--blue); }
.support-note strong { color: var(--navy); }
.support-note p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.account-details { padding-bottom: 8px; }
.account-details dl { margin: 0; }
.account-details dl > div { display: grid; grid-template-columns: 140px 1fr; padding: 15px 0; border-top: 1px solid var(--line); }
.account-details dt { color: var(--muted); font-size: 11px; font-weight: 700; }
.account-details dd { margin: 0; color: var(--navy); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.account-card { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 290px; text-align: center; }
.account-avatar { width: 62px; height: 62px; font-size: 23px; }
.account-card h2 { margin: 14px 0 3px; color: var(--navy); font-size: 19px; }
.account-card p { margin: 0 0 14px; color: var(--muted); font-size: 11px; }
.danger-action { padding: 0; }
.danger-action button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 124px; padding: 20px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.danger-action button > span:nth-child(2) { flex: 1; }
.danger-action small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 400; }
.danger-action button > svg { width: 18px; color: #8a99aa; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(3,18,40,.58); backdrop-filter: blur(3px); }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(640px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: 8px; box-shadow: 0 30px 70px rgba(0,0,0,.22); }
.modal-head { display: flex; align-items: center; gap: 20px; padding: 23px 26px; border-bottom: 1px solid var(--line); }
.modal-head > div { margin-right: auto; }
.modal-head h2 { margin: 0; font-size: 24px; }
.modal-head .icon-button { color: var(--text); border-color: var(--line); }
.modal form { display: grid; gap: 18px; padding: 25px 26px; }
.modal label { display: grid; gap: 7px; color: var(--ink); font-weight: 700; }
.modal label > input, .joined-input, .password-input { min-height: 46px; border: 1px solid #cbd6e1; border-radius: 6px; }
.modal label > input { width: 100%; padding: 0 13px; }
.modal label small { color: var(--muted); font-size: 12px; font-weight: 500; }
.joined-input, .password-input { display: flex; align-items: stretch; overflow: hidden; }
.joined-input input, .password-input input { min-width: 0; flex: 1; padding: 0 13px; border: 0; outline: 0; }
.joined-input b { display: flex; align-items: center; padding: 0 13px; color: #4f5e70; background: #f4f7f9; border-left: 1px solid #cbd6e1; white-space: nowrap; }
.password-input button { padding: 0 13px; color: var(--blue); background: #f8fbfe; border: 0; border-left: 1px solid #cbd6e1; font-weight: 700; cursor: pointer; }
.strength { height: 5px; overflow: hidden; background: #e2e8ee; border-radius: 5px; }
.strength b { display: block; width: 76%; height: 100%; background: var(--green); }
.modal-note { display: flex; gap: 10px; padding: 12px; color: #345a72; background: #edf7fd; border-radius: 6px; font-size: 13px; line-height: 1.4; }
.modal-note svg { flex: 0 0 auto; width: 18px; color: var(--blue); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 120; display: flex; align-items: center; gap: 10px; max-width: 340px; padding: 14px 17px; color: #fff; background: #123b2b; border-radius: 7px; box-shadow: 0 12px 30px rgba(0,0,0,.18); transform: translateY(120px); opacity: 0; transition: .25s; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { color: #72e39e; }

@media (max-width: 1180px) {
  .topnav { display: none; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid.wide-left { grid-template-columns: 1fr; }
  .billing-summary { grid-template-columns: repeat(2, 1fr); }
  .credit-card { grid-column: 1 / -1; min-height: 110px; }
}

@media (max-width: 860px) {
  :root { --header: 66px; }
  .topbar { gap: 14px; padding: 0 16px; }
  .brand { width: 140px; }
  .mobile-menu { display: inline-grid; }
  .support-link span, .account-menu > span:not(.avatar) { display: none; }
  .account-menu { padding-left: 8px; }
  .sidebar { transform: translateX(-101%); transition: transform .22s ease; box-shadow: 15px 0 30px rgba(0,0,0,.08); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.open { position: fixed; inset: var(--header) 0 0; z-index: 35; display: block; background: rgba(4,20,42,.36); }
  .main-content { margin-left: 0; padding: 26px 20px 50px; }
  .panel { min-width: 0; }
  .service-row { grid-template-columns: 42px minmax(0, 1fr) auto 18px; gap: 10px; padding: 10px 16px; }
  .service-row .service-due { display: none; }
  .service-row .service-name { min-width: 0; }
  .service-row .service-name strong, .service-row .service-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .renewal-row { grid-template-columns: 46px minmax(0, 1fr) auto; }
  .service-columns, .domain-columns, .invoice-columns, .mailbox-columns { grid-template-columns: minmax(0, 1fr) auto; }
  .table-head { display: none; }
  .table-row { padding: 15px 18px; }
  .table-row > span:not(.table-primary):not(.row-action), .table-row > button { display: none; }
  .table-row .row-action { display: grid; }
  .email-table .table-row > .storage { display: block; grid-column: 1 / -1; }
  .quick-actions { grid-template-columns: 1fr; }
  .support-grid, .security-grid { grid-template-columns: 1fr; }
  .checkout-strip { align-items: flex-start; flex-wrap: wrap; }
  .checkout-strip .button { width: 100%; }
}

@media (max-width: 620px) {
  .topbar { padding: 0 12px; }
  .top-actions { gap: 7px; }
  .support-link { display: none; }
  .account-menu { border: 0; }
  .icon-button { width: 38px; height: 38px; }
  .main-content { padding: 22px 14px 40px; }
  .preview-banner { align-items: flex-start; }
  .preview-banner a { display: none; }
  .page-heading { align-items: stretch; flex-direction: column; min-height: 0; }
  .page-heading h1 { font-size: 28px; }
  .page-heading .button { width: 100%; }
  .metric-grid, .domain-stats, .email-metrics, .billing-summary, .order-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 108px; }
  .balance-card, .payment-card, .credit-card { min-height: 0; }
  .credit-card { grid-column: auto; }
  .panel-tools { align-items: stretch; flex-direction: column; }
  .panel-tools select, .text-action { margin-left: 0; }
  .email-toolbar { align-items: stretch; flex-direction: column; }
  .email-toolbar label { min-width: 0; }
  .email-plan { margin-left: 0; }
  .product-choice { min-height: 250px; padding: 23px; }
  .joined-input b { max-width: 54%; overflow: hidden; text-overflow: ellipsis; }
  .password-input { align-items: stretch; flex-direction: column; }
  .password-input input { min-height: 44px; }
  .password-input button { min-height: 40px; border-top: 1px solid #cbd6e1; border-left: 0; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .button { width: 100%; }
  .support-hero { padding: 23px 18px; }
  .support-search { grid-template-columns: auto minmax(0, 1fr); }
  .support-search button { grid-column: 1 / -1; min-height: 44px; }
  .account-details dl > div { grid-template-columns: 1fr; gap: 5px; }
}

/* oXnames 2026 website alignment */
:root{--navy:#032d67;--navy-950:#032d67;--blue:#0353ac;--cyan:#0db5e9;--green:#33cc79;--ink:#2b2b2b;--text:#4d5968;--muted:#7e7e7e;--line:#ddd;--line-soft:#e9eeee;--canvas:#f5f8f7;--blue-soft:#edf6ff;--green-soft:#ecfaf2;--cyan-soft:#eafaff}
body{background:#f5f8f7}
.topbar{color:#2b2b2b;background:rgba(255,255,255,.97);border-bottom:1px solid #ddd;box-shadow:0 5px 18px rgba(3,45,103,.055)}
.brand img{filter:none}.topnav a{color:#687483}.topnav a:hover,.support-link,.account-menu{color:#032d67}.topnav a::after{bottom:-14px;background:#0db5e9}.account-menu{border-left-color:#d9e0e6}.top-actions .icon-button{color:#032d67;border-color:#d8e0e7;background:#fff}.notification-dot{color:#032d67;background:#0db5e9;border-color:#fff}.avatar{background:#0353ac}
.sidebar{border-right-color:#ddd}.side-link{color:#556170}.side-link:hover{color:#0353ac;background:#f1f7fb}.side-link.active{color:#0353ac;background:#e9f7fc;box-shadow:inset 3px 0 #0db5e9}.support-panel{background:#eef9fd;border-color:#c8e8f3;box-shadow:none}
.main-content{background-color:#f5f8f7}.page-heading h1,.section-heading h2,.panel-heading h2{color:#2b2b2b}.eyebrow{color:#0353ac}.metric-card,.panel,.balance-card,.payment-card,.credit-card{border-color:#ddd;box-shadow:0 8px 20px rgba(3,45,103,.045)}.metric-card:hover{box-shadow:0 13px 28px rgba(3,45,103,.08)}
.button.primary{background:#032d67;border-color:#032d67;box-shadow:none}.button.primary:hover{background:#0353ac}.button.secondary{color:#032d67;border-color:#bac7d2}.metric-icon,.product-icon,.control-icon{color:#0353ac;background:#e9f7fc}.status.active,.status.paid,.status-pill.good{color:#137044;background:#e9f8ef}.table-shell thead,.data-table thead{background:#f8faf9}
@media(max-width:900px){.topbar{background:#fff}.mobile-menu{color:#032d67}.account-menu{border-left:0}}

/* Dark Knox header retained by preference */
.topbar{color:#fff;background:#032d67;border-bottom-color:rgba(255,255,255,.1);box-shadow:0 7px 22px rgba(3,45,103,.16)}
.brand img{filter:brightness(0) invert(1)}
.topnav a{color:rgba(255,255,255,.82)}
.topnav a:hover,.support-link,.account-menu{color:#fff}
.account-menu{border-left-color:rgba(255,255,255,.18)}
.top-actions .icon-button{color:#fff;border-color:rgba(255,255,255,.2);background:transparent}
.notification-dot{color:#032d67;background:#0db5e9;border-color:#032d67}
@media(max-width:900px){.topbar{background:#032d67}.mobile-menu{color:#fff}}

/* Readable Knox type scale */
.eyebrow,.side-label{font-size:13px}.page-heading p{font-size:17px}.topnav{font-size:15px}.side-link{font-size:15px}.account-summary small,.support-panel p,.support-panel a{font-size:14px}.button{font-size:14px}.metric-card small{font-size:12px}.metric-card strong{font-size:28px}.panel p,.panel small{line-height:1.5}.data-table,.table-shell{font-size:14px}

/* Keep account content readable without creating sideways page overflow. */
html,body,.portal-shell{max-width:100%;overflow-x:hidden}.main-content,.main-content>*,.metric-card>div,.panel,.content-grid>*{min-width:0}.metric-card strong{overflow-wrap:anywhere}.service-name strong,.service-name small,.table-primary strong{overflow-wrap:anywhere}.sidebar{scrollbar-width:none;-ms-overflow-style:none}.sidebar::-webkit-scrollbar{display:none;width:0;height:0}
@media(max-width:1500px){.topbar{gap:22px;padding-inline:24px}.topnav{gap:20px}.top-actions{gap:10px}.support-link span{display:none}}

/* Knox is an operational account area: flatter, denser and deliberately restrained. */
.eyebrow,.side-label{letter-spacing:0;text-transform:none;font-weight:700}.main-content{padding-top:30px}.page-heading{min-height:66px;margin-bottom:22px}.page-heading h1{font-size:32px}.metric-grid{gap:0;margin-bottom:22px;border:1px solid var(--line);border-radius:4px;background:#fff}.metric-card{min-height:106px;padding:18px 20px;border:0;border-right:1px solid var(--line);border-radius:0;box-shadow:none!important}.metric-card:last-child{border-right:0}a.metric-card:hover{transform:none;background:#f8fafb}.metric-icon{width:34px;height:34px;border-radius:3px;color:var(--blue);background:transparent;border:1px solid #cbd9e5}.metric-icon svg{width:18px}.metric-card strong{font-size:25px}.metric-card .metric-arrow{top:13px;right:13px}.panel,.balance-card,.payment-card,.credit-card{border-radius:4px;box-shadow:none!important}.panel-heading{padding:17px 20px}.panel-heading h2{font-size:18px}.panel-heading p{margin-top:2px}.support-panel{padding:15px;background:#fff;border-radius:4px}.support-icon{display:none}.sidebar{padding-top:20px}.side-link{min-height:43px;border-radius:3px}.side-link.active{background:#eef5f9}.service-row,.renewal-row,.table-row{border-radius:0}.product-icon,.control-icon{border-radius:3px;background:#f0f5f8}.checkout-strip{border-radius:4px;box-shadow:none}
@media(max-width:1180px){.metric-grid{display:grid;grid-template-columns:1fr 1fr}.metric-card:nth-child(2){border-right:0}.metric-card:nth-child(-n+2){border-bottom:1px solid var(--line)}}
@media(max-width:620px){.metric-grid{grid-template-columns:1fr}.metric-card,.metric-card:nth-child(2){border-right:0;border-bottom:1px solid var(--line)}.metric-card:last-child{border-bottom:0}}

/* Preserve the official oXnames logo colours. */
.brand img{filter:none}

/* Compact client-dashboard layout inspired by modern hosting portals. */
.dashboard-services{margin-bottom:18px}
.dashboard-services .service-row{grid-template-columns:42px minmax(220px,1fr) 110px 150px 18px;min-height:66px;padding:10px 18px}
.dashboard-lower-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:22px}
.dashboard-list-panel{min-width:0;overflow:hidden}
.dashboard-list-panel .panel-heading{min-height:70px}
.button.mini{min-height:36px;padding:0 13px;font-size:12px}
.button.mini svg{width:15px;height:15px}
.compact-list{display:grid}
.compact-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto auto 16px;align-items:center;gap:11px;min-height:70px;padding:10px 16px;color:inherit;border-top:1px solid var(--line-soft)}
.compact-row:hover{background:#f8fbfc}
.compact-row>svg{width:16px;color:#8b99a8}
.compact-icon{display:grid;place-items:center;width:34px;height:34px;color:var(--blue);background:#eef6fb;border:1px solid #dceaf2;border-radius:5px}
.compact-icon svg{width:17px;height:17px}
.compact-copy{min-width:0}
.compact-copy strong,.compact-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.compact-copy strong{color:var(--navy);font-size:13px}
.compact-copy small{margin-top:3px;color:var(--muted);font-size:11px}
.compact-amount{color:var(--navy);font-size:13px;white-space:nowrap}
.compact-row .status{font-size:11px;white-space:nowrap}
.compact-empty{padding:28px 18px;color:var(--muted);text-align:center;font-size:13px}

@media(max-width:1100px){.dashboard-lower-grid{grid-template-columns:1fr}}
@media(max-width:720px){.dashboard-services .service-row{grid-template-columns:38px minmax(0,1fr) auto 16px}.dashboard-services .service-due{display:none}.compact-row{grid-template-columns:36px minmax(0,1fr) auto 14px}.compact-row .compact-amount{display:none}.ticket-row .status{display:none}.dashboard-list-panel .panel-heading{align-items:flex-start}.dashboard-list-panel .panel-heading p{display:none}}

/* Dashboard v3: clearly separated, polished account cards. */
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;border:0;background:transparent}
.metric-card,.metric-card:nth-child(2){min-height:126px;padding:20px;border:1px solid #dfe6ed!important;border-radius:8px!important;background:#fff;box-shadow:0 8px 22px rgba(3,45,103,.055)!important}
.metric-card:hover{background:#fff!important;border-color:#bdd6e8!important;box-shadow:0 12px 28px rgba(3,45,103,.09)!important}
.metric-icon{width:42px;height:42px;border:0;border-radius:8px;background:#edf7fd}
.metric-icon svg{width:20px;height:20px}
.metric-icon.technical-icon{width:74px;height:74px;flex:0 0 74px;padding:0;border:0;background:transparent;overflow:visible}
.metric-icon.technical-icon img{display:block;width:74px;height:74px;object-fit:contain}
.metric-card>div{align-self:center}
.metric-card small{color:#536176;font-size:13px;font-weight:700}
.metric-card strong{margin:4px 0 2px;color:#071a39;font-size:30px}
.metric-card div>span{color:#78869a;font-size:12px}
.metric-card .metric-arrow{top:18px;right:18px;color:#8ea0b4}
.dashboard-tools{display:flex;align-items:center;gap:9px;margin-left:auto}
.dashboard-search{position:relative;display:flex;align-items:center;width:230px;height:42px;color:#75859a;background:#fff;border:1px solid #dfe6ed;border-radius:8px}
.dashboard-search svg{width:17px;margin-left:13px}
.dashboard-search input{width:100%;height:100%;padding:0 12px 0 9px;color:var(--navy);background:transparent;border:0;outline:0;font-size:13px}
.dashboard-tool{display:grid;place-items:center;width:42px;height:42px;color:#536b86;background:#fff;border:1px solid #dfe6ed;border-radius:8px}
.dashboard-tool:hover{color:var(--blue);border-color:#bdd6e8;background:#f8fcff}
.dashboard-tool svg{width:18px;height:18px}
.dashboard-services,.dashboard-list-panel{border-radius:8px;box-shadow:0 7px 22px rgba(3,45,103,.045)!important}
.dashboard-services .panel-heading,.dashboard-list-panel .panel-heading{background:#fff}
.dashboard-services .service-row{background:#fff}
.dashboard-services .service-row:hover{background:#f7fbfd}
@media(max-width:1180px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-card,.metric-card:nth-child(-n+2){border:1px solid #dfe6ed!important}}
@media(max-width:900px){.dashboard-tools{width:100%;margin-left:0}.dashboard-search{flex:1;width:auto}.page-heading:has(.dashboard-tools){align-items:flex-start;flex-wrap:wrap}.page-heading:has(.dashboard-tools)>div{width:100%}}
@media(max-width:620px){.metric-grid{grid-template-columns:1fr}.metric-card,.metric-card:nth-child(2),.metric-card:last-child{border:1px solid #dfe6ed!important}.dashboard-tools{order:3}.dashboard-tools+.button{width:100%}}
@media(max-width:620px){.metric-icon.technical-icon{width:62px;height:62px;flex-basis:62px}.metric-icon.technical-icon img{width:62px;height:62px}}
.compact-button{min-height:32px;padding:0 11px;font-size:12px}.inline-link{display:inline;color:var(--blue);margin:0;text-align:left}
