:root {
  color-scheme: dark;
  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  background: #071016;
  color: #f1f7f8;
  --bg: #071016;
  --sidebar: #0b151d;
  --panel: #101e28;
  --panel-strong: #132633;
  --line: #263c4b;
  --muted: #9bb1bd;
  --cyan: #25cbbd;
  --cyan-strong: #169d9d;
  --purple: #bd8cff;
  --yellow: #f1c750;
  --red: #ee747d;
  --green: #59d18f;
  --lime: #c8ff45;
  --violet: #8b6cff;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: var(--bg); color: #f1f7f8; font-family: "DM Sans", Inter, ui-sans-serif, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
[hidden] { display: none !important; }
.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; }

.auth-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 14% 18%, rgba(139, 108, 255, 0.17), transparent 29%),
    radial-gradient(circle at 88% 80%, rgba(71, 216, 255, 0.13), transparent 31%),
    #05080d;
}
.auth-page::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  pointer-events: none;
}
.auth-page::after {
  position: fixed;
  z-index: -1;
  top: 12%;
  right: -180px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(200, 255, 69, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 120px rgba(200, 255, 69, 0.05);
  content: "";
  pointer-events: none;
}
.auth-header, .auth-main { width: min(100% - 48px, 1180px); margin: 0 auto; }
.auth-header {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font: 700 15px/1 "Space Grotesk", sans-serif; }
.brand img { width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; object-fit: contain; box-shadow: 0 10px 28px #0007; }
.back {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0 16px;
  color: #c8d3da;
  font-size: 12px;
  font-weight: 700;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.back:hover { border-color: rgba(200, 255, 69, 0.48); background: rgba(200, 255, 69, 0.05); color: #f3ffd6; }
.intro { color: var(--muted); font-size: 14px; }
.auth-main {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: calc(100vh - 88px);
  align-items: center;
  padding: clamp(42px, 6vh, 76px) 0 72px;
}
.auth-shell {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, .92fr) minmax(500px, 1.08fr);
  align-items: center;
  gap: clamp(42px, 6vw, 82px);
}
.auth-story {
  position: relative;
  display: flex;
  min-height: 650px;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: clamp(34px, 4vw, 52px);
  background:
    linear-gradient(145deg, rgba(139, 108, 255, 0.12), transparent 48%),
    linear-gradient(320deg, rgba(71, 216, 255, 0.08), transparent 46%),
    rgba(8, 12, 19, 0.84);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}
.auth-story::before {
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(71, 216, 255, 0.08);
  filter: blur(60px);
  content: "";
  pointer-events: none;
}
.auth-story-copy, .auth-benefits, .auth-product-stack { position: relative; z-index: 1; }
.auth-kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 24px; color: var(--lime); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.auth-kicker span { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px rgba(200, 255, 69, 0.72); }
.auth-story h2 { max-width: 520px; margin: 0; color: #f5f7fb; font: 600 clamp(40px, 4.1vw, 60px)/.98 "Space Grotesk", sans-serif; letter-spacing: -.055em; }
.auth-story h2 em { display: block; margin-top: 8px; background: linear-gradient(90deg, #eafdbf, var(--lime) 42%, var(--cyan)); background-clip: text; color: transparent; font-style: normal; }
.auth-story-copy > p:last-child { max-width: 470px; margin: 24px 0 0; color: #9ca8b8; font-size: 16px; line-height: 1.65; }
.auth-benefits { display: grid; gap: 10px; margin: 40px 0 30px; }
.auth-benefits article { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; border-top: 1px solid rgba(255, 255, 255, 0.09); padding-top: 14px; }
.auth-benefits article > span { color: var(--lime); font: 700 10px/1 "Space Grotesk", sans-serif; letter-spacing: .08em; }
.auth-benefits article div { display: grid; gap: 3px; }
.auth-benefits strong { color: #edf2f7; font-size: 14px; }
.auth-benefits small { color: #7f8b9c; font-size: 12px; }
.auth-product-stack { min-height: 138px; margin-top: auto; }
.auth-product-card {
  position: absolute;
  display: flex;
  width: 205px;
  height: 104px;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 18px;
  background: #080c12;
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.36);
}
.auth-product-card img { width: 54px; height: 54px; object-fit: contain; }
.auth-product-card span { color: #f4f6fa; font: 600 14px/1.15 "Space Grotesk", sans-serif; }
.auth-product-loovable { top: 14px; left: 0; border-color: rgba(139, 108, 255, 0.38); transform: rotate(-4deg); }
.auth-product-mp { right: 0; bottom: 3px; border-color: rgba(71, 216, 255, 0.32); transform: rotate(4deg); }
.auth-ds-seal {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 82px;
  height: 82px;
  place-content: center;
  border: 1px solid rgba(200, 255, 69, 0.5);
  border-radius: 50%;
  background: #090d12;
  box-shadow: 0 0 0 7px rgba(200, 255, 69, 0.04), 0 18px 38px #0009;
  text-align: center;
  transform: translate(-50%, -50%);
}
.auth-ds-seal strong { color: var(--lime); font: 700 22px/1 "Space Grotesk", sans-serif; letter-spacing: -.08em; }
.auth-ds-seal small { margin-top: 4px; color: #8f99a8; font: 700 5px/1.25 "Space Grotesk", sans-serif; letter-spacing: .1em; }
.auth-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: clamp(30px, 4vw, 46px);
  background: rgba(13, 22, 30, 0.93);
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
}
.auth-card-heading { display: flex; align-items: center; gap: 15px; }
.auth-card-mark { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(37, 203, 189, 0.45); border-radius: 14px; background: rgba(37, 203, 189, 0.08); color: var(--cyan); font: 700 13px/1 "Space Grotesk", sans-serif; }
.eyebrow { margin: 0; color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
.auth-card h1 { margin: 6px 0 0; font: 600 clamp(31px, 3vw, 40px)/1.02 "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.auth-card > .intro { max-width: 470px; margin: 20px 0 0; line-height: 1.55; }
.auth-card form { display: grid; gap: 15px 14px; margin-top: 28px; }
.auth-card form[data-mode="register"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-card form[data-mode="login"] { grid-template-columns: 1fr; }
.auth-card form > div { display: grid; gap: 6px; }
label { color: #dce9ed; font-size: 12px; font-weight: 750; }
input { width: 100%; height: 49px; border: 1px solid #375367; border-radius: 10px; padding: 0 13px; background: #08131b; color: #f2f8fa; }
input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px #25cbbd24; outline: none; }
small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.password-checklist { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; margin: -1px 0 0; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 11px; padding: 14px 15px; background: rgba(5, 14, 20, 0.55); list-style: none; }
.password-checklist li { display: flex; align-items: center; gap: 8px; color: #80919d; font-size: 12px; font-weight: 650; transition: color .18s ease; }
.password-rule-icon { display: grid; width: 18px; height: 18px; flex: 0 0 auto; place-items: center; border: 1px solid #405361; border-radius: 50%; color: transparent; font-size: 11px; font-weight: 900; transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease; }
.password-checklist li.is-met { color: #dffbf0; }
.password-checklist li.is-met .password-rule-icon { border-color: #66daa4; background: #66daa4; box-shadow: 0 0 0 3px rgba(102, 218, 164, 0.1); color: #071711; }
.primary, .solid-link { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border: 0; border-radius: 10px; padding: 0 18px; background: var(--cyan-strong); color: #041416; font-size: 13px; font-weight: 850; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.primary:hover, .solid-link:hover { background: var(--cyan); box-shadow: 0 12px 28px rgba(37, 203, 189, 0.18); transform: translateY(-1px); }
.link-button, .text-button { border: 0; padding: 0; background: transparent; color: var(--cyan); font-size: 13px; font-weight: 750; text-align: left; }
.auth-switch { grid-column: 1 / -1; display: flex !important; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 16px; color: #8fa0ad; font-size: 13px; }
.auth-switch .link-button { text-align: right; }
.auth-card form > .primary, .auth-card form > .status { grid-column: 1 / -1; }
.status { min-height: 20px; margin: 0; color: var(--muted); font-size: 13px; }
.status.error { color: #ff9da4; }
.status.success { color: var(--green); }
.auth-footnote { margin: 2px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 18px; color: #70818e; font-size: 11px; line-height: 1.55; text-align: center; }

.account-app { display: grid; min-height: 100vh; grid-template-columns: 256px minmax(0, 1fr); background: var(--bg); }
.account-sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 22px 13px 14px; border-right: 1px solid var(--line); background: var(--sidebar); }
.account-brand { padding: 0 7px; }
.nav-label { margin: 45px 10px 10px; color: #738995; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.account-nav { display: grid; gap: 4px; }
.nav-item { display: flex; width: 100%; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 7px; padding: 12px 11px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 750; text-align: left; }
.nav-item:hover { border-color: #36505f; color: #f0f7f8; }
.nav-item.is-active { border-color: #25555d; background: #102d34; color: #eafffb; }
.nav-number { color: var(--cyan); font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.sidebar-user { display: flex; min-width: 0; align-items: center; gap: 10px; margin-top: auto; padding: 11px; border: 1px solid var(--line); border-radius: 7px; background: #0a141b; }
.avatar { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 1px solid #32727a; border-radius: 50%; background: #102d34; color: var(--cyan); font-size: 12px; font-weight: 900; }
.sidebar-user-copy { display: grid; min-width: 0; gap: 2px; }
.sidebar-user-copy strong, .sidebar-user-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-copy strong { font-size: 12px; }.sidebar-user-copy small { font-size: 10px; }
.sidebar-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.outline-button { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; border: 1px solid #37505f; border-radius: 6px; padding: 0 10px; background: transparent; color: #dce9ed; font-size: 11px; font-weight: 750; }
.outline-button:hover { border-color: var(--cyan); color: #efffff; }.outline-button.danger:hover { border-color: var(--red); color: #ffdbe0; }

.account-main { width: min(100%, 1280px); padding: 50px clamp(24px, 5vw, 72px) 70px; }
.account-mobile-header { display: none; }
.view-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.view-heading h1 { margin: 8px 0 6px; font-size: 36px; line-height: 1.08; letter-spacing: 0; }.view-heading > div > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.solid-link { flex: 0 0 auto; margin-top: 4px; }
.license-banner { display: flex; min-height: 106px; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 16px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.license-banner-copy { display: grid; gap: 5px; }.license-banner h2 { margin: 0; font-size: 19px; }.license-banner p { margin: 0; color: var(--muted); font-size: 14px; }.license-banner .solid-link { margin: 0; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.metric { min-height: 116px; padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }.metric span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.metric strong { display: block; margin-top: 13px; font-size: 27px; line-height: 1; }.metric.is-active strong { color: var(--green); }.metric.is-pending strong { color: var(--yellow); }.metric.is-invested strong { color: var(--cyan); }
.content-panel { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); }.panel-heading h2 { margin: 6px 0 0; font-size: 20px; }.panel-heading p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 13px; }.text-button { margin-top: 6px; }
.order-list { display: grid; }.order-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 20px; width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 17px 24px; background: transparent; color: inherit; text-align: left; }.order-row:last-child { border-bottom: 0; }.order-row:hover { background: #122733; }.order-product { display: flex; min-width: 0; align-items: center; gap: 12px; }.product-thumb { width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid #35505e; border-radius: 7px; padding: 5px; background: #0a141b; object-fit: contain; }.order-product-copy { display: grid; min-width: 0; gap: 4px; }.order-product-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }.order-product-copy span { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.status-badge { display: inline-flex; width: max-content; align-items: center; border: 1px solid #4d5f6b; border-radius: 99px; padding: 5px 8px; color: #c4d3d8; font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }.status-badge.pending { border-color: #826d1d; color: #f5d969; }.status-badge.paid { border-color: #2f7c58; color: #83e3b0; }.status-badge.active { border-color: #2f7c58; color: #83e3b0; }.status-badge.failed { border-color: #844950; color: #ff9fa7; }.status-badge.expired { border-color: #5e6370; color: #b8bfca; }.order-amount { min-width: 88px; color: #eff8f9; font-size: 14px; font-weight: 850; text-align: right; }.empty-state { padding: 35px 24px; color: var(--muted); font-size: 14px; }
.quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }.quick-action { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 19px 20px; background: var(--panel); color: inherit; text-align: left; }.quick-action:hover { border-color: #35757b; background: var(--panel-strong); }.quick-action strong { font-size: 14px; }.quick-action span { color: var(--muted); font-size: 13px; }

.summary-grid-compact { margin-bottom: 16px; }.summary-grid-compact .metric { min-height: 98px; }.orders-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }.search-field { flex: 1 1 260px; }.search-field input { height: 42px; }.status-filters { display: flex; flex-wrap: wrap; gap: 6px; }.filter-button { min-height: 34px; border: 1px solid #3a5362; border-radius: 6px; padding: 0 10px; background: var(--panel); color: var(--muted); font-size: 11px; font-weight: 800; }.filter-button:hover { color: #ecf9fa; }.filter-button.is-active { border-color: var(--cyan); background: #10333a; color: #e9fffc; }.orders-panel { overflow: hidden; }

.profile-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(180px, 260px); align-items: center; gap: 18px; margin-bottom: 16px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }.profile-hero .avatar { width: 60px; height: 60px; font-size: 19px; }.profile-hero h2 { margin: 0 0 4px; font-size: 20px; }.profile-hero p { margin: 0; color: var(--muted); font-size: 13px; }.completion { display: grid; gap: 8px; }.completion-row { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }.completion-row strong { color: var(--cyan); }.completion-bar { height: 6px; overflow: hidden; border-radius: 99px; background: #0a141b; }.completion-bar span { display: block; height: 100%; background: var(--cyan); }
.profile-panel { margin-top: 16px; }.profile-form, .password-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 24px; }.profile-form > div, .password-form > div { display: grid; gap: 7px; }.profile-form input:disabled { border-color: #293e4b; background: #0c1820; color: #8fa3ae; }.form-footer { grid-column: 1 / -1; display: flex !important; align-items: center; justify-content: space-between; gap: 16px; padding-top: 4px; }.form-footer .primary { min-width: 165px; }.password-form > div:first-child { grid-column: 1 / -1; }

.order-dialog { width: min(720px, calc(100% - 32px)); max-height: min(780px, calc(100vh - 32px)); overflow: auto; border: 1px solid #3a596a; border-radius: 8px; padding: 0; background: #0c1820; color: #f0f8fa; box-shadow: 0 32px 90px #000b; }.order-dialog::backdrop { background: #02080db8; }.dialog-content { min-width: 0; }.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 23px 24px; border-bottom: 1px solid var(--line); }.dialog-header h2 { margin: 6px 0 0; font-size: 23px; }.icon-button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #3a5362; border-radius: 7px; background: transparent; color: #f2f8f9; font-size: 23px; line-height: 1; }.icon-button:hover { border-color: var(--cyan); color: var(--cyan); }.detail-body { display: grid; gap: 18px; padding: 24px; }.detail-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }.detail-topline strong { font-size: 16px; }.detail-meta { color: var(--muted); font-size: 12px; }.detail-section { display: grid; gap: 10px; }.detail-section h3 { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }.detail-card { border: 1px solid var(--line); border-radius: 7px; padding: 15px; background: var(--panel); }.license-key { display: flex; align-items: center; gap: 10px; }.license-key code { min-width: 0; flex: 1; overflow: hidden; color: #e8fffc; font: 700 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }.copy-button { min-height: 34px; flex: 0 0 auto; border: 1px solid #327d7e; border-radius: 6px; padding: 0 10px; background: #10343a; color: #e8fffc; font-size: 11px; font-weight: 800; }.copy-button:hover { background: #165059; }.timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--line); }.timeline-item { display: grid; gap: 4px; min-height: 72px; padding: 13px; background: var(--panel); }.timeline-item span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }.timeline-item strong { font-size: 12px; }.pix-payment { display: grid; gap: 10px; }.pix-payment img { width: min(220px, 100%); border-radius: 7px; background: #fff; padding: 8px; }.pix-code { height: auto; min-height: 44px; resize: vertical; padding: 10px; font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.installer-download { width: fit-content; gap: 12px; margin-top: 14px; }
.download-note { margin: 8px 0 0; color: var(--muted); font-size: 11px; }

@media (max-width: 1050px) {
  .auth-shell { width: min(100%, 760px); grid-template-columns: 1fr; margin: 0 auto; }
  .auth-story { min-height: 510px; }
  .auth-story h2 { font-size: 52px; }
  .auth-product-stack { width: min(100%, 500px); }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .orders-toolbar { align-items: flex-start; flex-direction: column; }
  .search-field, .status-filters { width: 100%; }
}
@media (max-width: 820px) {
  .auth-story { display: none; }
  .auth-shell { width: min(100%, 590px); }
  .account-app { display: block; }
  .account-sidebar { position: static; width: 100%; height: auto; padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .account-brand { padding: 0; }
  .nav-label, .sidebar-user, .sidebar-actions { display: none; }
  .account-nav { display: flex; gap: 5px; margin-top: 14px; overflow-x: auto; }
  .nav-item { width: auto; flex: 1 0 auto; padding: 10px; }
  .account-main { width: 100%; padding: 34px 24px 54px; }
  .account-mobile-header { display: none; }
  .profile-hero { grid-template-columns: auto minmax(0, 1fr); }
  .completion { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .auth-header, .auth-main { width: min(100% - 32px, 1080px); }
  .auth-header { min-height: 72px; }
  .auth-header .brand img { width: 32px; height: 32px; }
  .back { min-height: 36px; padding: 0 12px; }
  .auth-main { min-height: calc(100vh - 72px); padding: 30px 0 44px; }
  .auth-card { border-radius: 22px; padding: 25px 21px; }
  .auth-card-heading { align-items: flex-start; }
  .auth-card-mark { width: 42px; height: 42px; }
  .auth-card h1 { font-size: 30px; }
  .auth-card form[data-mode="register"] { grid-template-columns: 1fr; }
  .password-checklist { grid-template-columns: 1fr; }
  .auth-switch { align-items: flex-start; flex-direction: column; gap: 7px; }
  .auth-switch .link-button { text-align: left; }
  .account-main { padding: 28px 16px 44px; }
  .view-heading { display: grid; gap: 14px; }
  .view-heading h1 { font-size: 31px; }
  .solid-link { width: 100%; margin: 0; }
  .license-banner { display: grid; padding: 20px; }
  .license-banner .solid-link { width: 100%; }
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric { min-height: 100px; padding: 14px; }
  .metric strong { font-size: 23px; }
  .panel-heading { padding: 19px 17px; }
  .order-row { grid-template-columns: minmax(0, 1fr) auto; gap: 9px 12px; padding: 15px 17px; }
  .order-amount { grid-column: 2; grid-row: 1; min-width: 0; }
  .order-row .status-badge { grid-column: 1 / -1; }
  .quick-actions { grid-template-columns: 1fr; }
  .profile-hero { gap: 13px; padding: 18px; }
  .profile-form, .password-form { grid-template-columns: 1fr; padding: 19px 17px; }
  .password-form > div:first-child { grid-column: auto; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-footer .primary { width: 100%; }
  .timeline { grid-template-columns: 1fr; }
  .dialog-header, .detail-body { padding: 19px; }
  .dialog-header h2 { font-size: 20px; }
  .license-key { align-items: stretch; flex-direction: column; }
  .copy-button { width: 100%; }
  .sidebar-user-copy { min-width: 0; }
}
