:root {
  --bg: #050812;
  --panel: #0f1729;
  --panel-alt: #161c2c;
  --blue: #5b9dff;
  --text: #edf2ff;
  --muted: #8da1c3;
  --border: #1f2a3f;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: none;
}

.header {
  letter-spacing: 0.3em;
  font-size: 1.25rem;
  font-weight: 600;
}

.layout {
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(91, 157, 255, 0.15), transparent 45%),
    var(--bg);
  padding-bottom: 4rem;
}

header {
  padding: 1.5rem 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shell {
  padding: 0 2rem 3rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.login-grid .panel {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.panel h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

label {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.7em 0.9em;
  border-radius: 0.7rem;
  border: 1px solid var(--border);
  background: var(--panel-alt);
  color: var(--text);
  margin-bottom: 0.85rem;
  font-size: 12px;
  line-height: 1.4;
}

button {
  border: none;
  border-radius: 0.85rem;
  background: var(--blue);
  color: #fff;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

button.secondary {
  background: transparent;
  border-width: 1px;
  border-style: solid;
  border-color: var(--border);
  color: var(--text);
}

button.secondary:hover {
  border-color: var(--blue);
}

button:hover {
  transform: translateY(-1px);
  background: #78b7ff;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  margin-bottom: 0.4rem;
}

.status {
  color: #16e11d;
  font-size: 0.85rem;
  display: block;
  margin-top: 0.5rem;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.account-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.data-row {
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
}

.data-row:last-child {
  border-bottom: none;
}

.info {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal.is-open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 18, 0.9);
}

.modal__content {
  position: relative;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  z-index: 1;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}
