:root {
  --orange: #FF5C35;
  --orange-light: #FF8B5C;
  --purple: #7B2FF7;
  --purple-dark: #4B1E9C;
  --teal: #00D2A0;
  --yellow: #FFD23F;
  --ink: #1A1436;
  --ink-soft: #4A4363;
  --cream: #FFF8F0;
  --white: #FFFFFF;
  --gradient-main: linear-gradient(135deg, var(--purple) 0%, var(--orange) 55%, var(--teal) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(123,47,247,0.08) 0%, rgba(255,92,53,0.08) 55%, rgba(0,210,160,0.08) 100%);
  --shadow-soft: 0 10px 30px rgba(26, 20, 54, 0.10);
  --shadow-strong: 0 20px 50px rgba(26, 20, 54, 0.18);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, .brand, .card-number, button, .btn-secondary, .btn-danger {
  font-family: 'Fredoka', 'Inter', sans-serif;
}

.topbar {
  background: var(--white);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 3px solid transparent;
  border-image: var(--gradient-main) 1;
  box-shadow: var(--shadow-soft);
}
.brand {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}
.brand-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--purple);
  background: rgba(123,47,247,0.10);
  padding: 3px 8px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}
nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 20px;
  background: var(--gradient-soft);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.15s ease;
}
nav a:hover { background: var(--gradient-main); color: var(--white); }
.who { color: var(--ink-soft); font-size: 0.85rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--gradient-soft);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.container {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  width: 100%;
}

h1 { font-size: 1.6rem; margin-bottom: 12px; color: var(--ink); }
h2 { font-size: 1.15rem; margin: 28px 0 10px; color: var(--purple-dark); }

.flash {
  background: rgba(0,210,160,0.12);
  border: 1px solid var(--teal);
  color: #046652;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-weight: 500;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--teal);
}
.card.highlight { border-top-color: var(--orange); background: linear-gradient(180deg, rgba(255,92,53,0.06), var(--white) 40%); }
.card-number { font-size: 1.9rem; font-weight: 600; background: var(--gradient-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card-label { font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; }

.stage-row { display: flex; flex-wrap: wrap; gap: 8px; }
.stage-pill {
  background: var(--white);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(123,47,247,0.15);
}

.table-wrap { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 12px; text-align: left; font-size: 0.85rem; border-bottom: 1px solid rgba(26,20,54,0.06); }
th { background: var(--gradient-soft); color: var(--purple-dark); font-weight: 600; }
tr:hover td { background: rgba(255,210,63,0.08); }
td a { color: var(--orange); text-decoration: none; font-weight: 500; }
td a:hover { color: var(--purple); }

.badge {
  background: var(--gradient-soft);
  color: var(--purple-dark);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.quick-btn {
  border: none;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease;
}
.quick-btn:hover { transform: scale(1.1); }

.login-box, .prospect-form {
  max-width: 420px;
  margin: 40px auto;
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  display: flex;
  flex-direction: column;
  border-top: 5px solid transparent;
  border-image: var(--gradient-main) 1;
}
.login-box h1 { text-align: center; }

label { margin-top: 12px; margin-bottom: 4px; font-size: 0.85rem; color: var(--ink-soft); font-weight: 500; }
input, select, textarea {
  background: var(--cream);
  border: 1px solid rgba(26,20,54,0.12);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  width: 100%;
  font-family: 'Inter', sans-serif;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(123,47,247,0.12);
}
textarea { min-height: 70px; resize: vertical; }

button, .btn-secondary, .btn-danger {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
button[type="submit"] { background: var(--gradient-main); color: white; box-shadow: var(--shadow-soft); }
button[type="submit"]:hover { filter: brightness(1.05); }
.btn-secondary { background: var(--gradient-soft); color: var(--ink); display: inline-block; }
.btn-danger { background: rgba(255,92,53,0.12); color: var(--orange); width: 100%; border: 1px solid rgba(255,92,53,0.25); }
.form-actions { display: flex; gap: 10px; }
.form-actions .btn-secondary { flex: 1; }
.form-actions button { flex: 2; }

.site-footer {
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid rgba(26,20,54,0.08);
  background: var(--white);
}
.site-footer a { color: var(--purple); text-decoration: none; font-weight: 500; }
.site-footer a:hover { color: var(--orange); }
.heart { color: var(--orange); }

@media (max-width: 768px) {
  .topbar { position: relative; }
  .menu-toggle { display: flex; }
  nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--white);
    padding: 14px;
    box-shadow: var(--shadow-soft);
    border-radius: 0 0 16px 16px;
    z-index: 20;
  }
  nav.nav-open { display: flex; }
  nav a { text-align: center; }
  .who { text-align: center; padding: 4px 0; }
}

@media (max-width: 480px) {
  .topbar { flex-direction: row; align-items: center; }
  h1 { font-size: 1.3rem; }
}


/* Responsive card layout for the "All prospects" table on small screens,
   so nothing needs horizontal scrolling on mobile. */
@media (max-width: 768px) {
  .table-wrap table,
  .table-wrap thead,
  .table-wrap tbody,
  .table-wrap th,
  .table-wrap td,
  .table-wrap tr {
    display: block;
  }
  .table-wrap thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  .table-wrap {
    overflow-x: visible;
    box-shadow: none;
    background: transparent;
  }
  .table-wrap tr {
    margin-bottom: 14px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    background: var(--white);
    padding: 10px 14px;
    border-top: 4px solid var(--teal);
  }
  .table-wrap td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    text-align: right;
    padding: 8px 0;
    border-bottom: 1px solid rgba(26,20,54,0.06);
  }
  .table-wrap td:last-child {
    border-bottom: none;
  }
  .table-wrap td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--purple-dark);
    text-align: left;
    flex-shrink: 0;
  }
}
