﻿/* =============================================
   Emprego Brasília — Design System
   Moderno · Profissional · Responsivo
   ============================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --accent: #0f766e;
  --accent-light: #14b8a6;
  --success: #059669;
  --success-light: #d1fae5;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --warning: #d97706;
  --warning-light: #fef3c7;

  --bg: #f8fafc;
  --surface: rgba(255, 255, 255, .96);
  --surface-solid: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --muted: #64748b;
  --faint: #94a3b8;
  --border: rgba(15, 23, 42, .08);
  --border-hover: rgba(15, 23, 42, .16);

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .10);
  --shadow-xl: 0 20px 48px rgba(15, 23, 42, .12);
  --shadow-glow: 0 12px 28px rgba(29, 78, 216, .22);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --transition: .2s cubic-bezier(.4, 0, .2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(248,250,252,1)),
    radial-gradient(ellipse at 20% 0%, rgba(29,78,216,.08), transparent 40rem),
    radial-gradient(ellipse at 80% 15%, rgba(15,118,110,.07), transparent 35rem),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 96px;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
::selection { color: #fff; background: var(--primary); }
:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .30);
  outline-offset: 2px;
  border-radius: 4px;
}
a, button, input, textarea, select,
.card, .opportunity-card, .profile-panel, .profile-section,
.settings-tile, .list-links a, .tag, .badge, .button,
.tab-action, .bottom-nav a {
  transition: var(--transition);
}

/* --- Background Decor --- */
.app-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: .92;
  background-image:
    linear-gradient(rgba(15, 23, 42, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .03) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.app-bg::before, .app-bg::after, .work-icon { display: none; }

/* ==============================
   Topbar
   ============================== */
.topbar {
  position: sticky;
  top: 10px;
  z-index: 50;
  width: min(1180px, calc(100% - 28px));
  margin: 10px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 16px rgba(29,78,216,.22);
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 600;
}
.nav a, .link-button {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
}
.nav a:hover, .link-button:hover {
  color: var(--primary);
  background: rgba(29, 78, 216, .08);
}

/* ==============================
   Main Content
   ============================== */
main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}
.app-screen { width: min(760px, 100%); margin: 0 auto; }
.section { margin-top: 28px; }
.section:first-child { margin-top: 0; }
.section-header, .app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-header h2, .app-title h1 {
  margin: 0;
  color: var(--text);
  letter-spacing: -.025em;
}
.app-title p, .section > p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* ==============================
   Hero
   ============================== */
.hero {
  min-height: 420px;
  display: grid;
  align-items: center;
  padding: 48px 4px;
}
.hero h1 {
  max-width: 820px;
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--text);
}
.hero p {
  max-width: 600px;
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
}

/* ==============================
   Buttons
   ============================== */
.actions, .contact { display: flex; gap: 10px; flex-wrap: wrap; }
.action-row { margin-top: 16px; }

.button, button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
}
.button:hover, button.button:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(29, 78, 216, .28);
}
.button:active { transform: translateY(0); }
.button.secondary {
  background: linear-gradient(135deg, var(--accent), #115e59);
  box-shadow: 0 12px 28px rgba(15, 118, 110, .22);
}
.button.secondary:hover { box-shadow: 0 16px 32px rgba(15, 118, 110, .28); }
.button.ghost {
  color: var(--primary);
  background: rgba(29, 78, 216, .08);
  border: 1px solid rgba(29, 78, 216, .16);
  box-shadow: none;
}
.button.ghost:hover {
  background: rgba(29, 78, 216, .14);
  border-color: rgba(29, 78, 216, .24);
  transform: translateY(-1px);
}
.button.ghost.danger {
  color: var(--danger);
  background: rgba(220, 38, 38, .08);
  border-color: rgba(220, 38, 38, .18);
}
.button.ghost.danger:hover {
  color: var(--danger);
  background: rgba(220, 38, 38, .13);
  border-color: rgba(220, 38, 38, .28);
}
.neutral-button {
  color: var(--text);
  background: #f1f5f9;
  border: 1px solid var(--border);
  box-shadow: none;
}
.neutral-button:hover { background: #e2e8f0; transform: translateY(-1px); }
.button.small { min-height: 36px; padding: 7px 14px; font-size: 13px; }
.button.full { width: 100%; }
.link-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

/* ==============================
   Cards & Grid
   ============================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}

.card, .panel, .detail, .notice, .list-links a {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card h3 { margin: 0; font-size: 18px; line-height: 1.25; color: var(--text); }
.card p { margin: 0; }
.card:hover, .opportunity-card:hover, .settings-tile:hover, .list-links a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* ==============================
   Opportunity Cards
   ============================== */
.opportunity-list { display: grid; gap: 14px; }
.opportunity-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.opportunity-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(29, 78, 216, .14);
}
.opportunity-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.3;
}
.opportunity-card a:hover { color: inherit; }
.card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  min-height: 46px;
  width: calc(100% - 34px);
  margin: 14px 17px 17px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
  cursor: pointer;
}
.card-action:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), #1e3a8a);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(29, 78, 216, .28);
}
.card-action:active { transform: translateY(0); }
.opportunity-image {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.opportunity-body { display: grid; gap: 10px; padding: 17px; }
.opportunity-heading, .job-card-head,
.opportunity-footer, .opportunity-meta-row,
.opportunity-meta-grid {
  display: flex;
  align-items: center;
  gap: 8px;
}
.opportunity-heading h3, .job-title-block { flex: 1; min-width: 0; }
.job-title-block h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-title-block span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.opportunity-meta-row { flex-wrap: wrap; }
.opportunity-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 14px;
}
.opportunity-description {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.opportunity-footer { justify-content: space-between; margin-top: 2px; }
.opportunity-footer.end { justify-content: flex-end; }

/* --- Tags --- */
.tag, .badge, .chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: fit-content;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(29, 78, 216, .12);
  color: var(--primary);
  background: rgba(29, 78, 216, .08);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50%;
}
.tag.teal { color: var(--accent); background: rgba(15, 118, 110, .08); border-color: rgba(15, 118, 110, .14); }
.tag.neutral { color: var(--faint); background: #f8fafc; border-color: var(--border); }
.tag.success { color: var(--success); background: var(--success-light); border-color: rgba(5, 150, 105, .16); }
.tag.warning { color: var(--warning); background: var(--warning-light); border-color: rgba(217, 119, 6, .16); }
.badge.alt { color: var(--accent); background: rgba(15, 118, 110, .08); }
.badge.neutral { color: #3730a3; background: #e0e7ff; }

.muted-line { min-width: 0; overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.value-line, .salary { min-width: 0; overflow: hidden; color: var(--success); font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.meta { color: var(--muted); font-size: 14px; }
.field-hint { color: var(--muted); display: block; font-size: 12px; font-weight: 500; margin-top: 6px; }

.company-logo, .contest-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: var(--radius-md);
  color: var(--primary);
  background: linear-gradient(135deg, rgba(29,78,216,.10), rgba(15,118,110,.06));
  border: 1px solid rgba(29, 78, 216, .12);
  font-weight: 900;
  font-size: 18px;
}
.company-logo img { width: 100%; height: 100%; object-fit: cover; }
.contest-logo { color: #60a5fa; }


/* ==============================
   Detail Pages
   ============================== */
.detail-actions {
  position: sticky;
  bottom: 88px;
  z-index: 12;
  width: min(860px, 100%);
  margin: 18px auto 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-xl);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.detail-actions .contact { justify-content: center; gap: 8px; }
.detail-actions .button.full,
.detail-actions .button.ghost.full { width: 100%; }
.full-action-form { margin: 0; width: 100%; }
.share-btn { font-size: 14px; min-height: 46px; }

/* --- Contact Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal-dialog {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 110;
  background: #fff;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, .18);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
.modal-dialog.open {
  transform: translateY(0);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-header h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.02em;
}
.modal-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover {
  background: rgba(29, 78, 216, .08);
  color: var(--primary);
}
.modal-body {
  padding: 14px 20px 24px;
  overflow-y: auto;
  display: grid;
  gap: 6px;
}
.modal-body .contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}
.modal-body .contact-item:hover {
  background: rgba(29, 78, 216, .06);
  color: var(--primary);
}
.modal-body .contact-item-icon {
  flex-shrink: 0;
  font-size: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(29, 78, 216, .08);
}
.modal-body .contact-item-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  min-width: 75px;
}
.modal-body .contact-item-value {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  word-break: break-all;
}
.contact-empty {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 20px;
  margin: 0;
}
.contact-limit {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
}
.subscription-price {
  display: grid;
  gap: 6px;
  margin: 8px 0 18px;
  padding: 18px;
  border: 1px solid rgba(29, 78, 216, .14);
  border-radius: var(--radius-md);
  background: rgba(29, 78, 216, .06);
  text-align: center;
}
.subscription-price strong {
  color: var(--primary);
  font-size: 34px;
  line-height: 1;
}
.subscription-price span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.report-form textarea {
  min-height: 150px;
}
.report-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.field-error {
  margin: -8px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

@media (min-width: 640px) {
  .modal-dialog {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: min(480px, 90vw);
    border-radius: var(--radius-xl);
    transform: translate(-50%, -50%) scale(.95);
    opacity: 0;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), opacity .25s ease;
    max-height: 70vh;
  }
  .modal-dialog.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  .modal-body .contact-item {
    padding: 14px 14px;
  }
}
.detail {
  max-width: 860px;
  margin: 28px auto;
  overflow: hidden;
  padding: 28px;
}
.detail > h1 {
  margin: 18px 0 8px;
  font-size: clamp(24px, 3.5vw, 32px);
  letter-spacing: -.025em;
  line-height: 1.15;
}
.detail > h2 {
  margin: 24px 0 10px;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -.01em;
}
.detail-image {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 0 0 18px;
  border: 1px solid var(--border);
}
.body-text {
  margin: 16px 0 0;
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: normal;
}
.detail-header-center {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding: 8px 0 4px;
}
.detail-logo {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(29,78,216,.10), rgba(15,118,110,.06));
  color: var(--primary);
  font-size: 34px;
  font-weight: 900;
  overflow: hidden;
  border: 1px solid rgba(29,78,216,.12);
}
.detail-logo img { width: 100%; height: 100%; object-fit: cover; }
.info-grid-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.info-item {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.info-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(29,78,216,.10), rgba(15,118,110,.06));
  color: var(--primary);
  font-weight: 900;
  border: 1px solid rgba(29,78,216,.12);
}
.info-item small {
  display: block;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}
.info-item strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}
.highlight-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.highlight-card {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(29, 78, 216, .18);
  background: rgba(29, 78, 216, .06);
}
.highlight-card.success {
  border-color: rgba(5, 150, 105, .22);
  background: rgba(5, 150, 105, .08);
}
.highlight-card small {
  display: block;
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
}
.highlight-card.success small { color: var(--success); }
.highlight-card strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 800;
}
.chronogram { display: grid; gap: 12px; }
.chronogram-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}
.chronogram-row + .chronogram-row { border-top: 1px solid var(--border); }
.document-list { display: grid; gap: 8px; }

/* ==============================
   Avatar
   ============================== */
.avatar {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(29, 78, 216, .20);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(37, 99, 235, .12);
}

/* ==============================
   Forms
   ============================== */
.form { display: grid; gap: 18px; }
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 13.5px;
  color: #1e293b;
}
input, textarea, select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:hover, textarea:hover, select:hover {
  border-color: rgba(29, 78, 216, .28);
}
input:focus, textarea:focus, select:focus {
  outline: 0;
  border-color: rgba(29, 78, 216, .50);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, .10);
}
textarea { min-height: 150px; resize: vertical; }
.checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.checkbox input { width: auto; }
.search {
  display: flex;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .82);
  margin: 18px 0 24px;
}
.search.advanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: end;
}
.search input { max-width: 520px; }
.search.advanced.opportunity-search {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.opportunity-search .wide,
.opportunity-search .location-selects {
  grid-column: span 2;
}
.opportunity-search .search-field,
.opportunity-search .search-actions {
  min-width: 0;
}
.opportunity-search .search-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}
.opportunity-search .search-actions .button {
  width: 100%;
}
.opportunity-search input,
.opportunity-search select {
  max-width: none;
}

/* ==============================
   Empty State
   ============================== */
.empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 220px;
  text-align: center;
  color: var(--muted);
}
.empty-state .empty-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(29,78,216,.10), rgba(15,118,110,.06));
  color: var(--primary);
  font-size: 36px;
  border: 1px solid rgba(29,78,216,.12);
}
.empty-state h2 { margin: 0; color: var(--text); font-size: 20px; }
.empty-state p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.app-empty {
  min-height: calc(100vh - 170px);
  padding: 24px;
  border: 1.5px dashed rgba(29, 78, 216, .20);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, .72);
}

/* ==============================
   Notices
   ============================== */
.notice {
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 14px;
}
.notice p { margin: 0; }
.notice p + p { margin-top: 6px; }
.notice.error { border-color: rgba(220, 38, 38, .20); background: rgba(254, 226, 226, .80); color: var(--danger); }
.notice.success { border-color: rgba(5, 150, 105, .20); background: rgba(209, 250, 229, .80); color: var(--success); }

/* ==============================
   Footer
   ============================== */
.footer {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 28px 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

/* ==============================
   Bottom Navigation
   ============================== */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 8px;
  z-index: 30;
  width: min(1180px, calc(100% - 28px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px 10px max(8px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 -10px 34px rgba(15, 23, 42, .14);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.bottom-nav a {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 8px 6px;
  border-radius: var(--radius-lg);
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
}
.bottom-nav a .nav-icon { font-size: 22px; line-height: 1; }
.bottom-nav a .nav-label { font-size: 10px; font-weight: 600; }
.bottom-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 18px rgba(29, 78, 216, .18);
}

/* ==============================
   Flutter Shells
   ============================== */
.app-shell, .app-detail {
  background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 52%, #f8fafc 100%);
  padding-bottom: 96px;
}
.app-shell .footer,
.app-detail .footer { display: none; }
.app-shell main, .app-detail main {
  width: min(760px, 100%);
  padding: 68px 0 28px;
}
.app-detail main { width: min(760px, calc(100% - 32px)); }
.app-tab-screen {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 70px 16px 80px;
}
.profile-tab-screen {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 4px 16px 80px;
}
.tab-appbar {
  position: fixed;
  top: 79px;
  left: 14px;
  right: 14px;
  z-index: 49;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 18px;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}
.tab-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow-sm);
}
.tab-action:hover {
  border-color: rgba(29,78,216,.24);
  box-shadow: var(--shadow-md);
}
.tab-action.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 18px rgba(29,78,216,.18);
}
.tab-action.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(29,78,216,.24);
}
.tab-action-icon { font-size: 20px; line-height: 1; font-weight: 800; }
.flutter-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(860px, 100%);
  margin: 0 auto 16px;
  padding: 8px 0;
}
.flutter-appbar h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.025em;
  color: var(--text);
}
.icon-action {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-solid);
  color: var(--primary);
  border: 1px solid var(--border);
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}
.icon-action:hover {
  border-color: rgba(29,78,216,.20);
  box-shadow: var(--shadow-md);
}
.icon-action.placeholder { visibility: hidden; }

/* ==============================
   Settings
   ============================== */
.settings-section { display: grid; gap: 12px; margin-top: 24px; }
.settings-section:first-of-type { margin-top: 0; }
.settings-section-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding-left: 4px;
}
.settings-card { overflow: hidden; padding: 0; }
.settings-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 16px;
  background: transparent;
  border: 0;
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.settings-tile + .settings-tile { border-top: 1px solid var(--border); }
.settings-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(29,78,216,.10), rgba(15,118,110,.06));
  color: var(--primary);
  font-weight: 900;
  border: 1px solid rgba(29,78,216,.12);
  flex: 0 0 auto;
}
.settings-copy { flex: 1; min-width: 0; }
.settings-copy strong { display: block; line-height: 1.3; font-size: 15px; }
.settings-copy span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.chevron { color: var(--faint); font-weight: 900; font-size: 18px; }
.app-version { text-align: center; margin-top: 32px; color: var(--faint); font-size: 13px; }

/* ==============================
   Profile Tab Screen
   ============================== */
.profile-header {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 32px 0 24px;
  text-align: center;
}
.profile-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.profile-title-row h1 { margin: 0; font-size: 26px; letter-spacing: -.025em; }
.circle-action {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
  font-size: 18px;
}
.circle-action:hover {
  border-color: rgba(29,78,216,.20);
  box-shadow: var(--shadow-md);
}
.profile-avatar-stack { position: relative; margin-top: 8px; }
.profile-ring {
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: conic-gradient(from 140deg, var(--primary), var(--accent-light), #22c55e, var(--primary));
  box-shadow: 0 14px 28px rgba(29, 78, 216, .20);
}
.profile-avatar { width: 112px; height: 112px; border: 3px solid #f8f9fa; }
.edit-bubble {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 3px solid #f8f9fa;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(29, 78, 216, .22);
}
.profile-header h2 { margin: 4px 0 0; font-size: 22px; letter-spacing: -.02em; }
.profile-location { margin: 0; color: var(--muted); font-size: 14px; }
.profile-actions { display: flex; justify-content: center; gap: 10px; margin-top: 4px; }
.profile-panel, .profile-section {
  margin: 0 0 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
}
.profile-panel h2, .profile-section h2 { margin: 0 0 14px; font-size: 17px; letter-spacing: -.01em; color: var(--text); }
.active-profile { display: flex; justify-content: center; background: rgba(5, 150, 105, .06); border-color: rgba(5, 150, 105, .16); }
.active-profile span { color: var(--success); font-weight: 700; font-size: 13px; }
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  font-size: 14px;
}
.switch-row + .switch-row { border-top: 1px solid var(--border); }
.switch-look {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
  border-radius: var(--radius-full);
  background: #d1d5db;
  cursor: pointer;
  transition: background var(--transition);
}
.switch-look::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
  transition: transform var(--transition);
}
.switch-look.on { background: var(--primary); }
.switch-look.on::after { transform: translateX(20px); }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.photo-grid img { width: 100%; aspect-ratio: 1; border-radius: var(--radius-md); object-fit: cover; }
.photo-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 32px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--muted);
}
.photo-empty span { color: var(--faint); font-size: 48px; }
.photo-empty p { margin: 0; font-size: 14px; }
.detail-rows {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 12px;
  margin: 0;
  font-size: 14px;
}
.detail-rows dt { color: var(--muted); font-weight: 600; }
.detail-rows dd { margin: 0; color: var(--text); }
.profile-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding-top: 18px;
}
.profile-hero .avatar { width: 120px; height: 120px; font-size: 42px; }


/* ==============================
   Auth & Legal
   ============================== */
.auth-flow { padding-bottom: 0; }
.auth-flow .topbar, .auth-flow .footer, .auth-flow .bottom-nav { display: none; }
.auth-flow main { width: 100%; min-height: 100vh; padding: 0; }

/* Splash */
.splash-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.splash-icon {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 32px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 64px;
  font-weight: 900;
  animation: splashPulse 1.8s ease-in-out infinite;
  -webkit-backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
@keyframes splashPulse {
  0%, 100% { transform: scale(1); opacity: .8; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* Onboarding */
.onboarding-screen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f4ff, #fff);
}
.onboarding-screen::before, .onboarding-screen::after {
  content: "";
  position: absolute;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(44px);
  pointer-events: none;
}
.onboarding-screen::before { top: 80px; left: -40px; background: rgba(37, 99, 235, .20); }
.onboarding-screen::after { right: -40px; bottom: -60px; background: rgba(37, 99, 235, .18); }
.onboarding-shell {
  position: relative;
  z-index: 1;
  width: min(1100px, 100% - 48px);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 20px 0 28px;
}
.onboarding-top { display: flex; justify-content: flex-end; }
.onboarding-pages {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 18px;
  align-items: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.onboarding-page {
  scroll-snap-align: center;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 22px;
  padding: 28px 18px;
}
.onboarding-hero-pane {
  display: grid;
  place-items: center;
  width: 200px;
  height: 200px;
  border-radius: 28px;
  color: #fff;
  font-size: 72px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  box-shadow: 0 18px 40px rgba(30, 64, 175, .35);
}
.onboarding-page h1 {
  margin: 0;
  white-space: pre-line;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.05;
  letter-spacing: -.025em;
}
.onboarding-page p { max-width: 420px; margin: 0; color: var(--muted); font-size: 17px; }
.onboarding-footer { display: grid; justify-items: center; gap: 16px; }
.onboarding-dots { display: flex; gap: 6px; }
.onboarding-dots span {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, .25);
}
.onboarding-dots span:first-child { width: 34px; background: var(--primary); }

/* Login */
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--primary-light);
  text-shadow: 0 1px 6px rgba(15, 23, 42, .4);
  background-color: #0f172a;
  background-image: url("/assets/images/tela_login_fundo_mobile.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.login-content {
  width: min(1000px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: 40px;
  align-items: center;
}
.login-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.025em;
  color: var(--primary-light);
  text-shadow: none;
}
.login-copy p, .login-note, .login-terms {
  color: var(--primary-light);
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(15, 23, 42, .35);
}
.login-note { font-size: 14px; }
.social-proof { display: flex; align-items: center; gap: 14px; }
.proof-avatars { position: relative; width: 120px; height: 40px; }
.proof-avatars span {
  position: absolute;
  top: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
}
.proof-avatars span:nth-child(1) { left: 0; background: linear-gradient(135deg,#60a5fa,#3b82f6); }
.proof-avatars span:nth-child(2) { left: 28px; background: linear-gradient(135deg,#a855f7,#7c3aed); }
.proof-avatars span:nth-child(3) { left: 56px; background: linear-gradient(135deg,#fb923c,#f97316); }
.proof-avatars span:nth-child(4) { left: 84px; background: linear-gradient(135deg,#14b8a6,#0d9488); }
.login-form { display: grid; gap: 20px; }
.login-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-xl);
  color: #1f2937;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 24px 60px rgba(15,23,42,.28);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.login-profile-avatar {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-100), #c7d2fe);
  color: var(--primary);
  font-weight: 900;
  font-size: 24px;
  flex: 0 0 auto;
}
.login-profile-card strong { display: block; font-size: 16px; }
.login-profile-card span { display: block; color: #4b5563; font-weight: 600; font-size: 13px; }
.login-terms { text-align: center; font-size: 16px; }
.login-terms a { color: var(--primary-light); text-decoration: underline; }
.login-terms a:hover { color: #60a5fa; }
.contact-info {
  margin: 0 20px 16px;
  padding: 16px;
  border-radius: var(--radius-xl);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.contact-info h3 { margin: 0 0 12px; font-size: 16px; }
.contact-available { text-align: center; font-size: 14px; color: var(--text-secondary); }

/* Legal acceptance & Signup */
.legal-accept-screen, .signup-screen {
  min-height: 100vh;
  padding: 32px 24px;
  background: linear-gradient(135deg, #f0f4ff, #fff);
}
.legal-accept-card, .signup-card {
  width: min(640px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-xl);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.principle-list { display: grid; gap: 20px; }
.principle-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}
.principle-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--primary);
  background: rgba(29, 78, 216, .10);
  font-weight: 900;
  font-size: 18px;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}
.legal-links a { text-decoration: underline; }

/* Document pages (Terms, Privacy, etc) */
.document-screen { min-height: 100vh; background: var(--bg); }
.document-appbar {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.document-appbar h1 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.document-body {
  width: min(760px, 100%);
  margin: 20px auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface-solid);
  box-shadow: var(--shadow-md);
}
.document-body p { margin: 0 0 16px; line-height: 1.7; color: var(--text-secondary); }
.document-body h2 {
  margin: 28px 0 10px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}
.document-body h2:first-of-type { margin-top: 20px; }
.document-body ul {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.document-body a { overflow-wrap: anywhere; }
.document-version {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted) !important;
  font-size: 13px;
}
.document-contact {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(248, 250, 252, .86);
}
.document-contact p { margin-bottom: 8px; }
.document-contact p:last-child { margin-bottom: 0; }
.document-reference {
  padding: 14px 16px;
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(29, 78, 216, .06);
}
.legal-accept-notice {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}
.document-back {
  display: block;
  width: min(760px, 100%);
  margin: 0 auto 24px;
  padding: 14px 24px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius-xl);
  color: #fff;
  background: var(--primary);
  text-decoration: none;
  box-sizing: border-box;
}
.document-back:hover { background: var(--primary-dark); color: #fff; }
.document-body p:last-child { margin-bottom: 0; }

/* ==============================
   Pagination
   ============================== */
nav[role="navigation"] { margin-top: 24px; }
nav[role="navigation"] a, nav[role="navigation"] span {
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 14px;
}

/* ==============================
   Responsive
   ============================== */
@media (max-width: 860px) {
  .topbar {
    top: 0;
    width: 100%;
    margin-top: 0;
    border-width: 0 0 1px;
    border-radius: 0;
    padding: 12px 16px;
    gap: 10px;
  }
  .nav {
    width: 100%;
    max-height: none;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    }
  .nav::-webkit-scrollbar { display: none; }
  .nav a, .link-button { white-space: nowrap; font-size: 13px; }
  .tab-appbar { top: 73px; left: 0; right: 0; max-width: none; border-radius: 0; border-left: 0; border-right: 0; min-height: 50px; padding-top: 8px; padding-bottom: 8px; }
}

@media (max-width: 720px) {
  body { padding-bottom: 88px; font-size: 14px; }
  main { width: min(100% - 20px, 760px); padding-top: 18px; }
  .app-shell main, .app-detail main { padding-top: 56px; }
  .tab-appbar { top: 69px; min-height: 50px; padding-top: 8px; padding-bottom: 8px; }
  .app-tab-screen { padding-top: 64px; }
  .hero { min-height: 0; padding: 28px 6px; }
  .hero h1 { font-size: clamp(28px, 8vw, 38px); }
  .section-header, .app-bar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .search { flex-direction: column; }
  .search input { max-width: none; }
  .search.advanced.opportunity-search {
    grid-template-columns: 1fr;
  }
  .opportunity-search .wide,
  .opportunity-search .location-selects {
    grid-column: auto;
  }
  .opportunity-search .search-actions {
    grid-template-columns: 1fr;
  }
  .card, .panel, .detail, .notice { border-radius: var(--radius-lg); padding: 18px; }
  .settings-card { padding: 0; }
  .detail { padding: 20px; }
  .detail-actions { border-radius: var(--radius-lg); bottom: 84px; padding: 10px; }
  .opportunity-image { height: 130px; }
  .opportunity-meta-grid, .highlight-row, .info-grid-card { grid-template-columns: 1fr; }
  .bottom-nav { width: calc(100% - 28px); bottom: 6px; padding: 6px 8px max(6px, env(safe-area-inset-bottom)); }
  .bottom-nav a { padding-inline: 4px; }
  .bottom-nav .nav-label { font-size: 9px; }
  .onboarding-shell { width: min(100% - 32px, 900px); }
  .onboarding-pages { grid-template-columns: repeat(4, minmax(calc(100vw - 64px), 1fr)); }
  .login-content { grid-template-columns: 1fr; text-align: center; }
  .login-copy h1 { font-size: 34px; }
  .login-copy { display: flex; flex-direction: column; align-items: center; }
  .login-profile-card { text-align: left; max-width: 380px; }
  .app-tab-screen { padding-top: 66px; }
  .profile-tab-screen { padding-left: 12px; padding-right: 12px; }
  .detail-rows { grid-template-columns: 1fr; gap: 8px; }
  .profile-header { padding-top: 24px; }
  .profile-title-row h1 { font-size: 22px; }
  .profile-ring { width: 108px; height: 108px; }
  .profile-avatar { width: 96px; height: 96px; }
}

@media (max-width: 420px) {
  .tab-appbar { min-height: 50px; top: 67px; padding-top: 8px; padding-bottom: 8px; }
  .app-tab-screen { padding-top: 62px; }
  .tab-action { padding-inline: 10px; font-size: 13px; }
  .app-shell main, .app-detail main { padding-top: 50px; }
  .tag { max-width: 56%; }
  .profile-title-row h1 { font-size: 20px; }
  .bottom-nav .nav-icon { font-size: 20px; }
  .bottom-nav a { padding: 6px 4px; }
}

@media (min-width: 901px) {
  .login-screen {
    background-image: url("/assets/images/tela_login_fundo_desktop3.jpg");
  }
}


/* ==============================
   Splash Improvements
   ============================== */
.splash-icon {
  display: grid;
  place-items: center;
}
.splash-logo {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -.03em;
}
.splash-tagline {
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.8);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  animation: splashFadeIn 1s ease-out;
}
@keyframes splashFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ==============================
   OAuth Callback (Spinner)
   ============================== */
.oauth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 24px;
}
.oauth-card {
  text-align: center;
  color: #fff;
  display: grid;
  gap: 20px;
  justify-items: center;
}
.oauth-card h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.02em;
}
.oauth-card p {
  margin: 0;
  color: rgba(255,255,255,.75);
  font-size: 15px;
}
.oauth-spinner {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
}
.spinner-ring {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255,255,255,.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==============================
   Google Button
   ============================== */
.google-btn {
  gap: 12px;
  background: #fff;
  color: #1f2937;
  border: 1px solid #d1d5db;
  box-shadow: 0 4px 12px rgba(0,0,0,.10);
}
.google-btn:hover {
  background: #f9fafb;
  color: #1f2937;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  transform: translateY(-1px);
}
.google-icon {
  flex-shrink: 0;
}

/* ==============================
   Stars & Social Proof
   ============================== */
.stars {
  color: #f59e0b;
  font-size: 18px;
  letter-spacing: 2px;
  line-height: 1;
}
.star-half {
  opacity: .5;
}
.proof-label {
  display: block;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
}

/* ==============================
   Card micro-interactions
   ============================== */
.opportunity-card {
  position: relative;
}
.opportunity-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid transparent;
  transition: border-color var(--transition);
}
.opportunity-card:hover::after {
  border-color: rgba(29, 78, 216, .14);
}

/* ==============================
   Badge "Novo" animation
   ============================== */
.badge-new {
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .7; }
}

/* ==============================
   Page entrance animation
   ============================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.app-tab-screen > *,
.profile-tab-screen > *,
.panel,
.detail {
  animation: fadeInUp .35s ease-out both;
}
.app-tab-screen > :nth-child(2) { animation-delay: .05s; }
.app-tab-screen > :nth-child(3) { animation-delay: .1s; }
.app-tab-screen > :nth-child(4) { animation-delay: .15s; }

/* ==============================
   Improved form labels
   ============================== */
label {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  letter-spacing: .01em;
}

/* ==============================
   Responsive notice icons
   ============================== */
.notice {
  display: flex;
  align-items: center;
  gap: 10px;
}
.notice::before {
  font-size: 18px;
  flex-shrink: 0;
}
.notice.error::before { content: "\26A0\FE0F"; }
.notice.success::before { content: "\2705"; }

/* ==============================
   Smooth scrollbar for nav
   ============================== */
.nav::-webkit-scrollbar {
  height: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==============================
   Form improvements
   ============================== */
.form-header {
  margin-bottom: 8px;
}
.form-panel {
  max-width: 920px;
  margin-inline: auto;
}
.form-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: var(--radius-full);
  background: rgba(20, 184, 166, .08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.form-header h1 {
  margin: 0 0 4px;
}
.form-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.opportunity-form {
  gap: 20px;
}
.form-fieldset {
  border: 1px solid rgba(15, 23, 42, .09);
  border-radius: var(--radius-md);
  padding: 18px;
  margin: 0;
  display: grid;
  gap: 16px;
  background: rgba(248, 250, 252, .70);
}
.form-fieldset legend {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  padding: 0 8px;
}
.field-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
}
.required-mark {
  color: var(--danger);
  font-weight: 900;
}
.opportunity-form textarea {
  min-height: 118px;
}
.opportunity-form input::placeholder,
.opportunity-form textarea::placeholder {
  color: #94a3b8;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
}
.publisher-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(29, 78, 216, .14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .78);
  color: inherit;
  box-shadow: var(--shadow-sm);
}
.publisher-card:hover {
  border-color: rgba(29, 78, 216, .28);
  box-shadow: var(--shadow-md);
}
.publisher-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 900;
  font-size: 20px;
}
.publisher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.publisher-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.publisher-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.publisher-copy strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
}
.publisher-copy span {
  color: var(--muted);
  font-size: 13px;
}
.detail-publisher-card {
  margin: 0 0 18px;
}
.publisher-inline-link {
  color: var(--primary);
  font-weight: 800;
}
.file-label {
  cursor: pointer;
  padding: 16px;
  border: 1px dashed rgba(29, 78, 216, .25);
  border-radius: var(--radius-md);
  background: rgba(239, 246, 255, .62);
}
.file-hint {
  display: block;
  font-size: 12px;
  color: var(--faint);
  font-weight: 400;
}
.file-label input[type="file"] {
  padding: 10px;
  font-size: 13px;
  cursor: pointer;
}

/* ==============================
   Opportunity cards improved
   ============================== */
.opportunity-card {
  position: relative;
  overflow: hidden;
}
.opportunity-card .card-date {
  font-size: 12px;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 4px;
}
.tag-new {
  background: linear-gradient(135deg, var(--success), #059669);
  color: #fff;
  border-color: transparent;
  animation: badgePulse 2s ease-in-out infinite;
}

/* ==============================
   Listing page header
   ============================== */
.listing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 4px;
}
.listing-header h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.025em;
}

/* ==============================
   Competition/Contest status badges
   ============================== */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.status-dot.open { background: var(--success); }
.status-dot.upcoming { background: var(--warning); }

/* ==============================
   Footer improvements
   ============================== */
.footer {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  padding: 32px 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  flex-wrap: wrap;
}
.footer a:hover {
  color: var(--primary);
}

/* ==============================
   Hamburger Menu
   ============================== */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}
.hamburger:hover {
  background: rgba(29, 78, 216, .08);
  border-color: rgba(29, 78, 216, .20);
}
.hamburger-line {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--text);
  transition: var(--transition);
}
.hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* --- Overlay --- */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, .50);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* --- Panel --- */
.nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  width: min(360px, 85vw);
  background: var(--surface-solid);
  box-shadow: -8px 0 32px rgba(15, 23, 42, .15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.nav-panel.open {
  transform: translateX(0);
}

/* Panel header */
.nav-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  min-height: 60px;
}
.nav-panel-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}
.nav-panel-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}
.nav-panel-close:hover {
  background: rgba(29, 78, 216, .08);
  color: var(--primary);
}

/* Panel body */
.nav-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 20px;
}

/* Sections */
.nav-panel-section {
  padding: 12px 20px 4px;
}
.nav-panel-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--faint);
  margin-bottom: 6px;
  padding-left: 4px;
}

/* Links */
.nav-panel-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
}
.nav-panel-link:hover {
  background: rgba(29, 78, 216, .06);
  color: var(--primary);
}
.nav-panel-logout {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  color: var(--danger);
}
.nav-panel-logout:hover {
  background: rgba(220, 38, 38, .08);
}

/* ==============================
   Print
   ============================== */
@media print {
  .topbar, .bottom-nav, .footer, .detail-actions,
  .app-bg, .tab-appbar, .icon-action {
    display: none !important;
  }
  body { background: #fff; padding: 0; }
  main { width: 100%; padding: 0; }
  .detail { box-shadow: none; border: 1px solid #ddd; }
}
