:root {
  --color-bg: #000000;
  --color-surface: rgba(10, 20, 15, 0.65);
  --color-surface-hover: rgba(20, 35, 25, 0.8);
  --color-primary: #059669;
  --color-primary-hover: #047857;
  --color-text: #f3f4f6;
  --color-text-muted: #9ca3af;
  --color-border: rgba(255, 255, 255, 0.08);
  
  --color-status-pendente: #f59e0b;
  --color-status-em_andamento: #3b82f6;
  --color-status-aguardando_pagamento: #06b6d4;
  --color-status-concluido: #10b981;

  --font-family: 'Inter', -apple-system, sans-serif;
  --roundness: 8px;
  --roundness-lg: 16px;
  
  --blur-amount: 12px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Glassmorphism utility */
.glass {
  background: var(--color-surface);
  backdrop-filter: blur(var(--blur-amount));
  -webkit-backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--color-border);
  border-radius: var(--roundness-lg);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
}

/* Typography */
h1, h2, h3 {
  font-weight: 600;
  margin-bottom: 1rem;
}

p {
  color: var(--color-text-muted);
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

input, select, textarea {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.75rem 1rem;
  border-radius: var(--roundness);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.25);
}

/* Fix option background in dark mode */
option {
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--roundness);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  font-family: var(--font-family);
}

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

.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 0 15px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.6);
  z-index: 100;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab:hover {
  transform: scale(1.1);
}

/* Cards */
.freela-card {
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.freela-card:hover {
  transform: translateY(-2px);
  background: var(--color-surface-hover);
}

.freela-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.freela-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.freela-value {
  font-weight: 700;
  color: var(--color-primary);
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-pendente { background: rgba(245, 158, 11, 0.2); color: var(--color-status-pendente); }
.badge-em_andamento { background: rgba(59, 130, 246, 0.2); color: var(--color-status-em_andamento); }
.badge-aguardando_pagamento { background: rgba(6, 182, 212, 0.2); color: var(--color-status-aguardando_pagamento); }
.badge-concluido { background: rgba(16, 185, 129, 0.2); color: var(--color-status-concluido); }

.freela-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

/* Navbar */
.navbar {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--color-border);
  background: rgba(5, 10, 7, 0.8);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.navbar-brand span {
  color: var(--color-primary);
}

/* Utility */
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.d-flex { display: flex; }
.gap-2 { gap: 0.5rem; }

/* Bottom Sheet Modal */
.bottom-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-sheet-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 85vh;
  background: rgba(21, 18, 27, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 1.5rem;
  z-index: 1001;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1);
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.bottom-sheet-overlay.active .bottom-sheet {
  transform: translateY(0);
}

.bottom-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.bottom-sheet-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.btn-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Filter Sub-headers */
.filter-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  display: block;
  font-weight: 600;
}

/* Chips */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.chip {
  display: inline-block;
  cursor: pointer;
}

.chip input {
  display: none;
}

.chip span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-muted);
  transition: all 0.2s ease;
}

.chip input:checked + span {
  background: rgba(5, 150, 105, 0.2);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(5, 150, 105, 0.4), inset 0 0 5px rgba(5, 150, 105, 0.2);
}

/* Segmented Control */
.segmented-control {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.segmented-control label {
  flex: 1;
  text-align: center;
  cursor: pointer;
  margin: 0;
  position: relative;
}

.segmented-control input {
  display: none;
}

.segmented-control span {
  display: block;
  padding: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-radius: 8px;
  transition: all 0.3s ease;
  z-index: 2;
  position: relative;
}

.segmented-control input:checked + span {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Elegant Select & Input */
.filter-input-wrap {
  margin-bottom: 1.5rem;
}

.filter-input-wrap select, .filter-input-wrap input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}
