﻿/* Authenticated account and subscription page. */
.account-hero { position: relative; overflow: hidden; padding: 48px 0 38px; border-bottom: 1px solid #dfe6f3; background: linear-gradient(135deg, #fff 0%, #f3f6ff 100%); }
.account-hero::after { content: ""; position: absolute; right: max(-140px, calc((100vw - 1320px) / 2 - 120px)); bottom: -210px; width: 520px; height: 320px; border-radius: 50%; background: rgba(33,90,232,.12); filter: blur(72px); pointer-events: none; }
.account-hero-inner { position: relative; z-index: 1; width: min(820px, calc(100% - 40px)); text-align: center; }
.account-hero h1 { margin: 0; color: var(--color-text); font-family: inherit; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.08; }
.account-hero p:last-child { max-width: 680px; margin: 18px auto 0; color: var(--color-text-muted); line-height: 1.7; }
.account-section { min-height: 600px; padding: 32px 0 88px; background: #f5f7fb; }
.account-container { width: min(1180px, calc(100% - 40px)); }
.account-dashboard { display: grid; gap: 20px; }
.account-plan-card, .account-content-card, .account-sign-in, .account-activation { border: 1px solid #dce3ef; border-radius: 20px; background: #fff; box-shadow: 0 14px 42px rgba(25,45,85,.07); }
.account-plan-card, .account-content-card { min-width: 0; padding: 30px; }
.account-plan-card { overflow: hidden; border-color: #cbd8f5; background: linear-gradient(145deg, #fff 0%, #fff 68%, #f2f6ff 100%); }
.account-activation { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 24px; padding: 22px 26px; border-color: #c8d5f7; background: #eef3ff; }
.account-activation-body { min-width: 0; flex: 1; }
.account-activation[hidden], .account-sign-in[hidden], .account-dashboard[hidden] { display: none; }
.account-activation[data-state="success"] { border-color: #a7f3d0; background: #ecfdf5; }
.account-activation[data-state="failed"] { border-color: #fecaca; background: #fef2f2; }
.account-activation[data-state="delayed"] { border-color: #fde68a; background: #fffbeb; }
.account-activation-icon { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: #215ae8; color: #fff; font-weight: 800; }
.account-activation[data-state="success"] .account-activation-icon { background: #059669; }
.account-activation[data-state="failed"] .account-activation-icon { background: #dc2626; }
.account-activation[data-state="delayed"] .account-activation-icon { background: #d97706; }
.account-activation h2 { margin: 1px 0 6px; font-size: 1.08rem; }
.account-activation p { margin: 0; color: #4f566b; line-height: 1.6; }
.account-activation small { display: block; margin-top: 7px; color: #667499; }
.account-activation-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.account-activation-actions[hidden], .account-activation-actions [hidden] { display: none; }
.account-activation-actions .button { min-height: 42px; padding: 10px 18px; }
.account-sign-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 34px; }
.account-sign-in h2 { margin: 0 0 8px; font-size: 1.45rem; }
.account-sign-in p { max-width: 650px; margin: 0; color: var(--color-text-muted); line-height: 1.65; }
.account-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.account-plan-title { display: flex; min-width: 0; align-items: center; gap: 15px; }
.account-plan-icon, .account-section-icon { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: #eaf0ff; color: #215ae8; }
.account-plan-icon svg, .account-section-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.account-section-heading { display: flex; align-items: flex-start; gap: 15px; }
.account-section-heading > div { min-width: 0; flex: 1; }
.account-kicker { margin: 0 0 7px; color: #667499; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.account-card-heading h2, .account-section-heading h2 { margin: 0; color: #172033; font-size: 1.45rem; line-height: 1.25; }
.account-section-heading p { margin: 8px 0 0; color: var(--color-text-muted); line-height: 1.55; }
.account-status-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 5px 12px; border-radius: 999px; background: #d1fae5; color: #047857; font-size: .76rem; font-weight: 800; }
.account-status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(4,120,87,.1); }
.account-status-pill.is-free { background: #e8e9f1; color: #4f566b; }
.account-plan-details { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .8fr); gap: 18px; margin-top: 24px; }
.account-plan-benefit { display: flex; min-height: 82px; align-items: center; margin: 0; padding: 20px 22px; border: 1px solid #dbe5fb; border-radius: 15px; background: #f4f7ff; color: #24304a; font-size: 1.02rem; font-weight: 750; line-height: 1.5; }
.account-plan-details dl { display: grid; gap: 0; margin: 0; overflow: hidden; border: 1px solid #e2e7f0; border-radius: 15px; background: #fff; }
.account-plan-details dl div { display: flex; min-height: 41px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.account-plan-details dl div[hidden] { display: none; }
.account-plan-details dl div:only-child { min-height: 82px; }
.account-plan-details dl div + div { border-top: 1px solid #e8edf5; }
.account-plan-details dl div[hidden] + div { border-top: 0; }
.account-plan-details dt { flex: 0 0 auto; color: #667499; font-size: .85rem; white-space: nowrap; }
.account-plan-details dd { flex: 0 0 auto; margin: 0; color: #1a1a1a; font-size: .88rem; font-weight: 700; text-align: right; white-space: nowrap; }
.account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #e6eaf2; }
.account-actions .button { min-height: 46px; }
.account-text-link { padding: 10px 6px; color: #215ae8; font-weight: 700; text-decoration: none; }
.account-section-heading { margin-bottom: 22px; }
.account-muted { margin: 0; padding: 18px 0; color: #667499; }
.account-inline-error { margin: 18px 0 0; color: #b42318; }
.account-success-message { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: #ecfdf5; color: #047857; }
.account-subscription-item { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px; border: 1px solid #e1e7f0; border-radius: 16px; background: #f8faff; }
.account-subscription-item h3 { margin: 10px 0 8px; font-size: 1.08rem; }
.account-subscription-item p { margin: 4px 0; color: #667499; font-size: .86rem; }
.account-orders-wrap { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid #e3e8f1; border-radius: 14px; }
.account-orders-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.account-orders-table th, .account-orders-table td { padding: 14px 16px; border-bottom: 1px solid #e8edf4; text-align: left; vertical-align: middle; }
.account-orders-table th { background: #f7f9fc; color: #667499; font-size: .76rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.account-orders-table tbody tr:last-child td { border-bottom: 0; }
.account-orders-table tbody tr:hover { background: #fafcff; }
.account-orders-table td { color: #262626; font-size: .86rem; }
.account-orders-table code { color: #262626; font-size: .78rem; }
.account-order-status { display: inline-flex; padding: 5px 10px; border: 1px solid transparent; border-radius: 999px; background: #e8e9f1; color: #4f566b; font-size: .72rem; font-weight: 800; }
.account-order-status.is-paid, .account-order-status.is-completed, .account-order-status.is-active { background: #d1fae5; color: #047857; }
.account-order-status.is-pending { background: #fef3c7; color: #92400e; }
.account-order-status.is-failed, .account-order-status.is-expired { background: #fee2e2; color: #b91c1c; }
.account-load-more { margin: 22px auto 0; }
.account-load-more[hidden] { display: none; }
@media (max-width: 700px) {
  .account-hero { padding: 58px 0 42px; }
  .account-container { width: calc(100% - 28px); }
  .account-section { padding: 40px 0 64px; }
  .account-plan-card, .account-content-card { padding: 24px 20px; }
  .account-sign-in, .account-subscription-item { align-items: stretch; flex-direction: column; }
  .account-plan-details { grid-template-columns: 1fr; gap: 20px; }
  .account-actions { align-items: stretch; flex-direction: column; }
  .account-actions .button, .account-actions .account-text-link { width: 100%; text-align: center; }
}

/* Minimal single-column account center. */
.account-hero-compact { padding: 34px 0 30px; border-bottom-color: #e8ebf1; background: #fff; }
.account-hero-compact::after { display: none; }
.account-hero-compact .account-hero-inner { width: min(1080px, calc(100% - 40px)); text-align: left; }
.account-hero-compact h1 { max-width: 760px; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.035em; }
.account-hero-compact p:last-child { max-width: 680px; margin: 8px 0 0; }
.account-section { padding: 40px 0 88px; background: #f7f8fb; }
.account-layout { display: block; width: min(1080px, calc(100% - 40px)); }
.account-main { min-width: 0; }
.account-dashboard { gap: 24px; }
.account-plan-card, .account-content-card, .account-sign-in, .account-activation {
  border-color: #e4e7ec;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.04);
}
.account-plan-card, .account-content-card { padding: 28px; }
.account-plan-card { border-color: #d7e0f2; background: #fff; }
.account-plan-card, .account-content-card { scroll-margin-top: 96px; }
.account-overview-grid { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 24px; scroll-margin-top: 96px; }
.account-overview-grid .account-plan-card, .account-overview-grid .account-content-card { height: 100%; }
.account-profile-card { background: #fff; }
.account-profile-card .account-section-heading { align-items: center; }
.account-profile-avatar { display: grid; flex: 0 0 56px; width: 56px; height: 56px; place-items: center; overflow: hidden; border: 1px solid #dce3f0; border-radius: 50%; background: #eef3ff; color: #174ea6; font-size: 1.2rem; font-weight: 800; }
.account-profile-avatar-image { display: block; object-fit: cover; }
.account-profile-avatar-image[hidden], .account-profile-avatar[hidden] { display: none; }
.account-profile-details { display: grid; gap: 0; margin: 20px 0 0; border-top: 1px solid #eaecf0; }
.account-profile-details div { min-width: 0; padding: 16px 0; border-bottom: 1px solid #eaecf0; }
.account-profile-details dt { color: #667499; font-size: .76rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.account-profile-details dd { margin: 6px 0 0; overflow-wrap: anywhere; color: #1f2430; font-size: .94rem; font-weight: 700; }
.account-upgrade-banner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 28px 30px; border: 0; border-radius: 16px; background: #175cd3; box-shadow: 0 8px 24px rgba(23,92,211,.16); }
.account-upgrade-banner[hidden] { display: none; }
.account-upgrade-banner .account-kicker, .account-upgrade-banner h2 { color: #fff; }
.account-upgrade-banner h2 { margin: 0; font-size: 1.3rem; }
.account-upgrade-banner p:last-child { max-width: 680px; margin: 8px 0 0; color: #dbe7ff; line-height: 1.55; }
.account-upgrade-banner .button { flex: 0 0 auto; border-color: #fff; background: #fff; color: #174ea6; box-shadow: none; }
.account-upgrade-banner .button:hover { border-color: #eef4ff; background: #eef4ff; color: #123f88; }
.account-danger-card { overflow: hidden; scroll-margin-top: 96px; border: 1px solid #f1c0bd; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.account-danger-card > .account-section-heading { margin: 0; padding: 24px 28px; border-bottom: 1px solid #f6d7d5; background: #fff; }
.account-danger-card h2, .account-danger-card h3 { color: #912018; }
.account-danger-icon { background: #fff0ef; color: #d92d20; }
.account-danger-body { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 26px 28px; }
.account-danger-body h3 { margin: 0 0 8px; font-size: 1.08rem; }
.account-danger-body p { max-width: 760px; margin: 0; color: #667085; line-height: 1.6; }
.account-danger-body ul { margin: 14px 0 0; padding-left: 20px; color: #667085; font-size: .86rem; line-height: 1.65; }
.account-delete-button { border: 1px solid #b42318; background: #d92d20; color: #fff; }
.account-delete-button:hover { border-color: #912018; background: #b42318; }
.account-dialog { width: min(520px, calc(100% - 28px)); max-height: calc(100vh - 40px); padding: 0; overflow: auto; border: 0; border-radius: 22px; background: transparent; box-shadow: 0 24px 80px rgba(15,23,42,.24); }
.account-dialog::backdrop { background: rgba(15,23,42,.58); backdrop-filter: blur(4px); }
.account-dialog-panel { position: relative; margin: 0; padding: 32px; border: 1px solid #e1e6ef; border-radius: 22px; background: #fff; }
.account-dialog-close { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #667085; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.account-dialog-close:hover { background: #f2f4f7; }
.account-dialog-icon { display: grid; width: 46px; height: 46px; margin-bottom: 18px; place-items: center; border-radius: 14px; background: #e9f0ff; color: #215ae8; font-size: 1.2rem; font-weight: 800; }
.account-dialog-icon-danger { background: #fee4e2; color: #d92d20; }
.account-dialog h2 { margin: 0; color: #172033; font-size: 1.45rem; }
.account-dialog h2 + p { margin: 10px 0 0; color: #667085; line-height: 1.6; }
.account-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.account-delete-preview { margin-top: 20px; padding: 16px; border: 1px solid #e3e8f1; border-radius: 13px; background: #f8faff; color: #344054; }
.account-delete-preview p { margin: 7px 0 0; color: #667085; font-size: .85rem; line-height: 1.55; }
.account-dialog-field { display: grid; gap: 7px; margin-top: 18px; color: #344054; font-size: .84rem; font-weight: 750; }
.account-dialog-field input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cfd7e6; border-radius: 10px; background: #fff; color: #172033; font: inherit; }
.account-dialog-field input:focus { outline: 3px solid rgba(33,90,232,.16); border-color: #6f93ed; }
.account-dialog-note { margin: 16px 0 0; color: #79504a; font-size: .8rem; line-height: 1.55; }
@media (max-width: 900px) {
  .account-overview-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .account-upgrade-banner, .account-danger-body { align-items: stretch; flex-direction: column; }
  .account-upgrade-banner .button, .account-delete-button { width: 100%; text-align: center; }
  .account-dialog-panel { padding: 28px 20px 22px; }
  .account-dialog-actions { flex-direction: column-reverse; }
  .account-dialog-actions .button { width: 100%; }
}
@media (max-width: 620px) {
  .account-hero-compact { padding: 30px 0 26px; }
  .account-hero-compact .account-hero-inner, .account-layout { width: calc(100% - 28px); }
  .account-hero-compact h1 { font-size: 2rem; line-height: 1.16; }
  .account-plan-card, .account-content-card { padding: 22px 18px; }
  .account-upgrade-banner { padding: 24px 20px; }
  .account-danger-card > .account-section-heading, .account-danger-body { padding: 22px 20px; }
}

/* Product settings layout inspired by premium SaaS account centers. */
.account-section { padding: 52px 0 96px; background: #f5f6f8; }
.account-layout { width: min(1080px, calc(100% - 64px)); }
.account-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.account-page-heading .eyebrow { margin: 0 0 10px; }
.account-page-heading h1 { margin: 0; color: #15171c; font-size: clamp(2.15rem, 4vw, 3.25rem); letter-spacing: -.045em; line-height: 1.08; }
.account-page-heading p:last-child { max-width: 680px; margin: 12px 0 0; color: #686f7d; font-size: 1rem; line-height: 1.65; }
.account-dashboard { gap: 28px; }
.account-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.account-plan-card, .account-content-card, .account-danger-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid #dfe3ea;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(22,28,45,.045);
}
.account-panel-header { display: flex; min-height: 72px; align-items: center; gap: 12px; margin: 0; padding: 16px 22px; border-bottom: 1px solid #e7e9ee; background: #fafbfc; }
.account-panel-header > div { min-width: 0; flex: 1; }
.account-panel-header h2 { margin: 0; color: #20232a; font-size: 1.18rem; font-weight: 750; line-height: 1.3; }
.account-panel-header p { margin: 5px 0 0; color: #7a818f; font-size: .86rem; line-height: 1.45; }
.account-panel-header .account-section-icon, .account-panel-header .account-plan-icon { flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid #e1e7f5; border-radius: 10px; background: #f1f5ff; color: #2762dc; }
.account-panel-header .account-section-icon svg, .account-panel-header .account-plan-icon svg { width: 18px; height: 18px; }
.account-panel-body { padding: 28px; }
.account-profile-body { min-height: 250px; padding: 24px; }
.account-profile-summary { display: flex; align-items: flex-start; gap: 20px; }
.account-profile-avatar { flex-basis: 64px; width: 64px; height: 64px; border: 3px solid #fff; background: #eaf0ff; box-shadow: 0 0 0 1px #d8dfeb, 0 8px 22px rgba(31,62,126,.12); font-size: 1.25rem; }
.account-profile-details { flex: 1; margin: 0; border: 0; }
.account-profile-details div { padding: 0 0 16px; border: 0; }
.account-profile-details div + div { padding-top: 14px; border-top: 1px solid #eceef2; }
.account-profile-details dt { color: #8a909c; font-size: .8rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.account-profile-details dd { margin-top: 6px; color: #24272e; font-size: 1rem; font-weight: 700; }
.account-profile-usage { margin-top: 4px; padding-top: 18px; border-top: 1px solid #eceef2; }
.account-plan-header .account-status-pill { margin-left: auto; }
.account-plan-body { display: flex; min-height: 250px; flex-direction: column; padding: 24px; }
.account-current-plan { display: flex; align-items: center; color: #737a87; }
.account-current-plan strong { color: #24272e; font-size: 1.18rem; }
.account-plan-subscription { margin-top: 18px; padding-top: 18px; border-top: 1px solid #eceef2; }
.account-plan-subscription .account-muted { padding: 0; }
.account-subscription-item-compact { padding: 0; border: 0; border-radius: 0; background: transparent; }
.account-subscription-item-compact .account-subscription-dates { display: grid; gap: 6px; }
.account-subscription-item-compact p { margin: 0; }
.account-plan-details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.account-plan-benefit, .account-plan-details dl { min-height: 78px; border: 1px solid #e4e7ed; border-radius: 12px; background: #f8f9fb; }
.account-plan-benefit { padding: 16px; color: #252a35; font-size: .9rem; }
.account-plan-details dl div, .account-plan-details dl div:only-child { min-height: 76px; padding: 14px; }
.account-plan-details dt { color: #7a818f; }
.account-plan-details dd { color: #252a35; }
.account-plan-upgrade { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; padding: 16px; border: 1px solid #d8e4ff; border-radius: 12px; background: #f2f6ff; }
.account-plan-upgrade[hidden] { display: none; }
.account-plan-upgrade > div { display: grid; gap: 4px; min-width: 0; }
.account-plan-upgrade strong { color: #204aa8; font-size: .9rem; }
.account-plan-upgrade span { color: #61729a; font-size: .78rem; line-height: 1.45; }
.account-plan-upgrade .button { flex: 0 0 auto; min-height: 40px; padding: 9px 16px; box-shadow: none; }
.account-actions { margin-top: 16px; padding-top: 16px; }
.account-actions .button { min-height: 44px; }
.account-subscription-item { border-color: #e3e6ec; background: #fafbfc; }
.account-orders-wrap { border-color: #e3e6ec; border-radius: 12px; }
.account-orders-table th { background: #f8f9fb; }
.account-danger-card { border-color: #e9d5d3; }
.account-danger-card .account-panel-header { background: #fffafa; border-bottom-color: #f0dddb; }
.account-danger-body { padding: 28px; }
.account-danger-body h3 { color: #8f2520; }
.account-delete-button { min-height: 44px; padding-inline: 20px; border-radius: 999px; }
.account-delete-button.account-delete-trigger {
  width: auto;
  min-height: 34px;
  gap: 7px;
  padding: 7px 12px;
  border-color: #a91f24;
  border-radius: 8px;
  background: #c6282d;
  color: #fff;
  font-size: .78rem;
  line-height: 1;
  box-shadow: none;
}
.account-delete-button.account-delete-trigger:hover { border-color: #bd2b30; background: #d53237; }
.account-delete-trigger svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

@media (max-width: 900px) {
  .account-layout { width: min(720px, calc(100% - 32px)); }
  .account-page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 28px; }
  .account-overview-grid { grid-template-columns: 1fr; }
  .account-profile-body { min-height: 0; }
}
@media (max-width: 620px) {
  .account-section { padding: 32px 0 64px; }
  .account-layout { width: calc(100% - 24px); }
  .account-page-heading { gap: 18px; }
  .account-page-heading h1 { font-size: 2rem; }
  .account-panel-header { min-height: 74px; padding: 18px 20px; }
  .account-profile-body { padding: 24px 20px; }
  .account-profile-summary { align-items: flex-start; flex-direction: column; }
  .account-profile-details { width: 100%; }
  .account-plan-body, .account-panel-body, .account-danger-body { padding: 22px 20px; }
  .account-plan-details { grid-template-columns: 1fr; }
  .account-plan-upgrade { align-items: stretch; flex-direction: column; }
  .account-plan-upgrade .button { width: 100%; text-align: center; }
}


