/* ===== DESIGN TOKENS ===== */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700&f[]=clash-display@500,600,700&display=swap');

:root, [data-theme="light"] {
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
  --font-display: 'Clash Display', 'Georgia', serif;

  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Surfaces — warm concrete/workshop tones */
  --color-bg:             #f5f3ef;
  --color-surface:        #faf9f6;
  --color-surface-2:      #ffffff;
  --color-surface-offset: #eeebe5;
  --color-surface-dynamic: #e4e1db;
  --color-divider:        #d6d3cc;
  --color-border:         #ccc9c1;

  /* Text */
  --color-text:           #1a1814;
  --color-text-muted:     #6b6860;
  --color-text-faint:     #a9a69e;
  --color-text-inverse:   #faf9f6;

  /* Primary — deep carpenter's brown/amber */
  --color-primary:        #8b5e34;
  --color-primary-hover:  #6d4826;
  --color-primary-active: #53361b;
  --color-primary-light:  #f0e6d9;

  /* Accent — steel blue for contrast */
  --color-accent:         #2d6a8a;
  --color-accent-hover:   #1f5271;
  --color-accent-light:   #dceaf2;

  /* Success */
  --color-success:        #3d7a3d;
  --color-success-light:  #e2f0e2;

  /* Warning */
  --color-warning:        #b8860b;
  --color-warning-light:  #f7efd6;

  /* Error */
  --color-error:          #a13535;
  --color-error-light:    #f5e0e0;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px rgba(26, 24, 20, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 24, 20, 0.08);
  --shadow-lg: 0 12px 32px rgba(26, 24, 20, 0.12);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}

[data-theme="dark"] {
  --color-bg:             #141210;
  --color-surface:        #1c1a17;
  --color-surface-2:      #232119;
  --color-surface-offset: #1e1c19;
  --color-surface-dynamic: #2a2825;
  --color-divider:        #302e2a;
  --color-border:         #3d3a35;

  --color-text:           #d9d6d0;
  --color-text-muted:     #8a877f;
  --color-text-faint:     #5a5750;
  --color-text-inverse:   #1a1814;

  --color-primary:        #c4935f;
  --color-primary-hover:  #d4a673;
  --color-primary-active: #e0b98a;
  --color-primary-light:  #2e261d;

  --color-accent:         #5fa0c4;
  --color-accent-hover:   #73b0d4;
  --color-accent-light:   #1d2830;

  --color-success:        #5ea65e;
  --color-success-light:  #1e2c1e;

  --color-warning:        #d4a033;
  --color-warning-light:  #2c2518;

  --color-error:          #d46060;
  --color-error-light:    #2c1e1e;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #141210;
    --color-surface:        #1c1a17;
    --color-surface-2:      #232119;
    --color-surface-offset: #1e1c19;
    --color-surface-dynamic: #2a2825;
    --color-divider:        #302e2a;
    --color-border:         #3d3a35;
    --color-text:           #d9d6d0;
    --color-text-muted:     #8a877f;
    --color-text-faint:     #5a5750;
    --color-text-inverse:   #1a1814;
    --color-primary:        #c4935f;
    --color-primary-hover:  #d4a673;
    --color-primary-active: #e0b98a;
    --color-primary-light:  #2e261d;
    --color-accent:         #5fa0c4;
    --color-accent-hover:   #73b0d4;
    --color-accent-light:   #1d2830;
    --color-success:        #5ea65e;
    --color-success-light:  #1e2c1e;
    --color-warning:        #d4a033;
    --color-warning-light:  #2c2518;
    --color-error:          #d46060;
    --color-error-light:    #2c1e1e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
  }
}

/* ===== LAYOUT ===== */
.app-container {
  display: flex;
  min-height: 100dvh;
}

.sidebar {
  width: 260px;
  background: var(--color-surface);
  border-right: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  flex-shrink: 0;
  z-index: 10;
}

.sidebar-header {
  padding: var(--space-6) var(--space-5);
  border-bottom: 1px solid var(--color-divider);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.logo-tagline {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.sidebar-nav {
  padding: var(--space-4) var(--space-3);
  flex: 1;
}

.nav-section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-2) var(--space-3);
  margin-top: var(--space-4);
}

.nav-section-label:first-child { margin-top: 0; }

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  text-align: left;
}

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

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

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-item .badge {
  margin-left: auto;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  min-width: 22px;
  text-align: center;
}

.sidebar-footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface);
  position: sticky;
  top: 0;
  z-index: 5;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.mobile-menu-btn {
  display: none;
  padding: var(--space-2);
}

.mobile-menu-btn svg { width: 24px; height: 24px; }

.page-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.refresh-info {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.refresh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface-offset);
  border-bottom: 1px solid var(--color-divider);
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.filter-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.filter-select, .filter-input {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  font-size: var(--text-sm);
  color: var(--color-text);
  min-width: 140px;
}

.filter-select:focus, .filter-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.filter-input {
  min-width: 100px;
  width: 100px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn-primary:hover { background: var(--color-primary-hover); }

.btn-secondary {
  background: var(--color-surface-2);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover { background: var(--color-surface-offset); }

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
}

.btn-ghost:hover { 
  background: var(--color-surface-offset);
  color: var(--color-text);
}

.btn svg { width: 16px; height: 16px; }

/* ===== JOB LIST ===== */
.content-area {
  flex: 1;
  padding: var(--space-6);
  overflow-y: auto;
}

.jobs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.jobs-count {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.jobs-count strong {
  color: var(--color-text);
  font-weight: 600;
}

.sort-select {
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  font-size: var(--text-xs);
  color: var(--color-text);
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.job-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
  cursor: pointer;
}

.job-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.job-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.job-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.job-company {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 500;
  margin-top: var(--space-1);
}

.job-pay {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-success);
  white-space: nowrap;
  text-align: right;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-pay-type {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 400;
  font-family: var(--font-body);
}

.job-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.job-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.job-meta-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.job-description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.tag {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.tag-trade {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.tag-type {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.tag-urgent {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

.tag-premium {
  background: var(--color-success-light);
  color: var(--color-success);
}

.job-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-divider);
}

.job-source {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.job-actions {
  display: flex;
  gap: var(--space-2);
}

.btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
}

/* ===== DETAIL PANEL ===== */
.detail-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 100;
}

.detail-overlay.active { display: block; }

.detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(560px, 90vw);
  height: 100dvh;
  background: var(--color-surface);
  border-left: 1px solid var(--color-divider);
  z-index: 101;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg);
}

.detail-panel.active { transform: translateX(0); }

.detail-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--color-surface);
  z-index: 1;
}

.detail-close {
  padding: var(--space-2);
  border-radius: var(--radius-md);
}

.detail-close:hover { background: var(--color-surface-offset); }
.detail-close svg { width: 20px; height: 20px; }

.detail-body {
  padding: var(--space-6);
}

.detail-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.detail-company {
  font-size: var(--text-base);
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: var(--space-5);
}

.detail-section {
  margin-bottom: var(--space-6);
}

.detail-section-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.detail-stat {
  background: var(--color-surface-offset);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
}

.detail-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.detail-stat-value {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

.detail-description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
  white-space: pre-line;
}

.detail-requirements {
  list-style: none;
  padding: 0;
}

.detail-requirements li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  line-height: 1.6;
}

.detail-requirements li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

.detail-cta {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--color-divider);
  position: sticky;
  bottom: 0;
  background: var(--color-surface);
  display: flex;
  gap: var(--space-3);
}

.btn-lg {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
}

/* ===== SHARE VIEW ===== */
.share-view, .email-view, .settings-view {
  display: none;
  padding: var(--space-6);
  max-width: 640px;
}

.share-view.active, .email-view.active, .settings-view.active {
  display: block;
}

.share-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-5);
}

.share-link-box {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.share-link-input {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-offset);
  font-size: var(--text-sm);
  color: var(--color-text);
  font-family: monospace;
}

/* ===== EMAIL DIGEST ===== */
.email-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-field label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.form-field input, .form-field select {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  font-size: var(--text-sm);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}

.toggle-label {
  font-size: var(--text-sm);
  color: var(--color-text);
}

.toggle-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--color-surface-dynamic);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.toggle-switch.active {
  background: var(--color-primary);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition-interactive);
}

.toggle-switch.active::after {
  transform: translateX(20px);
}

/* ===== SAVED JOBS ===== */
.saved-empty {
  text-align: center;
  padding: var(--space-16) var(--space-6);
  color: var(--color-text-muted);
}

.saved-empty svg {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  opacity: 0.4;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  background: var(--color-text);
  color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ===== FOOTER ===== */
.app-footer {
  padding: var(--space-6) var(--space-6) var(--space-5);
  border-top: 1px solid var(--color-divider);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.app-footer a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.app-footer a:hover { color: var(--color-primary); }

.footer-copyright {
  margin-bottom: var(--space-2);
  font-weight: 500;
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}

.footer-sep {
  color: var(--color-text-faint);
}

.footer-sources {
  color: var(--color-text-faint);
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-6) var(--space-10);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.legal-header {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: var(--space-8);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
}

.legal-back:hover {
  color: var(--color-primary-hover);
}

.legal-content {
  flex: 1;
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

.legal-effective {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.legal-content section {
  margin-bottom: var(--space-8);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.legal-content h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  margin-top: var(--space-5);
}

.legal-content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-3);
}

.legal-content ul, .legal-content ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.legal-content li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-2);
}

.legal-content strong {
  color: var(--color-text);
  font-weight: 600;
}

.legal-content code {
  background: var(--color-surface-offset);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
}

.legal-footer {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  text-align: center;
}

.legal-footer-attribution p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.8;
  margin-bottom: var(--space-1);
}

.legal-footer-attribution a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.legal-footer-attribution a:hover {
  color: var(--color-primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .sidebar { width: 220px; }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 50;
  }

  .sidebar.open { transform: translateX(0); }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 40;
  }

  .sidebar-backdrop.open { display: block; }

  .mobile-menu-btn { display: block; }

  .filter-bar {
    padding: var(--space-3) var(--space-4);
    gap: var(--space-2);
  }

  .filter-select, .filter-input { min-width: 110px; font-size: var(--text-xs); }

  .content-area { padding: var(--space-4); }

  .job-card { padding: var(--space-4); }

  .job-card-header { flex-direction: column; gap: var(--space-2); }

  .job-pay { text-align: left; }

  .detail-panel { width: 100vw; }

  .top-bar { padding: var(--space-3) var(--space-4); }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.job-card {
  animation: fadeIn 300ms ease-out both;
}

.job-card:nth-child(1) { animation-delay: 0ms; }
.job-card:nth-child(2) { animation-delay: 50ms; }
.job-card:nth-child(3) { animation-delay: 100ms; }
.job-card:nth-child(4) { animation-delay: 150ms; }
.job-card:nth-child(5) { animation-delay: 200ms; }
.job-card:nth-child(6) { animation-delay: 250ms; }
.job-card:nth-child(7) { animation-delay: 300ms; }
.job-card:nth-child(8) { animation-delay: 350ms; }

/* ===== SKELETON LOADING ===== */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-surface-offset) 25%,
    var(--color-surface-dynamic) 50%,
    var(--color-surface-offset) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

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

/* Theme toggle */
.theme-toggle {
  padding: var(--space-2);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}

.theme-toggle:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

.theme-toggle svg { width: 18px; height: 18px; }

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem;
  z-index: 10000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
.cookie-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.cookie-content p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.cookie-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.cookie-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--color-border);
  transition: all 0.2s;
}
.cookie-btn-accept {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}
.cookie-btn-reject {
  background: var(--color-surface);
  color: var(--color-text-primary);
}
.cookie-link {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: underline;
}

/* Feedback Modal */
.feedback-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
}
.feedback-overlay.active { display: block; }
.feedback-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.feedback-modal.active { display: block; }
.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.feedback-header h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-primary);
}
.feedback-form label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 0.375rem;
  margin-top: 1rem;
}
.feedback-form label:first-of-type { margin-top: 0; }
.feedback-form select,
.feedback-form input[type="text"],
.feedback-form input[type="email"],
.feedback-form textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  background: var(--color-background);
  color: var(--color-text-primary);
  font-family: inherit;
}
.feedback-form textarea { resize: vertical; }
.star-rating {
  display: flex;
  gap: 0.25rem;
}
.star-rating .star {
  font-size: 1.75rem;
  color: var(--color-border);
  cursor: pointer;
  transition: color 0.15s;
}
.star-rating .star.active { color: #D4A017; }
.star-rating .star:hover,
.star-rating .star:hover ~ .star { color: #D4A017; }
.feedback-submit {
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.75rem;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.feedback-submit:hover { opacity: 0.9; }

/* Name Your Price */
.nameyourprice-view { display: none; }
.nameyourprice-view.active { display: block; }
.nyp-hero {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}
.nyp-hero h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.nyp-tagline {
  font-size: var(--text-base);
  color: var(--color-primary);
  font-weight: 500;
  font-style: italic;
}
.nyp-intro {
  max-width: 600px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}
.nyp-intro p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.nyp-form .form-field {
  margin-bottom: var(--space-3);
}
.nyp-form label {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.nyp-form textarea {
  font-family: inherit;
  resize: vertical;
}
.nav-item-highlight {
  position: relative;
  font-weight: 600 !important;
  color: var(--color-primary) !important;
}
.nav-item-highlight::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}
