:root {
  --bg: #10151d;
  --bg-soft: #151d29;
  --panel: #1c2736;
  --line: #2d3b50;
  --text: #e8edf5;
  --muted: #a7b4c7;
  --accent: #4dd6a7;
  --accent-soft: #1f6e59;
  --warn: #ff8f5c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background:
    radial-gradient(900px 400px at -10% -10%, #1e3a5f 0%, transparent 65%),
    radial-gradient(800px 360px at 110% 0%, #25404c 0%, transparent 60%),
    var(--bg);
  color: var(--text);
}

a {
  color: var(--text);
  text-decoration: none;
}

.container {
  width: min(1180px, 100% - 24px);
  margin: 0 auto;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(14, 20, 30, 0.85);
  backdrop-filter: blur(6px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(77, 214, 167, 0.8);
}

.menu {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.menu a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.menu a:hover,
.menu a.active {
  color: var(--text);
  background: var(--panel);
}

.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  padding: 20px 0 32px;
}

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.12)), var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.panel-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.9px;
  font-weight: 700;
}

.news-item {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.news-item:last-child {
  border-bottom: 0;
}

.news-item h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.news-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.news-item p {
  margin: 0;
  line-height: 1.5;
  color: #d3deec;
}

.side-section {
  margin-bottom: 14px;
}

.side-links {
  padding: 10px;
}

.side-links a {
  display: block;
  padding: 10px;
  border-radius: 8px;
  color: var(--muted);
}

.side-links a:hover {
  background: #223145;
  color: var(--text);
}

.cta-box {
  padding: 14px;
  color: #d9e4f2;
}

.cta-box strong {
  display: block;
  margin-bottom: 8px;
}

.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #07281e;
  font-weight: 700;
}

.btn.alt {
  border-color: var(--accent-soft);
  background: transparent;
  color: var(--text);
}

.footer {
  color: var(--muted);
  font-size: 13px;
  padding: 20px 0 40px;
}

.account-wrap {
  max-width: 840px;
  margin: 20px auto 40px;
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 10px 10px 0;
}

.tab-btn {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #172230;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
}

.tab-btn.active {
  color: var(--text);
  border-color: var(--accent-soft);
}

.form-pane {
  display: none;
  padding: 14px;
}

.form-pane.active {
  display: block;
}

.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
}

.field input {
  width: 100%;
  background: #111925;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 10px;
}

.hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.status {
  margin-top: 10px;
  min-height: 18px;
  font-size: 14px;
}

.status.ok {
  color: var(--accent);
}

.status.error {
  color: var(--warn);
}

.hidden {
  display: none !important;
}

body.account-theme {
  background:
    linear-gradient(180deg, #0a0f1e 0%, #0c1020 55%, #10152a 100%);
}

.account-nav-wrap {
  border-top: 2px solid #132362;
  border-bottom: 2px solid #2e4ae0;
  background: linear-gradient(90deg, #101527, #09143e 45%, #12265d);
  padding: 14px 0;
}

.account-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.nav-tile {
  display: grid;
  place-items: center;
  min-height: 54px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.8px;
  background: #121826;
  border: 1px solid #2f3f5b;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  color: #e3ecff;
}

.nav-tile.active {
  border-color: #5f7bff;
  box-shadow: inset 0 0 0 1px #5f7bff;
}

.nav-tile:hover {
  border-color: #5f7bff;
}

.account-shell {
  width: min(980px, calc(100% - 24px));
  margin: 26px auto 40px;
}

.account-title-wrap {
  margin-bottom: 22px;
}

.account-title-wrap h1 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 44px;
  letter-spacing: 1px;
}

.account-title-line {
  height: 4px;
  width: min(650px, 80%);
  margin: 0 auto;
  background: linear-gradient(90deg, #7084ff, #4f62d7);
  clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%);
}

.account-card {
  background: #0f1323;
  border: 1px solid #3b4763;
  padding: 22px;
}

.auth-pane {
  width: min(760px, 100%);
  margin: 0 auto;
}

.auth-intro {
  text-align: center;
  font-size: 16px;
  margin: 8px 0 18px;
}

.auth-intro a,
.auth-links a {
  color: #36bfff;
  text-decoration: underline;
}

.auth-box {
  border: 1px solid #3a4868;
  padding: 16px 16px 20px;
}

.auth-field {
  width: min(520px, 100%);
  margin: 0 auto 16px;
}

.auth-field label {
  text-align: center;
  color: #e6eeff;
  margin-bottom: 8px;
}

.auth-field input {
  background: #0b1120;
  color: #eaf2ff;
  border: 0;
  border-radius: 0;
  caret-color: #eaf2ff;
}

.captcha-placeholder {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(300px, 100%);
  margin: 0 auto;
  background: #f7f7f7;
  color: #1f2a44;
  border: 1px solid #d2d6df;
  min-height: 52px;
  padding: 0 12px;
}

.captcha-placeholder input {
  width: 22px;
  height: 22px;
}

.auth-outline-btn {
  display: block;
  width: min(96px, 100%);
  min-height: 48px;
  margin: 8px auto 0;
  border: 1px solid #e9edf6;
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.auth-outline-btn:hover {
  background: rgba(98, 120, 255, 0.16);
}

.auth-links {
  text-align: center;
  margin: 12px 0 0;
}

.member-view {
  width: min(540px, 100%);
  margin: 22px auto;
}

.member-greeting {
  font-size: 38px;
  margin: 0 0 28px;
}

.member-greeting span {
  color: #2cb8ff;
}

.member-buttons {
  display: grid;
  gap: 12px;
  width: min(300px, 100%);
  margin: 0 auto;
}

.member-btn {
  display: grid;
  place-items: center;
  min-height: 56px;
  border: 1px solid #e9edf6;
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
}

.member-btn:hover {
  background: rgba(98, 120, 255, 0.16);
}

.download-card {
  min-height: 430px;
  display: grid;
  align-content: center;
  gap: 34px;
}

.download-buttons {
  width: min(620px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.download-btn {
  min-height: 66px;
}

.download-copy {
  text-align: center;
  font-size: 38px;
  line-height: 1.45;
}

.download-copy p {
  margin: 0;
}

.download-link {
  color: #36bfff;
  text-decoration: underline;
}

.account-card .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 12px;
  border-bottom: 1px solid #2e3b58;
}

.account-card .tab-btn {
  background: #121a2f;
  border: 1px solid #384665;
  color: #b8c5df;
}

.account-card .tab-btn.active {
  border-color: #6f85ff;
  color: #ffffff;
}

.account-card .form-pane {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 0 0;
}

.account-card .field label {
  color: #b9c4db;
}

.account-card .field input {
  background: #0b1120;
  border-color: #384766;
  color: #eaf2ff;
  caret-color: #eaf2ff;
}

.account-card .field input::placeholder {
  color: #8ea2c7;
  opacity: 1;
}

.account-card .field input:-webkit-autofill,
.account-card .field input:-webkit-autofill:hover,
.account-card .field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #eaf2ff;
  -webkit-box-shadow: 0 0 0px 1000px #0b1120 inset;
  transition: background-color 9999s ease-in-out 0s;
}

.account-card .btn {
  width: 100%;
  border: 1px solid #dce6ff;
  background: transparent;
  color: #f4f7ff;
  min-height: 50px;
}

body.account-theme .status {
  text-align: center;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .account-nav {
    grid-template-columns: 1fr 1fr;
  }

  .nav-tile {
    font-size: 18px;
    min-height: 44px;
  }

  .account-title-wrap h1 {
    font-size: 34px;
  }

  .member-greeting {
    font-size: 28px;
  }

  .download-buttons {
    grid-template-columns: 1fr;
  }

  .download-copy {
    font-size: 30px;
  }

  .auth-box {
    padding: 12px;
  }

  .auth-field {
    margin-bottom: 12px;
  }
}
