:root {
  --primary: #2196f3;
  --primary-dark: #1976d2;
  --primary-light: #64b5f6;
  --primary-gradient: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  --secondary: #ff5722;
  --secondary-dark: #e64a19;
  --secondary-gradient: linear-gradient(135deg, #ff5722 0%, #e64a19 100%);
  --success: #4caf50;
  --danger: #f44336;
  --warning: #ff9800;
  --text-primary: #f9fafb;
  --text-secondary: #94a3b8;
  --text-light: #9ca3af;
  --divider: #374151;
  --background: #0f172a;
  --surface: #1e293b;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

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

html[data-theme='light'] {
  --background: #f8fafc;
  --surface: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --divider: #e5e7eb;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --divider: #e5e7eb;
  }
}

.app-header,
.bottom-nav {
  background: var(--surface);
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

/* Loading Screen - Modernizado */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  z-index: 9999;
}

.loading-content {
  text-align: center;
  animation: fadeIn 0.3s ease-in;
}

.logo-spinner {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
}

.loading-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: pulse 2s ease-in-out infinite;
}

.spinner-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  border: 4px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--primary-light);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

.loading-text {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
  margin-top: 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Login Screen - Modernizado */
.screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at top, #1e293b 0%, #0f172a 100%);
}

.login-container {
  width: 100%;
  max-width: 420px;
  text-align: center;
  animation: slideUp 0.5s ease-out;
}

.login-header {
  margin-bottom: 40px;
}

.logo {
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.brand-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.brand-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.login-content {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: var(--shadow-xl);
}

.login-description {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  width: 100%;
  min-height: 52px;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.btn-primary.btn-large {
  padding: 18px 36px;
  font-size: 18px;
  min-height: 56px;
}

.btn-icon-right {
  font-size: 20px;
}

.google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* App Header - Modernizado */
.app-header {
  background: var(--surface);
  padding: 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.header-content {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.header-title-section {
  flex: 1;
}

.app-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 2px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
}

.app-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary-light);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  transition: transform 0.2s ease;
}

.user-avatar:hover {
  transform: scale(1.05);
}

.btn-icon {
  background: var(--surface);
  border: 2px solid var(--divider);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-icon:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(33, 150, 243, 0.05);
  transform: translateY(-1px);
}

.btn-icon:active {
  transform: translateY(0);
}

/* Deals Grid - Modernizado */
.deals-container {
  padding: 24px 20px;
  padding-bottom: 100px;
  min-height: calc(100vh - 80px);
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.deal-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--divider);
  position: relative;
  animation: fadeInUp 0.5s ease-out backwards;
}

.deal-card:nth-child(1) {
  animation-delay: 0.05s;
}
.deal-card:nth-child(2) {
  animation-delay: 0.1s;
}
.deal-card:nth-child(3) {
  animation-delay: 0.15s;
}
.deal-card:nth-child(4) {
  animation-delay: 0.2s;
}
.deal-card:nth-child(5) {
  animation-delay: 0.25s;
}
.deal-card:nth-child(6) {
  animation-delay: 0.3s;
}

.deal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--secondary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.deal-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.deal-card:hover::before {
  opacity: 1;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.deal-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.deal-card:hover img {
  transform: scale(1.05);
}

.deal-info {
  padding: 20px;
}

.deal-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-description {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.deal-pricing {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--divider);
}

.original-price {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: 15px;
  font-weight: 500;
}

.deal-price {
  font-size: 28px;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.discount-badge {
  background: var(--secondary-gradient);
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  margin-left: auto;
  animation: pulse 2s ease-in-out infinite;
}

.deal-stock {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.deal-stock::before {
  content: '📦';
  font-size: 14px;
}

/* Modal - Modernizado */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 32px 24px 24px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--divider);
  z-index: 1;
}

.close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
  background: var(--background);
  border-radius: 50%;
  transition: all 0.2s ease;
  border: none;
  font-weight: 300;
}

.close:hover {
  background: var(--danger);
  color: white;
  transform: rotate(90deg);
}

.modal-content img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  object-fit: cover;
  max-height: 300px;
}

/* Coupons - Modernizado */
#coupons-section {
  min-height: calc(100vh - 80px);
  padding-bottom: 100px;
}

.section-header {
  padding: 24px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
  margin-bottom: 20px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.coupons-grid {
  display: grid;
  gap: 20px;
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.coupon-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--divider);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.coupon-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--primary-gradient);
}

.coupon-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.coupon-code {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 6px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  font-family: 'Courier New', 'Monaco', monospace;
  padding: 16px;
  background-color: var(--background);
  border-radius: var(--radius-md);
  border: 2px dashed var(--primary-light);
}

.coupon-status {
  text-align: center;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.coupon-card.pending .coupon-status {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: var(--success);
}

.coupon-card.redeemed .coupon-status {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  color: var(--text-secondary);
}

.coupon-card.expired .coupon-status {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: var(--danger);
}

/* Bottom Navigation - Modernizado */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--surface);
  display: flex;
  justify-content: space-around;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--divider);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  flex: 1;
  max-width: 120px;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 0 0 3px 3px;
  transition: width 0.3s ease;
}

.nav-item.active {
  color: var(--primary);
  background: rgba(33, 150, 243, 0.08);
}

.nav-item.active::before {
  width: 60%;
}

.nav-item:hover {
  background: rgba(33, 150, 243, 0.05);
  transform: translateY(-2px);
}

.nav-icon {
  font-size: 26px;
  transition: transform 0.3s ease;
}

.nav-item.active .nav-icon {
  transform: scale(1.15);
}

.nav-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Empty State - Modernizado */
.empty-state {
  text-align: center;
  color: var(--text-secondary);
  padding: 80px 20px;
  font-size: 16px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  margin: 20px;
  box-shadow: var(--shadow-sm);
}

.empty-state::before {
  content: '🔍';
  font-size: 64px;
  display: block;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Price Info in Modal - Modernizado */
.price-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 24px 0;
  padding: 20px;
  background: var(--background);
  border-radius: var(--radius-md);
  border: 2px solid var(--primary-light);
}

.price-info .original {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: 18px;
  font-weight: 500;
}

.price-info .current {
  font-size: 42px;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.stock-info {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: rgba(255, 152, 0, 0.1);
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stock-info::before {
  content: '⚠️';
  font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .deals-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .app-title {
    font-size: 20px;
  }

  .app-subtitle {
    font-size: 12px;
  }

  .header-content {
    padding: 14px 16px;
  }

  .deals-container {
    padding: 20px 16px;
    padding-bottom: 100px;
  }

  .login-container {
    padding: 20px;
  }

  .brand-title {
    font-size: 32px;
  }

  .logo {
    width: 120px;
    height: 120px;
  }

  .modal-content {
    padding: 24px 20px 20px;
    margin: 10px;
  }

  .price-info .current {
    font-size: 36px;
  }

  .coupon-code {
    font-size: 28px;
    letter-spacing: 4px;
  }

  .bottom-nav {
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  }

  .nav-item {
    padding: 8px 12px;
    gap: 4px;
  }

  .nav-icon {
    font-size: 24px;
  }

  .nav-label {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .deal-card img {
    height: 180px;
  }

  .deal-price {
    font-size: 24px;
  }

  .discount-badge {
    font-size: 12px;
    padding: 5px 10px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-light: #9ca3af;
    --background: #111827;
    --surface: #1f2937;
    --divider: #374151;
  }
  .app-header {
    background: var(--surface);
  }

  .bottom-nav {
    background: var(--surface);
  }
}

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

/* Localização e Distância */
.deal-location {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.distance-badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: 6px 12px;
  border-radius: 16px;
  font-weight: 500;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.neighborhood {
  color: #64748b;
  font-size: 14px;
}

.deal-stock {
  display: flex;
  gap: 12px;
  color: #64748b;
  font-size: 13px;
  flex-wrap: wrap;
}

/* Empty State */
/* Centraliza o card de aviso */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 20px;
}

/* Estilo do botão Limpar Filtros */
.btn-outline {
  background: transparent;
  border: 2px solid #2196f3; /* Cor primária do seu projeto [cite: 8] */
  color: #2196f3;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: #2196f3;
  color: white;
}

/* Link de tentar atualizar */
.btn-text {
  background: none;
  border: none;
  color: #64748b;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Espaçamento dos ícones */
.empty-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.empty-state .btn-primary {
  margin-top: 16px;
}

/* Badge de distância no card */
.distance-badge {
  background: rgba(33, 150, 243, 0.1);
  color: var(--primary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#google-login-btn {
  margin-top: 24px;
}

.profile-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-bottom: 80px; /* Espaço para o nav inferior */
}

.profile-card {
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.card-icon {
  font-size: 1.5rem;
}

.card-title h3 {
  margin: 0;
  font-size: 1.1rem;
}

.card-title p {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

/* Pilulas de Categoria */
.interests-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.category-pill {
  padding: 8px 12px;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  background: white;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.category-pill.active {
  background: #2196f3;
  color: white;
  border-color: #2196f3;
}

/* Slider de Raio */
.range-slider {
  width: 100%;
  margin-top: 15px;
  accent-color: #2196f3;
}

.slider-container {
  margin-top: 15px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 5px;
}

.slider-labels span {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
}

.range-slider {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 5px;
  outline: none;
  accent-color: #2196f3;
  cursor: pointer;
}

.category-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #94a3b8; /* Cinza suave */
  text-transform: capitalize;
  margin-bottom: 4px;
}

.category-icon {
  font-size: 0.9rem;
}

/* Container Geral do Perfil */
#profile {
  background-color: #0f172a; /* Azul escuro do fundo do app */
  color: white;
  min-height: 100vh;
}

.profile-card {
  background: #1e293b; /* Azul escuro consistente com os cards de oferta */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Força tudo para a esquerda */
  text-align: left;
}

/* Garante que o Header do card ocupe a largura total para o switch funcionar */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 12px;
}

/* Títulos e Subtítulos */
.card-title h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #ffffff;
}

.card-title p {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8; /* Cinza azulado para melhor leitura no escuro */
}

/* Ajuste das Pílulas para leitura clara */
.interests-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.category-pill {
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(33, 150, 243, 0.1);
  color: #cbd5e1; /* Cor clara para leitura em estado inativo */
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.category-pill.active {
  background: #2196f3 !important;
  color: white !important;
  border-color: #2196f3;
}

/* Estilos de Status */
.status-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Urgente: Laranja Vibrante */
.status-urgent {
  border-left: 5px solid #f97316 !important;
}
.badge-urgent {
  background: #f97316;
  color: white;
  animation: pulse 2s infinite;
}

/* Expirado: Vermelho */
.status-expired {
  border-left: 5px solid #ef4444 !important;
  opacity: 0.6;
}
.badge-expired {
  background: #ef4444;
  color: white;
}

/* Utilizado: Cinza Sugestivo */
.status-redeemed {
  border-left: 5px solid #10b981 !important;
}
.badge-redeemed {
  background: #10b981;
  color: white;
}

.text-highlight {
  color: #f97316;
  font-weight: bold;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Container do código para dar foco */
.code-container {
  background: #0f172a; /* Fundo mais escuro que o card para contraste */
  border: 2px dashed #2196f3; /* Borda tracejada estilo cupom */
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
  text-align: center;
}

.code-label {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: bold;
}

.code-value {
  font-family:
    'Courier New', Courier, monospace; /* Fonte monoespaçada facilita leitura de caracteres */
  font-size: 2.2rem; /* Tamanho grande para leitura rápida */
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 6px; /* Espaçamento entre números evita confusão */
  line-height: 1;
  text-shadow: 0 0 12px rgba(33, 150, 243, 0.3); /* Brilho sutil para destacar no Dark Mode */
}

/* Ajuste para quando o cupom estiver expirado */
.status-expired .code-container {
  border-color: #475569;
  background: #1e293b;
}

.status-expired .code-value {
  color: #64748b;
  text-decoration: line-through;
  text-shadow: none;
}

/* Ajuste para quando for Urgente - Borda Laranja */
.status-urgent .code-container {
  border-color: #f97316;
}

.product-title {
  font-size: 1.6rem; /* Tamanho substancial */
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 12px 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
  /* Um degradê sutil ou cor sólida que combine com o seu tema dark */
  background: linear-gradient(90deg, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* No estado expirado, removemos o destaque do produto */
.status-expired .product-title {
  background: none;
  -webkit-text-fill-color: #64748b;
  opacity: 0.7;
}

/* Estilos para o filtro de categorias */
.filter-section {
  padding: 0 20px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
}

.filter-container {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.filter-icon {
  font-size: 18px;
}

.category-select {
  flex: 1;
  background: var(--surface);
  color: var(--text-primary);
  border: 2px solid var(--divider);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 44px;
}

.category-select:hover {
  border-color: var(--primary-light);
}

.category-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Responsividade para o filtro */
@media (max-width: 768px) {
  .filter-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .category-select {
    width: 100%;
  }
}
