
body:has(#account-view:not([hidden])) {
  background: #fdf8fb;
}
body:has(#account-view:not([hidden])) > .pro-header,
body:has(#account-view:not([hidden])) > footer { display: none; }
main:has(#account-view:not([hidden])) { width: 100%; padding: 0; }
.dashboard {
  --dash-ink: #3a1338;
  --dash-muted: #63516a;
  --dash-line: #eee1ee;
  --dash-tint: linear-gradient(108deg, #fae9f3, #efe2fa);
  min-height: 100svh;
  display: grid; grid-template-columns: clamp(192px, 18vw, 254px) minmax(0, 1fr);
  color: var(--dash-ink);
}
.dashboard h2 { font-size: clamp(1.15rem, 1.7vw, 1.45rem); letter-spacing: -.025em; }
.dashboard svg {
  width: 1.25em; height: 1.25em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.dashboard-sidebar {
  position: sticky; top: 0; align-self: start;
  min-height: 100svh; padding: 31px 15px;
  border-right: 1px solid #f0e2ef;
  background: radial-gradient(ellipse at -22% 102%, #ecd7fa, transparent 51%), #fcf4fa;
}
.dashboard-logo { display: block; width: min(65%, 108px); margin: 7px 0 clamp(32px, 6vw, 75px) 20px; }
.dashboard-nav { display: grid; gap: 5px; }
.dashboard-nav button, .dashboard-menu-toggle {
  display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 8px 15px;
  border-radius: 12px; color: var(--dash-ink); background: transparent; text-align: left; font-weight: 750;
  transition: background .18s ease, transform .18s ease;
}
.dashboard-nav button:hover, .dashboard-menu-toggle:hover { background: #f6e9f5; }
.dashboard-nav button[aria-current] { background: var(--dash-tint); color: #62256c; font-weight: 800; }
.dashboard-nav [data-account-go="overview"] use:last-child,
.dashboard-nav [data-account-go="overview"][aria-current] use:first-child { display: none; }
.dashboard-nav [data-account-go="overview"][aria-current] use:last-child { display: inline; fill: #a03b95; stroke: none; }
.dashboard-nav #logout { border-top: 1px solid #eadbec; margin-top: 13px; padding-top: 16px; border-radius: 0 0 12px 12px; }
.dashboard-content { width: min(100%, 1440px); min-width: 0; margin-inline: auto; padding: 18px clamp(23px, 3.2vw, 55px) 42px; }
.dashboard-top { display: flex; justify-content: flex-end; align-items: center; min-height: 49px; gap: 8px; }
.dashboard-menu-toggle { display: none; }
.dashboard-user { position: relative; max-width: min(100%, 270px); z-index: 3; }
.dashboard-user summary {
  display: flex; align-items: center; gap: 9px; min-height: 46px; border-radius: 12px;
  padding: 3px 6px; font-weight: 800; cursor: pointer; list-style: none;
}
.dashboard-user summary::-webkit-details-marker { display: none; }
.dashboard-user summary::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); margin: -3px 3px 0; }
.dashboard-user[open] summary::after { transform: rotate(225deg); margin-top: 3px; }
#account-initials {
  display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%;
  color: #663a70; background: var(--dash-tint); font-size: .75rem;
}
#session-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(40vw, 183px); }
.dashboard-user > div {
  position: absolute; top: calc(100% + 5px); right: 0; width: max-content; max-width: min(270px, 74vw);
  padding: 10px; display: grid; gap: 1px; border: 1px solid var(--dash-line);
  border-radius: 14px; background: #fffafd; box-shadow: 0 10px 25px #51264824;
}
.dashboard-user #session-email { padding: 5px 9px; color: var(--dash-muted); }
.dashboard-user button { min-height: 40px; padding: 5px 9px; text-align: left; color: var(--dash-ink); background: transparent; border-radius: 8px; }
.dashboard-user button:hover { background: #f6e9f5; }
.dashboard-heading { margin: clamp(10px, 3vw, 32px) 0 23px; }
.dashboard-heading h1 { font-size: clamp(1.85rem, 3.25vw, 2.7rem); }
.dashboard-heading p { margin-top: 4px; color: var(--dash-muted); font-size: .98rem; }
.dashboard-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: clamp(86px, 18%, 175px) minmax(0, 1fr);
  align-items: center; gap: clamp(13px, 2.2vw, 34px); min-height: 146px;
  padding: 14px clamp(12px, 3.5vw, 43px); margin-bottom: 20px; border-radius: 24px;
  background: radial-gradient(ellipse at 95% 100%, #ebd5fa88, transparent 53%), var(--dash-tint);
}
.dashboard-hero-crown { display: none; }
.dashboard .dashboard-hero-crown {
  position: absolute; z-index: -1; right: -19px; bottom: -30px;
  width: clamp(110px, 18vw, 240px); height: auto; aspect-ratio: 1;
  fill: #fff5ff48; stroke: #fff8ff76; stroke-width: .25; transform: rotate(-22deg); pointer-events: none;
}
.dashboard[data-membership-state="active"] .dashboard-hero-crown,
.dashboard[data-membership-state="unlimited"] .dashboard-hero-crown { display: block; }
.dashboard-mila { position: relative; display: grid; justify-items: center; border-right: 1px solid #d4b7e6; }
.dashboard-mila mila-orb { display: block; width: clamp(65px, 11vw, 136px); aspect-ratio: 1; animation: dashboard-float 5s ease-in-out infinite; filter: drop-shadow(2px 8px 9px #c55bc233); }
.dashboard[data-membership-state="active"] .dashboard-mila::after,
.dashboard[data-membership-state="unlimited"] .dashboard-mila::after {
  content: ''; position: absolute; top: 4px; right: 11%; width: 21px; height: 25px; pointer-events: none;
  background: linear-gradient(#f7a9cf,#c355a7) 1px 0 / 3px 11px no-repeat,
              linear-gradient(#f7a9cf,#c355a7) 9px 4px / 3px 13px no-repeat,
              linear-gradient(#f7a9cf,#c355a7) 17px 7px / 3px 11px no-repeat;
  transform: rotate(31deg); border-radius: 4px;
}
.dashboard-mila canvas { display: block; width: 100%; height: 100%; }
.dashboard-hero h2 { font-size: clamp(1.28rem, 2.65vw, 2.15rem); margin: 7px 0 2px; }
.dashboard-hero p { color: var(--dash-muted); }
.dashboard-hero-tag {
  display: inline-flex; align-items: center; gap: 7px; padding: 0 11px 0 0;
  border-radius: 999px; background: linear-gradient(110deg, #f7dbed, #e6cdf5); color: #5e2268; font-weight: 800; font-size: .82rem;
}
.dashboard-hero-tag svg {
  width: 32px; height: 26px; padding: 5px 7px; border-radius: 999px;
  background: linear-gradient(142deg, #ff9ac5, #d15aa7); fill: #fff; stroke: none;
}
.dashboard-link, .dashboard-plan-action {
  min-height: 38px; padding: 6px 12px; border-radius: 999px;
  color: #652570; background: #f3e5f6; font-weight: 800; font-size: .85rem;
}
.dashboard-link:hover, .dashboard-plan-action:hover { background: #ecd8f5; }
.dashboard-hero .dashboard-link { margin-top: 9px; background: #fff9ff; }
.dashboard-summary {
  display: grid; gap: 13px; grid-template-columns: minmax(230px, .87fr) minmax(0, 1.13fr);
}
.dashboard-card, .dashboard .checkout-main > section {
  min-width: 0; border: 1px solid var(--dash-line); border-radius: 20px;
  background: #fffafd; padding: clamp(14px, 2vw, 24px);
  box-shadow: 0 6px 16px #65365d07;
}
.dashboard-plan { grid-row: span 2; display: flex; flex-direction: column; gap: 16px; }
.dashboard-plan-body { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-block: auto; }
.dashboard-icon {
  display: grid; place-items: center; width: 47px; height: 47px; flex: 0 0 47px;
  border-radius: 15px; color: #951567; background: linear-gradient(145deg, #fff0fa, #f8dced);
}
.dashboard-icon svg { font-size: 1.35rem; }
.dashboard-plan-icon { width: 57px; height: 57px; flex-basis: 57px; border-radius: 17px; }
.dashboard-plan-icon svg { font-size: 1.65rem; fill: #d64c98; stroke: #fcabcf; stroke-width: .6; }
.dashboard-plan-body > div { min-width: 0; }
#plan-name { font-size: 1.14rem; }
#plan-expiry, #plan-period { color: var(--dash-muted); font-size: .85rem; }
.dashboard-status { width: fit-content; padding: 3px 9px; border-radius: 999px; background: #f1e8f4; color: #653976; font-size: .76rem; font-weight: 800; }
.dashboard-status[data-tone="active"] { background: #e3f4e7; color: #245c38; }
.dashboard-status[data-tone="expired"] { background: #faeadf; color: #813b24; }
.dashboard-plan-action { width: 100%; min-height: 44px; background: var(--dash-tint); }
.dashboard .section-heading { flex-wrap: wrap; }
.dashboard-method {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  border-top: 1px solid var(--dash-line); margin-top: 7px; padding-top: 8px;
}
.dashboard-method strong, .dashboard-method b { display: block; }
.dashboard-method b { color: #7c2768; font-size: .88rem; white-space: nowrap; }
.dashboard-method small { display: block; color: var(--dash-muted); line-height: 1.3; }
#dashboard-methods .dashboard-method { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
#dashboard-methods .dashboard-icon { width: 39px; height: 39px; border-radius: 12px; }
#dashboard-methods .dashboard-icon svg { font-size: 1.16rem; }
#dashboard-methods b { background: #fbe8f5; border-radius: 999px; padding: 4px 8px; }
.dashboard-method-note { margin-top: 8px; color: var(--dash-muted); font-size: .77rem; }
.dashboard[data-membership-state="unlimited"] .dashboard-plan { grid-row: auto; }
.dashboard-facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 10px 0 0; }
.dashboard-billing-body { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.dashboard-billing-body .dashboard-facts { flex: 1; margin: 0; }
.dashboard-billing-body .dashboard-facts > div + div { border-left: 1px solid #e9d7ec; padding-left: 10px; }
.dashboard-facts dt { color: var(--dash-muted); font-size: .85rem; }
.dashboard-facts dd { font-weight: 800; margin: 2px 0 0; overflow-wrap: anywhere; }
.dashboard-payment-history, .dashboard-security, .dashboard-checkout { max-width: 900px; }
.dashboard-security p, #checkout-review-panel p { margin: 10px 0; color: var(--dash-muted); }
.dashboard-checkout .checkout-steps { margin-top: 0; }
.dashboard .history-section { margin-top: 16px; }
.dashboard .history-section > .section-heading { justify-content: flex-start; }
.dashboard .history-section #open-history { margin-inline-start: auto; }
.dashboard[data-account-view="overview"] .history-row:nth-child(n+3) { display: none; }
.dashboard .history-row { padding: 10px 12px; border: 1px solid var(--dash-line); border-radius: 14px; background: #fdf7fc; }
.dashboard .history-row > div:first-child { position: relative; padding-inline-start: 48px; }
.dashboard-request-icon { position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 11px; }
.dashboard-request-icon svg { font-size: 1.13rem; }
.dashboard .start-small { display: flex; gap: 15px 22px; align-items: start; justify-content: space-between; flex-wrap: wrap; margin-top: 16px; }
.dashboard .start-actions { display: flex; flex-wrap: wrap; max-width: 560px; margin: 0; }
.dashboard .start-actions .secondary { min-height: 43px; }
.dashboard .start-actions small { width: 100%; }
.dashboard-foot { display: flex; justify-content: flex-end; margin-top: 15px; }
@keyframes dashboard-float { 50% { transform: translateY(-4px) rotate(2deg); } }
@keyframes dashboard-in { from { opacity: .35; transform: translateY(5px); } }
.dashboard [data-dashboard-panel]:not([hidden]) { animation: dashboard-in .26s ease both; }
@media (max-width: 1000px) {
  .dashboard-summary { grid-template-columns: minmax(190px, .85fr) minmax(0, 1.15fr); gap: 10px; }
  .dashboard-plan-body { gap: 8px; }
}
@media (max-width: 780px) {
  .dashboard { display: block; }
  .dashboard-content { padding: 9px 16px 28px; }
  .dashboard-top { justify-content: space-between; }
  .dashboard-menu-toggle { display: flex; padding-inline: 8px; }
  .dashboard-sidebar {
    display: none; position: absolute; z-index: 5; top: 56px; left: 12px; min-height: 0;
    width: min(260px, calc(100% - 24px)); padding: 11px; border: 1px solid var(--dash-line);
    border-radius: 16px; box-shadow: 0 12px 27px #51264829;
  }
  .dashboard:has(#account-menu-toggle[aria-expanded="true"]) .dashboard-sidebar { display: block; }
  .dashboard-logo { width: 77px; margin: 3px 0 10px 10px; }
  .dashboard-heading { margin-bottom: 16px; }
}
@media (max-width: 570px) {
  .dashboard-content { padding-inline: 12px; }
  .dashboard-summary { grid-template-columns: minmax(0, 1fr); }
  .dashboard-plan { grid-row: auto; gap: 12px; }
  .dashboard-hero { grid-template-columns: 66px minmax(0,1fr); margin-bottom: 12px; min-height: 122px; border-radius: 19px; }
  .dashboard-hero p { font-size: .85rem; }
  .dashboard-mila mila-orb { width: 60px; }
  .dashboard .dashboard-hero-crown { right: -17px; bottom: -14px; opacity: .52; }
  .dashboard-mila::after { display: none; }
  #dashboard-methods .dashboard-icon { width: 32px; height: 32px; }
  #dashboard-methods b { padding-inline: 5px; font-size: .79rem; }
  .dashboard-billing-body { gap: 8px; }
  .dashboard-billing-body > .dashboard-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .dashboard .start-actions .secondary { width: 100%; padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard [data-dashboard-panel]:not([hidden]), .dashboard-mila mila-orb { animation: none; }
}

