/* ===== BISCATE — STYLESHEET ===== */
/* Font: Sora (headings) + DM Sans (body) */

:root {
  --green: #16a34a;
  --green-light: #bbf7d0;
  --green-dark: #14532d;
  --green-bg: #f0fdf4;
  --amber: #f59e0b;
  --red: #ef4444;
  --blue: #3b82f6;
  --surface: #ffffff;
  --surface2: #f8fafc;
  --surface3: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text2: #475569;
  --text3: #94a3b8;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

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

html, body {
  font-family: 'DM Sans', sans-serif;
  background: var(--surface2);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  height: 100%;
}

/* ===== AUTH SCREEN ===== */
.auth-screen {
  display: flex;
  height: 100vh;
  font-family: 'DM Sans', sans-serif;
}

.auth-left {
  width: 420px;
  flex-shrink: 0;
  background: #0d2318;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.auth-brand {
  font-family: 'Sora', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.auth-brand span { color: #4ade80; }

.auth-tagline {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
  margin-bottom: 10px;
}

.auth-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 40px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.auth-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.auth-feat i {
  font-size: 18px;
  color: #4ade80;
  width: 24px;
  flex-shrink: 0;
}

.auth-bg-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; opacity: 0.12; animation: float 8s ease-in-out infinite; }
.s1 { width: 320px; height: 320px; background: #16a34a; top: -80px; right: -80px; }
.s2 { width: 240px; height: 240px; background: #4ade80; bottom: -60px; left: -40px; animation-delay: 3s; }
.s3 { width: 160px; height: 160px; background: #86efac; top: 50%; left: 30%; animation-delay: 5s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-24px) scale(1.04); }
}

.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  overflow-y: auto;
  padding: 32px 20px;
}

.auth-panel {
  display: none;
  width: 100%;
  max-width: 400px;
  animation: pageIn 0.3s ease;
}

.auth-panel.active { display: block; }

.auth-panel h2 {
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.auth-panel-sub { font-size: 14px; color: var(--text3); margin-bottom: 28px; }

.auth-form { display: flex; flex-direction: column; gap: 14px; }

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrap > i:first-child {
  position: absolute;
  left: 12px;
  font-size: 16px;
  color: var(--text3);
  pointer-events: none;
}

.input-icon-wrap input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.input-icon-wrap input:focus { border-color: var(--green); }

.toggle-pw {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text3);
  font-size: 16px;
  padding: 4px;
  display: flex;
  align-items: center;
}

.toggle-pw:hover { color: var(--text2); }

.auth-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13px;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text3);
  font-size: 13px;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-social {
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s;
}

.btn-social:hover { background: var(--surface2); border-color: #cbd5e1; }

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text3);
  margin-top: 20px;
}

.auth-switch a { color: var(--green); font-weight: 500; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* REGISTER STEPS */
.reg-steps {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 0;
}

.reg-step {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--text3);
  flex-shrink: 0;
  transition: all 0.2s;
}

.reg-step.active { border-color: var(--green); background: var(--green); color: #fff; }
.reg-step.done { border-color: var(--green); background: var(--green-bg); color: var(--green); }

.reg-step-line {
  flex: 1; height: 2px;
  background: var(--border);
  transition: background 0.2s;
}

.reg-step-line.done { background: var(--green); }

.reg-step-panel { display: none; animation: pageIn 0.25s ease; }
.reg-step-panel.active { display: block; }

.step-title { font-size: 13px; font-weight: 500; color: var(--text3); margin-bottom: 14px; letter-spacing: 0.3px; text-transform: uppercase; font-size: 11px; }

/* AVATAR UPLOAD */
.avatar-upload {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
  cursor: pointer;
}

.avatar-upload-circle {
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px dashed var(--border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; font-size: 11px; color: var(--text3);
  transition: all 0.15s; overflow: hidden;
  background: var(--surface2);
}

.avatar-upload-circle i { font-size: 22px; }
.avatar-upload-circle:hover { border-color: var(--green); color: var(--green); background: var(--green-bg); }
.avatar-upload-circle img { width: 100%; height: 100%; object-fit: cover; }

/* SKILLS PICKER */
.skills-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pick {
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.skill-pick:hover { border-color: var(--green); }
.skill-pick.selected { background: var(--green-bg); border-color: var(--green); color: var(--green-dark); font-weight: 500; }

/* LOGOUT BUTTON */
.logout-btn {
  margin-left: auto;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text3); font-size: 15px;
  transition: all 0.15s;
  flex-shrink: 0;
}

.logout-btn:hover { background: #fef2f2; border-color: #fecaca; color: #dc2626; }

@media (max-width: 680px) {
  .auth-left { display: none; }
  .auth-right { padding: 24px 16px; }
}

/* ===== APP LAYOUT ===== */
.app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.hidden { display: none !important; }

/* ===== SIDEBAR ===== */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.sidebar-logo {
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  padding: 24px 20px 20px;
  letter-spacing: -1px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo span { color: var(--green); }

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  color: var(--text2);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  position: relative;
}

.nav-item i { font-size: 18px; }

.nav-item:hover {
  background: var(--surface2);
  color: var(--text);
}

.nav-item.active {
  background: var(--green-bg);
  color: var(--green);
  font-weight: 500;
}

.nav-badge {
  margin-left: auto;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
}

.nav-badge.new {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.sidebar-user {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-user-name { font-size: 13px; font-weight: 500; }
.sidebar-user-status {
  font-size: 11px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.green { background: var(--green); }
.dot.amber { background: var(--amber); }

/* ===== MAIN CONTENT ===== */
.main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--surface2);
}

.page { display: none; padding: 32px 36px; animation: pageIn 0.25s ease; }
.page.active { display: block; }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== PAGE HEADER ===== */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-header h1 {
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-sub { font-size: 13px; color: var(--text3); margin-top: 3px; }

.ai-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  padding: 3px 8px;
  border-radius: 20px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}

/* ===== SEARCH ===== */
.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px;
  min-width: 220px;
}

.search-wrap i { color: var(--text3); font-size: 16px; }
.search-wrap input {
  border: none;
  background: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  width: 100%;
}

/* ===== FILTERS BAR ===== */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  align-items: center;
}

.filters-bar select {
  padding: 8px 12px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  outline: none;
}

.price-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text2);
}

.price-filter strong { color: var(--green); }
.price-filter input[type=range] { width: 90px; cursor: pointer; }

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

/* ===== JOB CARD ===== */
.job-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  position: relative;
  overflow: hidden;
}

.job-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #cbd5e1;
}

.job-card-top {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.card-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.card-info { flex: 1; min-width: 0; }
.card-title {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 5px;
  color: var(--text);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text3);
}

.card-meta span { display: flex; align-items: center; gap: 3px; }
.card-meta i { font-size: 12px; }

.card-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  gap: 8px;
}

.cat-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--green-bg);
  color: var(--green-dark);
  white-space: nowrap;
}

.price-tag {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  margin-left: auto;
  margin-right: 8px;
}

.card-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  transition: all 0.15s;
  font-size: 15px;
}

.icon-btn:hover { background: var(--surface2); color: var(--text); }
.icon-btn.saved { color: var(--green); border-color: var(--green); background: var(--green-bg); }
.icon-btn.applied { color: var(--blue); border-color: var(--blue); background: #eff6ff; }

.match-score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
}

/* ===== AVATARS ===== */
.avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 50px;
  border: none;
  background: var(--green);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary:hover { background: #15803d; transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-secondary:hover { background: var(--surface2); border-color: #cbd5e1; }

.btn-bookmark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text2);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-bookmark.active { color: var(--green); border-color: var(--green); background: var(--green-bg); }
.btn-bookmark:hover { background: var(--surface2); }

/* ===== FORM ===== */
.form-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  max-width: 680px;
}

.form-section { margin-bottom: 20px; }

.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text2); }
.form-group input, .form-group select, .form-group textarea {
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface2);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--green);
  background: #fff;
}

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

.post-submit { width: 100%; justify-content: center; font-size: 15px; padding: 13px; border-radius: var(--radius-sm); }

/* ===== MESSAGES ===== */
#msgs-wrapper { display: flex; flex-direction: column; gap: 0; }

.msgs-list { display: flex; flex-direction: column; gap: 8px; }

.msg-thread {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
}

.msg-thread:hover { border-color: #cbd5e1; box-shadow: var(--shadow); }
.msg-thread.unread { border-left: 3px solid var(--green); }

.msg-info { flex: 1; min-width: 0; }
.msg-name { font-size: 14px; font-weight: 500; }
.msg-preview { font-size: 12px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.msg-job { font-size: 11px; color: var(--text3); margin-top: 2px; }
.msg-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

.chat-panel { display: flex; flex-direction: column; height: 520px; }

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.back-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
  background: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text2); font-size: 16px; transition: all 0.15s;
}
.back-btn:hover { background: var(--surface2); }

.chat-user-name { font-size: 15px; font-weight: 500; }
.chat-job-title { font-size: 12px; color: var(--text3); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
}

.bubble.them {
  background: var(--surface3);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.bubble.me {
  background: var(--green);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.chat-input-row input {
  flex: 1;
  padding: 10px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text);
  outline: none;
  background: var(--surface2);
}

.chat-input-row input:focus { border-color: var(--green); background: #fff; }

.send-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: var(--green); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  transition: all 0.15s;
}
.send-btn:hover { background: #15803d; }

/* ===== PROFILE ===== */
.profile-hero {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.profile-avatar-lg {
  width: 72px; height: 72px; border-radius: 50%;
  background: #d4f0e8; color: #0a6e4f;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-size: 24px; font-weight: 700;
  flex-shrink: 0;
}

.profile-hero-info { flex: 1; }

.profile-hero-info h1 {
  font-family: 'Sora', sans-serif;
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.5px;
}

.profile-location { font-size: 13px; color: var(--text3); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.profile-location i { font-size: 13px; }

.profile-badges { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.badge-status, .badge-employment {
  font-size: 12px; font-weight: 500;
  padding: 4px 12px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 5px;
}

.badge-status.available { background: var(--green-bg); color: var(--green-dark); }
.badge-status.busy { background: #fffbeb; color: #92400e; }
.badge-employment.student { background: #eff6ff; color: #1e40af; }
.badge-employment.unemployed { background: #fef3c7; color: #92400e; }
.badge-employment.parttime { background: #f5f3ff; color: #5b21b6; }
.badge-employment.employed { background: #f0fdf4; color: #166534; }

.edit-profile-btn { margin-left: auto; }

.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.stat-block {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px;
  text-align: center;
}

.stat-num {
  font-family: 'Sora', sans-serif;
  font-size: 26px; font-weight: 700;
  color: var(--text);
  display: flex; align-items: center; justify-content: center; gap: 4px;
}

.stat-label { font-size: 12px; color: var(--text3); margin-top: 4px; display: flex; align-items: center; justify-content: center; gap: 3px; }

.profile-body { display: flex; flex-direction: column; gap: 16px; }

.profile-section {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 22px;
}

.profile-section h3 {
  font-family: 'Sora', sans-serif;
  font-size: 15px; font-weight: 600;
  margin-bottom: 12px;
}

.profile-section p { font-size: 14px; color: var(--text2); line-height: 1.7; }

.skills-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  font-size: 13px; padding: 5px 14px;
  border-radius: 20px; background: var(--green-bg); color: var(--green-dark);
  font-weight: 500;
}

/* ===== REVIEWS ===== */
.reviews-list { display: flex; flex-direction: column; gap: 14px; }

.review-item {
  padding: 14px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.review-name { font-size: 13px; font-weight: 500; }

.star-row { display: flex; gap: 2px; }
.star-row i, .star-row .ti { font-size: 13px; }
.star-filled { color: var(--amber); }
.star-empty { color: #e2e8f0; }

.review-text { font-size: 13px; color: var(--text2); line-height: 1.5; }
.review-date { font-size: 11px; color: var(--text3); margin-top: 6px; }

/* ===== AI MATCHING ===== */
.ai-intro-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 48px 32px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.ai-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}

.ai-icon i { font-size: 28px; color: #fff; }

.ai-intro-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 19px; font-weight: 600;
  margin-bottom: 10px;
}

.ai-intro-card p { font-size: 14px; color: var(--text2); line-height: 1.6; margin-bottom: 24px; }

.ai-loading {
  text-align: center;
  padding: 40px;
  color: var(--text2);
  font-size: 14px;
}

.ai-loading i { font-size: 32px; color: #8b5cf6; display: block; margin-bottom: 12px; animation: spin 1.5s linear infinite; }

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

.ai-reason {
  font-size: 12px;
  color: #6d28d9;
  background: #f5f3ff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  z-index: 500;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--surface);
  border-radius: var(--radius);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  position: relative;
  height: 140px;
  background: linear-gradient(135deg, #d4f0e8, #bbf7d0);
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}

.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.7);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); font-size: 16px;
  transition: all 0.15s;
}
.modal-close:hover { background: rgba(255,255,255,0.95); }

.modal-body { padding: 22px 24px 28px; }

.modal-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.modal-body h2 {
  font-family: 'Sora', sans-serif;
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}

.price-big {
  font-family: 'Sora', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--green);
}

.modal-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 14px;
}

.modal-meta span { display: flex; align-items: center; gap: 4px; }
.modal-meta i { font-size: 13px; }

.modal-desc { font-size: 14px; color: var(--text2); line-height: 1.7; margin-bottom: 20px; }

.modal-poster {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.modal-poster-info { flex: 1; }
.modal-poster-name { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.modal-poster-badges { display: flex; flex-direction: column; gap: 4px; }

.modal-reviews { margin-bottom: 20px; }
.modal-reviews h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }

.modal-actions {
  display: flex;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.modal-actions .btn-primary { flex: 1; justify-content: center; font-size: 15px; }

/* ===== STAR SELECT (rating modal) ===== */
.star-select {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.star-select i {
  font-size: 32px;
  cursor: pointer;
  color: var(--border);
  transition: color 0.1s, transform 0.1s;
}

.star-select i:hover, .star-select i.selected { color: var(--amber); transform: scale(1.15); }

/* ===== TOAST ===== */
.toast {
  display: none;
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  padding: 11px 22px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  white-space: nowrap;
}

.toast.show { display: block; animation: toastIn 0.25s ease; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text3);
  grid-column: 1 / -1;
}

.empty-state i { font-size: 40px; display: block; margin-bottom: 14px; color: #cbd5e1; }
.empty-state p { font-size: 14px; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
