:root {
  --bg: #002d36;
  --bg-deep: #001b22;
  --panel: #ffffff;
  --ink: #162233;
  --muted: #667085;
  --line: #d9e2e7;
  --blue: #2557d9;
  --cyan: #03a8d9;
  --green: #168a41;
  --red: #d7212d;
  --orange: #f28b17;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #f3f6f8;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 22px;
}

.auth-shell {
  width: min(100%, 520px);
}

.auth-card {
  width: 100%;
  padding: 28px 24px 24px;
  background: var(--panel);
  border: 1px solid #edf1f4;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-logo {
  display: block;
  width: 100%;
  max-height: 126px;
  object-fit: contain;
  border-radius: 8px;
  background: #020202;
}

.auth-subtitle {
  margin: 16px 0 22px;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.segmented__item {
  min-height: 52px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.segmented__item.is-active {
  color: var(--blue);
  border-color: var(--blue);
}

.auth-form {
  display: none;
}

.auth-form.is-active {
  display: block;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field span {
  color: #111827;
}

.field input {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid #d4dce4;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
}

.field--password {
  position: relative;
}

.field--password input {
  padding-right: 54px;
}

.field--password .password-toggle {
  position: absolute;
  right: 8px;
  bottom: 7px;
}

.primary-button,
.danger-button,
.add-button,
.round-button,
.icon-button,
.link-button,
.store-item,
.module-card__launch {
  border: 0;
}

.primary-button {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.link-button {
  display: block;
  width: 100%;
  margin-top: 18px;
  background: transparent;
  color: var(--blue);
}

.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #eef3f8;
  color: #334155;
  font-size: 24px;
  line-height: 1;
}

.suite-page {
  background:
    radial-gradient(circle at 50% 0, rgba(0, 174, 220, 0.16), transparent 34%),
    linear-gradient(180deg, #001a21 0, var(--bg) 48%, #003b48 100%);
}

.app-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 28px;
  background: linear-gradient(180deg, #002a34 0, #003947 100%);
}

.suite-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-bottom: 0;
  background: transparent;
}

.suite-header__image {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  aspect-ratio: 2.56 / 1;
  object-fit: cover;
  border-bottom-left-radius: 34px;
  border-bottom-right-radius: 34px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

.user-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  margin-top: -28px;
  padding: 34px 10px 10px;
  background: #585f64;
  color: #fff;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.user-bar__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.round-button,
.add-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
}

.round-button--blue {
  background: var(--blue);
}

.round-button--home {
  background: linear-gradient(135deg, #ff9b18, #ffcf4d);
}

.danger-button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
}

.modules-section {
  padding: 18px 20px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  color: #fff;
}

.section-heading h1,
.modal h2 {
  margin: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.add-button {
  width: 52px;
  height: 52px;
  background: #087e44;
  font-size: 32px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.module-card__launch {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 0;
  background: transparent;
  color: #fff;
  text-align: left;
}

.module-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 124px;
  border-radius: 8px;
  background: linear-gradient(145deg, #0a0a0a 0, #2b2f32 52%, #050505 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.module-icon::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.module-icon__brand {
  position: absolute;
  top: 14px;
  left: 14px;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  font-style: italic;
  text-shadow: 2px 2px 0 var(--red);
}

.module-icon__symbol {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #fff;
  color: var(--red);
  font-size: 28px;
  font-weight: 900;
}

.module-icon--pet .module-icon__symbol {
  color: #ff8a00;
}

.module-card__title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.module-card__status {
  width: max-content;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #b8ecff;
  font-size: 12px;
}

.modal {
  width: min(calc(100vw - 32px), 420px);
  padding: 22px;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.56);
}

.modal__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.muted {
  color: var(--muted);
  line-height: 1.5;
}

.store-list,
.info-stack {
  display: grid;
  gap: 10px;
}

.store-item,
.info-row,
.admin-card {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.store-item span,
.info-row strong,
.admin-card strong {
  font-weight: 800;
}

.store-item small,
.admin-card small,
.info-row span {
  color: var(--muted);
}

.admin-grid {
  display: grid;
  gap: 12px;
}

@media (max-width: 360px) {
  .modules-section {
    padding-inline: 14px;
  }

  .module-grid {
    gap: 12px;
  }

  .user-bar {
    font-size: 14px;
  }
}
