.account-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 12%, rgba(21, 79, 124, .13), transparent 34%),
    #03070d;
}

.account-page::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.account-header {
  position: relative;
  left: auto;
  width: min(1410px, calc(100% - 96px));
  transform: none;
  margin: 0 auto;
}

.account-user {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
  color: #dce5ed;
  font-size: 12px;
}

.header-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 8px 20px;
  border: 0;
  border-left: 1px solid rgba(255,255,255,.09);
  background: transparent;
  color: #84919d;
  font: inherit;
  cursor: pointer;
  transition: color .18s ease;
}

.header-logout:hover { color: white; }
.header-logout svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.account-main {
  width: min(1410px, calc(100% - 96px));
  min-height: calc(100vh - 198px);
  margin: 0 auto;
  padding: 64px 0 76px;
}

.account-auth {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1fr 500px;
  align-items: center;
  gap: 104px;
}

.auth-intro { position: relative; padding: 48px 0; }
.auth-intro h1, .dashboard-heading h1 { max-width: none; margin: 0; font-size: clamp(46px, 5vw, 68px); }
.auth-intro > p, .dashboard-heading p { max-width: 540px; margin: 20px 0 0; color: #8c99a6; font-size: 17px; line-height: 1.65; }
.quiet-back { display: inline-flex; margin-top: 34px; color: #89a2b3; font-size: 12px; transition: color .18s ease; }
.quiet-back:hover { color: var(--cyan); }

.account-orbit, .dashboard-orbit {
  position: absolute;
  right: -18px;
  top: -52px;
  width: 310px;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: .58;
  background:
    radial-gradient(circle, transparent 0 19%, rgba(17,216,208,.22) 19.4% 19.8%, transparent 20.3% 31%, rgba(43,119,255,.16) 31.4% 31.8%, transparent 32.3% 44%, rgba(129,82,255,.14) 44.4% 44.8%, transparent 45.3% 57%, rgba(17,216,208,.1) 57.4% 57.8%, transparent 58.3%),
    repeating-conic-gradient(from 12deg, rgba(43,119,255,.22) 0deg 1deg, transparent 1deg 23deg);
  mask-image: radial-gradient(circle, black, transparent 72%);
}

.account-power {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 66px;
  height: 66px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(17,216,208,.52);
  border-radius: 50%;
  background: rgba(2, 9, 15, .8);
  box-shadow: 0 0 34px rgba(17,216,208,.12), inset 0 0 20px rgba(43,119,255,.08);
}

.account-power::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  width: 4px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 10px #fff;
}

.account-power::after {
  content: "";
  position: absolute;
  inset: 17px;
  border: 4px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255,255,255,.65);
}

.auth-panel {
  position: relative;
  min-height: 420px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(17,216,208,.31);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(12,25,39,.94), rgba(5,10,18,.98));
  box-shadow: 0 38px 100px rgba(0,0,0,.44), inset 0 1px rgba(255,255,255,.035);
}

.auth-panel::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(43,119,255,.16);
  filter: blur(60px);
  pointer-events: none;
}

.auth-panel-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 38px;
  color: #9aa9b6;
  font-size: 12px;
  font-weight: 650;
}

.auth-panel-head svg { width: 18px; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-form { position: relative; display: grid; gap: 12px; }
.auth-form label { color: #cbd4dc; font-size: 12px; font-weight: 700; }
.auth-form input {
  width: 100%;
  height: 56px;
  padding: 0 17px;
  outline: none;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  background: rgba(0,0,0,.24);
  color: white;
}
.auth-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(17,216,208,.08); }
.auth-form input::placeholder { color: #53616e; }
.auth-form .button { width: 100%; margin-top: 4px; }
.auth-form > p { margin: 1px 0 0; color: #657480; font-size: 11px; line-height: 1.5; }
.auth-form .back-button { width: max-content; margin-bottom: 12px; }

.auth-security {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5f6d79;
  font-size: 10px;
}
.security-dot { width: 7px; height: 7px; border: 1px solid var(--cyan); border-radius: 50%; box-shadow: 0 0 7px rgba(17,216,208,.45); }

.account-status {
  position: relative;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(17,216,208,.2);
  border-radius: 10px;
  background: rgba(17,216,208,.07);
  color: #a9f1ed;
  font-size: 12px;
  line-height: 1.45;
}
.account-status.error { border-color: rgba(255,102,119,.25); background: rgba(255,102,119,.08); color: #ff9eaa; }

.dashboard { padding-top: 8px; }
.dashboard-heading { position: relative; min-height: 140px; display: flex; align-items: flex-start; justify-content: space-between; overflow: hidden; }
.dashboard-heading h1 { font-size: clamp(44px, 4.4vw, 64px); }
.dashboard-heading p { margin-top: 12px; font-size: 16px; }
.dashboard-orbit { right: 48px; top: -128px; width: 390px; }

.dashboard-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 16px; }
.subscription-panel, .devices-panel {
  position: relative;
  min-height: 400px;
  padding: 43px;
  border: 1px solid rgba(161,194,218,.15);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(8,18,29,.9), rgba(4,9,16,.96));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.subscription-panel::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(180deg, var(--cyan), var(--blue) 58%, var(--violet));
}

.subscription-title { padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.09); }
.subscription-title h2, .devices-head h2 { margin: 0; color: #f7fbfe; font-size: 32px; letter-spacing: -.035em; }
.subscription-status { display: flex; align-items: center; gap: 9px; margin-top: 13px; color: var(--cyan); font-size: 14px; font-weight: 700; }
.subscription-status i { position: relative; width: 20px; height: 20px; border: 1px solid currentColor; border-radius: 50%; }
.subscription-status i::before { content: ""; position: absolute; left: 5px; top: 4px; width: 7px; height: 4px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.subscription-status.inactive { color: #9aa6b0; }
.subscription-status.expired { color: var(--danger); }

.subscription-data { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 0; margin: 26px 0 30px; }
.subscription-data > div { min-width: 0; padding: 0 24px; border-left: 1px solid rgba(255,255,255,.08); }
.subscription-data > div:first-child { padding-left: 0; border-left: 0; }
.subscription-data > div:last-child { padding-right: 0; }
.subscription-data small, .subscription-data strong { display: block; }
.subscription-data small { margin-bottom: 9px; color: #73818d; font-size: 11px; }
.subscription-data strong { font-size: 16px; letter-spacing: -.02em; }
.subscription-data .accent-value { color: #39a2ff; font-size: 18px; }
.subscription-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.subscription-message { margin: -8px 0 22px; color: #8f9ca8; font-size: 13px; line-height: 1.55; }
.copy-activation { margin: 13px auto 0; display: block; border: 0; background: none; color: #8ca0b0; font-size: 11px; cursor: pointer; }
.copy-activation:hover { color: var(--cyan); }

.devices-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.09); }
.devices-head h2 { font-size: 20px; }
.devices-head span { color: #84919d; font-size: 12px; }
.device-list { display: grid; }
.device-row { position: relative; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 16px; min-height: 114px; border-bottom: 1px solid rgba(255,255,255,.08); }
.device-icon { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid rgba(17,216,208,.24); border-radius: 50%; }
.device-icon::before { content: ""; width: 14px; height: 24px; border: 2px solid var(--cyan); border-radius: 3px; box-shadow: 0 0 8px rgba(17,216,208,.2); }
.device-icon::after { content: ""; position: absolute; right: 1px; bottom: 3px; width: 8px; height: 8px; border-radius: 50%; background: #10d3a3; box-shadow: 0 0 8px rgba(16,211,163,.55); }
.device-copy strong, .device-copy small { display: block; }
.device-copy strong { margin-bottom: 6px; font-size: 14px; }
.device-copy small { color: #778591; font-size: 11px; }
.device-copy small span { color: #12d6a4; }
.device-remove { padding: 10px 0 10px 14px; border: 0; background: none; color: #ff6677; font-size: 12px; font-weight: 650; cursor: pointer; }
.device-remove:hover { color: #ff9aa5; }
.device-confirm { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -12px 0 18px; padding: 13px 14px; border: 1px solid rgba(255,102,119,.23); border-radius: 10px; background: rgba(255,102,119,.07); color: #d6b0b5; font-size: 11px; }
.device-confirm div { display: flex; gap: 7px; }
.device-confirm button { padding: 7px 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: rgba(0,0,0,.24); color: white; font-size: 10px; cursor: pointer; }
.device-confirm .confirm-remove { border-color: rgba(255,102,119,.35); color: #ff8794; }
.device-empty { min-height: 205px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.phone-empty { width: 24px; height: 39px; margin-bottom: 17px; border: 2px solid #456070; border-radius: 5px; }
.device-empty strong { font-size: 14px; }
.device-empty p { max-width: 320px; margin: 9px auto 0; color: #6c7985; font-size: 11px; line-height: 1.55; }
.device-feedback { margin-top: 16px; color: #79dfd9; font-size: 11px; }
.device-feedback.error { color: #ff8794; }

.account-links { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; border: 1px solid rgba(161,194,218,.14); border-radius: 15px; background: rgba(5,11,19,.76); }
.account-links a { display: grid; grid-template-columns: 46px 1fr 16px; align-items: center; gap: 14px; min-height: 106px; padding: 0 25px; border-right: 1px solid rgba(255,255,255,.08); transition: background .18s ease; }
.account-links a:last-child { border-right: 0; }
.account-links a:hover { background: rgba(17,216,208,.035); }
.link-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(17,216,208,.38); border-radius: 50%; color: var(--cyan); }
.link-icon.violet { color: #a273ff; border-color: rgba(129,82,255,.4); }
.link-icon svg, .chevron { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.link-icon svg { width: 20px; }
.chevron { width: 15px; color: #63717d; }
.account-links strong, .account-links small { display: block; }
.account-links strong { margin-bottom: 5px; font-size: 13px; }
.account-links small { color: #6f7c88; font-size: 10px; }
.dashboard-status { margin-top: 16px; }

.account-footer { width: min(1410px, calc(100% - 96px)); }

@media (max-width: 900px) {
  .account-main { width: calc(100% - 32px); padding-top: 42px; }
  .account-auth { grid-template-columns: 1fr; gap: 16px; min-height: 0; }
  .auth-intro { padding-bottom: 20px; }
  .account-orbit { right: 0; top: -88px; }
  .auth-panel { max-width: 600px; width: 100%; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .account-links { grid-template-columns: 1fr; }
  .account-links a { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .account-links a:last-child { border-bottom: 0; }
}

@media (max-width: 620px) {
  .account-page::before { display: none; }
  .account-header { width: calc(100% - 32px); }
  .account-user { gap: 0; }
  .account-user > span { display: none; }
  .header-logout { padding-left: 0; border-left: 0; color: #aab5bf; }
  .account-main { min-height: calc(100vh - 160px); padding: 38px 0 56px; }
  .auth-intro { padding-top: 90px; }
  .auth-intro h1, .dashboard-heading h1 { font-size: 43px; }
  .auth-intro > p, .dashboard-heading p { font-size: 15px; line-height: 1.55; }
  .account-orbit { right: -48px; top: -60px; width: 230px; }
  .account-power { width: 52px; height: 52px; }
  .account-power::before { top: 13px; height: 15px; }
  .account-power::after { inset: 13px; }
  .auth-panel { min-height: 430px; padding: 25px 20px; }
  .auth-security { left: 20px; right: 20px; bottom: 22px; }

  .dashboard { padding-top: 0; }
  .dashboard-heading { min-height: 225px; padding-top: 105px; }
  .dashboard-heading p { margin-top: 15px; }
  .dashboard-orbit { right: -76px; top: -105px; width: 300px; }
  .subscription-panel, .devices-panel { min-height: 0; padding: 27px 22px; }
  .subscription-title h2 { font-size: 31px; }
  .subscription-data { grid-template-columns: 1fr; margin: 26px 0; }
  .subscription-data > div { padding: 19px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.08); }
  .subscription-data > div:first-child { padding-top: 0; border-top: 0; }
  .subscription-data > div:last-child { padding-bottom: 0; }
  .subscription-data strong { font-size: 19px; }
  .subscription-data .accent-value { font-size: 21px; }
  .subscription-actions { grid-template-columns: 1fr; }
  .subscription-actions .button { width: 100%; }
  .devices-panel { margin-top: 0; }
  .device-row { grid-template-columns: 48px 1fr; gap: 13px; padding: 16px 0; }
  .device-icon { width: 44px; height: 44px; }
  .device-remove { grid-column: 2; justify-self: start; padding: 2px 0 8px; }
  .device-confirm { grid-column: 1 / -1; align-items: flex-start; flex-direction: column; margin-top: -8px; }
  .account-links a { min-height: 92px; padding: 0 18px; }
  .account-footer { width: calc(100% - 32px); }
  .account-footer .brand { display: none; }
  .account-footer { grid-template-columns: 1fr; justify-items: center; min-height: 78px; }
  .account-footer > span { justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  .account-page * { scroll-behavior: auto !important; }
}
