/* ============================================================
   palpito.css — Premium Dark Theme for Palpites Page
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --primary-color: #4a9eff;
  --secondary-color: #6bb3ff;
  --accent-gold: #f39c12;
  --accent-gold-hover: #f7b731;
  --accent-green: #2ecc71;
  --accent-red: #e74c3c;
  --accent-blue: #3498db;
  --accent-purple: #8b5cf6;

  --bg-dark: #0b0f1b;
  --bg-card: #161d2f;
  --bg-card-hover: #1c2540;
  --bg-input: #1a2238;
  --border-card: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(243, 156, 18, 0.3);

  --text-primary: #e8e8e8;
  --text-secondary: #b0bec5;
  --text-muted: #8899aa;

  --glow-gold: 0 0 20px rgba(243, 156, 18, 0.15);
  --glow-blue: 0 0 15px rgba(74, 158, 255, 0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.35);

  --font-main: "Inter", system-ui, -apple-system, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Palpito Page Container --- */
.palpito-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 0.8rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--accent-gold);
  text-decoration: none;
}

/* --- Hero Section --- */
.palpito-hero {
  text-align: center;
  padding: 1.5rem 0 1rem;
}

.palpito-hero h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.palpito-hero h1 .hl {
  color: var(--accent-gold);
}

.palpito-hero .hero-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 0.8rem;
}

.palpito-hero .hero-intro {
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.8;
}

.palpito-hero .hero-intro strong {
  color: var(--text-primary);
}

/* --- Highlights Box --- */
.highlights-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  margin: 1rem 0 1.5rem;
}

.highlights-box p {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.highlights-box p:last-child {
  margin-bottom: 0;
}

.highlights-box strong {
  color: var(--text-primary);
}

/* --- Tabs System --- */
.nav-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
  position: relative;
}

.nav-tabs::-webkit-scrollbar {
  height: 4px;
}

.nav-tabs::-webkit-scrollbar-track {
  background: transparent;
}

.nav-tabs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.tab-button {
  flex-shrink: 0;
  padding: 0.55rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}

.tab-button:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.tab-button.active {
  background: linear-gradient(135deg, var(--accent-gold), #e67e22);
  color: #fff;
  box-shadow: 0 2px 12px rgba(243, 156, 18, 0.3);
}

/* Mobile tab scroll indicator */
.tabs-overflow-indicator {
  display: none;
}

@media (max-width: 768px) {
  .tabs-overflow-indicator.visible {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to left, var(--bg-dark), transparent);
    pointer-events: none;
    z-index: 2;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  }
}

/* --- Tab Content Panels --- */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

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

/* --- Generator Cards --- */
.generator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}

.generator-card-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-card);
}

.generator-card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.generator-card-header p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0;
}

.generator-card-body {
  padding: 1.2rem 1.5rem;
}

/* --- Sub-tabs (within a generator) --- */
.sub-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-card);
  margin-bottom: 1.2rem;
  overflow-x: auto;
}

.sub-tab {
  flex-shrink: 0;
  padding: 0.6rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

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

.sub-tab.active {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

/* --- Forms --- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.6rem 0.8rem;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: var(--transition);
  color-scheme: dark;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.12);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238899aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2rem;
}

.form-group .help-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-gold), #e67e22);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--glow-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(243, 156, 18, 0.35);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-full {
  width: 100%;
  display: flex;
}

/* --- CTA Ribbon (GERE SEUS PALPITES) --- */
.cta-ribbon {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 1rem auto;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--accent-gold), #e67e22);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--glow-gold);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cta-ribbon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(243, 156, 18, 0.4);
  text-decoration: none;
  color: #fff;
}

/* --- Results Display Area --- */
.results-area {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-card);
}

.results-area h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* Result grid (palpite cards) */
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.result-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0.8rem;
  text-align: center;
  transition: var(--transition);
}

.result-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.result-card .bicho-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.result-card .bicho-grupo {
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.result-card .bicho-dezenas {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.result-card .confidence-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.result-card .confidence-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-gold), #e67e22);
  transition: width 0.5s ease;
}

/* --- Section Cards (info sections) --- */
.info-section {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-card);
}

.info-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-card);
}

.info-section h3 {
  color: var(--accent-gold);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.2rem 0 0.5rem;
}

.info-section p {
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  line-height: 1.8;
  font-size: 0.92rem;
}

.info-section strong {
  color: var(--text-primary);
}

.info-section a {
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.info-section a:hover {
  color: var(--accent-gold-hover);
}

.info-section ul,
.info-section ol {
  margin: 0.5rem 0 1rem 1.2rem;
  color: var(--text-secondary);
}

.info-section li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
  font-size: 0.92rem;
}

.info-section li strong {
  color: var(--text-primary);
}

/* --- Method Description Box --- */
.method-description {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  margin: 1rem 0;
}

.method-description .method-title,
.method-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

/* --- Steps List (numbered) --- */
.steps-list {
  list-style: none;
  counter-reset: steps;
  padding-left: 0;
  margin: 1rem 0;
}

.steps-list li {
  counter-increment: steps;
  position: relative;
  padding-left: 48px;
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.06);
  margin-left: 16px;
}

.steps-list li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.steps-list li::before {
  content: counter(steps);
  position: absolute;
  left: -14px;
  top: 0;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent-gold), #e67e22);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(243, 156, 18, 0.25);
}

.steps-list strong {
  color: var(--text-primary);
}

/* --- Info Box --- */
.info-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  border-left: 4px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  margin: 1rem 0;
}

.info-box>strong:first-child {
  display: block;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.info-box p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0;
}

.info-box li {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 0.3rem;
}

.info-box li strong {
  color: var(--text-primary);
}

/* --- Alert Boxes --- */
.alert {
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  border: 1px solid;
  font-size: 0.88rem;
  line-height: 1.7;
}

.alert p {
  margin: 0;
  color: inherit;
}

.alert strong {
  color: inherit;
}

.alert-warning {
  background: rgba(243, 156, 18, 0.08);
  border-color: rgba(243, 156, 18, 0.2);
  color: #f0c77e;
}

.alert-info {
  background: rgba(52, 152, 219, 0.08);
  border-color: rgba(52, 152, 219, 0.2);
  color: #7ec8f0;
}

.alert-success {
  background: rgba(46, 204, 113, 0.08);
  border-color: rgba(46, 204, 113, 0.2);
  color: #7ef0b0;
}

.alert-danger {
  background: rgba(231, 76, 60, 0.08);
  border-color: rgba(231, 76, 60, 0.2);
  color: #f09a8e;
}

/* --- Links List --- */
.links-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.links-list li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.7;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.links-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: 700;
}

.links-list li strong {
  color: var(--text-primary);
}

/* --- FAQ Section (details/summary) --- */
.faq-section {
  margin: 0;
}

.faq-item {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-card) !important;
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.faq-item h3 {
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary) !important;
  background: transparent !important;
  margin: 0;
  border: none !important;
  border-bottom: none !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-item h3::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--accent-gold);
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item h3:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-item>div {
  padding: 0.8rem 1.2rem 1rem;
  border-top: 1px solid var(--border-card) !important;
  background: transparent !important;
}

.faq-item p {
  color: var(--text-secondary) !important;
  line-height: 1.8;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.faq-item ul,
.faq-item ol {
  margin: 0.5rem 0 0.5rem 1.2rem;
  color: var(--text-secondary) !important;
}

.faq-item li {
  margin-bottom: 0.3rem;
  line-height: 1.7;
  font-size: 0.9rem;
  color: var(--text-secondary) !important;
}

/* --- Legal Separator & Aviso Legal (matching deu-no-poste) --- */
.dnp-legal {
  text-align: center;
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 1rem;
}

.dnp-responsible {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 2rem;
}

.dnp-responsible h2 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.dnp-responsible-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.dnp-responsible-content p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.dnp-responsible-content a {
  color: var(--accent-blue);
  text-decoration: underline;
}

.dnp-responsible-content strong {
  color: var(--text-primary);
}

/* --- Aviso Legal e Jogo Responsável (standard pattern) --- */
.palpito-responsible {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 2rem;
}

.palpito-responsible h2 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.palpito-responsible-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.palpito-responsible-content p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.palpito-responsible-content a {
  color: var(--accent-blue);
  text-decoration: underline;
}

/* --- Cruz Display --- */
.cruz-display {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.cruz-grid {
  display: grid;
  grid-template-columns: repeat(3, 80px);
  grid-template-rows: repeat(3, 80px);
  gap: 6px;
}

.cruz-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.cruz-cell.center {
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.15), rgba(230, 126, 34, 0.1));
  border-color: var(--border-accent);
  box-shadow: var(--glow-gold);
}

.cruz-cell .bicho-emoji {
  font-size: 1.5rem;
}

.cruz-cell .bicho-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- Moon Phases --- */
.moon-display {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.moon-phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.8rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  min-width: 100px;
  transition: var(--transition);
}

.moon-phase.current {
  border-color: var(--accent-gold);
  background: rgba(243, 156, 18, 0.06);
}

.moon-phase .moon-icon {
  font-size: 2rem;
}

.moon-phase .moon-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* --- Strategy Selector --- */
.strategy-selector {
  display: flex;
  gap: 0.5rem;
  margin: 0.8rem 0;
  flex-wrap: wrap;
}

.strategy-option {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.strategy-option:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.strategy-option.active {
  background: rgba(243, 156, 18, 0.12);
  border-color: var(--border-accent);
  color: var(--accent-gold);
}

/* --- Chart Placeholder --- */
.chart-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}

/* --- Table Styles --- */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.styled-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  padding: 0.6rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  border-bottom: 1px solid var(--border-card);
}

.styled-table td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.styled-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* --- Banner Ad Placeholder --- */
.banner-ad {
  max-width: 100%;
  margin: 1rem auto;
  text-align: center;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.banner-ad img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* --- TOC FAB & Panel (same as deu-no-poste) --- */
.toc-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), #e67e22);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(243, 156, 18, 0.35);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.toc-fab.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.toc-fab:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 28px rgba(243, 156, 18, 0.45);
}

.toc-fab.is-active {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.toc-fab__icon {
  pointer-events: none;
}

.toc-panel {
  position: fixed;
  bottom: 82px;
  right: 24px;
  z-index: 999;
  width: 300px;
  max-height: 70vh;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.toc-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.toc-panel__progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-gold), #e67e22);
  border-radius: 0 3px 3px 0;
  transition: width 0.15s ease-out;
}

.toc-panel__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-card);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.toc-panel__header svg {
  color: var(--accent-gold);
  stroke: var(--accent-gold);
}

.toc-panel__list {
  list-style: none;
  padding: 0.4rem 0;
  margin: 0;
  overflow-y: auto;
  flex: 1;
}

.toc-panel__item {
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.toc-panel__item.is-active {
  border-left-color: var(--accent-gold);
  background: rgba(243, 156, 18, 0.06);
}

.toc-panel__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.15s;
}

.toc-panel__link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.toc-panel__item.is-active .toc-panel__link {
  color: var(--accent-gold);
  font-weight: 600;
}

.toc-panel__emoji {
  font-size: 1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.toc-panel__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .palpito-hero h1 {
    font-size: 1.35rem;
  }

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

  .generator-card-header,
  .generator-card-body {
    padding: 1rem;
  }

  .cruz-grid {
    grid-template-columns: repeat(3, 65px);
    grid-template-rows: repeat(3, 65px);
  }

  .toc-panel {
    right: 12px;
    bottom: 72px;
    width: calc(100vw - 24px);
    max-width: 320px;
  }

  .toc-fab {
    bottom: 16px;
    right: 16px;
  }

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

  .strategy-selector {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .strategy-selector::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 480px) {
  .palpito-hero h1 {
    font-size: 1.15rem;
  }

  .tab-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .moon-display {
    gap: 0.5rem;
  }

  .moon-phase {
    padding: 0.6rem;
    min-width: 70px;
  }
}

/* ============================================================
   COMPATIBILITY: Old HTML class names → new premium styling
   ============================================================ */

/* Tab container aliases */
.tab-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

.tab-buttons::-webkit-scrollbar {
  height: 4px;
}

.tab-buttons::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Sub-tab container aliases */
.method-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-card);
  margin-bottom: 1.2rem;
  overflow-x: auto;
}

.method-tab {
  flex-shrink: 0;
  padding: 0.6rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

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

.method-tab.active {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

/* ============================================================
   GLOBAL: Dark form controls override
   ============================================================ */
input[type="date"],
input[type="text"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="url"],
textarea,
select {
  background-color: var(--bg-input, #1a2238) !important;
  border: 1px solid var(--border-card, rgba(255, 255, 255, 0.08)) !important;
  color: var(--text-primary, #e8e8e8) !important;
  border-radius: var(--radius-sm, 6px);
  padding: 0.6rem 0.8rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: border-color 0.25s;
  color-scheme: dark;
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-gold, #f39c12) !important;
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.12);
}

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238899aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.8rem center !important;
  padding-right: 2rem !important;
}

/* ============================================================
   GLOBAL: CTA / generate button (GERE SEUS PALPITES ABAIXO)
   ============================================================ */
.generate-button,
button[type="submit"],
.btn-generate {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 1rem auto;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--accent-gold), #e67e22) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--glow-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.generate-button:hover,
button[type="submit"]:hover,
.btn-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(243, 156, 18, 0.4);
}

/* Label styling */
label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 0.3rem;
}

/* Help text */
.help-text,
small {
  font-size: 0.75rem;
  color: var(--text-muted);
}