:root {
  --bg: #040814;
  --bg-deep: #02050e;
  --surface: rgba(7, 14, 30, 0.86);
  --surface-strong: rgba(10, 18, 38, 0.96);
  --surface-soft: rgba(13, 24, 50, 0.78);
  --text: #eaf7ff;
  --text-strong: #f7fdff;
  --muted: #89a6c9;
  --accent: #44dbff;
  --accent-strong: #1fb8ff;
  --accent-soft: rgba(68, 219, 255, 0.14);
  --accent-secondary: #82ff9c;
  --accent-secondary-soft: rgba(130, 255, 156, 0.12);
  --danger: #ff6b97;
  --danger-soft: rgba(255, 107, 151, 0.12);
  --border: rgba(68, 219, 255, 0.18);
  --border-strong: rgba(130, 255, 156, 0.28);
  --shadow:
    0 24px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(68, 219, 255, 0.08) inset,
    0 0 34px rgba(31, 184, 255, 0.08);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(68, 219, 255, 0.16), transparent 22%),
    radial-gradient(circle at 88% 12%, rgba(130, 255, 156, 0.12), transparent 18%),
    radial-gradient(circle at 80% 78%, rgba(31, 184, 255, 0.12), transparent 24%),
    linear-gradient(160deg, #02050d 0%, #07101f 42%, #030611 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    linear-gradient(rgba(68, 219, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 219, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.46), transparent 84%);
  opacity: 0.3;
}

body::after {
  inset: auto auto -120px -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(68, 219, 255, 0.18), transparent 66%);
  filter: blur(18px);
  animation: drift 18s ease-in-out infinite alternate;
}

::selection {
  background: rgba(68, 219, 255, 0.28);
  color: var(--text-strong);
}

main,
section,
header,
article,
form {
  position: relative;
  z-index: 1;
}

.page-shell,
.dashboard-page {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 64px;
  position: relative;
}

.page-shell::before,
.dashboard-page::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(68, 219, 255, 0.64), transparent);
  box-shadow: 0 0 18px rgba(68, 219, 255, 0.32);
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(340px, 1.02fr) minmax(340px, 0.98fr);
  gap: 24px;
  align-items: stretch;
}

.hero-card,
.form-card,
.access-card,
.board-panel,
.stat-card,
.metric-card,
.record-card,
.empty-state {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(10, 18, 37, 0.95), rgba(5, 10, 24, 0.9));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card::before,
.form-card::before,
.access-card::before,
.board-panel::before,
.stat-card::before,
.metric-card::before,
.record-card::before,
.empty-state::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(68, 219, 255, 0.12), transparent 34%, transparent 70%, rgba(130, 255, 156, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%);
  pointer-events: none;
}

.hero-card,
.form-card,
.access-card {
  border-radius: var(--radius-xl);
  padding: 34px;
}

.board-panel {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.stat-card,
.metric-card,
.record-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(68, 219, 255, 0.26), transparent 68%);
  filter: blur(6px);
  pointer-events: none;
}

.hero-kicker,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(68, 219, 255, 0.24);
  background: rgba(8, 16, 34, 0.82);
  color: var(--accent);
  font-family: "Orbitron", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(68, 219, 255, 0.12);
}

.hero-kicker::before,
.section-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 12px var(--accent-secondary);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  color: var(--text-strong);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dashboard-header h1,
.access-card h1 {
  margin-top: 22px;
  font-size: clamp(2.35rem, 4vw, 4.7rem);
  line-height: 0.94;
  max-width: 12ch;
  text-shadow: 0 0 24px rgba(68, 219, 255, 0.14);
}

.hero-card h1 {
  margin-top: 22px;
  font-size: clamp(1.8rem, 3.8vw, 3.6rem);
  line-height: 1.02;
  max-width: 9ch;
  text-shadow: 0 0 24px rgba(68, 219, 255, 0.14);
}

.hero-copy,
.section-heading p,
.dashboard-header p,
.board-toolbar p,
.access-card p,
.empty-state p {
  color: var(--muted);
  line-height: 1.78;
}

.hero-copy {
  max-width: 58ch;
  margin: 22px 0 28px;
}

.countdown-panel {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  max-width: 34rem;
  border-radius: 20px;
  border: 1px solid rgba(68, 219, 255, 0.18);
  background: linear-gradient(180deg, rgba(7, 15, 33, 0.86), rgba(5, 10, 24, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(68, 219, 255, 0.06),
    0 0 24px rgba(68, 219, 255, 0.08);
}

.countdown-label,
.countdown-note {
  color: var(--muted);
}

.countdown-label {
  font-family: "Orbitron", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.countdown-value {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.25rem, 2.6vw, 2.05rem);
  letter-spacing: 0.08em;
  color: var(--text-strong);
  text-shadow: 0 0 22px rgba(68, 219, 255, 0.14);
}

.countdown-note {
  font-size: 0.96rem;
}

.notice-panel {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(68, 219, 255, 0.18);
  background: linear-gradient(180deg, rgba(8, 15, 32, 0.92), rgba(5, 10, 22, 0.96));
  color: var(--text);
  line-height: 1.6;
}

.notice-panel-success {
  border-color: rgba(130, 255, 156, 0.28);
  box-shadow: 0 0 22px rgba(130, 255, 156, 0.08);
}

.notice-panel-warning {
  border-color: rgba(68, 219, 255, 0.24);
  box-shadow: 0 0 22px rgba(68, 219, 255, 0.08);
}

.notice-panel-error {
  border-color: rgba(255, 107, 151, 0.28);
  box-shadow: 0 0 22px rgba(255, 107, 151, 0.08);
}

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

.metric-card,
.stat-card {
  background: linear-gradient(180deg, rgba(8, 15, 32, 0.88), rgba(5, 10, 22, 0.96));
}

.metric-label {
  display: block;
  margin-bottom: 10px;
  color: #8fc7ff;
  font-family: "Orbitron", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.metric-value,
.stat-value {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.28;
  color: var(--text-strong);
  text-shadow: 0 0 18px rgba(68, 219, 255, 0.12);
}

.metric-value-small,
.stat-value-small {
  font-size: 0.98rem;
  line-height: 1.7;
}

.dashboard-link,
.secondary-button,
.ghost-button,
.primary-button,
.inline-button {
  appearance: none;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.dashboard-link,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(6, 12, 27, 0.86);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.dashboard-link {
  margin-top: 26px;
}

.primary-button {
  min-height: 60px;
  padding: 0 26px;
  border: 1px solid rgba(68, 219, 255, 0.44);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(7, 61, 116, 0.96), rgba(14, 177, 205, 0.96));
  color: var(--text-strong);
  font-family: "Orbitron", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow:
    0 0 0 1px rgba(68, 219, 255, 0.18) inset,
    0 0 24px rgba(68, 219, 255, 0.3),
    0 18px 30px rgba(0, 0, 0, 0.42);
}

.secondary-button {
  color: var(--accent);
}

.ghost-button {
  color: #bdd9f3;
}

.danger-button {
  color: #ff9ab7;
  border-color: rgba(255, 107, 151, 0.2);
}

.dashboard-link:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.inline-button:hover {
  transform: translateY(-2px);
}

.dashboard-link:hover,
.secondary-button:hover,
.ghost-button:hover {
  border-color: rgba(68, 219, 255, 0.34);
  box-shadow:
    0 0 0 1px rgba(68, 219, 255, 0.1) inset,
    0 0 20px rgba(68, 219, 255, 0.14);
}

.primary-button:hover {
  box-shadow:
    0 0 0 1px rgba(68, 219, 255, 0.18) inset,
    0 0 30px rgba(68, 219, 255, 0.4),
    0 22px 34px rgba(0, 0, 0, 0.5);
}

.secondary-button:disabled,
.ghost-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading h2 {
  margin-top: 16px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 16ch;
  text-shadow: 0 0 20px rgba(68, 219, 255, 0.1);
}

.section-heading p {
  margin: 12px 0 0;
  max-width: 56ch;
}

.client-form,
.password-form {
  display: grid;
  gap: 18px;
}

.input-group {
  display: grid;
  gap: 10px;
}

.input-group label {
  color: #cfe7ff;
  font-family: "Orbitron", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.input-group input,
.input-group select {
  width: 100%;
  min-height: 58px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(68, 219, 255, 0.16);
  background: rgba(4, 9, 22, 0.94);
  color: var(--text-strong);
  font: inherit;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.input-group input::placeholder {
  color: #627fa2;
}

.input-group input:focus,
.input-group select:focus {
  border-color: rgba(68, 219, 255, 0.56);
  background: rgba(5, 12, 28, 0.98);
  box-shadow:
    inset 0 0 0 1px rgba(68, 219, 255, 0.2),
    0 0 0 4px rgba(68, 219, 255, 0.08),
    0 0 26px rgba(68, 219, 255, 0.12);
  transform: translateY(-1px);
}

.form-message {
  min-height: 24px;
  margin: 0;
  font-weight: 600;
}

.form-message.success {
  color: var(--accent-secondary);
}

.form-message.error {
  color: var(--danger);
}

.dashboard-page {
  display: grid;
  gap: 24px;
}

.access-card {
  width: min(560px, 100%);
  margin: 48px auto 0;
}

.dashboard-shell {
  display: grid;
  gap: 24px;
}

.hidden {
  display: none !important;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.dashboard-actions,
.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.inline-form {
  margin: 0;
}

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

.board-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 24px;
}

.board-toolbar h2,
.empty-state h3 {
  font-size: 1.4rem;
}

.board-toolbar p,
.empty-state p {
  margin: 8px 0 0;
}

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

.record-card {
  display: grid;
  gap: 18px;
  background: linear-gradient(180deg, rgba(7, 15, 33, 0.96), rgba(5, 10, 23, 0.88));
}

.record-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
}

.avatar-chip {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(68, 219, 255, 0.18), rgba(130, 255, 156, 0.18));
  border: 1px solid rgba(68, 219, 255, 0.16);
  color: var(--accent-secondary);
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow:
    0 0 0 1px rgba(68, 219, 255, 0.08) inset,
    0 0 18px rgba(68, 219, 255, 0.12);
}

.record-name {
  font-size: 1.08rem;
  letter-spacing: 0.06em;
}

.record-time {
  color: var(--muted);
  margin-top: 6px;
}

.record-details {
  display: grid;
  gap: 12px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(68, 219, 255, 0.12);
}

.detail-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.detail-label {
  color: #8db8e5;
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.record-actions {
  display: flex;
  justify-content: flex-end;
}

.inline-button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 151, 0.22);
  background: var(--danger-soft);
  color: #ff9ab7;
  font-family: "Orbitron", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.inline-button:hover {
  box-shadow: 0 0 18px rgba(255, 107, 151, 0.18);
}

.empty-state {
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(68, 219, 255, 0.28);
  text-align: center;
  background: linear-gradient(180deg, rgba(6, 12, 27, 0.88), rgba(5, 10, 22, 0.82));
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(70px, -30px, 0) scale(1.06);
  }
}

@media (max-width: 980px) {
  .page-shell,
  .stats-grid,
  .record-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header,
  .board-toolbar,
  .detail-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .board-toolbar,
  .dashboard-header {
    gap: 16px;
  }

  .dashboard-header h1,
  .access-card h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .page-shell,
  .dashboard-page {
    width: min(100% - 20px, 100%);
    padding: 18px 0 34px;
  }

  .hero-card,
  .form-card,
  .access-card,
  .board-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .metric-card,
  .stat-card,
  .record-card,
  .empty-state {
    border-radius: 20px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-actions,
  .toolbar-actions {
    width: 100%;
  }

  .dashboard-link,
  .secondary-button,
  .ghost-button,
  .primary-button,
  .inline-button {
    width: 100%;
  }

  .dashboard-header h1,
  .access-card h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-card h1 {
    font-size: clamp(1.45rem, 8vw, 2.35rem);
    line-height: 1.04;
  }

  .section-heading h2 {
    max-width: none;
  }
}
