:root {
--bg-pattern: #fff;
--text-primary: #333;
--text-secondary: #4b5563;
--text-tertiary: #6b7280;
--surface-muted: #e5e7eb;
--surface-strong: #fff;
--surface-hero: #fff;
--surface-card: #fff;
--shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.08);
--shadow-hero: 0 16px 40px rgba(0, 0, 0, 0.12);
--accent: #0071e3;
--accent-strong: #005bbf;
--accent-muted: rgba(0, 113, 227, 0.08);
--success: #10b981;
--warning: #f97316;
--radius-lg: 24px;
--radius-md: 18px;
--radius-sm: 12px;
--transition: 0.35s ease;
--danger: #ef4444;
--info: #38bdf8;
--account-text-primary: var(--text-primary);
--account-text-secondary: var(--text-secondary);
--account-text-tertiary: var(--text-tertiary);
--account-surface-card: var(--surface-card);
--account-surface-strong: var(--surface-strong);
--account-outline: var(--surface-muted);
--account-outline-strong: rgba(99, 102, 241, 0.35);
--account-shadow-sm: 0 18px 36px rgba(15, 23, 42, 0.12);
--account-shadow-md: var(--shadow-soft);
--account-shadow-lg: var(--shadow-hero);
--account-radius-xl: 42px;
--account-radius-lg: var(--radius-lg);
--account-radius-md: var(--radius-md);
--account-radius-sm: var(--radius-sm);
--account-radius-pill: 999px;
--account-success: var(--success);
--account-warning: var(--warning);
--account-danger: var(--danger);
--account-info: var(--info);
--account-font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
--account-grid-gap: clamp(24px, 4vw, 36px);
--account-section-gap: clamp(40px, 6vw, 64px);

}

.darkmode {
  --bg-pattern: #1e1e1e;
  --text-primary: #e2e8f0;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --surface-muted: rgba(255, 255, 255, 0.08);
  --surface-strong: #242424;
  --surface-hero: #1e1e1e;
  --surface-card: #242424;
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-hero: 0 16px 40px rgba(0, 0, 0, 0.55);
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-muted: rgba(56, 189, 248, 0.14);
}

body.account-body {
margin: 0;
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background: var(--bg-pattern);
color: var(--text-primary);
min-height: 100vh;
transition: background 0.45s ease, color 0.45s ease;
display: flex;
flex-direction: column;
}

body.account-body.account-body--overview .account-wrapper {
  padding-top: 40px;
}

.account-main {
  flex: 1;
  padding: 0 18px 120px;
}

.account-shell {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 40px;
}

.account-shell__content {
  flex: 1;
}

.account-shell .account-wrapper {
  margin: 0;
  max-width: none;
  padding-top: 0;
}

.account-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--account-text-primary);
  border: 1px solid var(--surface-muted);
  border-radius: var(--account-radius-lg);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(14px);
  padding: 24px;
  width: 100%;
  max-width: 640px;
}

.darkmode .account-sidebar {
  background: rgba(17, 24, 39, 0.7);
  border-color: rgba(125, 211, 252, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  color: var(--account-text-secondary);
}

.account-sidebar__intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--surface-muted);
}

.account-sidebar__label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--account-text-tertiary);
  margin: 0 0 4px;
}

.account-sidebar__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: var(--accent);
}

.account-sidebar__hint {
  margin: 4px 0 0;
  color: var(--account-text-tertiary);
  line-height: 1.5;
  max-width: 320px;
}

.account-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0;
}

.account-sidebar__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--account-text-primary);
  text-decoration: none;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.account-sidebar__link .material-symbols-outlined {
  font-size: 20px;
  color: var(--account-text-tertiary);
}

.account-sidebar__link:hover {
  background: rgba(99, 102, 241, 0.08);
  transform: translateX(4px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
}

.account-sidebar__link--active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.18));
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 16px 36px rgba(99, 102, 241, 0.16);
}

.account-sidebar__link--active .material-symbols-outlined {
  color: var(--accent);
}

.account-sidebar__cta {
  margin-top: auto;
  padding: 14px;
  border-radius: var(--account-radius-md);
  background: rgba(34, 197, 94, 0.08);
  color: var(--account-text-secondary);
  border: 1px solid rgba(34, 197, 94, 0.2);
  box-shadow: 0 14px 36px rgba(34, 197, 94, 0.15);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-sidebar__cta .account-button--inline {
  width: fit-content;
  align-self: flex-start;
}

.account-sidebar__cta .material-symbols-outlined {
  font-size: 18px;
}

.darkmode .account-sidebar__link {
  background: rgba(59, 130, 246, 0.05);
  color: var(--account-text-secondary);
}

.darkmode .account-sidebar__link:hover {
  background: rgba(59, 130, 246, 0.12);
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.18);
}

.darkmode .account-sidebar__link--active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(99, 102, 241, 0.18));
  border-color: rgba(56, 189, 248, 0.35);
}

.darkmode .account-sidebar__cta {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.35);
  color: var(--account-text-secondary);
}

@media (min-width: 1024px) {
  .account-shell {
    flex-direction: row;
    align-items: stretch;
  }

  .account-sidebar {
    max-width: 320px;
    position: sticky;
    top: 28px;
    min-height: calc(100vh - 120px);
  }
}

.account-wrapper {
max-width: 1160px;
margin: 0 auto;
padding-top: 56px;
display: flex;
flex-direction: column;
gap: 56px;
}

.account-hero {
position: relative;
overflow: hidden;
border-radius: var(--radius-lg);
padding: clamp(40px, 6vw, 64px);
background: var(--surface-hero);
border: 1px solid var(--surface-muted);
box-shadow: var(--shadow-hero);
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: clamp(32px, 6vw, 56px);
isolation: isolate;
}

.account-hero.account-hero--overview {
  background: var(--surface-card);
  box-shadow: var(--account-shadow-sm);
  border: 1px solid var(--surface-muted);
}

.darkmode .account-hero.account-hero--overview {
  background: var(--surface-strong);
  border-color: rgba(125, 211, 252, 0.35);
}

.account-hero.account-hero--overview::before,
.account-hero.account-hero--overview::after {
  display: none;
}

.account-hero::before,
.account-hero::after {
  display: none;
}

.hero-content {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
gap: 24px;
}

.profile-pill {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 10px 18px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.22);
color: var(--accent-strong);
font-weight: 600;
font-size: 14px;
letter-spacing: 0.02em;
backdrop-filter: blur(6px);
border: 1px solid rgba(255, 255, 255, 0.35);
width: fit-content;
}

.darkmode .profile-pill {
background: rgba(15, 23, 42, 0.55);
border-color: rgba(125, 211, 252, 0.35);
color: #bae6fd;
}

.profile-pill .material-symbols-outlined {
font-size: 20px;
}

.account-heading {
margin: 0;
font-size: clamp(36px, 6vw, 52px);
font-weight: 800;
letter-spacing: -0.02em;
background: linear-gradient(120deg, #1a73e8 0%, #0071e3 35%, #6366f1 80%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}

.account-subheading {
  margin: 0;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.account-subheading__nowrap {
  white-space: nowrap;
}

.account-alert {
margin-top: 18px;
padding: 14px 18px;
border-radius: var(--radius-sm);
border: 1px solid rgba(239, 68, 68, 0.35);
background: rgba(248, 113, 113, 0.15);
color: #b91c1c;
font-weight: 600;
}

.account-alert--info {
border-color: rgba(59, 130, 246, 0.35);
background: rgba(59, 130, 246, 0.12);
color: #1d4ed8;
}

.darkmode .account-alert {
border-color: rgba(248, 113, 113, 0.45);
background: rgba(153, 27, 27, 0.35);
color: #fecaca;
}

.darkmode .account-alert--info {
border-color: rgba(125, 211, 252, 0.4);
background: rgba(37, 99, 235, 0.35);
color: #bfdbfe;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions--stack {
  gap: 12px;
}

.hero-actions--stack .hero-btn {
  flex: none;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
gap: 10px;
padding: 14px 24px;
border-radius: 999px;
font-weight: 600;
text-decoration: none;
border: 1px solid transparent;
transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.hero-btn-primary {
background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
color: #fff;
box-shadow: 0 24px 45px rgba(26, 115, 232, 0.35);
}

.hero-btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 32px 60px rgba(26, 115, 232, 0.45);
}

.hero-btn-secondary {
background: rgba(255, 255, 255, 0.12);
border-color: rgba(255, 255, 255, 0.4);
color: var(--text-primary);
}

.hero-btn-secondary:hover {
transform: translateY(-2px);
background: rgba(255, 255, 255, 0.24);
}

.darkmode .hero-btn-secondary {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(125, 211, 252, 0.35);
  color: #e0f2fe;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.hero-stats.hero-stats--condensed {
  gap: clamp(18px, 4vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hero-stats.hero-stats--condensed .stat-meta {
  font-size: 0.9rem;
}

.stat-card {
  display: flex;
  gap: 16px;
align-items: flex-start;
padding: 22px 24px;
border-radius: var(--radius-sm);
background: rgba(255, 255, 255, 0.22);
border: 1px solid rgba(255, 255, 255, 0.38);
backdrop-filter: blur(12px);
box-shadow: 0 25px 55px rgba(15, 23, 42, 0.15);
transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition),
background var(--transition);
}

.darkmode .stat-card {
background: rgba(15, 23, 42, 0.65);
border-color: rgba(125, 211, 252, 0.22);
}

.stat-card--link {
position: relative;
color: inherit;
text-decoration: none;
cursor: pointer;
}

.stat-card--link:hover,
.stat-card--link:focus-visible {
transform: translateY(-2px);
border-color: rgba(26, 115, 232, 0.45);
box-shadow: 0 30px 65px rgba(15, 23, 42, 0.2);
}

.stat-card--link:focus-visible {
outline: 3px solid rgba(59, 130, 246, 0.6);
outline-offset: 4px;
}

.darkmode .stat-card--link:hover,
.darkmode .stat-card--link:focus-visible {
border-color: rgba(125, 211, 252, 0.45);
box-shadow: 0 30px 65px rgba(8, 47, 73, 0.45);
}

.stat-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 48px;
height: 48px;
border-radius: 16px;
background: var(--accent-muted);
color: var(--accent-strong);
flex-shrink: 0;
}

.stat-icon .material-symbols-outlined {
font-size: 26px;
}

.stat-content {
display: flex;
flex-direction: column;
gap: 4px;
}

.stat-label {
margin: 0;
font-size: 14px;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
color: var(--text-secondary);
}

.stat-value {
margin: 0;
font-size: 22px;
font-weight: 700;
color: var(--text-primary);
}

.stat-meta {
margin: 0;
font-size: 14px;
color: var(--text-secondary);
line-height: 1.5;
}

.account-section {
display: flex;
flex-direction: column;
gap: 24px;
}

.account-section-header {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
gap: 12px;
}

.account-section-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: -8px;
}

.account-section-greeting {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
}

.account-section h2 {
margin: 0;
font-size: clamp(26px, 4vw, 32px);
font-weight: 700;
color: var(--text-primary);
}

.account-section p.section-hint {
margin: 0;
color: var(--text-secondary);
font-size: 15px;
}

.account-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 24px;
}

.account-card {
position: relative;
display: flex;
gap: 18px;
align-items: flex-start;
text-decoration: none;
padding: 26px 24px;
border-radius: var(--radius-md);
background: var(--surface-card);
border: 1px solid var(--surface-muted);
box-shadow: var(--shadow-soft);
color: inherit;
overflow: hidden;
transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.account-card::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(135deg, rgba(26, 115, 232, 0.1), transparent 55%);
opacity: 0;
transition: opacity var(--transition);
pointer-events: none;
}

.account-card:hover {
transform: translateY(-6px);
box-shadow: 0 32px 80px rgba(30, 64, 175, 0.28);
border-color: rgba(37, 99, 235, 0.45);
}

.account-card:hover::before {
opacity: 1;
}

.account-card-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 54px;
height: 54px;
border-radius: 16px;
background: var(--accent-muted);
color: var(--accent-strong);
flex-shrink: 0;
}

.account-card .material-symbols-outlined {
font-size: 28px;
}

.account-card-content {
display: flex;
flex-direction: column;
gap: 8px;
}

.account-card-title {
margin: 0;
font-size: 19px;
font-weight: 700;
color: var(--text-primary);
}

.account-card-description {
margin: 0;
font-size: 15px;
line-height: 1.6;
color: var(--text-secondary);
}

.account-grid.account-grid--compact .account-card-description {
  font-size: 14px;
  line-height: 1.5;
}

.account-card-stat {
font-size: 13px;
font-weight: 600;
color: var(--accent-strong);
}

.darkmode .account-card-stat {
color: #7dd3fc;
}

.account-card-badge {
display: inline-flex;
align-items: center;
gap: 6px;
margin-top: 6px;
font-size: 13px;
font-weight: 600;
color: var(--accent-strong);
}

.darkmode .account-card-badge {
color: #7dd3fc;
}

.account-info-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 20px;
}

.info-card {
padding: 28px;
border-radius: var(--radius-md);
background: var(--surface-card);
border: 1px solid var(--surface-muted);
box-shadow: var(--shadow-soft);
display: flex;
flex-direction: column;
gap: 16px;
}

.info-card h3 {
margin: 0;
font-size: 18px;
font-weight: 700;
color: var(--text-primary);
display: flex;
align-items: center;
gap: 10px;
}

.info-card p,
.info-card ul {
margin: 0;
color: var(--text-secondary);
font-size: 15px;
line-height: 1.65;
}

.info-card ul {
padding-left: 20px;
display: grid;
gap: 8px;
}

.info-card .material-symbols-outlined {
font-size: 22px;
color: var(--accent-strong);
}

.highlight {
color: var(--success);
font-weight: 600;
}

.warm {
color: var(--warning);
font-weight: 600;
}

.account-support {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 24px;
}

.support-card {
padding: 28px;
border-radius: var(--radius-md);
background: var(--surface-card);
border: 1px solid var(--surface-muted);
box-shadow: var(--shadow-soft);
display: flex;
flex-direction: column;
gap: 16px;
}

.support-card h3 {
margin: 0;
font-size: 18px;
font-weight: 700;
color: var(--text-primary);
}

.support-card p {
margin: 0;
color: var(--text-secondary);
font-size: 15px;
line-height: 1.65;
}

.support-actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
}

.support-actions a {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 12px 18px;
border-radius: 999px;
text-decoration: none;
font-weight: 600;
font-size: 14px;
border: 1px solid transparent;
color: var(--text-primary);
background: rgba(255, 255, 255, 0.15);
transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.support-actions a:hover {
transform: translateY(-2px);
border-color: var(--accent-strong);
background: rgba(255, 255, 255, 0.3);
}

.darkmode .support-actions a {
background: rgba(15, 23, 42, 0.6);
color: #e0f2fe;
}

.account-logout {
margin-top: 12px;
padding: 32px;
border-radius: var(--radius-md);
background: var(--surface-card);
border: 1px solid var(--surface-muted);
box-shadow: var(--shadow-soft);
display: flex;
flex-direction: column;
align-items: center;
gap: 18px;
}

.logout-button {
position: relative;
display: inline-flex;
align-items: center;
gap: 12px;
border: none;
border-radius: 999px;
padding: 14px 28px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
color: #fff;
box-shadow: 0 24px 45px rgba(239, 68, 68, 0.35);
transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logout-button:hover {
transform: translateY(-2px);
box-shadow: 0 32px 60px rgba(239, 68, 68, 0.45);
}

.logout-button:focus-visible {
outline: 3px solid rgba(248, 113, 113, 0.65);
outline-offset: 3px;
}

.logout-button svg {
width: 22px;
height: 22px;
fill: currentColor;
}

#logoutMessage {
font-weight: 600;
font-size: 15px;
min-height: 20px;
color: var(--text-secondary);
text-align: center;
}

.darkmode #logoutMessage {
color: #f8fafc;
}

.account-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.5rem 1rem;
  border-radius: var(--account-radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.35);
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.account-back-link:hover,
.account-back-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(26, 115, 232, 0.55);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.25);
}

.account-back-link:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.35);
  outline-offset: 4px;
}

.darkmode .account-back-link {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(125, 211, 252, 0.35);
  color: #bae6fd;
}

.account-back-link .material-symbols-outlined {
  font-size: 1.2rem;
}

.account-subpage-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  text-align: center;
}

.account-subpage-header .profile-pill {
  margin-top: 0.75rem;
}

.account-subpage-header .account-heading {
  font-size: clamp(28px, 4.5vw, 36px);
}

.account-subpage-header .account-subheading {
  max-width: 620px;
}

.account-hero.account-hero--subpage {
  padding: clamp(22px, 4.5vw, 38px) clamp(28px, 5vw, 44px);
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 4vw, 28px);
}

.account-hero.account-hero--compact {
  padding: clamp(22px, 4vw, 32px);
  gap: clamp(12px, 3vw, 20px);
}

.account-hero.account-hero--compact .account-subpage-header {
  gap: 0.85rem;
}

.account-hero.account-hero--compact .profile-pill {
  margin-top: 0.4rem;
}

.account-hero.account-hero--compact .account-heading {
  font-size: clamp(24px, 4vw, 32px);
}

.account-hero.account-hero--compact .account-subheading {
  font-size: 16px;
  line-height: 1.55;
  max-width: 560px;
}

.account-hero.account-hero--subpage .hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.account-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(24px, 4vw, 32px);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--surface-muted);
  box-shadow: var(--shadow-soft);
}

.darkmode .account-panel {
  border-color: rgba(125, 211, 252, 0.35);
}

.account-panel__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.account-panel__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.account-panel__description {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.account-panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--account-radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.35);
  color: var(--text-secondary);
}

.darkmode .account-pill {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(125, 211, 252, 0.35);
  color: #cbd5f5;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.account-form__row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.account-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.account-form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.account-input,
.account-select,
.account-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.account-input:focus,
.account-select:focus,
.account-textarea:focus {
  outline: none;
  border-color: rgba(26, 115, 232, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.account-input[disabled],
.account-select[disabled],
.account-textarea[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
}

.darkmode .account-input,
.darkmode .account-select,
.darkmode .account-textarea {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(125, 211, 252, 0.35);
  color: #e2e8f0;
}

.account-form-hint {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.account-form-error {
  font-size: 0.8rem;
  color: var(--danger);
}

.account-form-success {
  font-size: 0.8rem;
  color: var(--success);
}

.account-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.account-action-bar--end {
  justify-content: flex-end;
}

.account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--account-radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.account-button--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  box-shadow: 0 18px 42px rgba(26, 115, 232, 0.35);
}

.account-button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 55px rgba(26, 115, 232, 0.45);
}

.account-button--ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.35);
  color: var(--text-secondary);
}

.account-button--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 115, 232, 0.5);
  color: var(--accent-strong);
}

.darkmode .account-button--ghost {
  border-color: rgba(125, 211, 252, 0.35);
  color: #cbd5f5;
}

.darkmode .account-button--ghost:hover {
  color: #7dd3fc;
}

.account-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--account-radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.account-status-badge--success {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

.account-status-badge--warning {
  background: rgba(249, 115, 22, 0.15);
  color: #c2410c;
}

.account-status-badge--info {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.account-status-badge--danger {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.darkmode .account-status-badge--success {
  color: #34d399;
  background: rgba(34, 197, 94, 0.18);
}

.darkmode .account-status-badge--warning {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.2);
}

.darkmode .account-status-badge--info {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.22);
}

.darkmode .account-status-badge--danger {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.22);
}

.account-tone--success {
  color: #047857;
}

.account-tone--warning {
  color: #c2410c;
}

.account-tone--info {
  color: #1d4ed8;
}

.account-tone--danger {
  color: #b91c1c;
}

.darkmode .account-tone--success {
  color: #34d399;
}

.darkmode .account-tone--warning {
  color: #fb923c;
}

.darkmode .account-tone--info {
  color: #93c5fd;
}

.darkmode .account-tone--danger {
  color: #fca5a5;
}

.account-empty-state {
  display: grid;
  gap: 1rem;
  text-align: center;
  padding: clamp(24px, 4vw, 32px);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.45);
  color: var(--text-secondary);
}

.darkmode .account-empty-state {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(125, 211, 252, 0.35);
  color: #cbd5f5;
}

.account-list {
  display: grid;
  gap: 1rem;
}

.account-list-item {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.darkmode .account-list-item {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(125, 211, 252, 0.25);
}

.account-list-item__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.account-list-item__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.account-list-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.account-list-item__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.account-meta-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.account-meta-grid--stats {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.support-tiles {
  gap: 1.25rem;
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.support-links .account-button {
  flex: none;
}

.account-meta-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--surface-muted);
  box-shadow: var(--shadow-soft);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.darkmode .account-meta-tile {
  background: var(--surface-card);
  border-color: var(--surface-muted);
  color: var(--text-secondary);
}

.account-meta-tile strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.account-meta-tile--stat {
  gap: 0.2rem;
  min-height: 120px;
}

.account-meta-tile__label {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.account-meta-tile__value {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.account-section-divider {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
}

.account-highlight-card {
  display: grid;
  gap: 1rem;
  padding: clamp(24px, 4vw, 32px);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.12), rgba(99, 102, 241, 0.16));
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--text-primary);
}

.darkmode .account-highlight-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(56, 189, 248, 0.25));
  border-color: rgba(125, 211, 252, 0.35);
}

.account-highlight-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.account-highlight-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.account-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.account-inline-actions .account-button {
  flex: none;
}

.account-button--icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.account-inline-feedback {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  min-height: 1.2em;
}

.account-meta-tile--logout {
  gap: 0.75rem;
}

.account-meta-tile--logout .account-button {
  align-self: flex-start;
}

.account-inline-actions small {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.account-gallery {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 320px));
  justify-content: center;
}

.account-gallery-card {
  position: relative;
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem;
  max-width: 320px;
  width: 100%;
  justify-self: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--account-shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}

.account-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 65px rgba(37, 99, 235, 0.22);
}

.darkmode .account-gallery-card {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(125, 211, 252, 0.35);
}

.account-gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.75);
  padding: 0.75rem;
}

.account-gallery-card__media-link {
  display: block;
}

.account-gallery-card__title-link {
  color: inherit;
  text-decoration: none;
}

.account-gallery-card__title-link:hover,
.account-gallery-card__title-link:focus {
  text-decoration: underline;
}

.account-gallery-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.account-gallery-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.account-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.18);
  color: var(--accent-strong);
  margin: 0 auto;
}

.darkmode .account-empty-icon {
  background: rgba(37, 99, 235, 0.35);
  color: #bfdbfe;
}

.account-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.account-table thead {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.account-table th,
.account-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  text-align: left;
}

.account-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.05);
}

.darkmode .account-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.12);
}

.account-table tbody tr:last-child td {
  border-bottom: none;
}

.account-table caption {
  text-align: left;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

@media (max-width: 860px) {
  .account-inline-actions {
    justify-content: center;
  }
  .account-panel {
    padding: 24px;
  }
}



.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.account-panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.account-pill--accent {
  border-color: rgba(26, 115, 232, 0.4);
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-strong);
}

.darkmode .account-pill--accent {
  border-color: rgba(125, 211, 252, 0.45);
  background: rgba(37, 99, 235, 0.35);
  color: #bfdbfe;
}

.account-table-wrapper {
  margin-top: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.7);
  overflow-x: auto;
}

.darkmode .account-table-wrapper {
  border-color: rgba(125, 211, 252, 0.35);
  background: rgba(15, 23, 42, 0.55);
}

.account-order-list {
  margin-top: 1.5rem;
  display: grid;
  gap: clamp(24px, 3vw, 32px);
}

.sale-card-order-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  line-height: 1.45;
  color: #6b7280;
}

.sale-card-order-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.sale-card-order-label {
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.01em;
}

.sale-card-order-value {
  font-weight: 700;
  color: #0f172a;
}

.sale-card-order-divider {
  color: #cbd5e1;
  font-weight: 600;
}

.darkmode .sale-card-order-meta,
.darkmode .sale-card-order-label {
  color: #cbd5f5;
}

.darkmode .sale-card-order-value {
  color: #e5e7eb;
}

.darkmode .sale-card-order-divider {
  color: #475569;
}


.account-order {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 28px);
  padding: clamp(26px, 3.5vw, 36px);
  border-radius: var(--account-radius-lg);
  background: linear-gradient(175deg, #f9fbff 0%, #eef3ff 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 28px 48px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.account-order.is-status-popover-open {
  overflow: visible;
  z-index: 10;
}

.account-order.is-status-popover-open::before,
.account-order.is-status-popover-open::after {
  -webkit-clip-path: inset(0 round var(--account-radius-lg));
  clip-path: inset(0 round var(--account-radius-lg));
}

.account-order::before,
.account-order::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.25;
  filter: blur(0);
  pointer-events: none;
  transform: translate3d(0, 0, 0);
}


.account-order::before {
  width: 320px;
  height: 320px;
  top: -180px;
  right: -140px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.45) 0%, rgba(59, 130, 246, 0) 70%);
}


.account-order::after {
  width: 260px;
  height: 260px;
  bottom: -140px;
  left: -140px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.32) 0%, rgba(37, 99, 235, 0) 70%);
}


.account-order:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: var(--account-shadow-md);
}

.darkmode .account-order {
  background: linear-gradient(175deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.85) 100%);
  border-color: rgba(125, 211, 252, 0.32);
  box-shadow: 0 28px 56px rgba(8, 47, 73, 0.45);
}

.darkmode .account-order::before {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.45) 0%, rgba(59, 130, 246, 0) 70%);
  opacity: 0.28;
}

.darkmode .account-order::after {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(56, 189, 248, 0) 70%);
  opacity: 0.22;
}

.account-order-number {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.darkmode .account-order-number {
  color: #93c5fd;
}

.account-order__header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.sale-device {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.sale-device-image {
  --sale-device-image-size: 110px;
  width: var(--sale-device-image-size);
  height: var(--sale-device-image-size);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--account-radius-md);
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.darkmode .sale-device-image {
  background: rgba(17, 24, 39, 0.85);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.35);
}

.sale-device-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
  min-height: var(--sale-device-image-size, 110px);
}

.sale-device-meta-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sale-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--account-text-primary);
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.darkmode .sale-title {
  color: var(--text-primary);
}

.sale-device-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--account-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.sale-device-meta-color {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sale-device-color-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid var(--account-outline);
  background: #e5e7eb;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.darkmode .sale-device-color-dot {
  border-color: var(--account-outline);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.35);
}

.sale-device-meta--accessories {
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap;
  white-space: normal; 
  line-height: 1.45; 
  gap: 0.35rem; 
}

.sale-device-meta__item {
  width: 100%;
  font-size: 0.8rem;
}

.sale-device-meta-divider {
  color: var(--account-outline);
}

.sale-device-meta-divider--stacked {
  width: 100%;
  height: 1px;
  background: var(--account-outline);
  opacity: 0.7;
}

.account-order__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--account-text-secondary);
}

.account-order__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  position: relative;
}

.account-order__pay-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  min-width: 12rem;
}

.account-order__pay-actions .account-order__pay-hint {
  text-align: right;
  max-width: 18rem;
}

.account-order__status {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.account-order__status--floating {
  position: absolute;
  top: clamp(18px, 3vw, 28px);
  right: clamp(18px, 3.5vw, 32px);
  align-items: flex-end;
  gap: 0.35rem;
  text-align: right;
}

.account-order__status .account-status-badge[data-order-status-badge] {
  flex-shrink: 0;
}

.account-status-badge[data-order-status-badge] {
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.account-status-badge[data-order-status-badge]:hover {
  transform: translateY(-1px);
}

.account-status-badge[data-order-status-badge]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.account-status-badge[data-order-status-badge].is-active {
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.18);
}

.darkmode .account-status-badge[data-order-status-badge].is-active {
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.28);
}

.account-order-status-popover {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.75rem);
  width: min(360px, calc(100vw - 64px));
  padding: 1rem 1.25rem;
  border-radius: var(--account-radius-md);
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--account-shadow-sm);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), z-index var(--transition);
  z-index: 25;
}

.account-order-status-popover::before {
  content: "";
  position: absolute;
  top: -10px;
  inset-inline-end: clamp(32px, 20%, 72px);
  width: 16px;
  height: 16px;
  background: inherit;
  border: inherit;
  border-bottom: none;
  border-inline-start: none;
  transform: rotate(45deg);
}

.account-order-status-popover.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 125;
}

.account-order__status .account-order-status-popover {
  inset-inline-start: 0;
  inset-inline-end: auto;
}

.account-order__status .account-order-status-popover::before {
  inset-inline-start: clamp(32px, 50%, 72px);
  inset-inline-end: auto;
}

.account-order-status-popover__title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--account-text-primary);
  text-align: left;
}

.account-order-status-popover__timeline {
  display: grid;
  gap: 0.75rem;
  max-height: 260px;
  overflow-y: auto;
  margin: 0 0 0.75rem;
  padding-right: 0.35rem;
}

.account-order-status-popover__timeline .account-order-step {
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.account-order-status-popover__timeline .account-order-step:not(:first-child)::before {
  display: none;
}

.account-order-status-popover__summary {
  margin: 0;
  font-size: 0.85rem;
  color: var(--account-text-secondary);
  text-align: left;
}

.darkmode .account-order-status-popover {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-color: rgba(125, 211, 252, 0.28);
  box-shadow: 0 35px 70px rgba(8, 47, 73, 0.55);
}

.darkmode .account-order-status-popover::before {
  background: inherit;
  border-color: rgba(125, 211, 252, 0.28);
}

.darkmode .account-order-status-popover__summary {
  color: #cbd5f5;
}


.account-order__total {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--account-radius-pill);
  background: rgba(37, 99, 235, 0.12);
}

.account-order__total-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #000;
}

.account-order__total-amount {
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 1.05rem;
}

.darkmode .account-order__total {
  background: rgba(37, 99, 235, 0.22);
}

.darkmode .account-order__total-label {
  color: #fff;
}

.darkmode .account-order__total-amount {
  color: #bfdbfe;
}

.account-order-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--account-radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.15);
  color: var(--account-text-secondary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.account-order-toggle:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--accent-strong);
}

.darkmode .account-order-toggle {
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(125, 211, 252, 0.3);
  color: #cbd5f5;
}

.darkmode .account-order-toggle:hover {
  background: rgba(37, 99, 235, 0.25);
  border-color: rgba(125, 211, 252, 0.5);
  color: #bfdbfe;
}

.account-order-toggle .material-symbols-outlined {
  transition: transform var(--transition);
}

.account-order.is-collapsed .account-order-toggle .material-symbols-outlined {
  transform: rotate(-180deg);
}

.account-order__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.account-order.is-collapsed {
  padding-bottom: calc(clamp(26px, 3.5vw, 36px) + 10px);
}

.account-order.is-collapsed .account-order__header,
.account-order.is-collapsed .account-order__actions {
  position: static;
  z-index: auto;
}

.account-order.is-collapsed .account-order__total {
  position: absolute;
  inset-block-end: clamp(18px, 2.8vw, 28px);
  inset-inline-end: clamp(22px, 3.2vw, 32px);
  z-index: 3;
}

.account-order:not(.is-collapsed) .account-order__total {
  display: none;
}

.account-order.is-collapsed .account-order__body {
  display: none;
}

.account-order__info-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.account-order__info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.15rem;
  border-radius: var(--account-radius-md);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--account-text-secondary);
  font-size: 0.9rem;
}

.account-order__info--summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  grid-column: 1 / -1;
  gap: 2rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.02));
  border-color: rgba(59, 130, 246, 0.32);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.account-order__info--summary--attention {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.16), rgba(248, 113, 113, 0.05));
  border-color: rgba(248, 113, 113, 0.5);
  box-shadow: 0 16px 40px rgba(185, 28, 28, 0.18);
}

.account-order__info--summary--attention .account-order__info-label--highlight,
.account-order__info--summary--attention .account-order__info-block:first-child .account-order__info-label,
.account-order__info--summary--attention .account-order__info-value--status,
.account-order__info--summary--attention .account-order__info-block:first-child .account-order__info-value {
  color: #b91c1c;
}

.account-order__info-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1 1 220px;
}

.account-order__info-block--total {
  align-items: flex-end;
  text-align: right;
  justify-self: end;
  margin-left: auto;
}

.account-order__info--summary .account-order__info-block:first-child {
  align-items: center;
  text-align: center;
  justify-self: center;
}

.account-order__info-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--account-text-tertiary);
}

.account-order__info-label--highlight {
  color: rgba(59, 130, 246, 0.85);
}

.account-order__info-label--highlight.account-tone--info {
  color: rgba(59, 130, 246, 0.85);
}

.account-order__info--summary .account-order__info-block:first-child .account-order__info-label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(59, 130, 246, 0.85);
}

.account-order__info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--account-text-primary);
}

.account-order__info-value--status {
  font-size: 1.2rem;
}

.account-order__info-value--status.account-tone--info {
  color: var(--account-text-primary);
}

.account-order__info--summary .account-order__info-value {
  font-size: 1.1rem;
}

.account-order__info--summary .account-order__info-block:first-child .account-order__info-value {
  font-size: 1.35rem;
  font-weight: 700;
}

.account-order__info-hint {
  font-size: 0.85rem;
  color: var(--account-text-secondary);
}

.darkmode .account-order__info {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(125, 211, 252, 0.25);
  color: #cbd5f5;
}

.darkmode .account-order__info--summary {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(59, 130, 246, 0.22));
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35);
}

.darkmode .account-order__info--summary--attention {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.28), rgba(248, 113, 113, 0.18));
  border-color: rgba(252, 165, 165, 0.65);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.55);
}

.darkmode .account-order__info--summary--attention .account-order__info-label--highlight,
.darkmode .account-order__info--summary--attention .account-order__info-block:first-child .account-order__info-label,
.darkmode .account-order__info--summary--attention .account-order__info-value--status,
.darkmode .account-order__info--summary--attention .account-order__info-block:first-child .account-order__info-value {
  color: #fecdd3;
}

.darkmode .account-order__info-label {
  color: rgba(148, 197, 255, 0.85);
}

.darkmode .account-order__info-label--highlight.account-tone--info {
  color: rgba(125, 179, 255, 0.95);
}

.darkmode .account-order__info-value {
  color: #f8fafc;
}

.darkmode .account-order__info-value--status.account-tone--info {
  color: #f8fafc;
}

.darkmode .account-order__info-hint {
  color: #94a3b8;
}



.account-order-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 180px;
  gap: 1.25rem;
  align-items: center;
  padding: 1.15rem 1.35rem;
  border-radius: var(--account-radius-md);
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #f4f7ff;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.account-order-step:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: calc(-1 * (var(--timeline-gap, 24px) / 2 + 1.15rem + 22px));
  width: calc(var(--timeline-gap, 24px) + 1.15rem + 22px);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.2) 0%, rgba(148, 163, 184, 0.05) 100%);
  pointer-events: none;
  z-index: -1;
}


.account-order-step::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(99, 102, 241, 0.22));
  z-index: 0;
}


.account-order-step.is-complete {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(224, 242, 254, 0.96));
}

.account-order-step.is-complete::after {
  opacity: 1;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(59, 130, 246, 0.2));
}


.account-order-step.is-active {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.18);
  background: linear-gradient(135deg, rgba(231, 245, 255, 0.98), rgba(219, 234, 254, 0.94));
}

.darkmode .account-order-step {
  border-color: rgba(125, 211, 252, 0.28);
  background: rgba(30, 41, 59, 0.88);
}

.darkmode .account-order-step:not(:first-child)::before {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.35) 0%, rgba(59, 130, 246, 0.18) 100%);
}

.darkmode .account-order-step::after {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.32), rgba(125, 211, 252, 0.25));
}

.darkmode .account-order-step.is-active {
  border-color: rgba(96, 165, 250, 0.6);
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.55), rgba(37, 99, 235, 0.45));
}

.darkmode .account-order-step.is-complete {
  border-color: rgba(45, 212, 191, 0.55);
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.55), rgba(20, 83, 45, 0.55));
}

.darkmode .account-order-step.is-complete::after {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.4), rgba(59, 130, 246, 0.32));
}

.account-order-step.is-active::after {
  opacity: 1;
}

.account-order-step__icon-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  align-self: stretch;
  align-items: center;
}

.account-order-step__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-strong);
  font-size: 26px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.account-order-step.is-complete .account-order-step__icon {
  background: rgba(16, 185, 129, 0.2);
  color: var(--account-success);
}

.account-order-step.is-active .account-order-step__icon {
  background: rgba(59, 130, 246, 0.2);
}

.account-order-step__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  min-height: 100%;
}

.account-order-step__title {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--account-text-primary);
}

.account-order-step__date {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.65);
}

.account-order-step__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--account-text-tertiary);
}

.darkmode .account-order-step {
  border-color: rgba(125, 211, 252, 0.25);
  background: rgba(15, 23, 42, 0.6);
}

.darkmode .account-order-step::after {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(56, 189, 248, 0.18));
}

.darkmode .account-order-step.is-complete::after {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.26), rgba(59, 130, 246, 0.18));
}

.darkmode .account-order-step__icon {
  background: rgba(37, 99, 235, 0.22);
  color: #bfdbfe;
}

.darkmode .account-order-step.is-complete .account-order-step__icon {
  background: rgba(34, 197, 94, 0.32);
  color: #bbf7d0;
}

.darkmode .account-order-step__title {
  color: #f8fafc;
}

.darkmode .account-order-step__date {
  color: #e2e8f0;
}

.darkmode .account-order-step__meta {
  color: #94a3b8;
}

.account-order-products {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--account-radius-md);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.darkmode .account-order-products {
  border-color: rgba(125, 211, 252, 0.3);
  background: rgba(15, 23, 42, 0.6);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.account-order-product {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: transparent;
  box-shadow: none;
}

.account-order-product:last-child {
  border-bottom: none;
}

.darkmode .account-order-product {
  border-color: rgba(125, 211, 252, 0.25);
  background: transparent;
  box-shadow: none;
}

.account-order-product__media img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--account-radius-sm);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.65rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
}

.darkmode .account-order-product__media img {
  background: rgba(15, 23, 42, 0.8);
}

.account-order-product__content h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--account-text-primary);
}

.account-order-product__title-main {
  font-weight: 600;
}

.account-order-product__title-muted,
.account-order-product__title-separator {
  font-weight: 400;
  color: var(--account-text-secondary);
}

.darkmode .account-order-product__content h4 {
  color: #f8fafc;
}

.account-order-product__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--account-text-secondary);
}

.cart-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cart-summary-chips--inline {
  margin-top: 0.25rem;
}

.cart-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(26, 115, 232, 0.12);
  color: var(--primary, #1a73e8);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.cart-summary-chip__label {
  color: var(--primary, #1a73e8);
}

.cart-summary-chip__value {
  color: var(--account-text, #202124);
}

.cart-summary-chip--plain {
  background: transparent;
  color: var(--account-text, currentColor);
}

.cart-summary-chip--highlight .cart-summary-chip__label,
.cart-summary-chip--highlight .cart-summary-chip__value {
  color: inherit;
}

.cart-summary-chip--highlight {
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.95), rgba(96, 165, 250, 0.9));
  color: #fff;
  box-shadow: 0 12px 24px rgba(26, 115, 232, 0.35);
}

.account-order-product__quantity {
  margin-top: 0.1rem;
  justify-content: flex-end;
}

.darkmode .account-order-product__meta {
  color: #cbd5f5;
}

.darkmode .cart-summary-chip {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}

.darkmode .cart-summary-chip__label {
  color: #93c5fd;
}

.darkmode .cart-summary-chip__value {
  color: #e5e7eb;
}

.darkmode .cart-summary-chip--plain {
  background: transparent;
  color: #e5e7eb;
}

.darkmode .cart-summary-chip--highlight {
  background: linear-gradient(135deg, rgba(147, 197, 253, 0.95), rgba(56, 189, 248, 0.9));
  color: #0f172a;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.45);
}

.account-order-product__total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  color: var(--account-text-primary);
  text-align: right;
}

.account-order-product__total-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(37, 99, 235, 0.75);
}

.account-order-product__total-amount {
  font-weight: 700;
  font-size: 1rem;
}

.account-order-product__total-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.darkmode .account-order-product__total {
  color: #f8fafc;
}

.darkmode .account-order-product__total-label {
  color: rgba(191, 219, 254, 0.85);
}

.darkmode .account-order-product__total-amount {
  color: #f8fafc;
}

@media (max-width: 960px) {
  .account-hero {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}


/* Status Progress Popover (ported from sales) */
.status-progress-popover {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 320px;
  max-width: 86vw;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(249, 250, 251, 0.7);
  color: #4b5563;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 140;
}
.status-progress-popover::before {
  content: '';
  position: absolute;
  top: -10px;
  right: 32px;
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
  background: rgba(249, 250, 251, 0.7);
  border-left: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
}
.darkmode .status-progress-popover {
  background: rgba(17, 24, 39, 0.4);
  border-color: #374151;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  color: #d1d5db;
}
.darkmode .status-progress-popover::before {
  background: rgba(17, 24, 39, 0.4);
  border-left-color: #374151;
  border-top-color: #374151;
}
.status-progress-popover.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  background: rgba(229, 231, 235, 0.9);
  border-color: #d1d5db;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.78), 0 18px 44px rgba(15, 23, 42, 0.18);
}
.status-progress-popover.is-visible::before {
  background: rgba(229, 231, 235, 0.9);
  border-left-color: #d1d5db;
  border-top-color: #d1d5db;
}
.status-progress-title {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #64748b;
}
.status-progress-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.status-progress-step {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  padding-right: 4px;
}
.status-progress-step::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 15px;
  width: 2px;
  bottom: -12px;
  background: rgba(26, 115, 232, 0.25);
}
.status-progress-step:last-child::before {
  display: none;
}
.status-step-marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(26, 115, 232, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0f5bb5;
  background: rgba(26, 115, 232, 0.12);
}
.darkmode .status-step-marker {
  background: rgba(15, 91, 181, 0.3);
  border-color: rgba(26, 115, 232, 0.55);
  color: #e2edff;
}
.status-progress-step.is-completed .status-step-marker {
  background: linear-gradient(135deg, #1a73e8 0%, #0071e3 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(0, 113, 227, 0.35);
}
.status-progress-step.is-completed::before {
  background: linear-gradient(180deg, rgba(26, 115, 232, 0.35), rgba(0, 113, 227, 0.35));
}
.darkmode .status-progress-step.is-completed .status-step-marker {
  background: linear-gradient(135deg, #1558b0 0%, #005bb5 100%);
  box-shadow: 0 8px 20px rgba(0, 91, 181, 0.45);
}
.darkmode .status-progress-step.is-completed::before {
  background: linear-gradient(180deg, rgba(21, 88, 176, 0.45), rgba(0, 91, 181, 0.45));
}
.status-progress-step.is-active .status-step-marker {
  background: rgba(26, 115, 232, 0.18);
  border-width: 2px;
  border-color: #1a73e8;
  color: #0f5bb5;
  box-shadow: 0 12px 24px rgba(26, 115, 232, 0.25);
}
.darkmode .status-progress-step.is-active .status-step-marker {
  background: rgba(15, 91, 181, 0.35);
  border-color: #1a73e8;
  color: #f1f7ff;
  box-shadow: 0 12px 24px rgba(15, 91, 181, 0.35);
}
.status-progress-step.is-cancelled .status-step-marker {
  background: rgba(248, 113, 113, 0.2);
  color: #b91c1c;
  border-color: rgba(248, 113, 113, 0.45);
  box-shadow: none;
}
.status-step-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.status-step-pointer {
  display: none;
  align-self: center;
  font-size: 19px;
  font-weight: 800;
  color: #1a73e8;
  padding-left: 4px;
  transform: translate(-2px, -1px);
}
.status-progress-step.is-active .status-step-pointer {
  display: inline-flex;
  animation: status-pointer-drift 1.4s ease-in-out infinite;
}
.darkmode .status-step-pointer {
  color: #93c5fd;
}
@keyframes status-pointer-drift {
  0% {
    transform: translate(-2px, -1px);
  }
  50% {
    transform: translate(-6px, -1px);
  }
  100% {
    transform: translate(-2px, -1px);
  }
}
.status-step-label {
  font-weight: 700;
  color: #0f172a;
  font-size: 15px;
}
.status-step-description {
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
}
.status-progress-summary {
  margin: 14px 0 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  font-weight: 600;
}
.status-progress-popover.status-progress-cancelled .status-progress-summary {
  color: #b91c1c;
}

