:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050906;
  color: #edf5e9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 5%, rgba(83, 211, 111, .12), transparent 32rem),
    linear-gradient(135deg, #050906 0%, #09130c 52%, #050806 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(123, 255, 146, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(123, 255, 146, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

button, input { font: inherit; }

.account-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 60px;
}

.account-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  letter-spacing: .08em;
}

.account-brand > strong {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #4bc86c;
  color: #62e683;
  background: rgba(30, 99, 45, .2);
  font-size: 15px;
}

.account-brand > span { font-size: 12px; font-weight: 800; }
.account-brand small { display: block; margin-top: 2px; color: #829487; font-size: 8px; }

.account-card {
  position: relative;
  width: min(760px, 100%);
  margin: 68px auto 28px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(113, 222, 137, .22);
  border-top-color: rgba(113, 222, 137, .72);
  background: rgba(8, 17, 10, .94);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

.account-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 42px;
  width: 110px;
  height: 3px;
  background: #55de78;
  box-shadow: 0 0 25px rgba(85, 222, 120, .65);
}

.account-kicker, .device-request > span {
  color: #5fe181;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .17em;
}

.account-copy h1 { margin: 9px 0 10px; font-size: clamp(28px, 5vw, 42px); line-height: 1; letter-spacing: -.04em; }
.account-copy p { margin: 0; color: #94a399; font-size: 13px; line-height: 1.6; }

.device-request {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-left: 3px solid #e65b32;
  background: rgba(230, 91, 50, .09);
}
.device-request strong, .device-request small { display: block; }
.device-request strong { margin-top: 4px; font-size: 14px; }
.device-request small { margin-top: 3px; color: #9caaa0; font-size: 11px; }

.account-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 26px 0 18px; }
.account-tabs button, .account-actions button {
  min-height: 38px;
  border: 1px solid #263a2a;
  background: #0b160e;
  color: #91a497;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  cursor: pointer;
}
.account-tabs button[aria-selected="true"] { border-color: #55d879; color: #eaf5ec; background: #14271a; }

.account-form { display: grid; gap: 13px; }
.account-form label { display: grid; gap: 6px; }
.account-form label > span { color: #a8b6ac; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.account-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #263b2b;
  outline: none;
  background: #071009;
  color: #eff8f0;
  padding: 0 14px;
}
.account-form input:focus { border-color: #58db7b; box-shadow: 0 0 0 3px rgba(88, 219, 123, .09); }
.account-form > small { margin-top: -6px; color: #718077; font-size: 10px; }

.account-primary {
  min-height: 48px;
  border: 0;
  background: #e45b32;
  color: #100b08;
  font-weight: 950;
  font-size: 11px;
  letter-spacing: .12em;
  cursor: pointer;
}
.account-primary:hover { background: #f36b41; }
.account-primary:disabled { opacity: .5; cursor: wait; }

.account-profile { margin-top: 25px; }
.account-user { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px; background: #0b160e; border: 1px solid #25382a; }
.account-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #31543a;
  background: #17301e;
  color: #5ee07f;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-avatar > small {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 4px 2px;
  background: rgba(3, 9, 5, .86);
  color: #dce9df;
  font-size: 7px;
  letter-spacing: .08em;
  opacity: 0;
  transition: opacity .16s ease;
}
.account-avatar:hover > small, .account-avatar:focus-visible > small { opacity: 1; }
.account-user strong, .account-user small { display: block; }
.account-user small { margin-top: 4px; color: #7f9185; font-size: 10px; }
.account-plan { padding: 5px 8px; border: 1px solid #e45b32; color: #ff805a; font-size: 9px; font-weight: 900; }
.account-profile > .account-primary { width: 100%; margin-top: 12px; }
.account-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.account-overview article { min-width: 0; padding: 15px; border: 1px solid #203326; background: #08110a; }
.account-overview span, .account-overview strong, .account-overview small { display: block; }
.account-overview span { color: #74877a; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.account-overview strong { margin-top: 7px; color: #edf6ef; font-size: 20px; line-height: 1; }
.account-overview small { margin-top: 6px; color: #7d8e82; font-size: 9px; line-height: 1.4; }
.account-renewal {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
  padding: 15px;
  border: 1px solid rgba(230, 91, 50, .4);
  background: linear-gradient(100deg, rgba(230, 91, 50, .13), rgba(8, 17, 10, .8));
}
.account-renewal span { color: #f07b56; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.account-renewal strong { display: block; margin-top: 5px; font-size: 13px; }
.account-renewal p { margin: 5px 0 0; color: #8fa095; font-size: 10px; line-height: 1.45; }
.account-renewal button { min-height: 34px; padding: 0 13px; border: 1px solid #e45b32; background: #e45b32; color: #100b08; font-size: 8px; font-weight: 950; letter-spacing: .08em; cursor: pointer; }
.account-renewal.is-active { border-color: rgba(85, 216, 121, .32); background: rgba(35, 88, 48, .12); }
.account-renewal.is-active span { color: #69df88; }
.account-renewal.is-active button { border-color: #31543a; background: #102016; color: #bcd0c0; }
.account-devices { margin-top: 12px; padding: 12px; border: 1px solid #203326; background: #08110a; }
.account-devices > header { display: flex; align-items: center; justify-content: space-between; color: #91a397; font-size: 9px; letter-spacing: .08em; }
.account-devices > header small { color: #e4714d; font-weight: 900; }
.account-devices [data-device-list] { display: grid; gap: 6px; margin-top: 9px; }
.account-devices [data-device-list] > small { color: #65746a; font-size: 9px; }
.account-device { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 8px; background: #0d1910; }
.account-device strong, .account-device small { display: block; }
.account-device strong { font-size: 10px; }
.account-device small { margin-top: 2px; color: #6f7e73; font-size: 8px; }
.account-device button { min-height: 25px; border: 1px solid #563225; background: transparent; color: #d7795a; font-size: 8px; font-weight: 800; cursor: pointer; }
.account-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 12px; }
.account-actions button:hover { border-color: #56725e; color: white; }

.account-message { min-height: 18px; margin: 15px 0 0; color: #d6a071; text-align: center; font-size: 11px; }
.account-message.is-error { color: #ff795d; }
.account-message.is-ok { color: #60df82; }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(820px, 100%); margin: 0 auto; }
.plan-grid article { padding: 17px; border: 1px solid #1c2d20; background: rgba(8, 16, 10, .75); }
.plan-grid span, .plan-grid strong, .plan-grid small { display: block; }
.plan-grid span { color: #e0643e; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.plan-grid strong { margin-top: 6px; font-size: 18px; }
.plan-grid small { margin-top: 5px; color: #77877d; line-height: 1.4; }

[hidden] { display: none !important; }

@media (max-width: 680px) {
  .account-shell { width: min(100% - 20px, 560px); padding-top: 18px; }
  .account-card { margin-top: 36px; padding: 24px 18px; }
  .plan-grid { grid-template-columns: 1fr; }
  .account-actions { grid-template-columns: 1fr; }
  .account-overview { grid-template-columns: 1fr; }
  .account-renewal { grid-template-columns: 1fr; }
}
