/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:             #0b0b12;
  --surface:        #13131e;
  --surface-raised: #1a1a28;
  --border:         #252535;
  --border-subtle:  #1d1d2d;
  --text:           #e8e9f0;
  --text-secondary: #9192a8;
  --text-muted:     #55566a;
  --accent:         #2563eb;
  --accent-hover:   #1d4ed8;
  --accent-subtle:  rgba(37, 99, 235, .12);
  --warn:           #ffb454;
  --warn-subtle:    rgba(255, 180, 84, .12);
  --radius:         8px;
  --radius-lg:      12px;
  --shadow:         0 1px 3px rgba(0,0,0,.45), 0 8px 24px rgba(0,0,0,.3);
  --font:           'Inter', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font);
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ─── App Layout ──────────────────────────────────────────── */
.app-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 18, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 30px;
  width: auto;
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
}

.app-main {
  flex: 1;
  padding: 64px 24px 80px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

/* ─── Page Intro ──────────────────────────────────────────── */
.page-intro {
  text-align: center;
  margin-bottom: 40px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--text);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* ─── Form Grid ───────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* ─── Form Tile ───────────────────────────────────────────── */
.form-tile {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}

.form-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(37,99,235,.04) 60%, rgba(37,99,235,.08) 100%);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}

.form-tile:hover {
  border-color: var(--accent);
  background: var(--surface-raised);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, .15);
}

.form-tile:hover::before { opacity: 1; }

.form-tile:active {
  transform: translateY(0);
}

.tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}

.tile-icon--accent {
  background: var(--accent-subtle);
  color: var(--accent);
}

.tile-icon--warn {
  background: var(--warn-subtle);
  color: var(--warn);
}

.form-tile:hover .tile-icon--accent {
  background: var(--accent);
  color: #fff;
}

.form-tile:hover .tile-icon--warn {
  background: var(--warn);
  color: #2a1a05;
}

.tile-body {
  flex: 1;
  min-width: 0;
}

.tile-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.015em;
  margin-bottom: 4px;
}

.tile-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tile-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 4px;
  transition: color .15s, transform .15s;
}

.form-tile:hover .tile-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 720px) {
  .app-header { padding: 0 16px; }
  .app-main { padding: 40px 16px 56px; }
  .page-title { font-size: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-tile { padding: 18px 18px; }
}
