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

:root {
  --bg: #08090d;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --green: #10b981;
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --red: #ef4444;
  --orange: #f97316;
  --amber: #f59e0b;
  --lime: #84cc16;
  --emerald: #10b981;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ============ HEADER ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,9,13,0.95);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 640px; margin: 0 auto;
  padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 6px; flex-wrap: nowrap;
}
.logo-wrap { display: flex; align-items: center; gap: 8px; flex-shrink: 1; min-width: 0; }
.logo-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
}
.logo-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.logo-text {
  font-size: 1.32rem; font-weight: 800;
  letter-spacing: 0.01em;
  color: #ffffff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.header-guest-btns { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.header-user-area { display: flex; align-items: center; gap: 8px; }
.btn-sm { width: auto !important; padding: 8px 16px !important; font-size: 0.82rem !important; border-radius: 10px !important; }

/* Sign Up / Login: same padding, font aur height se visually balanced */
#header-signup-btn, #header-login-btn {
  height: 36px; padding: 0 14px !important; font-size: 0.8rem;
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; white-space: nowrap;
}
@media (max-width: 480px) {
  .logo-icon { width: 42px; height: 42px; }
  .logo-text { font-size: 1.05rem; }
  #header-signup-btn, #header-login-btn { height: 33px; padding: 0 11px !important; font-size: 0.74rem; }
}
@media (max-width: 400px) {
  .logo-icon { width: 36px; height: 36px; }
  .logo-text { font-size: 0.88rem; }
  #header-signup-btn, #header-login-btn { padding: 0 9px !important; font-size: 0.68rem; }
}

.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.icon-btn:hover { background: var(--bg-card-hover); color: #f472b6; border-color: rgba(236,72,153,0.4); }
.icon-badge {
  position: absolute; top: -5px; right: -5px;
  background: linear-gradient(135deg, #ef4444, #ec4899);
  color: white; font-size: 0.62rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px; border: 2px solid var(--bg);
}
.header-avatar-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #06b6d4, #8b5cf6);
  color: white; font-weight: 700; font-size: 1rem;
  border: 2px solid rgba(139,92,246,0.4);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s; overflow: hidden; padding: 0;
}
.header-avatar-btn:hover { transform: scale(1.05); }
.header-avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

/* ============ BUTTONS ============ */
.btn-glass {
  background: var(--bg-card); color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 14px; border-radius: 10px;
  font-size: 0.82rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: all 0.2s; white-space: nowrap;
}
.btn-glass:hover { background: var(--bg-card-hover); border-color: rgba(139,92,246,0.5); color: #a78bfa; }

.btn-primary {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: white; border: none;
  padding: 14px 24px; border-radius: 14px;
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  box-shadow: 0 8px 24px rgba(16,185,129,0.35);
  width: 100%; transition: all 0.25s;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-load-more {
  display: block; width: 100%; margin: 16px 0 8px;
  padding: 12px 24px; border-radius: 14px;
  background: var(--bg-card-hover, rgba(255,255,255,0.06));
  border: 1px solid rgba(139,92,246,0.4);
  color: #a78bfa; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all 0.25s;
}
.btn-load-more:hover { background: rgba(139,92,246,0.15); transform: translateY(-2px); }

/* ============ LOGIN BUTTON - CYAN/PURPLE/PINK ============ */
.header-guest-btns .btn-primary,
#header-login-btn {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6, #ec4899) !important;
  background-size: 100% 100% !important;
  animation: none !important;
  box-shadow: 0 4px 14px rgba(139,92,246,0.5) !important;
  color: white !important;
  border: none !important;
  width: auto !important;
  padding: 8px 16px !important;
  font-size: 0.82rem !important;
  border-radius: 10px !important;
}
.header-guest-btns .btn-primary:hover,
#header-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(236,72,153,0.6) !important;
  filter: brightness(1.1);
}

.btn-dark {
  background: rgba(255,255,255,0.06); color: var(--text);
  border: 1px solid var(--border);
  padding: 14px 24px; border-radius: 14px;
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  width: 100%; margin-top: 12px; transition: all 0.2s;
}
.btn-dark:hover { background: rgba(255,255,255,0.1); }

.container {
  max-width: 640px; margin: 0 auto;
  padding: 24px 20px 40px 20px;
  position: relative; z-index: 1;
}

/* ============ RAINBOW POST BUTTON ============ */
.top-post-btn {
  width: 100%;
  background: linear-gradient(90deg,
    #10b981 0%,
    #06b6d4 18%,
    #8b5cf6 36%,
    #ec4899 52%,
    #f59e0b 66%,
    #84cc16 80%,
    #10b981 100%);
  background-size: 200% auto;
  animation: rainbowShift 25s linear infinite;
  color: white; border: none;
  padding: 16px 24px; border-radius: 16px;
  font-size: 1rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(139,92,246,0.45);
}
.top-post-btn:hover { transform: translateY(-2px); }

@keyframes rainbowShift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 28px 24px;
  background: linear-gradient(135deg, rgba(16,185,129,0.10), rgba(139,92,246,0.08), rgba(236,72,153,0.05));
  border: 1px solid var(--border);
  border-radius: 24px;
  margin-bottom: 20px;
  overflow: hidden;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 500; color: #34d399;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  padding: 5px 12px; border-radius: 20px;
  margin-bottom: 18px;
}
.pulse-dot {
  width: 6px; height: 6px; background: #34d399;
  border-radius: 50%; position: relative; display: inline-block;
}
.pulse-dot::after {
  content: ''; position: absolute; inset: -3px;
  background: #34d399; border-radius: 50%; opacity: 0.4;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(2); opacity: 0; }
}
.hero-title {
  font-size: 1.95rem; font-weight: 800;
  line-height: 1.15; margin-bottom: 12px;
  letter-spacing: -0.03em; color: #fff;
}
.hero-gradient {
  background: linear-gradient(90deg,
    #10b981 0%,
    #06b6d4 18%,
    #8b5cf6 36%,
    #ec4899 52%,
    #f59e0b 66%,
    #84cc16 80%,
    #10b981 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbowShift 20s linear infinite;
}
.hero-subtitle { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }

.hero-how-btn {
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(139,92,246,0.15), rgba(236,72,153,0.15));
  border: 1px solid rgba(139,92,246,0.45);
  color: #fff; padding: 10px 18px; border-radius: 12px;
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-how-btn:hover { background: linear-gradient(135deg, #8b5cf6, #ec4899); border-color: transparent; transform: translateY(-2px); }

.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.btn-get-app {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.35);
  color: #67e8f9; text-decoration: none;
  padding: 10px 18px; border-radius: 12px;
  font-size: 0.85rem; font-weight: 600;
  transition: all 0.25s;
}
.btn-get-app:hover { background: rgba(6,182,212,0.18); border-color: rgba(6,182,212,0.6); transform: translateY(-2px); }

.hero-values {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 18px; border-top: 1px solid var(--border);
  margin-top: 20px;
}
.value-item { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-muted); }
.value-icon { font-size: 1rem; flex-shrink: 0; }
.value-icon-svg {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 999px;
  background: rgba(255,255,255,0.08); color: var(--cyan);
  flex-shrink: 0;
}

/* ============ SEARCH ============ */
.search-wrap { position: relative; margin-bottom: 14px; }
.search-icon {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim); pointer-events: none;
}
.search-wrap input {
  width: 100%; padding: 13px 18px 13px 46px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.9rem; color: var(--text); font-family: inherit;
  outline: none; transition: all 0.2s;
  -webkit-appearance: none; appearance: none;
}
.search-wrap input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-wrap input:focus {
  border-color: #06b6d4; background: rgba(6,182,212,0.05);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.15);
}

/* ============ FILTERS ============ */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter-btn {
  background: var(--bg-card); color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 9px 16px; border-radius: 12px;
  font-size: 0.82rem; font-weight: 500;
  cursor: pointer; white-space: nowrap; font-family: inherit;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.filter-btn:hover { background: var(--bg-card-hover); color: var(--text); }
.filter-btn.active { background: linear-gradient(135deg, #06b6d4, #3b82f6); color: white; border-color: transparent; }

.cat-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: none; }
.cat-filters::-webkit-scrollbar { display: none; }
.cat-chip {
  background: var(--bg-card); color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 500;
  cursor: pointer; white-space: nowrap; font-family: inherit;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.cat-chip svg, .filter-btn svg { flex-shrink: 0; }
.cat-chip:hover { background: var(--bg-card-hover); color: var(--text); }
.cat-chip.active { background: linear-gradient(135deg, #10b981, #06b6d4); color: white; border-color: transparent; }

.feed-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding: 0 4px; }
.section-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.feed-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 600;
  color: #34d399; text-transform: uppercase;
}
.feed { display: flex; flex-direction: column; gap: 14px; }
.empty-state {
  text-align: center; padding: 48px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 20px;
}
.empty-icon { font-size: 2rem; margin-bottom: 12px; opacity: 0.6; }
.empty-state p { color: var(--text-dim); font-size: 0.9rem; }

/* ============ POST CARD ============ */
.post-card {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 20px; border-radius: 18px;
  transition: all 0.25s;
  position: relative; overflow: hidden;
}
.post-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #10b981, #06b6d4, #6366f1, #a855f7, #ec4899, #f59e0b);
  opacity: 0.5;
}
.post-card:hover { background: var(--bg-card-hover); border-color: rgba(139,92,246,0.4); }

.post-card-user { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; cursor: pointer; }
.post-card-user:hover .post-card-user-name { color: #a78bfa; }
.post-card-user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #06b6d4, #8b5cf6);
  color: white; font-weight: 700; font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.post-card-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-card-user-name { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; transition: color 0.2s; }

.post-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.post-card-title { font-size: 1.05rem; font-weight: 600; flex: 1; line-height: 1.35; }
.post-badges-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.post-badge {
  font-size: 0.68rem; font-weight: 600;
  padding: 4px 10px; border-radius: 8px;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px;
}
.badge-remote { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.25); }
.badge-local { background: rgba(236,72,153,0.12); color: #f472b6; border: 1px solid rgba(236,72,153,0.25); }
.badge-category {
  background: rgba(139,92,246,0.12); color: #a78bfa;
  border: 1px solid rgba(139,92,246,0.25);
  font-size: 0.68rem; font-weight: 600;
  padding: 4px 10px; border-radius: 8px; display: inline-block;
}
.badge-paid {
  background: rgba(245,158,11,0.12); color: #fbbf24;
  border: 1px solid rgba(245,158,11,0.3);
  font-size: 0.68rem; font-weight: 600;
  padding: 4px 10px; border-radius: 8px; display: inline-block;
}
.post-card-desc { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 16px; line-height: 1.6; }
.post-card-footer {
  display: flex; justify-content: space-between;
  align-items: center; font-size: 0.75rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.offer-help-btn {
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(6,182,212,0.15));
  border: 1px solid rgba(16,185,129,0.4);
  color: #34d399; font-weight: 600;
  cursor: pointer; font-size: 0.8rem; font-family: inherit;
  padding: 8px 16px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.2s;
}
.offer-help-btn:hover { background: linear-gradient(135deg, #10b981, #06b6d4); color: white; border-color: transparent; }

.fulfilled-btn {
  background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(6,182,212,0.2));
  border: 1px solid rgba(16,185,129,0.5);
  color: #34d399; font-weight: 700;
  cursor: pointer; font-size: 0.75rem; font-family: inherit;
  padding: 6px 12px; border-radius: 9px;
  display: inline-flex; align-items: center; gap: 5px;
  margin-right: 8px; transition: all 0.2s;
}
.fulfilled-btn:hover { background: linear-gradient(135deg, #10b981, #06b6d4); color: white; border-color: transparent; }

/* ============ MODAL ============ */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 100;
  display: flex; align-items: center;
  justify-content: center; padding: 16px;
}
.modal-content {
  background: #0f1117; border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 24px;
  max-width: 440px; width: 100%;
  position: relative; max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.25s;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px;
  width: 34px; height: 34px;
  font-size: 1.4rem; color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-icon { font-size: 2rem; margin-bottom: 12px; }
.modal-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.modal-subtitle { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 20px; }

.auth-tabs {
  display: flex; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 4px; margin-bottom: 20px;
}
.auth-tab {
  flex: 1; background: none; border: none;
  padding: 10px; font-size: 0.9rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  font-family: inherit; border-radius: 9px;
  transition: all 0.25s;
}
.auth-tab.active { background: linear-gradient(135deg, #8b5cf6, #ec4899); color: white; }

label {
  display: block; font-size: 0.78rem;
  font-weight: 500; color: var(--text-muted);
  margin-bottom: 6px; margin-top: 14px;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.label-hint { color: var(--text-dim); text-transform: none; font-weight: 400; letter-spacing: 0; }

input, textarea, select {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem; font-family: inherit;
  color: var(--text); outline: none;
  transition: all 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: #8b5cf6; background: rgba(139,92,246,0.05);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}
textarea { resize: vertical; min-height: 80px; }
select option { background: #0f1117; color: var(--text); }

.error-box {
  background: rgba(239,68,68,0.1); color: #fca5a5;
  padding: 12px 16px; border-radius: 12px;
  font-size: 0.85rem;
  border: 1px solid rgba(239,68,68,0.25);
  margin-bottom: 8px;
}

.forgot-link {
  display: block; background: none; border: none;
  color: #a78bfa; font-size: 0.85rem; font-weight: 500;
  cursor: pointer; font-family: inherit;
  margin: 16px auto 0; text-align: center; padding: 8px;
}
.forgot-link:hover { text-decoration: underline; }

.toggle-row {
  display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
  padding: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px; margin-top: 16px;
}
.toggle-label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.toggle-hint { font-size: 0.75rem; color: var(--text-dim); margin-top: 2px; }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0;
  background-color: rgba(255,255,255,0.1);
  border-radius: 34px; transition: 0.3s;
  border: 1px solid var(--border);
}
.slider:before {
  position: absolute; content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background-color: white; border-radius: 50%;
  transition: 0.3s;
}
.switch input:checked + .slider { background: linear-gradient(135deg, #8b5cf6, #ec4899); border-color: transparent; }
.switch input:checked + .slider:before { transform: translateX(20px); }

.offer-hint {
  font-size: 0.75rem; color: var(--text-dim);
  margin-top: 12px; line-height: 1.5;
  padding: 10px 12px;
  background: rgba(139,92,246,0.05);
  border-left: 3px solid #8b5cf6; border-radius: 6px;
}

.back-btn {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px; border-radius: 10px;
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  margin-bottom: 24px;
}

/* ============ HOW IT WORKS ============ */
.how-title { margin-bottom: 8px; }
.how-cta-btn { margin-top: 24px; }
.how-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; margin-top: 4px; }
.how-steps { display: flex; flex-direction: column; gap: 16px; }
.how-step {
  display: flex; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 18px; border-radius: 16px; align-items: flex-start;
}
.how-step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: white; font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.how-step:nth-child(2) .how-step-num { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.how-step:nth-child(3) .how-step-num { background: linear-gradient(135deg, #8b5cf6, #a855f7); }
.how-step:nth-child(4) .how-step-num { background: linear-gradient(135deg, #ec4899, #f59e0b); }
.how-step-content { flex: 1; }
.how-step-title { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.how-step-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }
.how-note {
  margin-top: 24px; padding: 14px 16px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 14px;
  font-size: 0.82rem; color: #fcd34d; line-height: 1.55;
}
.how-note strong { color: #fbbf24; }

/* ============ SETTINGS ============ */
.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
}
.settings-section-title {
  font-size: 0.72rem; font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 18px 8px;
}
.settings-item {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  padding: 14px 18px;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  transition: background 0.15s;
  text-align: left;
}
.settings-section-title + .settings-item { border-top: none; }
.settings-item:hover { background: var(--bg-card-hover); }
.settings-arrow { color: var(--text-dim); font-size: 1.2rem; }
.danger-section { border-color: rgba(239,68,68,0.3); }
.danger-item { color: #fca5a5 !important; }
.danger-item:hover { background: rgba(239,68,68,0.08); }
.danger-hint {
  padding: 0 18px 14px;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.settings-footer {
  text-align: center;
  margin-top: 32px;
  color: var(--text-dim);
  font-size: 0.8rem;
}
.settings-footer p { margin: 4px 0; }

/* ============ LEGAL PAGES ============ */
.legal-updated { color: var(--text-dim); font-size: 0.8rem; margin-bottom: 24px; }
.legal-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

/* ============ CONTACT ============ */
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px 18px;
  margin-bottom: 8px;
}
.contact-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.contact-info-row:last-child { border-bottom: none; }
.contact-info-label { font-size: 0.85rem; color: var(--text-dim); }
.contact-info-value {
  font-size: 0.85rem;
  color: #a78bfa;
  font-weight: 500;
  text-decoration: none;
  text-align: right;
  word-break: break-word;
}
a.contact-info-value:hover { text-decoration: underline; }

/* ============ PROFILE ============ */
.profile-header { text-align: center; padding: 24px 0 32px; }
.profile-avatar-wrap { position: relative; display: inline-block; margin-bottom: 16px; }
.profile-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #06b6d4, #8b5cf6, #ec4899);
  color: white; font-weight: 800; font-size: 2.4rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 40px rgba(139,92,246,0.4);
  border: 3px solid rgba(139,92,246,0.2);
  overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.change-photo-btn {
  position: absolute; bottom: 0; right: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white; border: 3px solid var(--bg);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.profile-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.profile-email { color: var(--text-muted); font-size: 0.9rem; }
.profile-location { color: var(--text-dim); font-size: 0.85rem; margin-top: 4px; }
.profile-bio { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; padding: 0 20px; line-height: 1.6; }

.profile-stats {
  display: flex; background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px; padding: 20px;
  justify-content: space-around;
}
.profile-stat { text-align: center; flex: 1; }
.profile-stat-num {
  font-size: 1.4rem; font-weight: 700;
  background: linear-gradient(135deg, #34d399, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.profile-stat-label { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; margin-top: 4px; }

/* ============ CHAT LIST ============ */
.chats-list { display: flex; flex-direction: column; gap: 10px; }
.chat-item {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 14px 16px; border-radius: 16px;
  cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  transition: all 0.2s;
}
.chat-item:hover { background: var(--bg-card-hover); border-color: rgba(139,92,246,0.4); }
.chat-item-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #06b6d4, #8b5cf6);
  color: white; font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.chat-item-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-item-info { flex: 1; min-width: 0; }
.chat-item-name {
  font-weight: 600; font-size: 0.95rem;
  color: var(--text); margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-item-preview {
  font-size: 0.8rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-item-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.chat-item-time { font-size: 0.7rem; color: var(--text-dim); }
.chat-item-unread {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white; font-size: 0.7rem; font-weight: 700;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}

/* ============ CHAT VIEW ============ */
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.chat-header .post-card-user-avatar { width: 42px; height: 42px; font-size: 1rem; }
.chat-name { font-weight: 600; font-size: 0.95rem; }
.chat-status { font-size: 0.75rem; color: #34d399; }

.messages {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px 0;
  max-height: 55vh; overflow-y: auto;
  margin-bottom: 80px;
}
.msg {
  max-width: 80%; padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem; line-height: 1.5;
  word-wrap: break-word;
}
.msg-me {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white; align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.msg-other {
  background: var(--bg-card);
  border: 1px solid rgba(6,182,212,0.3);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.msg-time { font-size: 0.65rem; opacity: 0.7; margin-top: 4px; display: block; }

.chat-input-wrap {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 640px; margin: 0 auto;
  padding: 12px 20px 20px;
  background: rgba(8,9,13,0.95);
  border-top: 1px solid var(--border);
  display: flex; gap: 8px; z-index: 45;
}
.chat-input-wrap input { flex: 1; margin: 0; padding: 12px 16px; border-radius: 24px; }
.chat-send-btn {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white; border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.2s;
}
.chat-send-btn:hover { transform: scale(1.05); }

/* ============ NOTIFICATIONS ============ */
.notif-item {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 16px 18px; border-radius: 14px;
  cursor: pointer; transition: all 0.2s;
  position: relative; word-wrap: break-word; overflow-wrap: break-word;
}
.notif-item:hover { background: var(--bg-card-hover); }
.notif-item.unread { border-color: rgba(139,92,246,0.5); background: rgba(139,92,246,0.05); }
.notif-item.unread::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #8b5cf6, #ec4899);
  border-radius: 14px 0 0 14px;
}
.notif-item-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; line-height: 1.4; }
.notif-item-body { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; word-wrap: break-word; }
.notif-item-time { font-size: 0.7rem; color: var(--text-dim); margin-top: 8px; }

/* ============ TOAST ============ */
.toast {
  position: fixed;
  top: 20px; left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: linear-gradient(90deg, #10b981, #06b6d4, #8b5cf6, #ec4899);
  color: white;
  padding: 14px 22px; border-radius: 14px;
  font-size: 0.9rem; font-weight: 600;
  box-shadow: 0 10px 40px rgba(139,92,246,0.5);
  z-index: 1000;
  transition: transform 0.3s ease;
  max-width: 90%; text-align: center;
  display: flex; align-items: center; gap: 10px;
  justify-content: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.toast-error { background: linear-gradient(135deg, #ef4444, #dc2626); }
.toast-icon { font-size: 1.1rem; }

/* ============ SITE FOOTER ============ */
.site-footer {
  margin-top: 40px;
  padding: 32px 20px 24px;
  border-top: 1px solid var(--border);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 340px;
}
.footer-brand img { height: 176px; width: auto; max-width: 100%; margin-bottom: 14px; }
@media (max-width: 480px) {
  .footer-brand { align-items: center; text-align: center; margin: 0 auto; }
  .footer-brand img { height: 128px; }
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col .footer-link,
.footer-link {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: #a78bfa; text-decoration: underline; }
.footer-bottom {
  max-width: 1000px;
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.footer-bottom-made { display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom-made svg { color: var(--cyan); }

/* ============ MODAL SPECIFIC ============ */
#confirm-modal .modal-title { font-size: 1.25rem; margin-bottom: 6px; }
#confirm-modal .modal-subtitle { margin-bottom: 20px; line-height: 1.5; }
#notif-permission-modal .modal-icon { font-size: 3rem; margin-bottom: 16px; }
#notif-permission-modal .modal-subtitle { font-size: 0.9rem; line-height: 1.6; margin-bottom: 24px; color: var(--text-muted); }
#notif-permission-modal .btn-primary { margin-bottom: 4px; }

/* ============ RESPONSIVE ============ */
@media (min-width: 768px) {
  .hero-title { font-size: 2.4rem; }
  .container { padding: 32px 24px 40px 24px; }
}

/* ============ LANGUAGE PICKER / SWITCHER ============ */
.lang-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.lang-option {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
  color: var(--text); width: 100%; text-align: left;
}
.lang-option:hover { background: var(--bg-card-hover); border-color: rgba(139,92,246,0.4); }
.lang-option.active { border-color: transparent; background: linear-gradient(135deg, rgba(16,185,129,0.18), rgba(6,182,212,0.18)); }
.lang-option-name { font-weight: 700; font-size: 0.95rem; }
.lang-option-native { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.lang-option-check { color: var(--green); flex-shrink: 0; opacity: 0; transition: opacity 0.2s; }
.lang-option.active .lang-option-check { opacity: 1; }

.footer-lang-row { display: flex; align-items: center; gap: 8px; }
.footer-lang-btn {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.75rem; font-weight: 600;
  padding: 6px 12px; border-radius: 20px; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 5px;
}
.footer-lang-btn:hover { background: var(--bg-card-hover); color: var(--text); }

/* ============ COMMENTS ============ */
.comments-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted); font-weight: 600;
  cursor: pointer; font-size: 0.8rem; font-family: inherit;
  padding: 8px 14px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.2s;
}
.comments-toggle-btn:hover { background: var(--bg-card-hover); color: var(--text); }
.comments-section { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 14px; }
.comment-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; max-height: 320px; overflow-y: auto; }
.comment-item { display: flex; gap: 8px; }
.comment-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #10b981, #06b6d4, #8b5cf6);
  color: white; font-weight: 700; font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; cursor: pointer;
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-body { flex: 1; min-width: 0; }
.comment-name { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.comment-name:hover { color: #a78bfa; }
.comment-text { font-size: 0.85rem; color: var(--text); line-height: 1.5; margin-top: 2px; word-wrap: break-word; }
.comment-time { font-size: 0.68rem; color: var(--text-dim); margin-top: 2px; }
.comment-input-row { display: flex; gap: 8px; }
.comment-input-row input {
  flex: 1; margin-bottom: 0;
}
.comment-send-btn {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border: none; color: white; border-radius: 10px;
  width: 40px; flex-shrink: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ============ RATING / HELP SYSTEM ============ */
.star-rating { display: flex; gap: 6px; justify-content: center; margin: 14px 0; }
.star-rating svg { width: 32px; height: 32px; cursor: pointer; color: var(--border); transition: color 0.15s, transform 0.1s; }
.star-rating svg.filled { color: #f59e0b; }
.star-rating svg:hover { transform: scale(1.1); }
.helper-pick-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; max-height: 220px; overflow-y: auto; }
.helper-pick-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: all 0.2s;
}
.helper-pick-item:hover { background: var(--bg-card-hover); }
.helper-pick-item.selected { border-color: transparent; background: linear-gradient(135deg, rgba(16,185,129,0.18), rgba(6,182,212,0.18)); }
.helper-pick-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #10b981, #06b6d4, #8b5cf6);
  color: white; font-weight: 700; font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.helper-pick-avatar img { width: 100%; height: 100%; object-fit: cover; }
.helper-pick-name { font-size: 0.85rem; font-weight: 500; }

/* Chat header: ab click karke doosre user ki profile khul sakti hai */
.chat-header { cursor: pointer; }
.chat-header:hover .chat-name { color: #a78bfa; }
