/* Bounded document layouts and task-focused customer pages. */
.home.legal-page #mainContent { background: #fafbfc; padding-bottom: 64px; }
.home.legal-page .page-breadcrumb { max-width: 1280px; padding: 24px 32px; }
.home.legal-page .legal-layout { max-width: 1280px; margin: 0 auto; padding: 16px 32px 0; grid-template-columns: 240px minmax(0,1fr); gap: 48px; }
.home.legal-page .legal-sidebar { padding: 24px; background: #fff; border: 1px solid #e5e8ef; border-radius: 14px; }
.home.legal-page .legal-wrapper { max-width: none; min-width: 0; background: #fff; border: 1px solid #e5e8ef; border-radius: 16px; padding: 36px 40px; }
.home.legal-page .legal-wrapper h1 { font-size: clamp(28px,3vw,40px); margin: 18px 0; }
.home.legal-page .legal-wrapper h2 { font-size: 19px; }
.home.legal-page .legal-wrapper .subpage-badge { display: none; }
.home .document-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e5e8ef; padding-bottom: 20px; }
.home .document-tools > span { font-size: 9px; letter-spacing: .12em; color: #677487; }
.home .document-print { border: 1px solid #dfe3e9; border-radius: 6px; background: #fff; padding: 9px 12px; font: inherit; font-size: 11px; color: #303849; cursor: pointer; }
.home .document-print:hover { background: #f7f8fa; }
.home .outcome-section { border-top: 1px solid #e5e8ef; }
.home .outcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.home .outcome-source { position: relative; margin: 0; min-height: 340px; overflow: hidden; border-radius: 14px; background: #eef1f4; }
.home .outcome-source > img { width: 100%; height: 100%; position: absolute; object-fit: cover; }
.home .outcome-source figcaption { position: absolute; inset: auto 0 0; padding: 48px 28px 28px; color: #fff; background: linear-gradient(transparent,#14202ae6); }
.home .outcome-source figcaption span { display: block; font-size: 12px; margin-bottom: 8px; }
.home .outcome-source figcaption strong { font-size: 24px; }
.home .outcome-result { padding: 36px; border-radius: 14px; background: #f3f6f5; border: 1px solid #e2e8e5; }
.home .outcome-result h3 { font-size: 27px; letter-spacing: -.03em; line-height: 1.25; }
.home .outcome-result ol { margin: 24px 0; padding: 0; list-style: none; }
.home .outcome-result li { display: flex; gap: 18px; border-bottom: 1px solid #dfe6e2; padding: 14px 0; font-size: 14px; }
.home .outcome-result li > span { color: #76857b; font-size: 11px; }
.home .outcome-result .btn { font-size: 12px; white-space: normal; }
.home .example-disclosure { font-size: 11px; color: #6d7788; margin-top: 16px; line-height: 1.7; }
.home .scenario-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.home .scenario-grid article { display: flex; flex-direction: column; padding: 28px; background: #f7f8fa; border: 1px solid #e5e8ef; border-radius: 14px; }
.home .scenario-grid article > span { font-size: 10px; color: #677487; letter-spacing: .06em; margin-bottom: 22px; }
.home .scenario-grid h3 { font-size: 23px; line-height: 1.3; letter-spacing: -.03em; margin-bottom: 16px; }
.home .scenario-grid p { font-size: 14px; color: #596477; line-height: 1.85; margin-bottom: 24px; }
.home .scenario-grid a { font-size: 12px; font-weight: 600; color: #303849; margin-top: auto; }
.home .quote-group-heading { display: flex; align-items: center; gap: 14px; margin: 12px 0 24px; }
.home .quote-group-heading > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #f0f2f5; color: #596477; font-size: 11px; flex-shrink: 0; }
.home .quote-group-heading h3 { font-size: 18px; letter-spacing: -.02em; margin: 0 0 4px; }
.home .quote-group-heading p { font-size: 12px; color: #677487; margin: 0; line-height: 1.6; }
.home .quote-selection-summary { padding: 22px; margin-bottom: 28px; background: #f7f8fa; border: 1px solid #e5e8ef; border-radius: 12px; }
.home .quote-selection-summary > span { display: block; font-size: 10px; letter-spacing: .09em; color: #677487; margin-bottom: 12px; }
.home .quote-selection-summary strong { display: block; font-size: 18px; }
.home .quote-selection-summary p { font-size: 12px; line-height: 1.6; color: #596477; margin: 8px 0 0; }
.home .quote-success { padding: 20px 0; }
.home .quote-success-mark { display: grid; place-items: center; width: 48px; height: 48px; background: #edf6f0; color: #33684a; border-radius: 50%; margin-bottom: 20px; font-size: 24px; }
.home .quote-success h3 { font-size: 27px; margin-bottom: 14px; }
.home .quote-success p { font-size: 14px; color: #596477; line-height: 1.85; margin-bottom: 18px; }
.home .contact-shortcuts { flex-wrap: wrap; }
/* Account artwork needs a legible overlay behind its bottom-aligned copy. */
.home.account-page .account-visual::after { background: linear-gradient(180deg,#17202a05 15%,#17202a70 55%,#17202aef 100%); }
.home.account-page .account-visual-copy .section-eyebrow { color: #fff; background: #ffffff1a; border-color: #ffffff40; }
.home.account-page .account-layout { width: calc(100% - 64px); }
/* Portal retains the site identity but prioritizes actions and actual account data. */
.home.portal-page #mainContent { background: #fafbfc; }
.home.portal-page .portal-hero { padding-top: 16px; padding-bottom: 28px; gap: 36px; }
.home.portal-page .portal-hero-copy h1 { font-size: clamp(28px,3vw,38px); overflow-wrap: anywhere; }
.home.portal-page .portal-hero-intro { font-size: 14px; max-width: 560px; margin-bottom: 18px; }
.home.portal-page .portal-hero-visual { padding: 16px; background: #f1f3f6; }
.home.portal-page .portal-stat-box { min-width: 0; padding: 16px; }
.home.portal-page .portal-stat-val { overflow-wrap: anywhere; }
.home.portal-page .portal-hero-actions { flex-wrap: wrap; }
.home.portal-page .portal-topics-nav { background: #fafbfc; padding: 0 32px; gap: 4px; }
.home.portal-page .portal-tab-btn { flex: 0 0 auto; padding: 18px 14px; min-height: 62px; }
.home.portal-page .portal-content { padding-top: 32px; }
.home.portal-page .portal-tab-pane[hidden] { display: none; }
.home.portal-page .portal-license-card { width: 100%; align-items: stretch; }
.home.portal-page .portal-license-header > div { min-width: 0; }
.home.portal-page .portal-code-badge { max-width: 100%; overflow-wrap: anywhere; }
.home.portal-page .portal-code-block { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
.home.portal-page .portal-install-box { min-width: 0; }
.home.portal-page .portal-domain-input-wrap { min-width: 0; flex-basis: 250px; }
.home.portal-page .portal-domain-row .btn { white-space: normal; }
.home.portal-page .portal-plan-meta { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.home.portal-page .portal-plan-meta > div { font-size: 13px; line-height: 1.7; }
.home.portal-page .portal-table { width: 100%; }
.home.portal-page .portal-status--overdue { color: #a83d38; background: #fff0ee; border-color: #f3d3ce; }
.home.portal-page .portal-status--inactive { color: #596477; background: #f0f2f5; border-color: #dfe3e9; }
.home.portal-page .portal-empty-state { padding: 44px 28px; border: 1px dashed #d8dfe7; border-radius: 14px; text-align: center; background: #fff; }
.home.portal-page .portal-empty-state p { font-size: 14px; color: #596477; line-height: 1.8; margin-bottom: 16px; }
.home.portal-page .portal-tab-badge { background: #e8edf2; color: #303849; }
.home.portal-page .portal-content :is(.product-card,.company-card) { min-width: 0; }
@media(max-width:1050px) {
 .home.portal-page .portal-hero { grid-template-columns: 1fr; }
 .home.portal-page .portal-stat-grid { grid-template-columns: 1fr 1fr; }
 .home .scenario-grid { grid-template-columns: 1fr; }
}
@media(max-width:850px) {
 .home.legal-page .legal-layout { grid-template-columns: 1fr; gap: 20px; }
 .home.legal-page .legal-sidebar { position: static; padding: 20px; }
 .home .outcome-grid { grid-template-columns: 1fr; }
 .home .outcome-source { min-height: 280px; }
 .home.quote-page .quote-aside { display: block; }
 .home.quote-page .quote-aside-image { width: 100%; height: 220px; margin-bottom: 24px; }
 .home.portal-page .products-grid { grid-template-columns: 1fr; }
}
@media(max-width:600px) {
 .home.legal-page .page-breadcrumb { padding: 18px 22px; }
 .home.legal-page .legal-layout { padding: 0 22px; }
 .home.legal-page .legal-wrapper { padding: 24px 20px; }
 .home.legal-page .legal-wrapper h1 { font-size: 29px; }
 .home.legal-page .legal-wrapper h2 { font-size: 17px; }
 .home .document-tools { align-items: flex-start; flex-direction: column; }
 .home .outcome-result { padding: 26px; }
 .home .outcome-result h3 { font-size: 24px; }
 .home.account-page .account-layout { width: calc(100% - 44px); padding: 0; gap: 0; }
 .home.portal-page .portal-hero { padding: 12px 22px 28px; }
 .home.portal-page .portal-topics-nav { padding: 0 22px; }
 .home.portal-page .portal-content { padding: 28px 22px 48px; }
 .home.portal-page .portal-license-card { padding: 20px; }
 .home.portal-page .portal-stat-grid { gap: 10px; }
 .home.portal-page .portal-stat-label { font-size: 10px; }
 .home.portal-page .portal-stat-num { font-size: 28px; }
 .home.portal-page .portal-hero-actions .btn { font-size: 12px; padding: 12px; }
 .home.portal-page .portal-table-wrap { overflow: visible; border: 0; background: transparent; }
 .home.portal-page .portal-table { display: block; min-width: 0; }
 .home.portal-page .portal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
 .home.portal-page .portal-table tbody { display: grid; gap: 14px; }
 .home.portal-page .portal-table tr { display: block; padding: 16px; background: #fff; border: 1px solid #e5e8ef; border-radius: 12px; }
 .home.portal-page .portal-table td { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border: 0; white-space: normal; overflow-wrap: anywhere; text-align: right; font-size: 12px; }
 .home.portal-page .portal-table td[data-label]::before { content: attr(data-label); font-weight: 500; color: #677487; text-align: left; flex-shrink: 0; }
 .home.portal-page .portal-table td[colspan] { justify-content: center; text-align: center; }
 .home.portal-page .portal-addon-row { align-items: flex-start; flex-direction: column; }
}
@media print {
 body.home.legal-page { background: white; }
 .home.legal-page :is(.site-header,.site-footer,.page-breadcrumb,.legal-sidebar,.document-tools,.skip-link) { display: none !important; }
 .home.legal-page #mainContent { padding: 0; background: white; }
 .home.legal-page .legal-layout { display: block; padding: 0; max-width: none; }
 .home.legal-page .legal-wrapper { padding: 0; border: 0; }
 .home.legal-page .legal-wrapper :is(h1,h2) { break-after: avoid; }
 .home.legal-page .legal-wrapper p { color: #222; }
}
/* Empty feedback containers must not inherit section-sized padding. */
.home.portal-page .portal-alert-container { max-width: 1360px; padding: 0 32px; }
.home.portal-page .portal-alert-container:has(.alert-box) { padding-bottom: 20px; }
.home.portal-page .portal-greeting-title span { color: #171b26; }
.home.quote-page .subpage-hero > .container { padding: 0; max-width: 1200px; }
.home.quote-page .subpage-hero h1 { max-width: 980px; margin-left: auto; margin-right: auto; font-size: clamp(30px,3.2vw,44px); }
.home.portal-page .mtm-workspace { display: grid; grid-template-columns: 110px minmax(0,1fr); height: 260px; }
.home.portal-page .mtm-channels { padding: 16px 12px; background: #f7f9fc; border-right: 1px solid #e5e8ef; }
.home.portal-page .channel-chip { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; padding: 12px; border: 1px solid #e5e8ef; border-radius: 6px; background: #fff; font-size: 10px; }
.home.portal-page .channel-chip.is-active { border-color: #8dada2; background: #edf4f0; }
.home.portal-page .channel-chip i { font-style: normal; font-size: 8px; color: #677487; }
.home.portal-page .mtm-feed { padding: 18px; overflow: hidden; }
.home.portal-page .feed-item { padding: 14px 0; border-bottom: 1px solid #e5e8ef; }
.home.portal-page .feed-time { font-size: 9px; color: #677487; margin-right: 8px; }
.home.portal-page .feed-tag { display: inline-block; padding: 4px 6px; background: #edf4f0; color: #406855; border-radius: 4px; font-size: 9px; }
.home.portal-page .feed-text { margin-top: 12px; line-height: 1.8; font-size: 11px; color: #303849; }
.home.portal-page .live-pill { color: #406855; font-size: 9px; }
@media(max-width:600px) {
 .home.portal-page .portal-alert-container { padding: 0 22px; }
 .home.portal-page .mtm-workspace { grid-template-columns: 80px minmax(0,1fr); }
 .home.portal-page .mtm-channels { padding: 12px 8px; }
 .home.portal-page .channel-chip { padding: 9px; }
 .home.portal-page .mtm-feed { padding: 12px; }
 .home.quote-page .subpage-hero h1 { font-size: 30px; }
}
/* Account details open in read mode, with an explicit edit action. */
.home.portal-page :is(#accountEditForm,.account-read-view)[hidden], .home.account-page #registrationCompany[hidden] { display: none; }
.home .account-summary-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 40px; margin: 28px 0 32px; }
.home .account-summary-grid > div { min-width: 0; }
.home .account-summary-grid dt { color: #677487; font-size: 11px; margin-bottom: 8px; font-weight: 600; }
.home .account-summary-grid dd { margin: 0; font-size: 15px; line-height: 1.7; color: #171b26; overflow-wrap: anywhere; white-space: pre-line; }
.home .account-summary-address { grid-column: 1 / -1; }
.home.account-page .registration-type { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.home.account-page .registration-type legend { font-size: 12px; font-weight: 600; color: #303849; margin-bottom: 12px; }
.home.account-page .registration-type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.home.account-page .registration-type-options label { display: flex; align-items: center; gap: 10px; padding: 14px; background: #fff; border: 1px solid #dfe3e9; border-radius: 8px; cursor: pointer; }
.home.account-page .registration-type-options input { width: 15px; height: 15px; min-height: 0; margin: 0; padding: 0; accent-color: #171b26; flex-shrink: 0; }
.home.account-page .registration-type-options label:has(input:checked) { border-color: #171b26; background: #f5f6f8; }
.home.account-page .registration-type p { font-size: 11px; color: #677487; line-height: 1.75; margin-top: 12px; }
.home .registration-errors { color: #a83d38; font-size: 12px; line-height: 1.75; margin-bottom: 20px; }
.home .registration-errors.validation-summary-valid { display: none; }
.home .registration-errors ul { padding-left: 18px; }
@media(max-width:600px) {
 .home .account-summary-grid { grid-template-columns: 1fr; gap: 22px; }
 .home .account-summary-grid dd { font-size: 14px; }
 .home .portal-form-actions { flex-wrap: wrap; gap: 12px; }
}
/* Invoice checkout and provider-managed saved payment methods. */
.home .payment-layout { max-width: 1280px; margin: 0 auto; padding: 20px 32px 80px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.home .payment-order { background: #f5f7f9; border: 1px solid #e5e8ef; border-radius: 16px; padding: 32px; }
.home .payment-order h1 { font-size: 32px; letter-spacing: -.04em; line-height: 1.2; margin-bottom: 20px; }
.home .payment-invoice-number { color: #677487; overflow-wrap: anywhere; font-size: 12px; }
.home .payment-amount { display: block; font-size: clamp(27px,3vw,36px); letter-spacing: -.04em; margin: 26px 0; overflow-wrap: anywhere; }
.home .payment-amount small { font-size: 14px; }
.home .payment-order dl { margin-bottom: 24px; }
.home .payment-order dl > div { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #dfe3e9; padding: 14px 0; font-size: 12px; }
.home .payment-order dd { margin: 0; }
.home .payment-order > a { display: block; color: #303849; font-size: 12px; margin-top: 18px; }
.home .payment-panel { border: 1px solid #e5e8ef; border-radius: 16px; padding: 36px; min-width: 0; }
.home :is(.payment-panel h2,.payment-empty h2) { font-size: 25px; letter-spacing: -.03em; margin-bottom: 16px; }
.home :is(.payment-panel > p,.payment-methods > p,.payment-empty p,.payment-result p) { font-size: 14px; color: #596477; line-height: 1.85; margin-bottom: 26px; }
.home .payment-security-note { background: #f3f7f4; border-radius: 10px; padding: 20px; margin: 24px 0; }
.home .payment-security-note strong { font-size: 13px; }
.home .payment-security-note p { font-size: 12px; line-height: 1.8; color: #596477; margin: 10px 0 0; }
.home .payment-field-note { font-size: 11px; color: #677487; margin-top: 8px; }
.home .payment-check-form { border-top: 1px solid #e5e8ef; padding-top: 24px; margin-top: 24px; }
.home .payment-methods { max-width: 1180px; margin: 0 auto; padding: 24px 32px 80px; }
.home :is(.payment-methods h1,.payment-result h1) { font-size: clamp(30px,3.5vw,44px); line-height: 1.15; letter-spacing: -.04em; margin-bottom: 22px; }
.home .payment-empty { border: 1px dashed #dfe3e9; background: #fafbfc; border-radius: 14px; padding: 36px; margin: 30px 0; }
.home .saved-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin: 30px 0; }
.home .saved-card { border: 1px solid #e5e8ef; background: #f7f8fa; border-radius: 14px; padding: 28px; }
.home .saved-card-brand { display: block; font-size: 12px; font-weight: 600; margin-bottom: 30px; }
.home .saved-card strong { font-size: 19px; letter-spacing: .04em; display: block; margin-bottom: 16px; }
.home .saved-card p { color: #677487; font-size: 12px; line-height: 1.7; margin-bottom: 8px; }
.home .saved-card form { margin-top: 24px; }
.home .payment-result { max-width: 760px; padding: 80px 32px; margin: 0 auto; }
.home .portal-payment-link { margin-bottom: 20px; }
.home .account-payment-methods { padding-top: 24px; font-size: 12px; }
.home .account-payment-methods a { color: #303849; }
@media(max-width:850px) { .home .payment-layout { grid-template-columns: 1fr; gap: 24px; } .home .saved-card-grid { grid-template-columns: 1fr; } }
@media(max-width:600px) { .home .payment-layout { padding: 12px 22px 48px; } .home :is(.payment-panel,.payment-order) { padding: 24px 20px; } .home .payment-methods { padding: 18px 22px 48px; } .home .payment-result { padding: 48px 22px; } .home .payment-empty { padding: 26px; } }

/* Portal catalog: comparable prices, explicit capacities, category accents. */
.home.portal-page .portal-catalog { margin: 40px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.home.portal-page .portal-catalog-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.home.portal-page .portal-catalog-eyebrow { display: block; font-size: 10px; font-weight: 700; letter-spacing: .13em; color: #6b7688; margin-bottom: 10px; }
.home.portal-page .portal-catalog .portal-upgrade-title { font-size: clamp(22px,2.3vw,30px); line-height: 1.25; letter-spacing: -.035em; margin: 0 0 10px; }
.home.portal-page .portal-catalog-heading p { margin: 0; font-size: 14px; line-height: 1.7; color: #6b7688; max-width: 650px; }
.home.portal-page .portal-catalog-count { flex-shrink: 0; font-size: 11px; color: #667085; border: 1px solid #e3e7ed; border-radius: 99px; padding: 8px 12px; background: #fff; }
.home.portal-page .portal-catalog .portal-plans-grid { grid-template-columns: repeat(var(--catalog-columns,3),minmax(0,1fr)); gap: 22px; margin-top: 0; }
.home.portal-page .portal-catalog-card { --catalog-accent: #317b9a; --catalog-tint: #ecf7fb; --catalog-glow: #d6eef7; position: relative; min-width: 0; overflow: hidden; background: #fff; border: 1px solid #dfe5ed; border-radius: 20px; padding: 28px; gap: 0; justify-content: flex-start; box-shadow: 0 5px 20px #17243a04; transition: border-color .2s,box-shadow .2s,transform .2s; }
.home.portal-page .portal-catalog-card--mint { --catalog-accent: #307a66; --catalog-tint: #eef8f3; --catalog-glow: #dcefe5; }
.home.portal-page .portal-catalog-card--violet { --catalog-accent: #7b5bab; --catalog-tint: #f4f0fb; --catalog-glow: #e8dff8; }
.home.portal-page .portal-catalog-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 124px; background: radial-gradient(ellipse at 95% 0,var(--catalog-glow),transparent 70%); pointer-events: none; }
.home.portal-page .portal-catalog-card:hover { transform: translateY(-3px); border-color: var(--catalog-accent); box-shadow: 0 14px 30px #17243a0b; }
.home.portal-page .portal-catalog-card:focus-within { border-color: var(--catalog-accent); }
.home.portal-page .portal-catalog-card-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.home.portal-page .portal-catalog-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: var(--catalog-accent); background: var(--catalog-tint); border: 1px solid var(--catalog-glow); }
.home.portal-page .portal-catalog-icon svg { width: 24px; height: 24px; }
.home.portal-page .portal-catalog-category { font-size: 10px; font-weight: 600; color: var(--catalog-accent); background: var(--catalog-tint); padding: 6px 10px; border-radius: 99px; }
.home.portal-page .portal-catalog-card-heading { position: relative; }
.home.portal-page .portal-catalog-product { display: block; font-size: 11px; color: #6b7688; margin-bottom: 7px; }
.home.portal-page .portal-catalog .portal-plan-option-name { font-size: 23px; letter-spacing: -.035em; line-height: 1.3; margin: 0 0 10px; overflow-wrap: anywhere; }
.home.portal-page .portal-catalog .portal-plan-option-desc { font-size: 13px; line-height: 1.6; }
.home.portal-page .portal-catalog-price-block { margin: 24px 0 20px; padding-bottom: 22px; border-bottom: 1px solid #edf0f4; }
.home.portal-page .portal-catalog-price-label { display: block; font-size: 10px; color: #6b7688; margin-bottom: 8px; }
.home.portal-page .portal-catalog .portal-plan-option-price { font-size: clamp(24px,2.3vw,33px); line-height: 1.25; display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; }
.home.portal-page .portal-catalog .portal-plan-option-price > span { font-size: 20px; font-weight: 600; }
.home.portal-page .portal-catalog .portal-plan-option-price small { font-size: 12px; margin-left: 2px; white-space: nowrap; }
.home.portal-page .portal-catalog-features { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 13px; }
.home.portal-page .portal-catalog-features li { display: flex; align-items: flex-start; gap: 10px; color: #4e5b6d; font-size: 13px; line-height: 1.5; }
.home.portal-page .portal-catalog-features svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; stroke: var(--catalog-accent); stroke-width: 1.7; fill: none; }
.home.portal-page .portal-catalog-action { margin-top: auto; padding-top: 10px; }
.home.portal-page .portal-catalog-action .btn { width: 100%; display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 13px 16px; white-space: normal; text-align: left; border-radius: 9px; }
.home.portal-page .portal-catalog-action .btn:focus-visible { outline: 3px solid var(--catalog-accent); outline-offset: 3px; }
@media (max-width: 1050px) {
 .home.portal-page .portal-catalog .portal-plans-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
 .home.portal-page .portal-catalog-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
 .home.portal-page .portal-catalog .portal-plans-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
 .home.portal-page .portal-catalog-card { padding: 24px; }
 .home.portal-page .portal-catalog .portal-plan-option-price { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
 .home.portal-page .portal-catalog-card { transition: none; }
 .home.portal-page .portal-catalog-card:hover { transform: none; }
}

.home.portal-page .portal-plans-grid--two { --catalog-columns: 2; }

/* Shared alert/confirmation dialogs for portal and payment actions. */
body.action-dialog-open { overflow: hidden; }
.home .action-dialog { width: min(460px,calc(100vw - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 0; color: #181d29; background: #fff; border: 1px solid #e2e6ed; border-radius: 22px; box-shadow: 0 24px 100px #11182730; overflow-y: auto; }
.home .action-dialog::backdrop { background: #10182780; backdrop-filter: blur(5px); }
.home .action-dialog-content { position: relative; padding: 34px; }
.home .action-dialog-close { position: absolute; right: 16px; top: 16px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #6b7688; cursor: pointer; }
.home .action-dialog-close:hover { background: #f1f3f6; color: #181d29; }
.home .action-dialog-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.home .action-dialog-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #eef6fa; color: #347b9b; margin-bottom: 22px; }
.home .action-dialog[data-kind="confirm"] .action-dialog-icon { background: #fbf3e8; color: #a87934; }
.home .action-dialog-icon svg { width: 27px; height: 27px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.home .action-dialog h2 { font-size: 24px; line-height: 1.3; letter-spacing: -.035em; margin: 0 0 12px; }
.home .action-dialog p { margin: 0; font-size: 14px; line-height: 1.75; color: #637085; white-space: pre-wrap; overflow-wrap: anywhere; }
.home .action-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #edf0f4; }
.home .action-dialog-actions .btn { min-width: 104px; padding: 12px 18px; font-size: 13px; border-radius: 9px; }
.home .action-dialog [hidden] { display: none !important; }
.home .action-dialog button:focus-visible { outline: 3px solid #9bb3c9; outline-offset: 3px; }
@media (max-width: 480px) {
 .home .action-dialog-content { padding: 28px 24px; }
 .home .action-dialog-actions .btn { flex: 1; min-width: 0; }
}

/* Application ownership stays visible throughout subscription management. */
.home.portal-page .portal-application-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 0 0 32px; }
.home.portal-page .portal-application-shortcut { display: flex; flex-direction: column; gap: 9px; padding: 20px 24px; border: 1px solid #dbe7ee; border-left: 4px solid #317b9a; border-radius: 13px; background: #f2f8fb; color: #182331; text-decoration: none; }
.home.portal-page .portal-application-shortcut--mint { border-color: #dce9e3; border-left-color: #307a66; background: #f0f7f3; }
.home.portal-page .portal-application-shortcut strong { font-size: 17px; letter-spacing: -.02em; }
.home.portal-page .portal-application-shortcut > span { display: flex; justify-content: space-between; font-size: 12px; color: #596c7c; }
.home.portal-page .portal-application-shortcut:focus-visible { outline: 3px solid #9bb3c9; outline-offset: 3px; }
.home.portal-page .portal-application-section { --application-color: #317b9a; --application-tint: #edf6fb; border: 1px solid #dfe5ed; border-radius: 20px; padding: 30px; margin-bottom: 32px; background: #fff; scroll-margin-top: 125px; }
.home.portal-page .portal-application-section--mint { --application-color: #307a66; --application-tint: #eef7f2; }
.home.portal-page .portal-application-heading { display: flex; align-items: center; gap: 18px; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid #edf0f4; }
.home.portal-page .portal-application-mark { display: grid; place-items: center; flex-shrink: 0; width: 60px; height: 60px; background: var(--application-tint); color: var(--application-color); border-radius: 17px; }
.home.portal-page .portal-application-mark svg { width: 30px; height: 30px; }
.home.portal-page .portal-application-heading h3 { font-size: clamp(23px,2.5vw,32px); line-height: 1.25; letter-spacing: -.035em; margin: 0 0 8px; }
.home.portal-page .portal-application-heading .portal-catalog-eyebrow { margin-bottom: 7px; color: var(--application-color); }
.home.portal-page .portal-application-heading p { color: #64748b; font-size: 13px; line-height: 1.7; margin: 0; }
.home.portal-page .portal-application-current { background: #f8fafb; box-shadow: none; margin-bottom: 20px; }
.home.portal-page .portal-application-current .company-badge { color: var(--application-color); background: var(--application-tint); }
.home.portal-page .portal-application-current h4 { font-size: 23px; }
.home.portal-page .portal-current-quotas { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0; padding: 0; }
.home.portal-page .portal-current-quotas li { font-size: 12px; padding: 8px 12px; border-radius: 8px; border: 1px solid #e3e8ee; background: #fff; color: #526173; }
.home.portal-page .portal-application-empty { background: #f8fafb; padding: 22px; border: 1px dashed #dfe5ed; border-radius: 12px; margin-bottom: 22px; }
.home.portal-page .portal-application-empty strong { font-size: 14px; }
.home.portal-page .portal-application-empty p { font-size: 13px; color: #64748b; margin: 9px 0; line-height: 1.7; }
.home.portal-page .portal-application-subtitle { font-size: 16px; margin: 26px 0 16px; }
.home.portal-page .portal-catalog-product-label { display: inline-block; background: var(--catalog-tint); color: var(--catalog-accent); padding: 7px 10px; border-radius: 7px; font-weight: 700; font-size: 12px; margin-bottom: 14px; }
.home.portal-page .portal-application-section .portal-catalog { margin-top: 28px; }
.home.portal-page .portal-application-section .portal-catalog .portal-upgrade-title { font-size: 23px; }
@media(max-width:640px) {
 .home.portal-page .portal-application-nav { grid-template-columns: minmax(0,1fr); }
 .home.portal-page .portal-application-section { padding: 22px 16px; border-radius: 16px; }
 .home.portal-page .portal-application-heading { align-items: flex-start; gap: 12px; }
 .home.portal-page .portal-application-mark { width: 44px; height: 44px; border-radius: 12px; }
 .home.portal-page .portal-application-mark svg { width: 24px; height: 24px; }
 .home.portal-page .portal-application-heading h3 { font-size: 23px; }
 .home.portal-page .portal-application-heading .portal-catalog-eyebrow { font-size: 8px; }
}

/* Payment wallet: provider-managed cards and clear setup/empty states. */
.home.payment-methods-page #mainContent { background: #f8fafb; }
.home.payment-methods-page .payment-methods { max-width: 1280px; padding-top: 20px; }
.home .payment-methods-heading { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.home .payment-methods-heading > div { max-width: 730px; }
.home .payment-methods-heading .section-eyebrow { color: #6a7789; font-size: 10px; letter-spacing: .13em; }
.home .payment-methods-heading h1 { margin: 16px 0; }
.home .payment-methods-heading p { font-size: 14px; color: #657286; line-height: 1.8; margin: 0; }
.home .payment-methods-heading > a { flex-shrink: 0; display: flex; gap: 24px; font-size: 12px; background: #fff; }
.home .payment-methods-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 26px; align-items: start; }
.home .payment-methods-main { min-width: 0; border: 1px solid #e1e7ed; background: #fff; padding: 28px; border-radius: 20px; }
.home .payment-wallet-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.home .payment-wallet-heading h2 { font-size: 21px; letter-spacing: -.03em; margin: 0 0 8px; }
.home .payment-wallet-heading p { font-size: 12px; color: #718094; margin: 0; }
.home .payment-wallet-count { background: #f2f5f7; color: #637286; padding: 7px 11px; border-radius: 99px; font-size: 11px; white-space: nowrap; }
.home .payment-wallet-empty { padding: 42px 26px; text-align: center; border: 1px dashed #dce5ed; border-radius: 15px; background: radial-gradient(ellipse at 50% 0,#eaf5fa,transparent 65%),#fbfcfd; }
.home .payment-wallet-symbol { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 26px; border: 1px solid #d5e6ee; background: #fff; color: #42829c; border-radius: 23px; box-shadow: 0 8px 24px #30728f0a; transform: rotate(-5deg); }
.home .payment-wallet-symbol svg { width: 34px; height: 34px; stroke: currentColor; stroke-width: 1.3; fill: none; }
.home .payment-wallet-state { display: block; font-size: 9px; font-weight: 700; letter-spacing: .12em; color: #6a7a8c; margin-bottom: 12px; }
.home .payment-wallet-empty h3 { font-size: clamp(23px,2.5vw,29px); letter-spacing: -.035em; line-height: 1.3; margin: 0 0 16px; }
.home .payment-wallet-empty p { color: #68778b; max-width: 440px; margin: 0 auto 26px; font-size: 13px; line-height: 1.8; }
.home .payment-wallet-empty .btn { font-size: 12px; gap: 18px; }
.home .payment-wallet-empty--error { background: #fcf9f5; border-color: #ebdfcc; }
.home.payment-methods-page .saved-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 0; }
.home.payment-methods-page .payment-wallet-card { min-width: 0; padding: 0; border: 1px solid #dce5ec; background: #fff; border-radius: 16px; overflow: hidden; }
.home .payment-card-face { position: relative; padding: 22px; background: radial-gradient(ellipse at 100% 0,#d6e9ee,transparent 70%),linear-gradient(135deg,#f3f8fa,#edf3f6); }
.home .payment-wallet-card:nth-child(even) .payment-card-face { background: radial-gradient(ellipse at 100% 0,#e0e3f3,transparent 70%),linear-gradient(135deg,#f6f7fc,#eff1f8); }
.home .payment-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home .payment-card-label { font-size: 8px; letter-spacing: .12em; font-weight: 600; color: #64788b; }
.home.payment-methods-page .saved-card-brand { font-size: 12px; font-weight: 800; letter-spacing: .02em; margin: 0; text-transform: uppercase; color: #354d63; overflow-wrap: anywhere; }
.home .payment-card-chip { display: block; width: 31px; height: 24px; color: #aaa080; margin: 24px 0 20px; }
.home .payment-card-chip svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1; fill: #f4eee0; }
.home.payment-methods-page .payment-card-number { display: flex; flex-wrap: wrap; gap: 7px; color: #2b4055; font-size: clamp(17px,1.6vw,21px); font-weight: 600; letter-spacing: .025em; margin-bottom: 24px; font-variant-numeric: tabular-nums; }
.home .payment-card-details { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.home .payment-card-details > div { min-width: 0; }
.home .payment-card-details > div > span { font-size: 8px; color: #758399; letter-spacing: .07em; }
.home.payment-methods-page .payment-card-details p { margin: 6px 0 0; color: #42566b; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.home .payment-card-management { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-top: 1px solid #dce5ec; }
.home .payment-card-management > span { font-size: 10px; color: #7b8797; }
.home.payment-methods-page .payment-card-management form { margin: 0; }
.home .payment-card-delete { display: flex; align-items: center; gap: 6px; font: inherit; font-size: 11px; color: #76505a; background: transparent; border: 0; padding: 7px 4px; cursor: pointer; white-space: nowrap; }
.home .payment-card-delete:hover { color: #a2344c; }
.home .payment-card-delete svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.home .payment-card-delete:focus-visible { outline: 3px solid #9bb3c9; outline-offset: 2px; border-radius: 5px; }
.home .payment-wallet-next { padding-top: 24px; border-top: 1px solid #edf0f4; margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.home .payment-wallet-next strong { font-size: 12px; }
.home .payment-wallet-next p { font-size: 11px; line-height: 1.75; color: #718094; margin: 8px 0 0; }
.home .payment-wallet-next a { flex-shrink: 0; font-size: 11px; }
.home .payment-methods-guide { background: #f0f5f3; border: 1px solid #e0e9e5; border-radius: 20px; padding: 28px; }
.home .payment-methods-guide > .section-eyebrow { color: #5f7b71; font-size: 9px; letter-spacing: .13em; }
.home .payment-methods-guide h2 { font-size: 24px; line-height: 1.3; letter-spacing: -.035em; margin: 14px 0 26px; }
.home .payment-methods-guide ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.home .payment-methods-guide li { display: flex; gap: 13px; }
.home .payment-methods-guide li > span { flex-shrink: 0; color: #6a8c7d; font-size: 10px; font-weight: 700; padding-top: 3px; }
.home .payment-methods-guide h3 { font-size: 13px; margin: 0 0 7px; }
.home .payment-methods-guide li p { color: #718477; font-size: 11px; line-height: 1.8; margin: 0; }
.home .payment-methods-trust { display: flex; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #dbe5df; }
.home .payment-methods-trust svg { width: 21px; height: 21px; flex-shrink: 0; stroke: #5b8170; stroke-width: 1.4; fill: none; }
.home .payment-methods-trust strong { font-size: 11px; line-height: 1.6; }
.home .payment-methods-trust p { font-size: 10px; line-height: 1.8; color: #718477; margin: 8px 0 0; }
.home .payment-methods-note { font-size: 10px; line-height: 1.8; color: #718477; margin: 20px 0; }
.home .payment-methods-help { display: flex; align-items: center; justify-content: space-between; color: #466d59; font-size: 11px; text-decoration: none; border-top: 1px solid #dbe5df; padding-top: 18px; }
.home .payment-methods-back { display: inline-block; font-size: 12px; color: #64748b; margin-top: 28px; text-decoration: none; }
@media(max-width:1050px) {
 .home .payment-methods-layout { grid-template-columns: minmax(0,1fr) 285px; gap: 20px; }
 .home.payment-methods-page .saved-card-grid { grid-template-columns: minmax(0,1fr); }
 .home .payment-wallet-next { align-items: flex-start; flex-direction: column; }
}
@media(max-width:800px) {
 .home .payment-methods-layout { grid-template-columns: minmax(0,1fr); }
 .home .payment-methods-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
 .home.payment-methods-page .saved-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
 .home.payment-methods-page .payment-methods { padding: 16px 20px 48px; }
 .home .payment-methods-main { padding: 22px 18px; border-radius: 16px; }
 .home .payment-wallet-empty { padding: 32px 18px; }
 .home .payment-methods-guide { padding: 24px; border-radius: 16px; }
 .home.payment-methods-page .saved-card-grid { grid-template-columns: minmax(0,1fr); }
}

/* Billing details begin in read mode; one shared form handles edits. */
.home.portal-page #accountEditForm[hidden], .home.portal-page #accountSummary[hidden] { display: none !important; }
.home.portal-page .portal-billing-summary { background: #fff; border: 1px solid #e2e7ed; border-radius: 16px; padding: 26px; margin: 24px 0; }
.home.portal-page .portal-billing-summary-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.home.portal-page .portal-billing-summary-heading h3 { font-size: 20px; letter-spacing: -.03em; margin: 0; }
.home.portal-page .portal-billing-summary-heading .portal-catalog-eyebrow { font-size: 9px; margin-bottom: 8px; }
.home.portal-page .portal-billing-summary dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px 28px; margin: 24px 0 0; }
.home.portal-page .portal-billing-summary dt { color: #6a7789; font-size: 11px; margin-bottom: 8px; }
.home.portal-page .portal-billing-summary dd { margin: 0; color: #273348; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-line; }
.home.portal-page .portal-billing-summary-address { grid-column: 1 / -1; }
.home.portal-page .portal-form-actions { gap: 12px; flex-wrap: wrap; }
@media(max-width:640px) {
 .home.portal-page .portal-billing-summary { padding: 22px; }
 .home.portal-page .portal-billing-summary dl { grid-template-columns: minmax(0,1fr); }
}


/* Portal Alert & Notification Refinements */
.home.portal-page .alert-box {
  display: none;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.25rem;
}
.home.portal-page .alert-box.is-visible {
  display: block;
}
.home.portal-page .alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}
.home.portal-page .alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.home.portal-page .alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* Portal Account Pending Email Notice */
.home.portal-page .portal-pending-email-notice {
  margin-top: 10px;
  padding: 12px 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  color: #92400e;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(217, 119, 6, 0.05);
}
.home.portal-page .portal-pending-email-notice strong {
  color: #78350f;
  font-weight: 700;
}
.home.portal-page .portal-pending-email-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}
.home.portal-page .portal-pending-email-actions form {
  display: inline;
  margin: 0;
  padding: 0;
}
.home.portal-page .portal-pending-email-actions .btn {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  line-height: 1.3;
  cursor: pointer;
  transition: all 0.2s ease;
}
.home.portal-page .portal-pending-email-actions form:first-child .btn {
  background: #ffffff;
  color: #92400e;
  border: 1px solid #f59e0b;
}
.home.portal-page .portal-pending-email-actions form:first-child .btn:hover {
  background: #fef3c7;
  color: #78350f;
  border-color: #d97706;
}
.home.portal-page .portal-pending-email-actions form:last-child .btn {
  background: #ffffff;
  color: #64748b;
  border: 1px solid #cbd5e1;
}
.home.portal-page .portal-pending-email-actions form:last-child .btn:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

/* Billing Cycle Switch & Multi-Period Pricing */
.home.portal-page .portal-cycle-switch {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  gap: 2px;
}
.home.portal-page .portal-cycle-toggle-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1.2;
}
.home.portal-page .portal-cycle-toggle-btn:hover {
  color: #0f172a;
}
.home.portal-page .portal-cycle-toggle-btn.is-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.06);
}
.home.portal-page .portal-cycle-tag {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  line-height: 1.2;
}

/* Visibility rules between Monthly and Yearly */
.home.portal-page .portal-price-yearly {
  display: none;
}
.home.portal-page .portal-price-monthly {
  display: block;
}
.home.portal-page .portal-btn-label-yearly {
  display: none;
}
.home.portal-page .portal-btn-label-monthly {
  display: inline;
}

.home.portal-page .portal-billing-yearly .portal-price-monthly {
  display: none;
}
.home.portal-page .portal-billing-yearly .portal-price-yearly {
  display: block;
}
.home.portal-page .portal-billing-yearly .portal-btn-label-monthly {
  display: none;
}
.home.portal-page .portal-billing-yearly .portal-btn-label-yearly {
  display: inline;
}

.home.portal-page .portal-price-saving-hint {
  display: block;
  font-size: 12px;
  color: #059669;
  font-weight: 600;
  margin-top: 4px;
}
.home.portal-page .portal-price-yearly-sub {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
}
.home.portal-page .portal-badge-savings {
  display: inline-block;
  color: #059669;
  font-weight: 700;
  font-size: 11px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: 6px;
  width: fit-content;
}


/* Portal Invoices Table: Package/Plan detail */
.portal-inv-planname {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}
.portal-inv-plansub {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.4;
}

/* Payment Methods: Add Card panel & actions */
.payment-wallet-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.payment-wallet-empty-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.add-card-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}
.add-card-panel.is-hidden {
  display: none !important;
}
.add-card-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
}
.add-card-header p {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 18px 0;
}
.add-card-form .form-group {
  margin-bottom: 16px;
}
.add-card-form .form-row {
  display: flex;
  gap: 14px;
}
.add-card-form .flex-1 {
  flex: 1;
}
.add-card-form .flex-2 {
  flex: 2;
}
.add-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
@media (max-width: 640px) {
  .add-card-form .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* Saved Cards Payment Section (Invoice Payment) */
.saved-cards-payment-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 28px;
}
.saved-cards-payment-header {
  margin-bottom: 20px;
}
.saved-cards-payment-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 4px 0 6px 0;
}
.saved-cards-payment-header p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}
.saved-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.saved-card-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}
.saved-card-option:hover {
  border-color: #94a3b8;
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.saved-card-option.is-selected,
.saved-card-option:has(input:checked) {
  border-color: #2563eb;
  background: #f0f7ff;
  box-shadow: 0 0 0 1px #2563eb, 0 4px 12px rgba(37, 99, 235, 0.08);
}
.saved-card-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.saved-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.saved-card-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}
.saved-card-brand-label {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.saved-card-digits {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.06em;
}
.saved-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #64748b;
}
.saved-card-bank {
  font-weight: 500;
}
.saved-card-expiry {
  color: #94a3b8;
}
.saved-card-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  color: transparent;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}
.saved-card-option.is-selected .saved-card-check,
.saved-card-option:has(input:checked) .saved-card-check {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}
.saved-cards-actions {
  margin-top: 8px;
}
.payment-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 32px 0 28px 0;
}
.payment-divider::before,
.payment-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px dashed #cbd5e1;
}
.payment-divider span {
  padding: 0 16px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.payment-cancel-form {
  margin-top: 14px;
}
.payment-cancel-order-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.payment-cancel-order-btn:hover {
  background: #ffe4e6;
  border-color: #fda4af;
  color: #be123c;
}


/* ==========================================================================
   Cloud SaaS & Invoices Refinements (tabLicenses & tabInvoices)
   ========================================================================== */
.portal-saas-cloud-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.portal-saas-cloud-header {
  margin-bottom: 20px;
}
.portal-saas-cloud-title-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.portal-badge-cloud {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #c7d2fe;
}
.portal-saas-cloud-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
.portal-saas-cloud-desc {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
  max-width: 820px;
}
.portal-saas-cloud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.portal-saas-cloud-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.portal-saas-cloud-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}
.portal-saas-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.portal-saas-card-plan {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.portal-saas-planname {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}
.portal-saas-productname {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}
.portal-saas-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}
.portal-saas-card-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.portal-saas-metric-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.portal-saas-card-metrics strong {
  font-size: 13px;
  color: #1e293b;
}
.portal-saas-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.portal-onpremise-section {
  margin-top: 32px;
}
.portal-subheading-group {
  margin-bottom: 16px;
}
.portal-subheading {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
}
.portal-subheading-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}
.badge-outline-success {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.portal-inv-paymentmethod {
  display: inline-block;
  font-size: 11px;
  color: #64748b;
  margin-top: 3px;
}

/* Deep-linked Addon Card Highlight Pulse */
.home.portal-page .portal-catalog-card.portal-card--highlighted {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.22), 0 14px 30px rgba(23, 36, 58, 0.12) !important;
  transform: translateY(-2px);
  animation: portalCardPulse 2s ease-in-out infinite alternate;
}
@keyframes portalCardPulse {
  0% { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2), 0 10px 25px rgba(23, 36, 58, 0.08); }
  100% { box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.38), 0 16px 32px rgba(23, 36, 58, 0.16); }
}

/* Customer support follows the portal content width and page gutters. */
.home .support-workspace {
  width: 100%;
  max-width: 1360px;
  box-sizing: border-box;
  margin: 32px auto 72px;
  padding-left: 32px;
  padding-right: 32px;
}
@media (max-width: 600px) {
  .home .support-workspace {
    margin-top: 28px;
    margin-bottom: 48px;
    padding-left: 22px;
    padding-right: 22px;
  }
}

/* Portal support typography matches portal headings and account forms. */
.home .support-workspace { font-size: 14px; }
.home .support-workspace .support-top h1 {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -.03em;
}
.home .support-workspace .support-top p {
  font-size: 14px;
  line-height: 1.6;
}
.home .support-workspace label { font-size: 12px; font-weight: 650; }
.home .support-workspace input:not([type=hidden]):not([type=checkbox]),
.home .support-workspace select,
.home .support-workspace textarea {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  min-height: 48px;
  padding: 13px 15px;
}
.home .support-workspace .support-button {
  font-size: 14px;
  font-weight: 600;
  min-height: 46px;
  line-height: 1.3;
  padding: 12px 24px;
}
.home .support-workspace .support-back { font-size: 14px; }
.home .support-workspace .support-eyebrow { font-size: 11px; }

/* Support list uses the portal table and navigation text scale. */
.home .support-workspace .support-queues a,
.home .support-workspace .support-subject,
.home .support-workspace .support-table td,
.home .support-workspace .support-pagination { font-size: 13px; }
.home .support-workspace .support-queues p { font-size: 12px; line-height: 1.6; }
.home .support-workspace .support-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}
.home .support-workspace .support-badge,
.home .support-workspace .support-priority,
.home .support-workspace .support-category,
.home .support-workspace .support-origin { font-size: 11px; font-weight: 650; }
.home .support-workspace .support-notifications,
.home .support-workspace .support-notice { font-size: 14px; }
.home .support-workspace .support-panel-header > span { font-size: 12px; }
.home .support-workspace .support-queues a { font-weight: 600; }
.home .support-workspace .support-panel-header h2 { font-size: 20px; font-weight: 700; }

/* Portal EDM E-Belge Stilleri */
.portal-inv-actions-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.portal-inv-help-text {
  font-size: 11px;
  color: #64748b;
}
