/* ============================================================
   VolOut WebApp — app.css
   Brand: #00C896 teal-green, #B794F6 purple, #FF6B9D pink
   ============================================================ */

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

:root {
  --brand:       #00C896;
  --brand-dark:  #00a07a;
  --brand-light: #d0f5ec;
  --purple:      #B794F6;
  --pink:        #FF6B9D;
  --bg:          #f9fafb;
  --bg-card:     #ffffff;
  --text:        #111827;
  --text-2:      #6b7280;
  --text-3:      #9ca3af;
  --border:      #e5e7eb;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 2px 12px rgba(0,0,0,.07);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.10);
  --nav-h:       64px;
  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---- Layout ---- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.navbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.5px;
  flex-shrink: 0;
}
.logo-mark {
  width: 30px; height: 30px;
  background: var(--brand);
  color: white;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  font-weight: 900;
}
.logo-text { color: var(--text); }

.navbar-links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: background .15s, color .15s;
}
.nav-link:hover, .nav-link--active {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.navbar-auth { display: flex; gap: 8px; margin-left: auto; }
.navbar-user { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--purple));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .2s;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  transition: all .15s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand);
  color: white;
}
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,200,150,.35); }
.btn--ghost {
  background: transparent;
  color: var(--text-2);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--full { width: 100%; }
.btn--sm { padding: 6px 14px; font-size: .82rem; }
.btn--danger { background: #fee2e2; color: #dc2626; }
.btn--danger:hover { background: #fecaca; }
.btn--google {
  background: white;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-weight: 500;
}
.btn--google:hover { border-color: #aaa; background: #fafafa; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---- Gradient text ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--brand), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Pages ---- */
.page { padding-bottom: 80px; }
.page-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 32px 0 24px;
}

/* ---- Discover Hero ---- */
.discover-hero {
  background: linear-gradient(160deg, #f0fdf9 0%, #ede9fe 100%);
  padding: 72px 20px 48px;
  text-align: center;
}
.discover-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.discover-hero p {
  font-size: 1.1rem;
  color: var(--text-2);
  margin-bottom: 28px;
}
.search-bar {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: var(--shadow);
  transition: border-color .2s;
}
.search-bar:focus-within { border-color: var(--brand); }
.search-bar svg { flex-shrink: 0; color: var(--text-3); }
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
  color: var(--text);
}

/* ---- Filters ---- */
.discover-filters {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
}
.filter-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 20px;
  scrollbar-width: none;
  max-width: 1120px;
  margin: 0 auto;
}
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-chip {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 500;
  white-space: nowrap;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-2);
  transition: all .15s;
  flex-shrink: 0;
}
.filter-chip:hover { border-color: var(--brand); color: var(--brand); }
.filter-chip--active {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

/* ---- Sparks Grid ---- */
.sparks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 32px 0;
}

.spark-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.spark-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.spark-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: linear-gradient(135deg, #f0fdf9, #ede9fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
}
.spark-card-image img {
  width: 100%; height: 100%; object-fit: cover;
}

.spark-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }

.spark-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}
.badge--urgent { background: #fee2e2; color: #dc2626; }
.badge--soon { background: #fff7ed; color: #ea580c; }
.badge--flexible { background: #f0fdf4; color: #16a34a; }
.badge--category { background: var(--brand-light); color: var(--brand-dark); }
.badge--remote { background: #eff6ff; color: #2563eb; }
.badge--tier { background: linear-gradient(135deg, var(--brand), var(--purple)); color: white; }

.spark-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.spark-card-org {
  font-size: .85rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.spark-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.spark-card-date { font-size: .8rem; color: var(--text-3); }
.spark-card-spots { font-size: .8rem; color: var(--text-2); font-weight: 500; }

/* ---- Spark Detail ---- */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: .9rem;
  font-weight: 500;
  margin: 28px 0 20px;
  padding: 6px 0;
  transition: color .15s;
}
.back-btn:hover { color: var(--brand); }

.spark-detail-hero {
  width: 100%;
  height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #f0fdf9, #ede9fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  margin-bottom: 24px;
}
.spark-detail-hero img { width: 100%; height: 100%; object-fit: cover; }

.spark-detail-header { margin-bottom: 20px; }
.spark-detail-header h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.spark-detail-org {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-2); font-size: .95rem;
}
.org-logo-sm {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  overflow: hidden;
}
.org-logo-sm img { width: 100%; height: 100%; object-fit: cover; }

.spark-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }

.spark-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.detail-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.detail-item-label { font-size: .78rem; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.detail-item-value { font-size: .95rem; font-weight: 600; color: var(--text); }

.spark-detail-section { margin: 24px 0; }
.spark-detail-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.spark-detail-section p { color: var(--text-2); line-height: 1.7; }

.skills-list { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chip {
  padding: 5px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .82rem;
  color: var(--text-2);
}

.spark-apply-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 90;
  box-shadow: 0 -4px 20px rgba(0,0,0,.06);
}
.spark-apply-bar-info { font-size: .9rem; color: var(--text-2); }
.spark-apply-bar-info strong { color: var(--text); display: block; font-size: 1rem; }

/* ---- Perks ---- */
.perks-hero {
  background: linear-gradient(160deg, #fdf4ff 0%, #f0fdf9 100%);
  padding: 72px 20px 48px;
  text-align: center;
}
.perks-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; margin-bottom: 12px; }
.perks-hero p { font-size: 1.05rem; color: var(--text-2); }

.tier-banner {
  background: linear-gradient(135deg, var(--brand), var(--purple));
  color: white;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.tier-banner.hidden { display: none; }
.tier-info h3 { font-size: 1.1rem; font-weight: 700; }
.tier-info p { font-size: .88rem; opacity: .85; margin-top: 2px; }
.tier-icon { font-size: 2.5rem; }

.perks-filter-row { margin: 16px 0 8px; }

.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 16px 0 32px;
}

.perk-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.perk-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.perk-card--locked { opacity: .6; }

.perk-card-image {
  width: 100%; height: 140px;
  background: linear-gradient(135deg, #fdf4ff, #f0fdf9);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.perk-card-image img { width: 100%; height: 100%; object-fit: cover; }

.perk-card-body { padding: 16px; }
.perk-discount-badge {
  display: inline-block;
  background: var(--brand);
  color: white;
  font-size: .78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.perk-card-title { font-size: .98rem; font-weight: 700; margin-bottom: 4px; }
.perk-card-business { font-size: .83rem; color: var(--text-2); margin-bottom: 10px; }
.perk-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.perk-lock-notice { font-size: .8rem; color: var(--text-3); }

/* ---- My Sparks ---- */
.tab-bar {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border-radius: 12px;
  padding: 4px;
  width: fit-content;
  margin-bottom: 24px;
}
.tab-btn {
  padding: 8px 20px;
  border-radius: 9px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-2);
  transition: all .15s;
}
.tab-btn--active {
  background: white;
  color: var(--text);
  box-shadow: var(--shadow);
}

.mysparks-list { display: flex; flex-direction: column; gap: 12px; }

.myspark-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.myspark-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.myspark-info { flex: 1; }
.myspark-title { font-weight: 700; font-size: .97rem; margin-bottom: 2px; }
.myspark-org { font-size: .83rem; color: var(--text-2); }
.myspark-status { display: flex; align-items: center; }

/* ---- Profile ---- */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.profile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--purple));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 1.3rem; font-weight: 800; }
.profile-email { font-size: .9rem; color: var(--text-2); }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.stat-box {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--brand); }
.stat-label { font-size: .78rem; color: var(--text-3); font-weight: 500; margin-top: 2px; }

.profile-section { margin-bottom: 16px; }
.profile-section h3 { font-size: .85rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }

/* ---- Auth ---- */
.page--auth {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px;
}
.auth-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
}
.auth-logo {
  display: flex; align-items: center; gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.3rem;
  font-weight: 800;
}
.auth-card h2 { font-size: 1.6rem; font-weight: 800; text-align: center; margin-bottom: 4px; }
.auth-subtitle { text-align: center; color: var(--text-2); margin-bottom: 24px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .88rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .95rem;
  color: var(--text);
  background: white;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--brand); }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0;
  color: var(--text-3);
  font-size: .85rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-switch { text-align: center; font-size: .88rem; color: var(--text-2); margin-top: 20px; }
.auth-switch a { color: var(--brand); font-weight: 600; }

/* ---- Alerts ---- */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.alert--error { background: #fee2e2; color: #dc2626; }
.alert--success { background: #dcfce7; color: #16a34a; }

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 500;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  animation: slideUp .3s ease;
}
@keyframes slideUp { from { transform: translateX(-50%) translateY(20px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }

/* ---- Skeleton Loading ---- */
.loading-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 32px 0;
}
.skeleton-card {
  height: 260px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 64px 20px;
}
.empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-2); margin-bottom: 20px; }

/* ---- Spinner ---- */
.spinner {
  width: 16px; height: 16px;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .navbar-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 16px;
    flex-direction: column;
    gap: 2px;
    box-shadow: var(--shadow);
  }
  .navbar-links.open { display: flex; }
  .nav-link { padding: 12px 14px; font-size: 1rem; }

  .navbar-auth {
    display: none;
  }
  .navbar-user {
    margin-left: 0;
  }

  .spark-detail-grid { grid-template-columns: 1fr; }
  .profile-stats { grid-template-columns: repeat(3, 1fr); }
  .auth-card { padding: 28px 20px; }
  .sparks-grid, .perks-grid { grid-template-columns: 1fr; }
  .org-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .org-call-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .app-row { flex-wrap: wrap; }
}

/* ---- Org Dashboard ---- */
.org-header-card {
  background: linear-gradient(135deg, var(--brand), var(--purple));
  color: white;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 28px 0 20px;
}
.org-logo-lg {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  overflow: hidden;
}
.org-name { font-size: 1.4rem; font-weight: 800; margin-bottom: 2px; }
.org-type { font-size: .85rem; opacity: .8; margin-bottom: 4px; }
.org-desc { font-size: .88rem; opacity: .85; line-height: 1.5; }

.org-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.org-section { margin-bottom: 32px; }
.org-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.org-section-header h3 { font-size: 1.1rem; font-weight: 700; }

.org-call-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.org-call-info { flex: 1; }
.org-call-title { font-weight: 700; font-size: .97rem; margin-bottom: 6px; }
.org-call-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.org-call-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.modal {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.modal-header h2 { font-size: 1.3rem; font-weight: 800; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-2);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.modal-close:hover { background: var(--border); }

/* ---- Applications ---- */
.apps-list { display: flex; flex-direction: column; gap: 12px; }
.app-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.app-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--purple));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  overflow: hidden;
}
.app-info { flex: 1; }
.app-name { font-weight: 700; font-size: .95rem; }
.app-pronouns { font-size: .78rem; color: var(--text-3); }
.app-message { font-size: .83rem; color: var(--text-2); margin-top: 4px; font-style: italic; }
.app-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---- Create Call Form ---- */
.create-call-form { display: flex; flex-direction: column; gap: 14px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-group select {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .95rem;
  color: var(--text);
  background: white;
  outline: none;
  width: 100%;
  transition: border-color .2s;
}
.form-group select:focus { border-color: var(--brand); }
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .95rem;
  color: var(--text);
  background: white;
  outline: none;
  width: 100%;
  transition: border-color .2s;
}
.form-group textarea:focus { border-color: var(--brand); }
