:root {
  --bg: #0b1020;
  --panel: #111827;
  --panel-soft: #161f32;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --accent: #22c55e;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --warning: #f59e0b;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #0b1020 0%, #111827 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

button, input, textarea {
  font: inherit;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.login-card {
  width: min(450px, 100%);
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 18px 30px rgba(0,0,0,0.14);
}

.brand-login {
  margin-bottom: 1rem;
}

.login-card h2 {
  margin: 0 0 0.5rem;
}

.login-card p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 1rem;
}

.full-width {
  width: 100%;
}

.status {
  min-height: 1.3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.status.success {
  color: #a7f3d0;
}

.status.error {
  color: #fca5a5;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 16, 32, 0.9);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  font-weight: 700;
}

.brand h1 {
  margin: 0;
  font-size: 1.1rem;
}

.brand small {
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.8;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero h2 {
  font-size: clamp(2.1rem, 2.6vw, 3rem);
  margin: 0.2rem 0 1rem;
  line-height: 1.15;
}

.subtitle {
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.6;
}

.hero-actions,
.actions-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.primary-btn, .secondary-btn, .small-btn {
  border: 0;
  border-radius: 10px;
  padding: 0.8rem 1.1rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.primary-btn {
  background: var(--primary);
  color: white;
}

.primary-btn:hover {
  background: var(--primary-hover);
}

.secondary-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.small-btn {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
  padding: 0.45rem 0.8rem;
}

.stats-card,
.card,
.panel {
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 30px rgba(0,0,0,0.14);
}

.stats-card {
  padding: 1.2rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.stat-row:last-child {
  border-bottom: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.card,
.panel {
  padding: 1.2rem;
}

.card h3,
.panel h3 {
  margin-top: 0;
}

.list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.account-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  border: 1px solid transparent;
}

.badge.success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.4);
  color: #a7f3d0;
}

.badge.neutral {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.3);
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.composer {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
}

input[type="text"], textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  color: var(--text);
}

.network-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
}

.calendar-placeholder {
  display: grid;
  grid-template-columns: repeat(7, minmax(80px, 1fr));
  gap: 0.6rem;
}

.day,
.date {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.6rem;
  min-height: 62px;
}

.day {
  text-align: center;
  min-height: auto;
  background: transparent;
  border: none;
  color: var(--muted);
}

.date.muted {
  opacity: 0.45;
}

.date.event {
  background: rgba(79, 70, 229, 0.18);
  border-color: rgba(79, 70, 229, 0.5);
}

.date.linkedIn {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(96, 165, 250, 0.5);
}

.account-table {
  width: 100%;
  border-collapse: collapse;
}

.account-table th, .account-table td {
  padding: 0.9rem 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

@media (max-width: 820px) {
  .topbar {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero,
  .grid {
    grid-template-columns: 1fr;
  }

  .calendar-placeholder {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}
