/* --------------------------------------------------------------------------
   ESTILOS GERAIS & VARIÁVEIS (PALETA BASILIOSDEV)
   -------------------------------------------------------------------------- */
:root {
  /* Paleta canônica BasiliosDev (igual ao meuip) */
  --bd-bg-dark: #0D1117;
  --bd-bg-card: #1A1F29;
  --bd-bg-soft: #141A24;
  --bd-primary: #2563EB;
  --bd-secondary: #00D4FF;
  --bd-accent: #00F0C8;
  --bd-text-light: #E5E7EB;
  --bd-text-muted: #9FB0C8;
  --bd-border: #2A3956;
  --bd-gray: #64748B;
  --bd-danger: #EF4444;
  --bd-warning: #F59E0B;
  --bd-success: #22C55E;
  --bd-panel: rgba(17, 24, 39, 0.76);
  --bd-panel-strong: rgba(10, 17, 30, 0.92);

  /* Fontes (identidade BasiliosDev) */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-title: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Transições e Bordas */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --glow-cyan: 0 0 18px rgba(0, 212, 255, 0.18);
  --glow-teal: 0 0 20px rgba(0, 240, 200, 0.2);
}

/* Reset de Margens e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 191, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 191, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.32), transparent 28rem),
    radial-gradient(circle at 90% 18%, rgba(0, 240, 200, 0.16), transparent 26rem),
    var(--bd-bg-dark);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  color: var(--bd-text-light);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(11, 15, 25, 0.74) 48%, var(--bd-bg-dark));
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bd-bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--bd-bg-soft);
  border: 2px solid var(--bd-bg-dark);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--bd-primary);
}

/* Acessibilidade: Hide visually but keep screen-reader active */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --------------------------------------------------------------------------
   CABEÇALHO (SITE HEADER)
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  background: transparent;
  border-bottom: none;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--bd-text-light);
}

.brand-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 240px;
  max-height: 50px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.brand-tool {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  color: var(--bd-accent);
  border: 1px solid rgba(0, 240, 200, 0.3);
  padding: 2px 9px;
  border-radius: 999px;
  margin-left: 12px;
  white-space: nowrap;
}
.header-link {
  border: 1px solid rgba(159, 176, 200, 0.18);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--bd-text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-fast);
}
.header-link:hover {
  border-color: rgba(0, 212, 255, 0.55);
  color: var(--bd-text-light);
  transform: translateY(-1px);
}

.brand-text {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

.main-nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: var(--bd-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--bd-secondary);
}

/* --------------------------------------------------------------------------
   ANÚNCIOS (PUBLICIDADE BANNERS)
   -------------------------------------------------------------------------- */
.ad-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 24px auto;
  max-width: 1200px;
  padding: 0 24px;
}

.ad-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--bd-gray);
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.ad {
  background-color: var(--bd-bg-card);
  border: 1px dashed var(--bd-border);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden;
}

.ad-placeholder, .ad-placeholder-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--bd-gray);
  text-align: center;
  padding: 16px;
}

.ad-placeholder-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--bd-text-muted);
  margin-bottom: 2px;
}

.ad-placeholder-size {
  font-size: 10px;
}

.ad-top, .ad-bottom {
  min-height: 90px;
  max-width: 728px;
}

.ad-content {
  min-height: 250px;
  max-width: 336px;
  margin: 20px auto;
}

.sticky-ad .ad-sidebar {
  min-height: 600px;
  width: 300px;
}

/* --------------------------------------------------------------------------
   HERO & PESQUISA
   -------------------------------------------------------------------------- */
.hero {
  background: radial-gradient(circle at top, rgba(0, 191, 255, 0.08) 0%, rgba(11, 15, 25, 0) 70%);
  padding: 60px 24px 40px;
  text-align: center;
}

.hero-container {
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-title);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--bd-text-light) 60%, var(--bd-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--bd-text-muted);
  font-size: 16px;
  margin-bottom: 32px;
}

/* Caixa de pesquisa */
.search-card {
  background-color: var(--bd-bg-card);
  border: 1px solid var(--bd-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.search-form {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  color: var(--bd-gray);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 16px 48px;
  background-color: var(--bd-bg-soft);
  border: 1px solid var(--bd-border);
  border-radius: var(--radius-md);
  color: var(--bd-text-light);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: var(--transition-fast);
}

.search-input:focus {
  border-color: var(--bd-primary);
  box-shadow: var(--glow-cyan);
}

.clear-search-btn {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: var(--bd-gray);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.clear-search-btn:hover {
  background-color: var(--bd-bg-card);
  color: var(--bd-text-light);
}

.clear-search-btn svg {
  width: 18px;
  height: 18px;
}

/* Autocomplete Dropdown */
.suggestions-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bd-bg-card);
  border: 1px solid var(--bd-border);
  border-top: none;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  max-height: 250px;
  overflow-y: auto;
  z-index: 50;
  display: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.suggestion-item {
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-fast);
}

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

.suggestion-item:hover {
  background-color: var(--bd-bg-soft);
}

.suggestion-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--bd-text-light);
}

.suggestion-subtitle {
  font-size: 11px;
  color: var(--bd-gray);
  margin-top: 2px;
}

.search-button {
  background: linear-gradient(135deg, var(--bd-primary), var(--bd-secondary));
  color: var(--bd-bg-dark);
  border: none;
  border-radius: var(--radius-md);
  padding: 0 28px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 191, 255, 0.25);
}

.search-button:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.35);
}

.search-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.location-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-md);
  color: var(--bd-secondary);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.location-button svg {
  width: 16px;
  height: 16px;
}

.location-button:hover {
  background-color: rgba(0, 229, 255, 0.16);
  border-color: var(--bd-secondary);
}

.search-examples {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--bd-gray);
  flex-wrap: wrap;
}

.example-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.example-link {
  background: none;
  border: none;
  color: var(--bd-text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 2px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.example-link:hover {
  color: var(--bd-secondary);
}

/* Banner de Aviso de Dev */
.dev-banner {
  background-color: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bd-warning);
  font-size: 13px;
  margin-bottom: 24px;
}

.dev-banner svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   LAYOUT CONTAINER PRINCIPAL & GRID
   -------------------------------------------------------------------------- */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

/* Controle de Estados */
.app-state {
  display: none;
}

.app-state.state-active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

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

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   ESTADO INICIAL (WELCOME SCREEN)
   -------------------------------------------------------------------------- */
.welcome-card {
  background-color: var(--bd-bg-card);
  border: 1px solid var(--bd-border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  max-width: 650px;
  margin: 20px auto;
}

.welcome-icon-wrapper {
  background-color: rgba(0, 191, 255, 0.05);
  border: 1px solid rgba(0, 191, 255, 0.1);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.welcome-icon {
  width: 40px;
  height: 40px;
  color: var(--bd-primary);
}

.welcome-card h2 {
  font-family: var(--font-title);
  font-size: 26px;
  margin-bottom: 12px;
}

.welcome-card p {
  color: var(--bd-text-muted);
  font-size: 15px;
  margin-bottom: 32px;
}

.popular-locations-welcome h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bd-gray);
  margin-bottom: 16px;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.popular-card-btn {
  background-color: var(--bd-bg-soft);
  border: 1px solid var(--bd-border);
  border-radius: var(--radius-md);
  padding: 12px;
  color: var(--bd-text-light);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
}

.popular-card-btn:hover {
  background-color: rgba(0, 229, 255, 0.05);
  border-color: var(--bd-secondary);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   ESTADO LOADING & SKELETONS
   -------------------------------------------------------------------------- */
.loading-wrapper {
  background-color: var(--bd-bg-card);
  border: 1px solid var(--bd-border);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(0, 229, 255, 0.1);
  border-left-color: var(--bd-secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

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

.loading-wrapper p {
  color: var(--bd-text-muted);
  margin-bottom: 40px;
}

.loading-skeletons {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skeleton {
  background: linear-gradient(90deg, var(--bd-bg-soft) 25%, #1d2b45 50%, var(--bd-bg-soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-title {
  height: 24px;
  width: 60%;
  margin: 0 auto;
}

.skeleton-card {
  height: 120px;
  width: 100%;
  border-radius: var(--radius-md);
}

.skeleton-text {
  height: 16px;
  width: 90%;
  margin: 0 auto;
}

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

/* --------------------------------------------------------------------------
   ESTADO ERRO & SEM RESULTADOS
   -------------------------------------------------------------------------- */
.error-card {
  background-color: var(--bd-bg-card);
  border: 1px solid var(--bd-border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  max-width: 500px;
  margin: 20px auto;
}

.error-icon-wrapper {
  background-color: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.1);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.error-icon-wrapper svg {
  width: 32px;
  height: 32px;
  color: var(--bd-danger);
}

.error-card h2 {
  font-family: var(--font-title);
  font-size: 22px;
  margin-bottom: 8px;
}

.error-card p {
  color: var(--bd-text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.text-button {
  background-color: var(--bd-bg-soft);
  border: 1px solid var(--bd-border);
  border-radius: var(--radius-md);
  color: var(--bd-text-light);
  padding: 10px 20px;
  font-family: var(--font-title);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.text-button:hover {
  background-color: var(--bd-border);
  border-color: var(--bd-gray);
}

/* --------------------------------------------------------------------------
   ESTADO RESULTADOS (RESULT PAGE)
   -------------------------------------------------------------------------- */
.result-header {
  background-color: var(--bd-bg-card);
  border: 1px solid var(--bd-border);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.location-info {
  flex: 1;
}

.title-with-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.title-with-badge h1,
.title-with-badge h2 {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.location-badge {
  background-color: rgba(0, 191, 255, 0.1);
  border: 1px solid rgba(0, 191, 255, 0.2);
  color: var(--bd-primary);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 50px;
}

.coordinates-info {
  font-size: 13px;
  color: var(--bd-text-muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.divider {
  color: var(--bd-border);
}

.station-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bd-bg-soft);
  border: 1px solid var(--bd-border);
  padding: 12px 18px;
  border-radius: var(--radius-md);
}

.station-info svg {
  width: 24px;
  height: 24px;
  color: var(--bd-accent);
}

.station-info div {
  display: flex;
  flex-direction: column;
}

.station-label {
  font-size: 10px;
  color: var(--bd-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.station-value {
  font-size: 13px;
  font-weight: 500;
}

/* Card Próxima Maré Destaque */
.next-tide-container {
  margin-bottom: 32px;
}

.tide-card {
  position: relative;
  background: linear-gradient(135deg, var(--bd-bg-card), #131d2e);
  border: 1px solid var(--bd-border);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  overflow: hidden;
  box-shadow: var(--glow-cyan);
}

.tide-card-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.tide-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--bd-secondary);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--bd-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--bd-accent);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 12px var(--bd-accent); }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.tide-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.tide-main {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.tide-type {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 700;
  color: var(--bd-text-light);
}

.tide-time {
  font-family: var(--font-title);
  font-size: 40px;
  font-weight: 500;
  color: var(--bd-primary);
}

.tide-details {
  display: flex;
  gap: 40px;
}

.tide-height-wrapper, .countdown-wrapper {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 11px;
  color: var(--bd-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.tide-height {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 600;
  color: var(--bd-text-light);
}

.countdown {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 600;
  color: var(--bd-accent);
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   TABELAS DE MARÉ
   -------------------------------------------------------------------------- */
.tide-table-section {
  background-color: var(--bd-bg-card);
  border: 1px solid var(--bd-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--bd-text-light);
  border-left: 3.5px solid var(--bd-primary);
  padding-left: 12px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.tide-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.tide-table th {
  padding: 12px 16px;
  border-bottom: 2px solid var(--bd-border);
  color: var(--bd-text-muted);
  font-weight: 600;
}

.tide-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--bd-border);
  color: var(--bd-text-light);
}

.tide-table tbody tr:last-child td {
  border-bottom: none;
}

.tide-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.015);
}

/* Badge do tipo na tabela */
.badge-tide {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-high {
  background-color: rgba(0, 191, 255, 0.1);
  color: var(--bd-primary);
  border: 1px solid rgba(0, 191, 255, 0.2);
}

.badge-low {
  background-color: rgba(32, 227, 178, 0.08);
  color: var(--bd-accent);
  border: 1px solid rgba(32, 227, 178, 0.15);
}

/* --------------------------------------------------------------------------
   GRÁFICO DE MARÉ (SVG DINÂMICO)
   -------------------------------------------------------------------------- */
.tide-chart-section {
  background-color: var(--bd-bg-card);
  border: 1px solid var(--bd-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-header-flex .section-title {
  margin-bottom: 0;
}

.chart-time-label {
  font-size: 12px;
  color: var(--bd-gray);
}

.tide-chart-container {
  position: relative;
  width: 100%;
}

.chart-svg-wrapper {
  width: 100%;
  height: 250px;
}

/* Elementos SVG */
.chart-path {
  fill: url(#tide-gradient);
  stroke: var(--bd-primary);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.chart-grid-line {
  stroke: var(--bd-border);
  stroke-width: 1;
}

.chart-grid-text {
  fill: var(--bd-gray);
  font-size: 9px;
  font-family: var(--font-body);
}

.chart-node {
  fill: var(--bd-bg-card);
  stroke-width: 2;
}

.chart-node-high {
  stroke: var(--bd-primary);
}

.chart-node-low {
  stroke: var(--bd-accent);
}

.chart-now-line {
  stroke: var(--bd-danger);
  stroke-width: 1.5;
  stroke-dasharray: 4,4;
}

.chart-now-node {
  fill: var(--bd-danger);
  stroke: var(--bd-bg-card);
  stroke-width: 1.5;
}

/* --------------------------------------------------------------------------
   PREVISÃO PRÓXIMOS 7 DIAS
   -------------------------------------------------------------------------- */
.forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.forecast-card {
  background-color: var(--bd-bg-card);
  border: 1px solid var(--bd-border);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  transition: var(--transition-fast);
}

.forecast-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.forecast-day {
  font-size: 13px;
  font-weight: 600;
  color: var(--bd-text-light);
  margin-bottom: 2px;
}

.forecast-date {
  font-size: 11px;
  color: var(--bd-gray);
  margin-bottom: 12px;
}

.forecast-tides-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--bd-border);
  padding-top: 12px;
}

.forecast-tide-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.forecast-tide-type {
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2px;
}

.forecast-tide-type.high {
  color: var(--bd-primary);
}

.forecast-tide-type.low {
  color: var(--bd-accent);
}

.forecast-tide-time {
  font-size: 12px;
  font-weight: 500;
}

.forecast-tide-height {
  font-size: 11px;
  color: var(--bd-text-muted);
}

/* --------------------------------------------------------------------------
   CONTEÚDO SEO & AVISO LEGAL
   -------------------------------------------------------------------------- */
.info-section {
  background-color: var(--bd-bg-card);
  border: 1px solid var(--bd-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.info-card h4 {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--bd-primary);
}

.info-card p {
  font-size: 13px;
  color: var(--bd-text-muted);
  line-height: 1.5;
}

.legal-alert {
  background-color: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.alert-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--bd-danger);
  margin-top: 2px;
}

.legal-alert p {
  font-size: 12px;
  color: var(--bd-text-muted);
  line-height: 1.5;
}

.legal-alert strong {
  color: var(--bd-text-light);
}

/* --------------------------------------------------------------------------
   BARRA LATERAL (SIDEBAR)
   -------------------------------------------------------------------------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sticky-ad {
  position: sticky;
  top: 90px;
}

.cta-sidebar-card {
  position: relative;
  background: linear-gradient(135deg, var(--bd-bg-card) 30%, #152536);
  border: 1px solid var(--bd-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow: hidden;
  box-shadow: var(--glow-cyan);
}

.cta-glow {
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 191, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.cta-sidebar-card h3 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.cta-sidebar-card p {
  font-size: 13px;
  color: var(--bd-text-muted);
  margin-bottom: 20px;
}

.cta-button {
  display: block;
  background: linear-gradient(135deg, var(--bd-primary), var(--bd-secondary));
  color: var(--bd-bg-dark);
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 10px rgba(0, 191, 255, 0.15);
  transition: var(--transition-fast);
}

.cta-button:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 15px rgba(0, 229, 255, 0.25);
  transform: translateY(-1px);
}

/* Lista de locais populares */
.popular-locations-card {
  background-color: var(--bd-bg-card);
  border: 1px solid var(--bd-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.popular-locations-card h3 {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--bd-border);
  padding-bottom: 10px;
}

.popular-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popular-item-btn {
  background: none;
  border: none;
  color: var(--bd-text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.popular-item-btn:hover {
  color: var(--bd-secondary);
  padding-left: 4px;
}

.popular-item-country {
  color: var(--bd-gray);
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   CTA GLOBAL SEÇÃO
   -------------------------------------------------------------------------- */
.cta-section {
  background-color: var(--bd-bg-card);
  border-top: 1px solid var(--bd-border);
  border-bottom: 1px solid var(--bd-border);
  padding: 48px 24px;
}

.cta-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.cta-content {
  max-width: 700px;
}

.cta-content h2 {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.cta-content p {
  color: var(--bd-text-muted);
  font-size: 14px;
}

.cta-global-button {
  background-color: var(--bd-bg-dark);
  color: var(--bd-text-light);
  border: 1px solid var(--bd-border);
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.cta-global-button:hover {
  background-color: var(--bd-bg-soft);
  border-color: var(--bd-secondary);
  box-shadow: var(--glow-cyan);
}

/* --------------------------------------------------------------------------
   RODAPÉ (SITE FOOTER)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bd-bg-dark);
  padding: 60px 24px 20px;
  border-top: 1px solid var(--bd-border);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-area {
  max-width: 400px;
}

.footer-brand-area .brand {
  margin-bottom: 16px;
}

.footer-description {
  font-size: 13px;
  color: var(--bd-gray);
  line-height: 1.6;
}

.footer-links-area {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-column h4 {
  font-family: var(--font-title);
  font-size: 14px;
  color: var(--bd-text-light);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.footer-link {
  font-size: 13px;
  color: var(--bd-gray);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--bd-secondary);
}

.footer-info-text {
  font-size: 13px;
  color: var(--bd-gray);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--bd-border);
  text-align: center;
  font-size: 12px;
  color: var(--bd-gray);
}

/* --------------------------------------------------------------------------
   RESPONSIVIDADE (MEDIA QUERIES)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none; /* Oculta a barra lateral abaixo de 900px */
  }

  .hero h1 {
    font-size: 32px;
  }

  .result-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .station-info {
    width: 100%;
  }

  .tide-card-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .tide-details {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--bd-border);
    padding-top: 16px;
  }

  .forecast-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
}

@media (max-width: 600px) {
  .search-form {
    flex-direction: column;
  }
  
  .search-button {
    padding: 14px;
    width: 100%;
  }

  .header-container {
    flex-direction: column;
    gap: 12px;
  }

  .cta-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-global-button {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   COMPONENTES DO PRODUTO DE MARÉS (Home + página de localidade)
   ========================================================================== */

/* Marca com fonte display + tag "Marés" */
.brand-text { font-family: var(--font-display); letter-spacing: 0; }
.brand-text em {
  font-family: var(--font-title);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--bd-accent);
  border: 1px solid rgba(32, 227, 178, 0.3);
  padding: 1px 7px;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: 4px;
}

/* Hero */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bd-accent); margin-bottom: 12px;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bd-accent); box-shadow: 0 0 10px var(--bd-accent); animation: pulse 1.8s infinite; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: 0; line-height: 1.02;
  background: none; -webkit-text-fill-color: var(--bd-text-light); color: var(--bd-text-light);
}
.hero h1 span { -webkit-text-fill-color: var(--bd-secondary); color: var(--bd-secondary); }

/* Seções da home */
.home-section { margin: 8px 0 32px; }
.home-section-title, .info-section > .section-title { font-family: var(--font-title); }
.home-section-title {
  font-size: 20px; font-weight: 700; margin-bottom: 18px; padding-left: 12px;
  border-left: 3.5px solid var(--bd-primary);
}

/* Grade de locais (home) */
.locations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.location-card {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, var(--bd-bg-card), var(--bd-bg-soft));
  border: 1px solid var(--bd-border); border-radius: var(--radius-md);
  padding: 18px 16px 16px; text-decoration: none; color: var(--bd-text-light);
  display: flex; flex-direction: column; gap: 2px; transition: var(--transition-fast);
}
.location-card:hover { border-color: var(--bd-secondary); transform: translateY(-3px); box-shadow: var(--glow-cyan); }
.location-card-wave {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40px;
  background: radial-gradient(circle at 30% 120%, rgba(0,191,255,0.18), transparent 60%);
  pointer-events: none;
}
.location-card-name { font-family: var(--font-title); font-size: 17px; font-weight: 600; }
.location-card-country { font-size: 12px; color: var(--bd-gray); }
.location-card-cta { margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--bd-secondary); }

/* ANÚNCIOS (ad-slot) */
.ad-slot { position: relative; width: 100%; max-width: 728px; min-height: 90px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed rgba(159, 176, 200, 0.22); border-radius: var(--radius-md); background: rgba(229, 231, 235, 0.02); overflow: hidden; }
.ad-rect { max-width: 336px; min-height: 280px; }
.ad-skyscraper { max-width: 300px; min-height: 600px; }
.ad-fill { position: relative; z-index: 1; width: 100%; }
.ad-fill .adsbygoogle { display: block; width: 100%; }
.ad-demo-box { position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--bd-gray); text-align: center; pointer-events: none; }
.ad-demo-box span:first-child { font-size: 12px; font-weight: 700; color: var(--bd-text-muted); }
.ad-demo-size { font-size: 10px; letter-spacing: 0.5px; }

/* Painel genérico */
.panel { background-color: var(--bd-bg-card); border: 1px solid var(--bd-border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 28px; }

/* Topbar: breadcrumb + navegação de data */
.topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 20px; padding-bottom: 4px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--bd-text-muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--bd-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--bd-secondary); }
.breadcrumb span { color: var(--bd-border); }
.breadcrumb strong { color: var(--bd-text-light); }
.date-nav { display: flex; align-items: center; gap: 8px; }
.date-btn { width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--bd-bg-soft); border: 1px solid var(--bd-border); color: var(--bd-text-light); font-size: 20px; line-height: 1; cursor: pointer; transition: var(--transition-fast); }
.date-btn:hover { border-color: var(--bd-secondary); color: var(--bd-secondary); }
.date-label { font-family: var(--font-title); font-weight: 600; font-size: 14px; min-width: 130px; text-align: center; }
.date-label::first-letter { text-transform: uppercase; }
.date-today { background: rgba(0,229,255,0.08); border: 1px solid rgba(0,229,255,0.25); color: var(--bd-secondary); border-radius: var(--radius-sm); padding: 7px 14px; font-size: 12px; font-weight: 600; cursor: pointer; transition: var(--transition-fast); }
.date-today:hover { background: rgba(0,229,255,0.16); }

/* Loading / erro de página inteira */
.full-loading { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--bd-text-muted); padding: 40px 24px; text-align: center; }

/* Tipografia display em números-chave */
.tide-type, .tide-time, .coef-number { font-family: var(--font-display); }

/* Legenda do gráfico */
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 12px; color: var(--bd-text-muted); }
.chart-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.dot-high { background: var(--bd-primary); } .dot-low { background: var(--bd-accent); } .dot-sun { background: var(--bd-warning); } .dot-now { background: var(--bd-danger); }
.chart-node-time { fill: var(--bd-text-light); font-size: 10px; font-weight: 600; font-family: var(--font-body); }
.chart-sun-node { fill: var(--bd-warning); }

/* Coeficiente */
.coef-body { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.coef-number { font-size: 64px; font-weight: 700; color: var(--bd-secondary); line-height: 1; text-shadow: 0 0 24px rgba(0,229,255,0.25); }
.coef-meta { flex: 1; min-width: 200px; }
.coef-label { font-family: var(--font-title); font-weight: 600; font-size: 16px; }
.coef-bar { height: 8px; border-radius: 5px; background: var(--bd-bg-soft); overflow: hidden; margin: 10px 0; }
.coef-bar-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--bd-accent), var(--bd-primary), var(--bd-secondary)); transition: width 0.6s ease; }
.coef-note { font-size: 12px; color: var(--bd-gray); line-height: 1.5; }

/* Grade de métricas (clima / mar) */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
.metric { background: var(--bd-bg-soft); border: 1px solid var(--bd-border); border-radius: var(--radius-md); padding: 16px; display: flex; flex-direction: column; gap: 3px; }
.metric-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--bd-gray); }
.metric-value { font-family: var(--font-title); font-size: 24px; font-weight: 700; color: var(--bd-text-light); }
.metric-sub { font-size: 12px; color: var(--bd-text-muted); }

/* Tabela mensal */
.month-table th, .month-table td { padding: 10px 12px; vertical-align: middle; }
.mt-day { font-family: var(--font-display); font-weight: 700; color: var(--bd-secondary); width: 48px; }
.mt-tides { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.mt-tide { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.mt-tide i { font-style: normal; font-size: 10px; }
.mt-tide.high i { color: var(--bd-primary); } .mt-tide.low i { color: var(--bd-accent); }
.mt-tide b { color: var(--bd-text-muted); font-weight: 600; }
.mt-sun { font-size: 12px; color: var(--bd-text-muted); white-space: nowrap; }
.coef-chip { display: inline-block; min-width: 34px; text-align: center; font-weight: 700; font-size: 12px; padding: 3px 8px; border-radius: 5px; }
.coef-hi { background: rgba(0,191,255,0.15); color: var(--bd-primary); }
.coef-mid { background: rgba(32,227,178,0.12); color: var(--bd-accent); }
.coef-lo { background: rgba(107,114,128,0.15); color: var(--bd-text-muted); }
.mt-current { background: rgba(0,229,255,0.06); }
.mt-current .mt-day { color: var(--bd-secondary); }

/* Lua */
.moon-body { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.moon-visual { flex-shrink: 0; }
.moon-disk { position: relative; width: 116px; height: 116px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 35% 32%, #fdfcf5, #d3dbe6 62%, #aeb8c8);
  box-shadow: 0 0 30px rgba(0,229,255,0.18), inset -6px -6px 18px rgba(0,0,0,0.25); }
.moon-shadow { position: absolute; inset: 0; border-radius: 50%; background: var(--bd-bg-dark); }
.moon-data { flex: 1; min-width: 220px; }
.moon-phase-name { font-family: var(--font-title); font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--bd-text-light); }
.moon-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; font-size: 13px; color: var(--bd-text-muted); }
.moon-stats b { color: var(--bd-text-light); font-weight: 600; }
.moon-phases { margin-top: 22px; border-top: 1px solid var(--bd-border); padding-top: 16px; }
.moon-phases h4 { font-family: var(--font-title); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--bd-gray); margin-bottom: 12px; }
.phases-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.phase-chip { background: var(--bd-bg-soft); border: 1px solid var(--bd-border); border-radius: var(--radius-md); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.phase-chip-name { font-size: 12px; font-weight: 600; }
.phase-chip-date { font-size: 12px; color: var(--bd-secondary); font-weight: 600; }

/* Solunar */
.solunar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 14px; }
.solunar-col h4 { font-family: var(--font-title); font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--bd-gray); margin-bottom: 10px; }
.period-list { display: flex; flex-wrap: wrap; gap: 8px; }
.period-chip { background: rgba(32,227,178,0.08); border: 1px solid rgba(32,227,178,0.2); color: var(--bd-accent); font-family: var(--font-title); font-weight: 600; font-size: 13px; padding: 7px 12px; border-radius: var(--radius-sm); }
.solunar-col:first-child .period-chip { background: rgba(0,191,255,0.08); border-color: rgba(0,191,255,0.25); color: var(--bd-primary); }
.activity-badge { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 20px; background: var(--bd-bg-soft); border: 1px solid var(--bd-border); color: var(--bd-text-muted); }
.act-muito-alta { background: rgba(0,229,255,0.14); color: var(--bd-secondary); border-color: rgba(0,229,255,0.3); }
.act-alta { background: rgba(0,191,255,0.12); color: var(--bd-primary); border-color: rgba(0,191,255,0.25); }
.act-media { background: rgba(32,227,178,0.12); color: var(--bd-accent); border-color: rgba(32,227,178,0.25); }

/* Locais próximos */
.nearby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.nearby-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--bd-bg-soft); border: 1px solid var(--bd-border); border-radius: var(--radius-md); padding: 14px 16px; text-decoration: none; color: var(--bd-text-light); transition: var(--transition-fast); }
.nearby-card:hover { border-color: var(--bd-secondary); transform: translateY(-2px); }
.nearby-name { font-weight: 600; font-size: 14px; }
.nearby-dist { font-size: 12px; color: var(--bd-gray); }

.muted { color: var(--bd-gray); font-size: 13px; }

@media (max-width: 900px) {
  .topbar { padding-left: 4px; padding-right: 4px; }
  .moon-stats { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .coef-number { font-size: 48px; }
  .solunar-grid { grid-template-columns: 1fr; }
  .date-label { min-width: 96px; font-size: 13px; }
}

