:root {
  --account-sidebar: #17171a;
  --account-green: #d8ff52;
  --account-soft: #e8e8ed;
}

.account-body { background: #f5f5f7; }
.account-shell { grid-template-columns: 276px minmax(0, 1fr); }
.account-sidebar {
  padding: 24px 16px 18px;
  background:
    radial-gradient(circle at 30% 0, rgb(128 103 255 / 17%), transparent 15rem),
    rgb(23 23 26 / 96%);
  box-shadow: 14px 0 45px rgb(0 0 0 / 10%);
  backdrop-filter: saturate(150%) blur(28px);
}
.account-brand { gap: 10px; padding-inline: 12px; }
.account-brand span { color: #98989f; font-family: var(--portal-display); font-size: 11px; letter-spacing: .1em; }
.account-workspace {
  gap: 7px;
  margin: 32px 4px 22px;
  padding: 16px;
  border-color: rgb(255 255 255 / 9%);
  border-radius: 16px;
  background: rgb(255 255 255 / 6%);
  box-shadow: inset 0 1px rgb(255 255 255 / 5%);
}
.account-workspace span, .account-workspace small { color: #98989f; font-size: 12px; }
.account-workspace strong { font-family: var(--portal-display); font-size: 15px; }
.account-nav { gap: 5px; }
.account-nav a {
  min-height: 46px;
  border-radius: 12px;
  color: #aeaeb4;
  font-size: 14px;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
  touch-action: manipulation;
}
.account-nav a:hover { background: rgb(255 255 255 / 8%); }
.account-nav a:active { transform: scale(.97); }
.account-nav a.is-active { background: #fff; color: #1d1d1f; box-shadow: 0 8px 24px rgb(0 0 0 / 20%); }
.account-profile { border-color: rgb(255 255 255 / 10%); }
.account-profile strong { font-size: 12px; }
.account-profile small { color: #8e8e93; font-size: 11px; }
.account-profile button { width: 34px; height: 34px; border-radius: 10px; background: rgb(255 255 255 / 8%); }
.account-avatar { background: #8d78ff; color: #fff; }

.account-main { max-width: 1540px; padding: 42px clamp(24px, 4vw, 66px) 90px; }
#portal-status, #portal-alert { top: 16px; border: 1px solid rgb(104 78 232 / 24%); box-shadow: 0 12px 38px rgb(20 20 24 / 10%); }
#portal-alert { border-color: rgb(179 38 30 / 40%); }
.admin-session-banner { border-color: rgb(104 78 232 / 22%); border-radius: 16px; background: #efebff; }

.account-page-head, .storefront-page-head { margin-bottom: 32px; }
.account-page-head h1, .storefront-page-head h1 { font-size: clamp(42px, 5vw, 66px); line-height: .94; }
.account-page-head p, .storefront-page-head p { max-width: 720px; font-size: 16px; line-height: 1.5; }
.account-kicker { color: #684ee8; font-family: var(--portal-display); font-size: 11px; letter-spacing: .1em; }
.account-section { margin-top: 46px; }
.account-section-head { margin-bottom: 17px; }
.account-section-head h2 { font-size: 28px; }
.account-section-head a, .next-step-card a, .operation-note a,
.support-card a, .billing-card a { color: #5f46d5; font-size: 14px; }
.account-limit strong { font-family: var(--portal-display); font-size: 30px; }
.account-limit span { font-size: 12px; }
.account-state { padding: 7px 10px; font-family: var(--portal-display); font-size: 10px; }

.account-hero {
  min-height: 270px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 20%, rgb(141 120 255 / 32%), transparent 20rem),
    #1c1c1f;
  box-shadow: 0 24px 70px rgb(20 20 24 / 18%);
}
.account-hero::after { right: -120px; bottom: -230px; border-color: rgb(255 255 255 / 6%); }
.account-hero h2 { font-size: clamp(38px, 5vw, 62px); }
.account-hero p { color: #b5b5ba; font-size: 16px; }
.account-usage-ring { background: conic-gradient(var(--account-green) var(--usage), rgb(255 255 255 / 14%) 0); box-shadow: 0 14px 35px rgb(0 0 0 / 24%); }
.account-usage-ring::before { background: #232327; }
.account-usage-ring strong { font-family: var(--portal-display); }
.account-usage-ring span { color: #b5b5ba; font-size: 10px; }
.account-metrics { gap: 10px; margin-top: 16px; border: 0; background: transparent; }
.account-metric {
  padding: 22px 24px;
  border: 1px solid rgb(255 255 255 / 76%);
  border-radius: 20px;
  background: rgb(255 255 255 / 72%);
  box-shadow: 0 10px 35px rgb(20 20 24 / 6%);
  backdrop-filter: blur(18px);
}
.account-metric:last-child { border: 1px solid rgb(255 255 255 / 76%); }
.account-metric span { font-size: 13px; }
.account-metric small { font-size: 11px; }
.account-metric strong { font-family: var(--portal-display); font-size: 34px; }

.dashboard-storefront-callout { padding: 20px; border-color: rgb(104 78 232 / 18%); border-radius: 20px; background: linear-gradient(125deg, #f0ecff, #ded6ff); box-shadow: 0 12px 38px rgb(80 60 180 / 9%); }
.dashboard-storefront-icon { border-radius: 16px; background: #1c1c1f; }
.dashboard-storefront-callout h2 { font-size: 21px; }
.dashboard-storefront-callout p { font-size: 13px; }
.dashboard-products { gap: 14px; }
.dashboard-product { padding: 12px; border-color: rgb(255 255 255 / 76%); border-radius: 19px; background: rgb(255 255 255 / 76%); box-shadow: 0 9px 28px rgb(20 20 24 / 5%); }
.dashboard-product img { border-radius: 14px; }
.dashboard-product span, .dashboard-product p { font-size: 11px; }
.dashboard-product h3 { font-size: 19px; }
.account-empty-state { padding: 26px; }
.account-empty-state > span { border-radius: 15px; background: #ebe6ff; }
.account-empty-state h3 { font-size: 19px; }
.account-empty-state p, .readiness-card p, .next-step-card p { font-size: 14px; }
.account-ready-grid { gap: 16px; }
.readiness-card, .next-step-card { padding: 28px; }
.next-step-card { background: linear-gradient(145deg, #f0edff, #ddd5ff); }
.next-step-card h3 { font-size: 27px; }

.product-list { gap: 18px; }
.product-card { opacity: .72; }
.product-card.is-active { border-color: rgb(104 78 232 / 22%); box-shadow: var(--portal-shadow); }
.product-summary { gap: 24px; padding: 18px; }
.product-art img { border-radius: 16px; }
.product-copy h2 { font-size: 30px; }
.product-copy p { font-size: 14px; line-height: 1.45; }
.capability-block { padding: 22px; border-color: var(--portal-line); background: rgb(247 247 249 / 72%); }
.capability-heading h3 { font-size: 17px; }
.capability-heading p, .capability-heading > span { font-size: 12px; }
.capability-grid { gap: 10px; }
.capability-row { min-height: 104px; border-color: var(--portal-line); border-radius: 15px; background: rgb(255 255 255 / 82%); }
.capability-icon { border-radius: 11px; background: #ebe6ff; color: #5f46d5; }
.capability-copy strong { font-size: 13px; }
.capability-copy small { font-size: 11px; }
.capability-copy em { font-family: var(--portal-font); font-size: 10px; }
.portal-switch { width: 38px; height: 22px; }
.portal-switch i { width: 38px; height: 22px; background: #c7c7cc; }
.portal-switch i::after { width: 18px; height: 18px; }
.portal-switch input:checked + i { background: #684ee8; }
.portal-switch input:checked + i::after { transform: translateX(16px); }

.operations-flow { gap: 1px; overflow: hidden; border-radius: 22px; background: rgb(255 255 255 / 9%); box-shadow: 0 18px 52px rgb(20 20 24 / 15%); }
.operations-flow article { padding: 25px; border: 0; background: #1c1c1f; }
.operations-flow span, .operations-flow small { color: #98989f; font-size: 11px; }
.operations-flow strong { font-size: 14px; }
.operations-flow b { font-family: var(--portal-display); }
.operations-grid { gap: 16px; }
.operation-rows article { padding: 17px 22px; border-color: var(--portal-line); }
.operation-rows small { font-size: 12px; }
.operation-note { padding: 28px; background: linear-gradient(145deg, #efebff, #ddd5ff); }
.operation-note h2 { font-size: 31px; }
.operation-note p { font-size: 14px; }

.support-grid { gap: 14px; }
.support-primary { padding: 32px; border-radius: 24px; background: #1c1c1f; box-shadow: 0 20px 55px rgb(20 20 24 / 16%); }
.support-primary h2 { font-size: 38px; }
.support-primary p, .support-card p { font-size: 13px; }
.support-primary small { font-size: 11px; }
.support-card { padding: 24px; }
.support-card h3 { font-size: 19px; }
.account-settings-card { padding: 26px; }
.account-settings-card p { font-size: 13px; }

@media (max-width: 920px) {
  .account-shell { grid-template-columns: 1fr; }
  .account-sidebar { width: min(310px, 88vw); transition: transform 260ms cubic-bezier(.2, .8, .2, 1); }
  .account-mobile-head { margin-bottom: 30px; padding: 8px 10px; border: 1px solid rgb(255 255 255 / 70%); border-radius: 18px; background: rgb(250 250 252 / 78%); box-shadow: 0 10px 30px rgb(20 20 24 / 7%); backdrop-filter: blur(22px); }
  .account-mobile-head button { min-height: 42px; padding-inline: 16px; border-color: var(--portal-line); border-radius: 999px; background: #fff; }
}

@media (max-width: 680px) {
  .account-main { padding: 14px 14px 60px; }
  .account-page-head h1, .storefront-page-head h1 { font-size: 44px; }
  .account-hero { min-height: 330px; padding: 30px; border-radius: 26px; }
  .account-metrics { grid-template-columns: 1fr; }
  .account-metric { border-right: 1px solid rgb(255 255 255 / 76%); }
  .product-summary { gap: 16px; }
  .capability-block { padding: 16px; }
  .operations-flow article { padding: 20px; }
}

@media (prefers-reduced-transparency: reduce) {
  .account-sidebar { background: #17171a; backdrop-filter: none; }
  .account-metric, .account-mobile-head { background: #fff; backdrop-filter: none; }
}
