:root {
  --bg: #090d16;
  --bg-card: #111827;
  --bg-card-hover: #172033;
  --bg-elevated: #1e293b;
  --border: #26334d;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --flutter: #38bdf8;
  --flutter-bg: rgba(56, 189, 248, 0.12);
  --android: #4ade80;
  --android-bg: rgba(74, 222, 128, 0.12);
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #fb7185;
  --radius: 12px;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Topbar */
.topbar {
  background: rgba(17, 24, 39, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.badge-live {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.brand-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.15rem;
}

.btn-sync {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.15s ease;
}

.btn-sync:hover {
  border-color: var(--flutter);
  background: #243247;
}

/* Telemetry Strip */
.telemetry-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.stat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 800;
}

.text-emerald { color: #34d399; }
.text-sky { color: #38bdf8; }
.text-lime { color: #4ade80; }
.text-rose { color: #fb7185; }
.text-amber { color: #fbbf24; }

/* Filter Panel */
.filter-panel {
  margin-top: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.stack-selector-group {
  display: grid;
  grid-template-columns: 1fr 1fr 0.85fr;
  gap: 0.85rem;
}

@media (max-width: 780px) {
  .stack-selector-group {
    grid-template-columns: 1fr;
  }
}

.stack-btn {
  background: #0d1322;
  border: 2px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.stack-btn:hover {
  border-color: #475569;
  background: #131c31;
}

.stack-btn[data-stack="flutter"].active {
  border-color: var(--flutter);
  background: var(--flutter-bg);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.14);
}

.stack-btn[data-stack="android"].active {
  border-color: var(--android);
  background: var(--android-bg);
  box-shadow: 0 0 22px rgba(74, 222, 128, 0.14);
}

.stack-btn-all.active {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.12);
}

.stack-emoji {
  font-size: 1.65rem;
}

.stack-btn-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.stack-btn-text strong {
  font-size: 1rem;
  font-weight: 700;
}

.stack-btn-text small {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.stack-count {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.secondary-filters {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.search-box {
  flex: 1;
  min-width: 240px;
}

.search-box input {
  width: 100%;
  background: #090d16;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.search-box input:focus {
  outline: none;
  border-color: var(--flutter);
}

.toggle-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.trust-select-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-select-wrap select {
  background: #090d16;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

/* Results */
.results-header {
  margin: 1.5rem 0 0.9rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.results-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

.results-meta {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.jobs-grid {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-bottom: 3rem;
}

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.job-card:hover {
  background: var(--bg-card-hover);
  border-color: #3b4f73;
}

.job-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.job-main-info {
  flex: 1;
  min-width: 260px;
}

.job-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pill-flutter {
  background: var(--flutter-bg);
  color: var(--flutter);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.pill-android {
  background: var(--android-bg);
  color: var(--android);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.pill-both {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.pill-company-type {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

.pill-trust {
  background: rgba(16, 185, 129, 0.13);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.job-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.job-company-line {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.job-salary-box {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.salary-badge {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.92rem;
}

.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.btn-apply:hover {
  background: #1d4ed8;
}

.job-snippet {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.job-footer {
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.trust-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.reason-chip {
  background: #0d1424;
  border: 1px solid #1e293b;
  color: #94a3b8;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

.empty-state {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2.5rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
