:root {
  color-scheme: light;
  --bg: #f4f5f8;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --line: rgba(17, 19, 24, 0.08);
  --text: #111318;
  --muted: #61697a;
  --accent: #2f3bff;
  --accent-soft: rgba(47, 59, 255, 0.12);
  --shadow: 0 24px 80px rgba(19, 25, 40, 0.12);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "PingFang SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(47, 59, 255, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(17, 19, 24, 0.08), transparent 32%),
    var(--bg);
}

body.geo-account-theme {
  color-scheme: dark;
  --bg: #041521;
  --surface: rgba(13, 29, 42, 0.88);
  --surface-strong: #11212e;
  --line: rgba(142, 145, 152, 0.35);
  --text: #d4e4f6;
  --muted: #9fb0c3;
  --accent: #afc8f0;
  --accent-soft: rgba(175, 200, 240, 0.2);
  --shadow: 0 24px 80px rgba(0, 6, 12, 0.46);
  background:
    radial-gradient(circle at 12% 8%, rgba(175, 200, 240, 0.24), transparent 30%),
    radial-gradient(circle at 86% 94%, rgba(0, 227, 253, 0.2), transparent 34%),
    #041521;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.account-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.account-shell.is-geo-flow {
  width: min(1240px, calc(100vw - 24px));
  padding-top: 28px;
}

.account-header,
.account-main,
.account-grid,
.account-cards,
.form-grid,
.auth-tabs,
.product-grid,
.usage-grid,
.event-list {
  display: grid;
  gap: 16px;
}

.account-header {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  margin-bottom: 24px;
}

.geo-account-theme .account-header {
  margin-bottom: 16px;
  padding: 16px 20px;
  border-radius: 24px;
  border: 1px solid rgba(142, 145, 152, 0.3);
  background: rgba(13, 29, 42, 0.76);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.header-links {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-link,
.ghost-button,
.primary-button,
.secondary-button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.header-link,
.ghost-button,
.secondary-button {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
}

.geo-account-theme .header-link,
.geo-account-theme .ghost-button,
.geo-account-theme .secondary-button {
  background: rgba(17, 33, 46, 0.74);
  border-color: rgba(142, 145, 152, 0.35);
  color: #d4e4f6;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), #111318);
  color: #fff;
  box-shadow: 0 16px 32px rgba(47, 59, 255, 0.18);
}

.geo-account-theme .primary-button {
  background: linear-gradient(135deg, #afc8f0, #476083);
  color: #001c3a;
  box-shadow: 0 14px 30px rgba(175, 200, 240, 0.24);
}

.header-link:hover,
.ghost-button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.account-main {
  grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.8fr);
  align-items: start;
}

.account-main.is-geo-flow {
  grid-template-columns: minmax(0, 1.04fr) minmax(410px, 0.96fr);
  gap: 0;
  min-height: 760px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(67, 71, 78, 0.5);
  background: rgba(13, 29, 42, 0.8);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.4);
}

.hero-card,
.panel-card,
.usage-card,
.product-card,
.event-card,
.metric-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.geo-account-theme .hero-card,
.geo-account-theme .panel-card,
.geo-account-theme .usage-card,
.geo-account-theme .product-card,
.geo-account-theme .event-card,
.geo-account-theme .metric-card {
  border-color: rgba(67, 71, 78, 0.5);
}

.geo-account-theme .account-main.is-geo-flow .hero-card,
.geo-account-theme .account-main.is-geo-flow .panel-card {
  border-radius: 0;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-card {
  padding: 36px;
  min-height: 420px;
  position: relative;
  overflow: hidden;
}

.hero-card-geo {
  min-height: 760px;
  padding: 54px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(150deg, rgba(4, 21, 33, 0.42), rgba(1, 15, 28, 0.84)),
    url("../products/geo-assets/images/img-11-d45aa1ceac06.png");
  background-size: cover;
  background-position: center;
}

.hero-card-geo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(4, 21, 33, 0.22) 14%, rgba(4, 21, 33, 0.9) 78%);
}

.hero-card-geo > * {
  position: relative;
  z-index: 1;
}

.geo-account-theme .hero-card-geo h1 {
  color: #e7f1ff;
  font-size: clamp(34px, 4.2vw, 54px);
}

.geo-account-theme .hero-card-geo p {
  color: #c0d2e9;
  max-width: 560px;
}

.geo-feature-list {
  margin-top: 28px;
  display: grid;
  gap: 12px;
  max-width: 560px;
}

.geo-feature-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(175, 200, 240, 0.26);
  background: rgba(12, 27, 42, 0.58);
  backdrop-filter: blur(8px);
}

.geo-feature-item strong {
  font-size: 14px;
  letter-spacing: 0.04em;
}

.geo-feature-item span {
  color: #9eb4cc;
  font-size: 13px;
  line-height: 1.5;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -60px -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(47, 59, 255, 0.14), transparent 66%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card h1 {
  margin: 22px 0 14px;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
}

.hero-card p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions,
.metric-row,
.product-meta,
.usage-row,
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 26px;
}

.metric-row {
  margin-top: 28px;
}

.metric-card {
  min-width: 148px;
  padding: 18px 20px;
}

.metric-card strong {
  display: block;
  font-size: 28px;
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.metric-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.panel-card {
  padding: 28px;
}

.panel-card-geo {
  padding: 42px 38px;
  background: rgba(4, 21, 33, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.geo-account-theme .panel-card-geo h2 {
  font-size: 31px;
}

.geo-account-theme .panel-card-geo p {
  color: #a8bfd8;
}

.panel-card h2,
.usage-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.panel-card p,
.usage-card p,
.product-card p,
.event-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.auth-tabs {
  grid-template-columns: repeat(2, 1fr);
  margin: 22px 0 18px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(17, 19, 24, 0.05);
}

.geo-account-theme .auth-tabs {
  background: rgba(17, 33, 46, 0.9);
  border: 1px solid rgba(67, 71, 78, 0.5);
}

.auth-tab {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.geo-account-theme .auth-tab {
  color: #a5b8cf;
}

.auth-tab.is-active {
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 8px 22px rgba(17, 19, 24, 0.08);
}

.geo-account-theme .auth-tab.is-active {
  background: rgba(175, 200, 240, 0.2);
  color: #d4e4f6;
  box-shadow: none;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field.is-full {
  grid-column: 1 / -1;
}

.field span {
  font-size: 13px;
  font-weight: 700;
  color: #464d5b;
}

.geo-account-theme .field span {
  color: #b4c7de;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.88);
}

.geo-account-theme .field input,
.geo-account-theme .field select {
  border-color: rgba(142, 145, 152, 0.45);
  background: rgba(17, 33, 46, 0.88);
  color: #d4e4f6;
}

.geo-account-theme .field input::placeholder {
  color: #7f95af;
}

.geo-account-theme .field select option {
  color: #111318;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.status-text {
  min-height: 22px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.status-text.is-error {
  color: #bf2f4a;
}

.dashboard-grid {
  display: grid;
  gap: 22px;
}

.usage-card {
  padding: 28px;
}

.usage-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.usage-item {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(17, 19, 24, 0.03);
}

.geo-account-theme .usage-item,
.geo-account-theme .meta-pill {
  background: rgba(17, 33, 46, 0.82);
}

.usage-item strong {
  display: block;
  font-size: 30px;
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.usage-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card {
  padding: 22px;
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.product-meta {
  margin-top: 16px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(17, 19, 24, 0.05);
  color: #464d5b;
  font-size: 13px;
  font-weight: 600;
}

.meta-pill.is-primary {
  background: var(--accent-soft);
  color: var(--accent);
}

.product-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.event-list {
  margin-top: 18px;
}

.event-card {
  padding: 18px 20px;
  display: grid;
  gap: 10px;
}

.event-card strong {
  font-size: 16px;
}

.event-meta {
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(17, 19, 24, 0.12);
  color: var(--muted);
}

.geo-account-theme .empty-state {
  border-color: rgba(142, 145, 152, 0.38);
}

@media (max-width: 980px) {
  .account-main,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .account-main.is-geo-flow {
    min-height: auto;
  }

  .hero-card-geo {
    min-height: 460px;
    border-bottom: 1px solid rgba(67, 71, 78, 0.5);
  }

  .account-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .header-links {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .account-shell {
    width: min(100vw - 20px, 100%);
    padding-top: 16px;
  }

  .account-shell.is-geo-flow {
    width: min(100vw - 14px, 100%);
  }

  .hero-card,
  .panel-card,
  .usage-card {
    padding: 22px;
  }

  .hero-card-geo {
    min-height: 420px;
    padding: 30px 24px;
  }

  .panel-card-geo {
    padding: 26px 20px;
  }

  .form-grid,
  .usage-grid {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}
