/* I'mOn App Styles - Cosmic Dark Theme */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #e8f4ff;
  --cream: #050a18;
  --warm: rgba(0, 212, 255, 0.18);
  --accent: #00d4ff;
  --accent-hover: #00b8e0;
  --accent-light: rgba(0, 212, 255, 0.12);
  --muted: rgba(180, 210, 255, 0.55);
  --card-bg: #0a1628;
  --surface-dark: #020c1a;
  --green: #00e5a0;
  --green-light: rgba(0, 229, 160, 0.1);
  --yellow: #e8c000;
  --yellow-light: rgba(255, 215, 0, 0.1);
  --red: #ff5555;
  --red-light: rgba(255, 85, 85, 0.1);
}

html, body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ---- LAYOUT ---- */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background: var(--surface-dark);
  color: var(--ink);
  padding: 1.5rem 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  border-right: 1px solid rgba(0, 212, 255, 0.1);
}

.sidebar-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 0 1.5rem;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  color: #e8f4ff;
}

.sidebar-logo span {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}

.sidebar-nav {
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: rgba(180, 210, 255, 0.55);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.sidebar-link:hover {
  color: var(--ink);
  background: rgba(0, 212, 255, 0.07);
}

.sidebar-link.active {
  color: var(--accent);
  background: rgba(0, 212, 255, 0.1);
  border-right: 3px solid var(--accent);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

.sidebar-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.sidebar-user {
  font-size: 0.8rem;
  color: rgba(180, 210, 255, 0.45);
}

.sidebar-logout {
  font-size: 0.8rem;
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem 0 0;
  font-family: inherit;
  opacity: 0.8;
}

.sidebar-logout:hover {
  text-decoration: underline;
  opacity: 1;
}

.main-content {
  margin-left: 240px;
  flex: 1;
  padding: 2rem 2.5rem;
  min-height: 100vh;
}

/* ---- PAGE HEADER ---- */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #050a18;
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(0, 212, 255, 0.08);
  color: var(--ink);
  border: 1px solid var(--warm);
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.14);
  border-color: var(--accent);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  background: rgba(0, 212, 255, 0.07);
  color: var(--ink);
}

/* ---- CARDS ---- */
.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--warm);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* ---- STAT CARDS ---- */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--warm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.08);
}

.stat-card-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
}

.stat-card-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.stat-card-value.accent {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}

.stat-card-value.green {
  color: var(--green);
}

/* ---- MATCH CARD ---- */
.match-card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid var(--warm);
  transition: all 0.2s;
  position: relative;
}

.match-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
}

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.match-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.match-company {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.match-score {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.match-score.high {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid rgba(0, 229, 160, 0.2);
}

.match-score.medium {
  background: var(--yellow-light);
  color: var(--yellow);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.match-score.low {
  background: var(--red-light);
  color: var(--red);
  border: 1px solid rgba(255, 85, 85, 0.2);
}

.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.match-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: rgba(0, 212, 255, 0.07);
  color: var(--muted);
  font-weight: 500;
  border: 1px solid rgba(0, 212, 255, 0.12);
}

.match-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.skill-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.match-reasons {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.match-reasons .strength {
  color: var(--green);
}

.match-reasons .gap {
  color: var(--yellow);
}

.match-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.match-budget {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
}

/* ---- FORMS ---- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--warm);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  background: rgba(0, 212, 255, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(180, 210, 255, 0.35);
}

.form-select option {
  background: #0a1628;
  color: var(--ink);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.form-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border: 1.5px solid var(--warm);
  border-radius: 100px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(0, 212, 255, 0.04);
  color: var(--muted);
  user-select: none;
}

.form-chip.selected {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.2);
}

.form-chip:hover {
  border-color: var(--accent);
  color: var(--ink);
}

/* ---- TAGS INPUT ---- */
.tags-input-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--warm);
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.05);
  min-height: 42px;
  cursor: text;
}

.tags-input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

.tags-input-wrapper .tag-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.tags-input-wrapper .tag-remove {
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.7;
}

.tags-input-wrapper .tag-remove:hover {
  opacity: 1;
}

.tags-input-wrapper input {
  border: none;
  outline: none;
  flex: 1;
  min-width: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  background: transparent;
  color: var(--ink);
}

.tags-input-wrapper input::placeholder {
  color: rgba(180, 210, 255, 0.35);
}

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}

.empty-state h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.empty-state p {
  max-width: 400px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* ---- AUTH PAGES ---- */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: var(--cream);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
}

.auth-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--warm);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.08);
}

.auth-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.auth-logo span {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
}

.auth-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.auth-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-error {
  background: var(--red-light);
  color: var(--red);
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
  border: 1px solid rgba(255, 85, 85, 0.2);
}

.auth-error.visible {
  display: block;
}

/* ---- LOADING ---- */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(0, 212, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem;
}

/* ---- NOTIFICATION BAR ---- */
.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: var(--card-bg);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 0.88rem;
  z-index: 1000;
  transform: translateY(-120%);
  transition: transform 0.3s ease;
  max-width: 360px;
  border: 1px solid var(--warm);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.toast.visible {
  transform: translateY(0);
}

.toast.success {
  background: rgba(0, 229, 160, 0.12);
  border-color: rgba(0, 229, 160, 0.3);
  color: var(--green);
}

.toast.error {
  background: rgba(255, 85, 85, 0.12);
  border-color: rgba(255, 85, 85, 0.3);
  color: var(--red);
}

/* ---- FILTER BAR ---- */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar .form-input,
.filter-bar .form-select {
  width: auto;
  min-width: 160px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 1.5rem;
  }

  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--surface-dark);
    color: var(--ink);
    position: sticky;
    top: 0;
    z-index: 90;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  }

  .mobile-header .logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ink);
  }

  .mobile-header .logo span {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
  }

  .hamburger {
    background: none;
    border: none;
    color: var(--ink);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 99;
    display: none;
  }

  .sidebar-overlay.visible {
    display: block;
  }

  .stat-cards {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .match-header {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .stat-cards {
    grid-template-columns: 1fr;
  }

  .form-input, .form-select, .form-textarea {
    font-size: 16px; /* Prevent iOS zoom */
  }
}

/* ---- GIGS LIST ---- */
.gig-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ---- SECTION LABEL ---- */
.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

/* ---- PROFILE COMPLETENESS ---- */
.profile-bar {
  background: var(--card-bg);
  border: 1px solid var(--warm);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.profile-bar-progress {
  flex: 1;
}

.profile-bar-track {
  height: 6px;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.profile-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.5s ease;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.profile-bar-text {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* ---- REFERRAL PAGE ---- */
.referral-share-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--warm);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.referral-share-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

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

.referral-share-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.referral-share-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.referral-link-box {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.referral-link-input {
  flex: 1;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.85rem;
  background: rgba(0, 212, 255, 0.05) !important;
  border-color: var(--warm) !important;
  color: var(--ink);
  cursor: text;
}

.referral-reward-banner {
  background: var(--green-light);
  border: 1px solid rgba(0, 229, 160, 0.25);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--green);
}

.referral-reward-icon {
  font-size: 1.3rem;
}

.referral-reward-banner span {
  margin-left: 0.35rem;
  font-weight: 400;
  opacity: 0.8;
}

.referral-status {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.referral-status.active {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid rgba(0, 229, 160, 0.2);
}

.referral-status.pending {
  background: var(--yellow-light);
  color: var(--yellow);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.referral-card .match-header {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .referral-share-card {
    flex-direction: column;
    padding: 1.5rem;
  }

  .referral-link-box {
    flex-direction: column;
  }

  .referral-link-box .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---- INSTANT MATCH WELCOME ---- */
.instant-match-loading {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem 1.75rem;
  background: var(--card-bg);
  border-radius: 14px;
  border: 1px solid var(--warm);
}

.instant-match-loading-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.instant-match-loading-text strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  color: var(--ink);
}

.instant-match-loading-text span {
  font-size: 0.85rem;
  color: var(--muted);
}

.instant-match-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--green-light);
  border: 1px solid rgba(0, 229, 160, 0.25);
  border-radius: 12px;
  padding: 0.9rem 1.25rem;
  margin-bottom: 1rem;
  color: var(--green);
  font-size: 0.92rem;
}

.instant-match-banner-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.instant-match-banner-text strong {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  margin-right: 0.35rem;
}

.instant-match-see-all {
  text-align: center;
  margin-top: 0.75rem;
}

/* ---- QUICK ACTIONS PANEL ---- */
.quick-actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quick-action-card {
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid var(--warm);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: default;
}

.quick-action-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 2px 12px rgba(0, 212, 255, 0.1);
}

.quick-action-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.quick-action-icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.quick-action-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
}

.quick-action-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  padding-left: 1.8rem;
}

.quick-action-btn-row {
  padding-left: 1.8rem;
  margin-top: 0.25rem;
}

/* ---- POST-SAVE NEXT STEPS ---- */
.post-save-actions {
  max-width: 700px;
  margin-top: 1.25rem;
  padding: 1.25rem 1.4rem;
  background: var(--accent-light);
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.25);
}

.post-save-actions-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.post-save-actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.post-save-action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.9rem;
  background: rgba(5, 10, 24, 0.5);
  border-radius: 8px;
  font-size: 0.84rem;
  color: var(--muted);
}

.post-save-action-item span {
  flex: 1;
}

/* ---- HIDDEN ---- */
.hidden {
  display: none !important;
}

/* ---- OUTREACH BADGE ---- */
.outreach-badge {
  background: var(--accent);
  color: #050a18;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  margin-left: auto;
  font-family: 'Space Grotesk', sans-serif;
}

/* ---- OUTREACH INFO BANNER ---- */
.outreach-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--yellow-light);
  border: 1px solid rgba(232, 192, 0, 0.25);
  border-radius: 12px;
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--yellow);
  font-size: 0.88rem;
  line-height: 1.5;
}

.outreach-info-banner svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--yellow);
}

/* ---- OUTREACH CARD ---- */
.outreach-card {
  background: var(--card-bg);
  border: 1px solid var(--warm);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.outreach-card.status-sent,
.outreach-card.status-auto_sent {
  opacity: 0.75;
  border-color: rgba(0, 229, 160, 0.3);
  background: rgba(0, 229, 160, 0.05);
}

.outreach-card.status-skipped {
  opacity: 0.5;
  border-style: dashed;
}

.outreach-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.outreach-card-meta {
  flex: 1;
}

.outreach-card-gig {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.outreach-card-company {
  font-size: 0.85rem;
  color: var(--muted);
}

.outreach-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  flex-shrink: 0;
}

.outreach-status-badge.pending {
  background: var(--yellow-light);
  color: var(--yellow);
  border: 1px solid rgba(232, 192, 0, 0.2);
}

.outreach-status-badge.sent {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid rgba(0, 229, 160, 0.2);
}

.outreach-status-badge.auto_sent {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid rgba(0, 229, 160, 0.2);
}

.outreach-status-badge.skipped {
  background: rgba(180, 210, 255, 0.08);
  color: var(--muted);
  border: 1px solid var(--warm);
}

.outreach-subject {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.outreach-subject-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-right: 0.4rem;
}

.outreach-body-preview {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-wrap;
  background: rgba(0, 212, 255, 0.04);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0 1rem;
  max-height: 120px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.outreach-body-preview.expanded {
  max-height: none;
}

.outreach-expand-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.outreach-card-footer {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.outreach-expiry {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: auto;
}

.outreach-expiry.expiring-soon {
  color: var(--accent);
  font-weight: 600;
}

.outreach-auto-note {
  font-size: 0.82rem;
  color: var(--green);
  font-style: italic;
}

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal-card {
  background: var(--card-bg);
  border-radius: 18px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.08);
  border: 1px solid var(--warm);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--ink);
}

.modal-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  flex: 1;
}

.modal-body .form-textarea {
  font-family: 'DM Sans', monospace;
  font-size: 0.88rem;
  resize: vertical;
}

.modal-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .outreach-card-header { flex-direction: column; gap: 0.5rem; }
  .outreach-card-footer { flex-direction: column; align-items: flex-start; }
  .outreach-expiry { margin-left: 0; }
  .modal-footer { flex-direction: column-reverse; }
  .modal-footer .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   BILLING / SUBSCRIPTION STYLES
   ========================================================= */

/* ---- Payment Wall ---- */
.payment-wall {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--cream);
  background-image: radial-gradient(ellipse at 50% 30%, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.payment-wall.hidden { display: none; }

.payment-wall-card {
  background: var(--card-bg);
  border: 1px solid var(--warm);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(0, 212, 255, 0.08);
}

.payment-wall-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.payment-wall-logo span {
  color: var(--accent);
  text-shadow: 0 0 14px rgba(0, 212, 255, 0.5);
}

.payment-wall-icon {
  width: 72px;
  height: 72px;
  background: var(--accent-light);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.payment-wall-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.payment-wall-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.payment-wall-features {
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.payment-wall-feature {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: var(--ink);
}

.payment-wall-feature svg {
  color: var(--green);
  flex-shrink: 0;
}

.payment-wall-pricing {
  margin-bottom: 1.25rem;
}

.payment-wall-price-tag {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.375rem;
  margin-bottom: 0.25rem;
}

.price-dollar {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.price-period {
  font-size: 1rem;
  color: var(--muted);
}

.payment-wall-price-then {
  font-size: 0.85rem;
  color: var(--muted);
}

.payment-wall-cta {
  width: 100%;
  background: var(--accent);
  color: #050a18;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.95rem 2rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.35);
}

.payment-wall-cta:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
  transform: translateY(-1px);
}
.payment-wall-cta:active { transform: scale(0.98); }
.payment-wall-cta:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.payment-wall-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.payment-wall-logout {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.payment-wall-logout:hover { color: var(--ink); }

/* ---- Trial/Billing Banner in Sidebar ---- */
.billing-banner {
  margin: 0.75rem 1rem;
  padding: 0.75rem;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--ink);
}

.billing-banner-active {
  background: rgba(0, 229, 160, 0.08);
  border-color: rgba(0, 229, 160, 0.2);
}

.billing-banner-urgent {
  background: rgba(255, 85, 85, 0.1);
  border-color: rgba(255, 85, 85, 0.3);
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(255, 85, 85, 0.3); }
  50% { border-color: rgba(255, 85, 85, 0.6); }
}

.billing-banner-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.billing-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.billing-badge.trial { background: var(--accent); color: #050a18; }
.billing-badge.pro { background: var(--green); color: #050a18; }
.billing-badge.canceled { background: var(--red); color: #fff; }

.billing-upgrade-btn {
  width: 100%;
  background: var(--accent);
  color: #050a18;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.25);
}

.billing-upgrade-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.4);
}

.billing-manage-btn {
  width: 100%;
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s;
}

.billing-manage-btn:hover { background: rgba(0, 212, 255, 0.08); }

/* ---- Upgrade / Manage Modals ---- */
#upgradeModal .modal-card,
#manageSubModal .modal-card {
  border-radius: 16px;
}

/* ---- Surface alt for modal content blocks ---- */
.surface-alt-block {
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 12px;
}

@media (max-width: 768px) {
  .payment-wall-card { padding: 2rem 1.25rem; }
  .price-dollar { font-size: 2.5rem; }
  .payment-wall-title { font-size: 1.25rem; }
}

/* ---- Dashboard grid ---- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

.pipeline-section {
  margin-top: 0.5rem;
}

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 0.75rem;
}

.pipeline-column {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--warm);
  min-height: 200px;
}

.pipeline-column-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.pipeline-item {
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink);
  transition: border-color 0.2s;
}

.pipeline-item:hover {
  border-color: rgba(0, 212, 255, 0.3);
}

@media (max-width: 900px) {
  .pipeline-board {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .pipeline-board {
    grid-template-columns: 1fr;
  }
}
