/* ── Ugig Platform — Main Stylesheet ── */

:root {
  --primary:    #0f3460;
  --primary-dk: #0a2444;
  --accent:     #3db85a;
  --accent-dk:  #2ea34d;
  --success:    #06c270;
  --warning:    #ffb300;
  --danger:     #e53935;
  --gold:       #ffd700;
  --text:       #1a1a2e;
  --text-muted: #6b7280;
  --border:     #e5e7eb;
  --bg:         #f5f7fa;
  --card:       #ffffff;
  --nav-h:      64px;
  --radius:     10px;
  --shadow:     0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.12);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* ── Nav ── */
nav {
  background: var(--primary);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  overflow: hidden;
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo:hover { text-decoration: none; opacity: 0.88; }

.nav-logo-img {
  height: 48px;
  width: 48px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  display: block;
}

.nav-links { display: flex; align-items: center; gap: 0.25rem; }

.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.nav-links a:hover { background: rgba(255,255,255,0.12); color: #fff; }

.nav-links .btn-nav {
  background: var(--accent);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: 600;
}

.nav-links .btn-nav:hover { background: var(--accent-dk); text-decoration: none; }

.nav-greeting {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  margin-right: 0.5rem;
}

.nav-msg-link { position: relative; }

.nav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e53935;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page {
  padding: 2rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Flash messages ── */
.flashes {
  max-width: 1200px;
  margin: 1rem auto 0;
  padding: 0 1.5rem;
}

.flash {
  background: #e8f5e9;
  border-left: 4px solid var(--success);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #1b5e20;
}

.flash.error {
  background: #fce4ec;
  border-color: var(--danger);
  color: #b71c1c;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  line-height: 1;
}

.btn:hover { text-decoration: none; filter: brightness(0.92); }

.btn-primary   { background: var(--primary); color: #fff; }
.btn-accent    { background: var(--accent); color: #fff; }
.btn-success   { background: var(--success); color: #fff; }
.btn-danger    { background: var(--danger); color: #fff; }
.btn-outline   { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-ghost     { background: transparent; border: 2px solid var(--border); color: var(--text-muted); }
.btn-sm        { padding: 0.4rem 0.85rem; font-size: 0.8rem; border-radius: 6px; }
.btn-lg        { padding: 0.85rem 2rem; font-size: 1rem; border-radius: 10px; }
.btn-block     { width: 100%; justify-content: center; }

/* ── Cards ── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 { font-size: 1rem; font-weight: 700; }

.card-body { padding: 1.25rem; }

/* ── Task card ── */
.task-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem;
  transition: box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.task-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.task-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.task-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.task-title a { color: inherit; text-decoration: none; }
.task-title a:hover { color: var(--primary); }

.task-budget {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--success);
  white-space: nowrap;
}

.task-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.task-meta span { display: flex; align-items: center; gap: 0.2rem; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.badge-open      { background: #e8f5e9; color: #2e7d32; }
.badge-progress  { background: #fff3e0; color: #e65100; }
.badge-completed { background: #e3f2fd; color: #1565c0; }
.badge-cancelled { background: #f5f5f5; color: #757575; }
.badge-pending   { background: #fce4ec; color: #880e4f; }
.badge-accepted  { background: #e8f5e9; color: #2e7d32; }
.badge-rejected  { background: #ffebee; color: #c62828; }
.badge-category  { background: #ede7f6; color: #4527a0; }
.badge-verified  { background: #e0f2f1; color: #00695c; }

/* ── Grid layouts ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tasks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }

/* ── Page header ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header h1 { font-size: 1.6rem; font-weight: 800; }
.page-header p  { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; }

/* ── Stats row ── */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }

.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border);
  text-align: center;
}

.stat-card .stat-num { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-card .stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Forms ── */
.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,52,96,0.12);
}

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; }

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

/* ── Auth page ── */
.auth-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, #1a3a6e 100%);
}

.auth-card {
  background: var(--card);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-logo { text-align: center; margin-bottom: 0.5rem; }
.auth-logo .logo-big { font-size: 2rem; font-weight: 900; color: var(--primary); letter-spacing: -1px; }
.auth-logo .logo-big span { color: var(--accent); }
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.75rem; }

.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.25rem; }

.role-option input { display: none; }

.role-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.role-option label .role-icon { font-size: 1.75rem; }
.role-option label .role-title { font-weight: 700; font-size: 0.9rem; }
.role-option label .role-desc  { font-size: 0.75rem; color: var(--text-muted); }

.role-option input:checked + label { border-color: var(--primary); background: rgba(15,52,96,0.05); }
.role-option input:checked + label .role-title { color: var(--primary); }

.auth-switch { text-align: center; margin-top: 1.25rem; font-size: 0.875rem; color: var(--text-muted); }

/* ── Landing ── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3a6e 60%, #533483 100%);
  color: #fff;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner { position: relative; max-width: 700px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero-stat .num { font-size: 1.75rem; font-weight: 800; }
.hero-stat .lbl { font-size: 0.8rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── How it works ── */
.hiw { padding: 4rem 1.5rem; background: #fff; }
.hiw h2 { text-align: center; font-size: 1.75rem; font-weight: 800; margin-bottom: 0.5rem; }
.hiw-sub { text-align: center; color: var(--text-muted); margin-bottom: 3rem; }

.hiw-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; max-width: 900px; margin: 0 auto; }

.hiw-step { text-align: center; }
.hiw-step .step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}

.hiw-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.hiw-step p  { font-size: 0.875rem; color: var(--text-muted); }

/* ── Categories ── */
.categories-section { padding: 3.5rem 1.5rem; }
.categories-section h2 { text-align: center; font-size: 1.75rem; font-weight: 800; margin-bottom: 2rem; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; max-width: 900px; margin: 0 auto; }

.cat-item {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 0.75rem;
  text-align: center;
  transition: all 0.15s;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}

.cat-item:hover { border-color: var(--primary); background: rgba(15,52,96,0.04); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }

.cat-item .cat-icon { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.cat-item .cat-name { font-size: 0.8rem; font-weight: 600; }

/* ── Trust section ── */
.trust { background: var(--primary); color: #fff; padding: 3.5rem 1.5rem; }
.trust h2 { text-align: center; font-size: 1.6rem; font-weight: 800; margin-bottom: 2rem; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.trust-item { text-align: center; }
.trust-item .t-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.trust-item h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.trust-item p  { font-size: 0.82rem; opacity: 0.75; }

/* ── Stars ── */
.stars { display: inline-flex; gap: 1px; color: var(--gold); font-size: 0.9rem; }
.stars.sm { font-size: 0.75rem; }

.rating-display { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; }
.rating-display .rating-num { font-weight: 700; }
.rating-display .rating-count { color: var(--text-muted); font-size: 0.78rem; }

/* ── Star rating input ── */
.star-input { display: flex; gap: 0.35rem; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { display: none; }
.star-input label { font-size: 2rem; cursor: pointer; color: #ddd; transition: color 0.1s; }
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--gold); }

/* ── Application card ── */
.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.app-info { display: flex; align-items: center; gap: 0.75rem; }
.app-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.app-name  { font-weight: 700; font-size: 0.95rem; }
.app-price { font-size: 1.2rem; font-weight: 800; color: var(--success); }
.app-actions { display: flex; align-items: center; gap: 0.5rem; }

/* ── Profile ── */
.profile-header {
  background: linear-gradient(135deg, var(--primary), #1a3a6e);
  color: #fff;
  padding: 2.5rem 1.5rem;
}

.profile-avatar-lg {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.profile-info { margin-top: 1rem; }
.profile-info h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.25rem; }
.profile-info .profile-role { opacity: 0.75; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

/* ── Review card ── */
.review-card { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.review-card:last-child { border-bottom: none; }
.review-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.4rem; }
.reviewer-name { font-weight: 600; font-size: 0.9rem; }
.review-task { font-size: 0.78rem; color: var(--text-muted); }
.review-comment { font-size: 0.875rem; color: var(--text); margin-top: 0.25rem; }

/* ── Messages ── */
.chat-layout { display: grid; grid-template-columns: 280px 1fr; height: calc(100vh - var(--nav-h) - 4rem); gap: 1rem; }

.convo-list {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow-y: auto;
}

.convo-item {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background 0.1s;
  text-decoration: none;
  color: var(--text);
}

.convo-item:hover { background: var(--bg); text-decoration: none; }
.convo-item.active { background: rgba(15,52,96,0.08); }

.convo-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.convo-name { font-weight: 600; font-size: 0.875rem; }
.convo-preview { font-size: 0.78rem; color: var(--text-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 180px; }

.chat-window {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-messages { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }

.msg { max-width: 70%; }

.msg-bubble {
  background: var(--bg);
  border-radius: 12px 12px 12px 2px;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
}

.msg.mine { align-self: flex-end; }
.msg.mine .msg-bubble { background: var(--primary); color: #fff; border-radius: 12px 12px 2px 12px; }
.msg-meta { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.2rem; }
.msg.mine .msg-meta { text-align: right; }

.chat-input {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
}

.chat-input input { flex: 1; }

/* ── Admin ── */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th {
  text-align: left;
  padding: 0.65rem 1rem;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:hover td { background: var(--bg); }

/* ── Filter sidebar ── */
.filter-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; align-items: start; }

.filter-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

.filter-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.filter-group { margin-bottom: 1.25rem; }
.filter-group label { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; display: block; }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.empty-state .empty-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.empty-state h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
.empty-state p  { font-size: 0.875rem; }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

/* ── Footer ── */
footer {
  background: var(--primary-dk);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  margin-top: 4rem;
}

footer strong { color: #fff; }

/* ── Utilities ── */
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.font-bold   { font-weight: 700; }
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mb-1  { margin-bottom: 0.5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.hidden { display: none; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .filter-layout { grid-template-columns: 1fr; }
  .filter-card   { position: static; }
  .chat-layout   { grid-template-columns: 1fr; grid-template-rows: 220px 1fr; }
  .grid-3        { grid-template-columns: repeat(2, 1fr); }
  .grid-4        { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-2       { grid-template-columns: 1fr; }
  .grid-3       { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }
  .hero         { padding: 3rem 1rem 2.5rem; }
  .hero-cta     { flex-direction: column; align-items: center; }
  .nav-greeting { display: none; }
  .page         { padding: 1.25rem 1rem; }
}
