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

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

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2236;
  --bg-card-hover: #1f2a42;
  --bg-input: #1e293b;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --green: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.2);
  --orange: #f59e0b;
  --red: #ef4444;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e293b;
  --border-light: #334155;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --transition: 0.2s ease;
  --primary-color: #f59e0b;
  /* Orange Brand Color */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

/* ===== TOP BAR ===== */
.topbar {
  background: #060a12;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0 2rem;
  font-size: 0.75rem;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-muted);
}

.topbar-left span,
.topbar-right span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Topbar Auth */
.topbar-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
  padding-left: 15px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-btn {
  font-size: 0.75rem;
  color: var(--text-primary);
  padding: 4px 12px;
  border-radius: 4px;
  transition: all 0.2s;
  text-decoration: none;
}

.topbar-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.topbar-btn.btn-highlight {
  background: var(--orange);
  /* Using orange to match brand */
  color: #fff;
  font-weight: 600;
}

.topbar-btn.btn-highlight:hover {
  background: #d35400;
  /* Darker orange */
  transform: translateY(-1px);
}

/* ===== HEADER / NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo:hover {
  color: var(--text-primary);
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  position: relative;
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.1);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ===== HERO BANNER ===== */
.hero-banner {
  position: relative;
  background: #0a0e17;
  padding: 5rem 2rem 4rem;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/hero-bg.jpg') center center / cover no-repeat;
  opacity: 0.25;
  pointer-events: none;
}

.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 14, 23, 0.85) 0%, rgba(30, 58, 95, 0.6) 40%, rgba(12, 74, 110, 0.5) 70%, rgba(10, 14, 23, 0.9) 100%),
    radial-gradient(ellipse at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="g" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="1" cy="1" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23g)"/></svg>');
  pointer-events: none;
}

.hero-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-label {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #60a5fa;
  margin-bottom: 1.5rem;
}

.hero-banner-content h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: linear-gradient(135deg, #f1f5f9 30%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero-banner-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.hero-stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-light);
}

/* Legacy hero (used by other pages) */
.hero {
  text-align: center;
  padding: 4rem 2rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CATEGORY FILTERS ===== */
.filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1rem 2rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===== NEWS GRID ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
  opacity: 0;
  transition: opacity var(--transition);
}

.news-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.category-badge.transporte {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.category-badge.agro {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.category-badge.economia {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.category-badge.combustível {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.category-badge.infraestrutura {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.category-badge.frete {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
}

.category-badge.destaque {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
}

.card-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
}

.card-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

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

.card-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-link:hover {
  color: var(--accent-hover);
}

/* ===== FREIGHT POPUP / MODAL ===== */
.freight-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

.freight-popup-overlay.active {
  display: flex;
}

.freight-popup {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

.freight-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.freight-popup-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.freight-popup-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color var(--transition);
}

.freight-popup-close:hover {
  color: var(--text-primary);
}

.freight-list {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.freight-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  transition: border-color var(--transition);
}

.freight-item:hover {
  border-color: var(--green);
}

.freight-route {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.freight-route .arrow {
  color: var(--green);
}

.freight-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.freight-details span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.freight-contact {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 600;
}

.freight-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== FREIGHT FLOATING BUTTON ===== */
.freight-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 150;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #16a34a);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--green-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.freight-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px var(--green-glow);
}

.freight-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== ADMIN PAGE ===== */
.admin-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* Login form */
.login-card {
  max-width: 420px;
  margin: 6rem auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}

.login-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.login-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}

.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

select option {
  background-color: var(--bg-card);
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  width: 100%;
}

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

.btn-success {
  background: var(--green);
  color: #fff;
}

.btn-success:hover {
  background: #16a34a;
}

/* ===== FORM MODAL (New) ===== */
.form-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.form-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.form-modal {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.form-modal-overlay.active .form-modal {
  transform: translateY(0);
}

.form-modal h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.form-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-danger {
  background: transparent;
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

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

.btn-outline:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
}

.error-msg {
  color: var(--red);
  font-size: 0.8rem;
  margin-top: 0.75rem;
}

/* Admin panel */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Freight form (add/edit modal) */
.form-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.form-modal-overlay.active {
  display: flex;
}

.form-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  max-width: 550px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  animation: slideUp 0.3s ease;
}

.form-modal h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.checkbox-label:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-label:has(input:checked) {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

/* Freight table */
.freight-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.freight-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.freight-table thead {
  background: var(--bg-card);
}

.freight-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.freight-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.freight-table tbody tr:hover {
  background: var(--bg-card);
}

.freight-table .route-cell {
  font-weight: 600;
  color: var(--text-primary);
}

.status-active {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
  font-weight: 600;
  font-size: 0.8rem;
}

.status-active::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.status-inactive {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.status-inactive::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.table-actions {
  display: flex;
  gap: 0.5rem;
}

/* ===== LOADING SKELETON ===== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ===== FREIGHT CAROUSEL ===== */
.freight-carousel-section {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  padding: 0 2rem;
}

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

.carousel-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.carousel-see-all {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}

.carousel-see-all:hover {
  color: var(--accent-hover);
}

.carousel-track-wrapper {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.5rem 0;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.carousel-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.carousel-arrow-left {
  left: -12px;
}

.carousel-arrow-right {
  right: -12px;
}

.carousel-card {
  flex: 0 0 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.carousel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #6366f1);
  opacity: 0;
  transition: opacity var(--transition);
}

.carousel-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.cc-route {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.cc-origin,
.cc-dest {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.cc-arrow {
  color: var(--accent);
  font-weight: 700;
}

.cc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cc-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--text-secondary);
  white-space: nowrap;
}

.cc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}

.cc-price {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green);
}

.cc-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}

.cc-whatsapp:hover {
  background: #1da851;
  transform: scale(1.05);
  color: #fff;
}

@media (max-width: 768px) {
  .carousel-card {
    flex: 0 0 260px;
  }

  .carousel-arrow {
    display: none;
  }

  .freight-carousel-section {
    padding: 0 1rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

  100% {
    background-position: -200% 0;
  }
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 4px 20px var(--green-glow);
  }

  50% {
    box-shadow: 0 4px 30px rgba(34, 197, 94, 0.4);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .navbar-inner {
    padding: 0;
  }

  .nav-links {
    gap: 1rem;
  }

  .freight-fab {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.5rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  border-left: 3px solid var(--green);
}

.toast.error {
  border-left: 3px solid var(--red);
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 150;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-whatsapp {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  }

  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
  }
}

/* ===== FRETEBRAS-STYLE FREIGHTS PAGE ===== */
.fb-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem 4rem;
  min-height: calc(100vh - 64px);
}

/* Sidebar */
.fb-sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fb-filter-section {
  padding-bottom: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.fb-filter-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0.5rem;
}

.fb-filter-section h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.fb-filter-btn {
  width: 100%;
  margin-bottom: 0.5rem;
}

.fb-clear-btn {
  width: 100%;
  font-size: 0.8rem;
  padding: 0.5rem;
}

/* Results header */
.fb-results-header {
  margin-bottom: 1rem;
}

.fb-count {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.fb-count strong {
  color: var(--text-primary);
  font-size: 1.3rem;
}

/* Freight list */
.fb-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fb-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom: none;
  transition: all 0.2s ease;
  cursor: default;
}

.fb-item:first-child {
  border-radius: var(--radius) var(--radius) 0 0;
}

.fb-item:last-child {
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
}

.fb-item:only-child {
  border-radius: var(--radius);
  border-bottom: 1px solid var(--border);
}

.fb-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

.fb-item:hover+.fb-item {
  border-top-color: var(--border-light);
}

/* Route connector (vertical dots + line) */
.fb-item-left {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 240px;
}

.fb-route-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2px 0;
  width: 14px;
  flex-shrink: 0;
}

.fb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.fb-dot-origin {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.fb-dot-dest {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.fb-line {
  width: 2px;
  flex: 1;
  min-height: 16px;
  background: var(--border-light);
}

.fb-route-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

/* ===== MOBILE NAVIGATION & RESPONSIVENESS ===== */
@media (max-width: 768px) {

  /* Navbar */
  .navbar-inner {
    padding: 0;
    height: 60px;
  }

  .nav-hamburger {
    display: flex;
    z-index: 101;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 100;
    gap: 1.5rem;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
    padding: 1rem;
  }

  /* Hamburger Animation */
  .nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Login Page */
  .login-card {
    margin: 2rem auto;
    width: 90%;
    padding: 1.5rem;
  }

  /* Filters */
  .filters {
    padding: 1rem;
    gap: 0.35rem;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  /* News Grid */
  .news-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem 2rem;
  }

  /* Chat Interface */
  .chat-container {
    height: calc(100vh - 110px);
    /* Adjust for topbar + nav */
    margin: 0.5rem;
    border-radius: var(--radius-sm);
  }

  .chat-messages {
    padding: 1rem;
  }

  .chat-bubble {
    max-width: 90%;
    font-size: 0.95rem;
  }

  .chat-input-area {
    padding: 0.75rem;
  }

  .chat-input-wrapper textarea {
    font-size: 16px;
    /* Prevent zoom on iOS */
  }

  /* Modals */
  .form-modal {
    width: 95%;
    padding: 1.5rem;
    max-height: 90vh;
    overflow-y: auto;
  }

  .freight-popup {
    width: 95%;
    max-height: 85vh;
  }

  /* Reference Card */
  .ref-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .ref-status {
    width: 100%;
    text-align: right;
  }

  /* Hide topbar extra info on very small screens */
  .topbar-left {
    display: none;
  }

  .topbar-right {
    margin: 0 auto;
  }

  /* Freight Page */
  .fb-layout {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .fb-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 2rem;
  }

  .fb-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .fb-item-left {
    width: 100%;
    min-width: auto;
  }
}

.fb-dest {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Center section - tags */
.fb-item-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.fb-tag {
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  white-space: nowrap;
  font-weight: 500;
}

.fb-tag-vehicle {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.fb-tag-body {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.fb-tag-diesel {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
  font-weight: 600;
}

.fb-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fb-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Right section - price + action */
.fb-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 120px;
}

.fb-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green);
  white-space: nowrap;
}

.fb-price-tbd {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  font-style: italic;
}

.fb-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.fb-whatsapp:hover {
  background: #1da851;
  color: #fff;
  transform: scale(1.05);
}

.fb-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-size: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

@media (max-width: 900px) {
  .fb-layout {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .fb-sidebar {
    position: static;
    order: -1;
  }

  .fb-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .fb-item-left {
    min-width: 0;
    width: 100%;
  }

  .fb-item-right {
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    min-width: 0;
  }

  .fb-route-connector {
    display: none;
  }

  .fb-route-info {
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
  }

  .fb-route-info::after {
    content: none;
  }

  .fb-origin::after {
    content: '→';
    margin-left: 0.5rem;
    color: var(--green);
    font-weight: 700;
  }
}

/* ===== CHAT / CONVERSA PAGE ===== */
.chat-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 64px);
}

.chat-header {
  text-align: center;
  padding: 2rem 2rem 1rem;
}

.chat-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.chat-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}

.chat-bubble {
  display: flex;
  gap: 0.75rem;
  max-width: 85%;
  animation: slideUp 0.3s ease;
}

.chat-bubble.system {
  align-self: flex-start;
}

.chat-bubble.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.bubble-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.bubble-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.chat-bubble.user .bubble-content {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

.bubble-content p {
  margin-bottom: 0.5rem;
}

.bubble-content p:last-child {
  margin-bottom: 0;
}

.bubble-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.format-examples {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.format-examples code,
.bubble-content code {
  display: block;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--accent);
  font-family: 'Consolas', 'Courier New', monospace;
  word-break: break-all;
}

.user-text {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin: 0;
  background: none;
  border: none;
  padding: 0;
}

/* Preview cards */
.preview-cards {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0.75rem 0;
}

.preview-card {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color var(--transition);
}

.preview-card:hover {
  border-color: var(--green);
}

.pc-route {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.pc-origin,
.pc-dest {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.pc-arrow {
  color: var(--green);
  font-weight: 700;
}

.pc-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pc-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--text-secondary);
  white-space: nowrap;
}

.preview-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.btn-send {
  flex: 1;
}

/* Chat input area */
.chat-input-area {
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.chat-input-wrapper {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.chat-input-wrapper textarea {
  flex: 1;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  resize: none;
  outline: none;
  transition: border-color var(--transition);
  line-height: 1.5;
  max-height: 200px;
}

.chat-input-wrapper textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.chat-send-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 20px var(--accent-glow);
}

@media (max-width: 768px) {
  .chat-container {
    height: calc(100vh - 56px);
  }

  .chat-messages {
    padding: 1rem;
  }

  .chat-bubble {
    max-width: 95%;
  }

  .chat-input-area {
    padding: 0.75rem 1rem 1rem;
  }

  .preview-actions {
    flex-direction: column;
  }
}

/* ===== FOOTER ===== */
.site-footer {
  background: #060a12;
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 0;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li,
.footer-col ul a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-col ul a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== MOBILE RESPONSIVE — GLOBAL ===== */
/* ===== DIESEL POPUP ===== */
.diesel-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.diesel-popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.diesel-popup-content {
  background: #1e293b;
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.diesel-popup-overlay.active .diesel-popup-content {
  transform: translateY(0);
}

.diesel-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

.diesel-popup-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.diesel-popup-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.diesel-search-box {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.diesel-search-box input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.diesel-search-box button {
  padding: 0 1.25rem;
  background: var(--primary-color);
  border: none;
  border-radius: 6px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s;
}

.diesel-search-box button:hover {
  background: #f97316;
}

.diesel-results {
  max-height: 250px;
  overflow-y: auto;
}

.diesel-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.diesel-item:last-child {
  border-bottom: none;
}

.diesel-info strong {
  display: block;
  color: #e2e8f0;
}

.diesel-info span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.diesel-price {
  font-weight: 700;
  color: #fbbf24;
  font-size: 1.1rem;
}

.diesel-msg {
  text-align: center;
  padding: 1rem;
  color: var(--text-secondary);
}

.diesel-popup-footer {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

/* Add Responsive styles for topbar from previous step if missing context */
@media (max-width: 768px) {

  /* Ensure popup fits on mobile */
  .diesel-popup-content {
    width: 95%;
    padding: 1.5rem;
  }

  .topbar {
    display: none;
  }

  .navbar-inner {
    height: 56px;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
  }

  .hero-banner {
    padding: 3rem 1.5rem 2.5rem;
    min-height: 260px;
  }

  .hero-banner-content h1 {
    font-size: 1.8rem;
  }

  .hero-banner-content p {
    font-size: 0.95rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-stat-divider {
    width: 40px;
    height: 1px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}