/* RiteQuick — Dark theme, amber/orange accent */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #0c0c10;
  --bg-secondary: #131318;
  --bg-card: #1a1a22;
  --bg-elevated: #222230;
  --text-primary: #eeeef2;
  --text-secondary: #8a8a9e;
  --text-muted: #5a5a70;
  --accent: #f59e0b;
  --accent-bright: #fbbf24;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --accent-glow: rgba(245, 158, 11, 0.2);
  --success: #10b981;
  --success-dim: rgba(16, 185, 129, 0.12);
  --danger: #ef4444;
  --danger-dim: rgba(239, 68, 68, 0.12);
  --info: #3b82f6;
  --info-dim: rgba(59, 130, 246, 0.12);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==================== NAV ==================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 16, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-logo span { color: var(--accent); }
.nav-logo-icon { font-size: 1.1rem; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-notif {
  position: relative;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s;
}
.nav-notif:hover { border-color: var(--accent); color: var(--accent); }
.nav-notif .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.nav-user:hover { border-color: var(--border-hover); }
.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.nav-username {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}
.nav-role {
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  min-width: 180px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 200;
}
.dropdown.show { display: block; }
.dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  text-align: left;
  transition: all 0.15s;
}
.dropdown-item:hover { background: var(--bg-elevated); color: var(--text-primary); }
.dropdown-item.danger:hover { color: var(--danger); }

/* ==================== LAYOUT ==================== */
.page {
  padding: 32px 24px 60px;
  max-width: 1100px;
  margin: 0 auto;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -1px;
}
.page-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #0c0c10; }
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-elevated); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-hover); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { opacity: 0.9; }
.btn-danger { background: var(--danger-dim); color: var(--danger); border: 1px solid transparent; }
.btn-danger:hover { border-color: var(--danger); }
.btn-ghost { background: none; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text-primary); border-color: var(--border-hover); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ==================== FORMS ==================== */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8a9e' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { color: var(--danger); font-size: 0.82rem; margin-top: 6px; }
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 480px;
  margin: 0 auto;
}

/* ==================== TABS ==================== */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  width: fit-content;
}
.tab {
  padding: 8px 20px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.tab.active { background: var(--bg-card); color: var(--text-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.tab:hover:not(.active) { color: var(--text-primary); }

/* ==================== FILTER BAR ==================== */
.filter-bar { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; align-items: center; }
.filter-bar .form-input, .filter-bar .form-select { width: auto; min-width: 160px; padding: 9px 14px; font-size: 0.85rem; }

/* ==================== JOB CARDS ==================== */
.job-grid { display: grid; gap: 14px; }
.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.2s, transform 0.15s;
  cursor: pointer;
}
.job-card:hover { border-color: var(--accent-glow); transform: translateY(-2px); }
.job-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.job-card-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.3px; }
.job-card-price { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
.job-card-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.job-meta-item { font-size: 0.82rem; color: var(--text-secondary); display: flex; align-items: center; gap: 5px; }
.job-meta-item .icon { font-size: 0.9rem; }
.job-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.job-type-badge { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 10px; border-radius: 100px; }
.badge-delivery { background: var(--info-dim); color: var(--info); }
.badge-ride { background: var(--success-dim); color: var(--success); }

.status-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; padding: 4px 12px; border-radius: 100px; }
.status-posted { background: var(--accent-dim); color: var(--accent); }
.status-claimed { background: var(--info-dim); color: var(--info); }
.status-in_progress { background: rgba(168, 85, 247, 0.12); color: #a855f7; }
.status-completed { background: var(--success-dim); color: var(--success); }
.status-cancelled { background: var(--danger-dim); color: var(--danger); }

/* ==================== JOB DETAIL ==================== */
.job-detail { max-width: 700px; }
.job-detail-header { margin-bottom: 28px; }
.job-detail-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700; letter-spacing: -1px; margin-bottom: 12px; }
.job-detail-price { font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--accent); }
.job-detail-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.job-detail-section h3 { font-family: 'Space Grotesk', sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.detail-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--text-secondary); font-size: 0.88rem; }
.detail-value { font-weight: 500; font-size: 0.88rem; text-align: right; max-width: 60%; }
.job-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* ==================== NOTIFICATIONS PANEL ==================== */
.notif-panel { position: fixed; top: 0; right: 0; width: 380px; max-width: 100vw; height: 100vh; background: var(--bg-secondary); border-left: 1px solid var(--border); z-index: 300; transform: translateX(100%); transition: transform 0.3s ease; display: flex; flex-direction: column; }
.notif-panel.open { transform: translateX(0); }
.notif-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.notif-header h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 600; }
.notif-close { background: none; border: none; color: var(--text-secondary); font-size: 1.3rem; cursor: pointer; }
.notif-list { flex: 1; overflow-y: auto; padding: 12px; }
.notif-item { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 6px; font-size: 0.88rem; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border); }
.notif-item .notif-time { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }
.notif-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 0.9rem; }

/* ==================== EMPTY STATE ==================== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-secondary); }
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.empty-state p { font-size: 0.9rem; max-width: 400px; margin: 0 auto 20px; }

/* ==================== LANDING PAGE ==================== */
.landing-hero {
  position: relative;
  padding: 0;
  overflow: hidden;
}
.landing-hero-bg {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, rgba(245, 158, 11, 0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.landing-hero-content {
  position: relative;
  z-index: 1;
  padding: 100px 24px 60px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}
.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 8px 18px;
  border-radius: 100px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.landing-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.landing-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  max-width: 750px;
  margin: 0 auto 24px;
}
.landing-hero h1 .hl { color: var(--accent); }
.landing-hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* Dual CTA cards */
.landing-dual-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}
.cta-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}
.cta-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.12);
}
.cta-card:hover::before { opacity: 1; }
.cta-card-icon { font-size: 2.2rem; margin-bottom: 14px; }
.cta-card-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.cta-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}
.cta-card-arrow {
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 700;
  transition: transform 0.2s;
}
.cta-card:hover .cta-card-arrow { transform: translateX(6px); }

.cta-rider { border-color: rgba(59, 130, 246, 0.15); }
.cta-rider:hover { border-color: var(--info); box-shadow: 0 8px 32px rgba(59, 130, 246, 0.12); }
.cta-rider:hover::before { background: var(--info); }
.cta-rider .cta-card-arrow { color: var(--info); }

.cta-driver { border-color: rgba(16, 185, 129, 0.15); }
.cta-driver:hover { border-color: var(--success); box-shadow: 0 8px 32px rgba(16, 185, 129, 0.12); }
.cta-driver:hover::before { background: var(--success); }
.cta-driver .cta-card-arrow { color: var(--success); }

.landing-login-link {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.landing-login-link a {
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}
.landing-login-link a:hover { text-decoration: underline; }

/* Trust bar */
.landing-trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
  background: var(--bg-secondary);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1100px;
  margin: 0 auto;
}
.trust-item {
  padding: 40px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: none; }
.trust-num { font-size: 1.8rem; margin-bottom: 8px; }
.trust-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}
.trust-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }

/* Landing sections */
.landing-section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.landing-section-label {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 14px;
}
.landing-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 48px;
}

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: border-color 0.3s;
}
.how-card:hover { border-color: var(--accent-glow); }
.how-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.how-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.2px; }
.how-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

/* Mississippi features grid */
.ms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ms-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.3s;
}
.ms-card:hover { border-color: var(--accent-glow); }
.ms-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.ms-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

.landing-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.landing-footer {
  text-align: center;
  padding: 60px 24px 80px;
  position: relative;
}
.landing-footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.12;
  pointer-events: none;
}
.landing-footer h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -1.5px; margin-bottom: 16px; }
.landing-footer p { color: var(--text-secondary); max-width: 480px; margin: 0 auto 28px; }
footer { border-top: 1px solid var(--border); padding: 24px; text-align: center; }
footer p { font-size: 0.78rem; color: var(--text-muted); }
footer a { color: var(--accent); text-decoration: none; }

/* ==================== AUTH PAGE ==================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--bg-primary);
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 28px;
}
.auth-logo-icon { font-size: 1.2rem; }
.auth-card h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; }
.auth-card .auth-sub { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 28px; }
.auth-toggle { text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--text-secondary); }
.auth-toggle a { color: var(--accent); cursor: pointer; text-decoration: none; font-weight: 500; }
.auth-toggle a:hover { text-decoration: underline; }

.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.role-option {
  padding: 16px;
  background: var(--bg-primary);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.role-option:hover { border-color: var(--border-hover); }
.role-option.selected { border-color: var(--accent); background: var(--accent-dim); }
.role-option-icon { font-size: 1.5rem; margin-bottom: 6px; }
.role-option-title { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; font-weight: 600; }
.role-option-desc { font-size: 0.78rem; color: var(--text-secondary); margin-top: 4px; }

/* ==================== PROFILE PAGE ==================== */
.profile-page { max-width: 900px; }
.profile-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
.profile-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: sticky;
  top: 90px;
}
.profile-photo-wrap { margin-bottom: 20px; }
.profile-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-dim);
}
.profile-photo-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto;
  border: 3px solid rgba(245, 158, 11, 0.2);
}
.profile-photo-upload {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--accent);
  cursor: pointer;
  padding: 6px 14px;
  background: var(--accent-dim);
  border-radius: 100px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  transition: all 0.2s;
}
.profile-photo-upload:hover { background: rgba(245, 158, 11, 0.2); }
.profile-identity h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.profile-role-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 8px;
}
.profile-city { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 8px; }
.profile-bio { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 8px; }
.profile-since { font-size: 0.78rem; color: var(--text-muted); }

.profile-main { min-width: 0; }
.profile-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 16px;
}
.profile-section h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.profile-section-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  margin-top: -12px;
}
.profile-actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
}

/* Upload boxes */
.upload-box {
  padding: 20px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-box:hover { border-color: var(--accent); background: var(--accent-dim); }
.upload-prompt { font-size: 0.88rem; color: var(--text-muted); }
.upload-done { font-size: 0.88rem; color: var(--success); }
.upload-done a { color: var(--accent); text-decoration: none; margin-left: 8px; }
.upload-done a:hover { text-decoration: underline; }

/* ==================== LOADING ==================== */
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-page { display: flex; align-items: center; justify-content: center; min-height: 300px; }

/* ==================== TOAST ==================== */
.toast-container { position: fixed; top: 80px; right: 24px; z-index: 500; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 20px; font-size: 0.88rem; box-shadow: var(--shadow); animation: slideIn 0.3s ease; max-width: 360px; }
.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-info { border-left: 3px solid var(--info); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ==================== SUBSCRIPTION PAGE ==================== */
.page-container { padding: 32px 24px 60px; }
.subscription-page { max-width: 700px; margin: 0 auto; }
.subscription-header { text-align: center; margin-bottom: 40px; }
.subscription-header h1 { font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; margin-bottom: 8px; }
.subscription-header p { color: var(--text-secondary); }
.subscription-current { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; margin-bottom: 32px; text-align: center; }
.subscription-badge { display: inline-block; padding: 6px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; margin-bottom: 16px; }
.subscription-badge.free { background: var(--bg-elevated); color: var(--text-secondary); }
.subscription-badge.pro { background: linear-gradient(135deg, var(--accent), var(--accent-bright)); color: #000; }
.subscription-current h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; margin-bottom: 12px; }
.subscription-price { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 32px; }
.subscription-limits { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 24px; margin-top: 24px; }
.subscription-limits h3 { font-size: 1rem; margin-bottom: 16px; }
.usage-bar { width: 100%; height: 12px; background: var(--bg-elevated); border-radius: 6px; overflow: hidden; margin-bottom: 8px; }
.usage-progress { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-bright)); transition: width 0.3s ease; }
.usage-text { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0; }
.usage-text.unlimited { color: var(--success); font-weight: 600; }
.usage-warning { margin-top: 16px; padding: 12px; background: var(--danger-dim); border: 1px solid var(--danger); border-radius: var(--radius-sm); color: var(--danger); font-size: 0.9rem; }
.subscription-upgrade { background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.05)); border: 1px solid var(--accent); border-radius: var(--radius); padding: 32px; margin-bottom: 32px; text-align: center; }
.subscription-upgrade h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; margin-bottom: 24px; }
.upgrade-benefits { margin-bottom: 24px; }
.benefit { font-size: 1rem; color: var(--text-primary); margin-bottom: 12px; text-align: left; max-width: 400px; margin-left: auto; margin-right: auto; }
.upgrade-price { font-size: 2rem; font-weight: 700; color: var(--accent-bright); margin-bottom: 24px; }
.subscription-faq { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.subscription-faq h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; margin-bottom: 24px; }
.faq-item { margin-bottom: 20px; }
.faq-item:last-child { margin-bottom: 0; }
.faq-item strong { display: block; margin-bottom: 8px; color: var(--text-primary); }
.faq-item p { color: var(--text-secondary); margin: 0; }
.payment-banner { position: fixed; bottom: 24px; right: 24px; background: var(--bg-card); border: 2px solid var(--accent); border-radius: var(--radius); padding: 20px 24px; box-shadow: 0 8px 32px rgba(245, 158, 11, 0.3); z-index: 200; max-width: 400px; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.payment-banner-content strong { display: block; margin-bottom: 12px; font-size: 1rem; }
.payment-banner-actions { display: flex; gap: 8px; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .landing-dual-cta { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-right: none; border-bottom: 1px solid var(--border); }
  .how-grid { grid-template-columns: 1fr; }
  .ms-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; }
  .filter-bar .form-input, .filter-bar .form-select { width: 100%; min-width: auto; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .job-card-header { flex-direction: column; }
  .job-card-price { align-self: flex-start; }
  .notif-panel { width: 100vw; }
  .nav-username { display: none; }
  .landing-hero-content { padding: 60px 24px 40px; }
  .payment-banner { right: 16px; left: 16px; bottom: 16px; max-width: none; }
  .subscription-header h1 { font-size: 2rem; }
  .subscription-current h2 { font-size: 1.4rem; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
}

/* ==================== STAR RATING SYSTEM ==================== */
.star-rating {
  display: flex;
  gap: 8px;
  font-size: 2.5rem;
  cursor: pointer;
  user-select: none;
}
.star {
  color: #d1d5db;
  transition: color 0.15s ease, transform 0.15s ease;
}
.star:hover {
  transform: scale(1.15);
}
.star.hover, .star.selected {
  color: #fbbf24;
}
.star.selected {
  animation: starPop 0.3s ease;
}
@keyframes starPop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

/* ==================== MODAL OVERLAY ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==================== TAB BAR ==================== */
.tab-bar {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}
.tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
}
.tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
