:root {
  --ink: #0f172a;
  --ink-soft: #334155;
  --canvas: #fffdf5;
  --panel: rgba(255, 255, 255, 0.88);
  --line: rgba(15, 23, 42, 0.12);
  --accent: #f97316;
  --accent-deep: #ea580c;
  --teal: #0ea5a4;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 20%, #fed7aa 0%, transparent 30%),
    radial-gradient(circle at 80% 10%, #99f6e4 0%, transparent 26%),
    linear-gradient(160deg, #fff7ed 0%, #fffbeb 42%, #ecfeff 100%);
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.background-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 82%);
}

.shell {
  width: min(1060px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.brand-column,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(9px);
  box-shadow: var(--shadow-lg);
}

.brand-column {
  padding: clamp(24px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  font-size: 0.82rem;
}

h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.subtitle {
  margin: 18px 0 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.subtitle.compact {
  margin-top: 8px;
}

.feature-list {
  margin: 26px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  display: grid;
  gap: 8px;
  line-height: 1.4;
}

.panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.tabs {
  background: rgba(15, 23, 42, 0.06);
  padding: 5px;
  border-radius: 999px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.tab {
  border: 0;
  border-radius: 999px;
  padding: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 180ms ease;
}

.tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.form {
  display: none;
  gap: 8px;
  margin-top: 18px;
}

.form.active {
  display: grid;
}

label {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

input,
select {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 12px 13px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.15);
}

.primary-btn,
.ghost-btn,
.module-btn {
  border: 0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 130ms ease, box-shadow 130ms ease, background 130ms ease;
}

.primary-btn {
  margin-top: 8px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 10px 20px rgba(234, 88, 12, 0.28);
}

.primary-btn:hover,
.module-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.form-note {
  margin: 2px 0 0;
  font-size: 0.84rem;
  color: #475569;
}

.message {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: #b91c1c;
}

.message.success {
  color: #0f766e;
}

.hidden {
  display: none;
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
}

.ghost-btn {
  background: rgba(15, 23, 42, 0.08);
  color: var(--ink);
}

.module-grid {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.module-card {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.module-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

.module-card p {
  margin: 8px 0 12px;
  color: #334155;
  line-height: 1.55;
  font-size: 0.92rem;
}

.module-btn {
  display: inline-block;
  text-decoration: none;
  color: #111827;
  background: linear-gradient(120deg, #99f6e4, #fef3c7);
}

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

  .brand-column {
    order: 2;
  }

  .panel {
    order: 1;
  }
}
