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

:root {
  --ocean: #0077B6;
  --ocean-deep: #023E8A;
  --ocean-light: #90E0EF;
  --ocean-lightest: #CAF0F8;
  --sand: #F4E8C1;
  --sand-light: #FFF8E7;
  --sand-dark: #D4A574;
  --forest: #2D6A4F;
  --forest-light: #52B788;
  --coral: #FF6B6B;
  --sunset: #FF9F1C;
  --white: #FEFEFE;
  --dark: #1A1A2E;
  --dark-light: #16213E;
  --gray: #8D99AE;
  --gray-light: #EDF2F4;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Utilities */
.text-center { text-align: center; }
.text-ocean { color: var(--ocean); }
.text-forest { color: var(--forest); }
.text-coral { color: var(--coral); }
.text-sunset { color: var(--sunset); }
.text-gray { color: var(--gray); }
.text-dark { color: var(--dark); }
.bg-sand { background-color: var(--sand-light); }
.hidden { display: none !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  height: 64px;
  background-color: var(--ocean-deep);
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  height: 100%;
}

.nav-logo {
  font-weight: 800;
  color: var(--white);
  font-size: 1.3rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  position: fixed;
  top: 64px;
  right: -100%;
  width: 70%;
  height: calc(100vh - 64px);
  flex-direction: column;
  background-color: var(--ocean-deep);
  transition: transform 0.3s, right 0.3s;
}

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

.nav-links a {
  color: var(--white);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.3s, font-weight 0.3s;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.nav-links a.active {
  background-color: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  height: calc(100vh - 64px);
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

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

/* Hero Section */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(2, 62, 138, 0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 20px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  text-shadow: 0 4px 6px rgba(0,0,0,0.6);
  margin-bottom: 8px;
}

.hero-content .hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.4rem);
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-content .hero-date {
  font-size: 1.2rem;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.hero-stats {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-stat {
  background-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px 20px;
  border-radius: 16px;
  min-width: 100px;
  text-align: center;
}

.hero-stat .stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  display: block;
}

.hero-stat .stat-label {
  font-size: 0.8rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  z-index: 2;
  color: var(--white);
  font-size: 2rem;
}

/* Generic Sections */
.section {
  padding: 60px 16px;
}

.section:nth-child(even) {
  background-color: var(--sand-light);
}

.container {
  max-width: 1200px;
  margin: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--dark);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-title::after {
  content: '';
  width: 60px;
  height: 4px;
  background-color: var(--ocean);
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--gray);
  font-size: 1rem;
  margin-top: 20px;
  max-width: 600px;
  margin-inline: auto;
}

/* Cards */
.card {
  background-color: var(--white);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-4px);
}

/* Group */
.couples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.couple-card {
  text-align: center;
}

.couple-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0 auto 16px;
  color: var(--white);
}

.bg-ocean { background-color: var(--ocean); }
.bg-forest { background-color: var(--forest); }
.bg-sunset { background-color: var(--sunset); }
.bg-coral { background-color: var(--coral); }

.couple-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.transport-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.transport-badge.moto { background-color: #e3f2fd; color: #1565c0; }
.transport-badge.bus { background-color: #fff3e0; color: #e65100; }

.role-badge {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Route / Logistics */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
  border: 3px solid var(--ocean-light);
}

.transport-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.transport-card {
  border-top: 4px solid;
}

.transport-card.moto { border-top-color: var(--ocean); }
.transport-card.bus { border-top-color: var(--sunset); }

.transport-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.transport-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-light);
}

.transport-detail i {
  color: var(--ocean);
  width: 20px;
  text-align: center;
  margin-top: 3px;
}

.alert-box {
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
}

.alert-box.warning { background-color: #fff3cd; border-left: 4px solid var(--sunset); color: #856404; }
.alert-box.danger { background-color: #f8d7da; border-left: 4px solid var(--coral); color: #721c24; }
.alert-box.info { background-color: var(--ocean-lightest); border-left: 4px solid var(--ocean); color: var(--ocean-deep); }

/* Tour */
.tour-hero {
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean));
  color: var(--white);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 24px;
}

.tour-hero h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tour-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.tour-info-item {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}

.tour-info-item .info-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.tour-info-item .info-value {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Feira / Compras */
.feira-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feira-category h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--gray-light);
  padding-bottom: 8px;
}

.feira-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feira-list li {
  font-size: 0.95rem;
}

.feira-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.feira-list label:hover {
  background-color: var(--sand-light);
}

.feira-list input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--ocean);
  cursor: pointer;
}

.sub-recipe {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 4px;
  padding-left: 12px;
  border-left: 2px solid var(--gray-light);
}

/* Calculator Dashboard (V4) */
.calc-dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1000px;
  margin: auto;
}

.calc-controls {
  background-color: var(--white);
  border: 1px solid var(--gray-light);
}

.calc-control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.calc-control-group label {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.calc-transport-toggle, .passeio-toggle {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--ocean);
  background-color: var(--white);
}

.calc-transport-toggle button, .passeio-toggle button {
  flex: 1;
  padding: 12px 8px;
  border: none;
  background-color: transparent;
  color: var(--ocean);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.calc-transport-toggle button.active, .passeio-toggle button.active {
  background-color: var(--ocean);
  color: var(--white);
}

.calc-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.cost-card {
  padding: 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.cost-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.cost-info {
  flex: 1;
}

.cost-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}

.cost-info p {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 2px;
}

.cost-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
}

.inline-input {
  width: 60px;
  padding: 4px;
  border: 1px solid var(--gray);
  border-radius: 4px;
  font-size: 0.85rem;
  text-align: center;
  font-family: 'Inter', sans-serif;
  background: var(--white);
}

.calc-final-panel {
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean));
  border-radius: 20px;
  padding: 32px;
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: center;
}

.final-person span, .final-couple span {
  font-size: 0.9rem;
  opacity: 0.9;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
}

.final-person h2 {
  font-size: 2rem;
  font-weight: 800;
}

.final-couple {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 24px;
}

.final-couple h1 {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--sand-light);
}

/* Checklist */
.checklist-progress {
  margin-bottom: 32px;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--gray-light);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  background-color: var(--forest-light);
  border-radius: 4px;
  transition: width 0.3s;
}

.progress-text {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
}

.checklist-category {
  margin-bottom: 24px;
}

.checklist-category h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background-color: var(--white);
  border-radius: 10px;
  border: 1px solid var(--gray-light);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.checklist-item:hover {
  border-color: var(--ocean-light);
  background-color: var(--ocean-lightest);
}

.checklist-item.checked {
  background-color: #d8f3dc;
  border-color: var(--forest-light);
  text-decoration: line-through;
  color: var(--gray);
}

.checklist-item input[type='checkbox'] {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--gray);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
}

.checklist-item input[type='checkbox']:checked {
  background-color: var(--forest);
  border-color: var(--forest);
}

.checklist-item input[type='checkbox']:checked::after {
  content: '✓';
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.checklist-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
}

/* Botões */
.btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

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

.btn-primary:hover {
  background-color: var(--ocean-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-whatsapp {
  background-color: #25D366;
  color: var(--white);
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
}

.footer p {
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--ocean-light);
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* House Timeline */
.weekend-timeline {
  position: relative;
  padding-left: 32px;
  border-left: 3px solid var(--ocean-light);
  margin-top: 20px;
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
  padding-left: 16px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -41px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--ocean);
  border: 3px solid var(--ocean-light);
}

.timeline-item h4 {
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ocean-deep);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* House / Gallery */
.gallery {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 32px;
}

.gallery-track {
  display: flex;
  transition: transform 0.4s ease;
}

.gallery-slide {
  min-width: 100%;
  height: 350px;
  object-fit: cover;
}

.gallery-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  transform: translateY(-50%);
  pointer-events: none;
}

.gallery-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: background-color 0.3s, transform 0.3s;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--gray-light);
  border: 2px solid var(--gray);
  cursor: pointer;
}

.gallery-dot.active {
  background-color: var(--ocean);
  border-color: var(--ocean);
  transform: scale(1.2);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.amenity-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background-color: var(--white);
  border-radius: 16px;
  text-align: center;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.amenity-item i {
  font-size: 1.8rem;
  color: var(--ocean);
}

/* Responsive */
@media (min-width: 768px) {
  .transport-compare { grid-template-columns: 1fr 1fr; }
  .calc-control-group { flex-direction: row; align-items: center; justify-content: space-between; }
  .calc-control-group label { margin-bottom: 0; width: 150px; }
  .calc-transport-toggle, .passeio-toggle { flex: 1; max-width: 400px; }
  .calc-final-panel { grid-template-columns: 1fr 1.5fr; align-items: center; text-align: left; }
  .final-couple { border-top: none; border-left: 1px solid rgba(255,255,255,0.2); padding-top: 0; padding-left: 24px; }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav-links { position: static; flex-direction: row; width: auto; height: auto; background: transparent; }
  .nav-links a:hover { background-color: rgba(255, 255, 255, 0.1); }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background-color: var(--gray-light); }
::-webkit-scrollbar-thumb { background-color: var(--ocean); border-radius: 4px; }

/* V5: Countdown */
.hero-countdown {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}
.cd-box {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 16px;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cd-box span {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}
.cd-box small {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  opacity: 0.9;
}

/* V5: Dynamic Feira List */
.feira-list-dynamic {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feira-list-dynamic li {
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  border-bottom: 1px solid var(--gray-light);
}

.feira-list-dynamic li.sub-recipe {
  border-bottom: none;
  padding-bottom: 0;
}

.feira-list-dynamic input[type="text"] {
  border: 1px solid var(--gray);
  border-radius: 6px;
  padding: 6px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  width: 140px;
  transition: all 0.2s;
  background-color: var(--white);
}

.feira-list-dynamic input[type="text"]:focus {
  outline: none;
  border-color: var(--ocean);
  box-shadow: 0 0 0 2px var(--ocean-light);
}

/* V6: Abas da Rota */
.logistics-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.log-tab {
  padding: 12px 24px;
  border-radius: 50px;
  background-color: var(--gray-light);
  border: none;
  color: var(--gray);
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.log-tab.active {
  background-color: var(--ocean);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
}

.log-content {
  display: none;
}
.log-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

/* V6: Programação Redesenhada */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.schedule-card {
  padding: 24px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}

.sched-date {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--ocean-deep);
  margin-bottom: 16px;
  opacity: 0.9;
}

.sched-event {
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 2px solid var(--gray);
}
.sched-event:last-child { margin-bottom: 0; }

.sched-time {
  display: inline-block;
  background-color: var(--dark);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.sched-event p {
  font-size: 0.9rem;
  color: var(--dark);
  line-height: 1.4;
}

/* V6: Calculadora Super Unificada */
.calc-super-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 900px;
  margin: auto;
}

@media(min-width: 768px) {
  .calc-super-dashboard {
    grid-template-columns: 1fr 1.5fr;
  }
}

.calc-settings {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
}

.calc-settings label {
  color: var(--white) !important;
}

.moto-settings-box {
  background-color: rgba(0,0,0,0.2);
  padding: 12px;
  border-radius: 12px;
  margin-top: 16px;
}

.dark-input {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.calc-results {
  background-color: rgba(0,0,0,0.2);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}

.result-row .val {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}

.total-divider {
  height: 1px;
  background-color: rgba(255,255,255,0.2);
  margin: 8px 0;
}

.grand-total-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.grand-total-box h1 {
  font-size: 2.2rem;
  color: var(--sand-light);
  line-height: 1;
}

.grand-total-box h2 {
  font-size: 1.8rem;
  color: var(--white);
  line-height: 1;
}

/* V6: Dynamic Add Feira */
.btn-add-item {
  width: 100%;
  padding: 10px;
  margin-top: 12px;
  background-color: var(--gray-light);
  color: var(--dark);
  border: 1px dashed var(--gray);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-add-item:hover {
  background-color: #e2e8f0;
}

.feira-item-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.feira-item-row input[type="text"] {
  flex: 1 1 120px;
  min-width: 120px;
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  padding: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
}

.buy-at-market {
  background-color: var(--ocean-lightest);
  color: var(--ocean-deep);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
