/* ========================================
   DEZENA CERTA - ESTILOS RESPONSIVOS
   ======================================== */

/* ========== VARIAÇÕES DE BREAKPOINTS ========== */
/*
  Mobile:        max-width: 480px
  Mobile Large:  max-width: 640px
  Tablet:        max-width: 768px
  Tablet Large:  max-width: 1024px
  Desktop:       min-width: 1025px
*/

/* ========== TABLET (max-width: 1024px) ========== */
@media (max-width: 1024px) {
  .container {
    max-width: 960px;
    padding: 0 15px;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    margin: 0 auto 30px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-image {
    display: none;
  }
  
  .gerador-container {
    grid-template-columns: 1fr;
  }
  
  .gerador-options {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== TABLET PEQUENO (max-width: 768px) ========== */
@media (max-width: 768px) {
  /* Header */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
  }
  
  .main-nav.active {
    display: flex;
  }
  
  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .mobile-menu-btn {
    display: block;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.5rem;
    padding: 5px;
  }
  
  .auth-buttons {
    display: none;
  }
  
  .header-content {
    flex-wrap: wrap;
  }
  
  /* Hero */
  .hero {
    padding: 120px 0 60px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .hero-stats {
    gap: 20px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
  
  /* Seções */
  section {
    padding: 60px 0;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
  
  /* Gerador */
  .gerador-section {
    margin: 20px 10px;
  }
  
  .gerador-options {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .option-card {
    padding: 20px;
  }
  
  .option-card i {
    font-size: 1.5rem;
  }
  
  .option-card h3 {
    font-size: 1rem;
  }
  
  .option-card p {
    font-size: 0.85rem;
  }
  
  .gerador-config {
    padding: 20px;
  }
  
  .numeros-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }
  
  .numero-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  /* Resultado */
  .dezenas-container {
    padding: 20px;
  }
  
  .dezena {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .estatisticas-jogo {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  /* Estatísticas */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .stat-card {
    padding: 25px;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-col {
    margin-bottom: 30px;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .pagamento-icons {
    justify-content: center;
  }
  
  /* CTA Premium */
  .cta-premium {
    padding: 60px 0;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .cta-content p {
    font-size: 1rem;
  }
  
  .cta-beneficios {
    text-align: center;
  }
  
  .cta-beneficios li {
    justify-content: center;
  }
  
  /* Modais */
  .modal-content {
    padding: 30px 20px;
    width: 95%;
    max-height: 95vh;
  }
  
  .modal-auth .auth-tabs {
    flex-direction: row;
  }
  
  .tab-btn {
    flex: 1;
    padding: 12px;
    font-size: 0.9rem;
  }
  
  .upgrade-beneficios {
    max-height: 250px;
    overflow-y: auto;
  }
  
  /* Toast */
  .toast {
    left: 20px;
    right: 20px;
    bottom: 20px;
    text-align: center;
    justify-content: center;
  }
}

/* ========== MOBILE (max-width: 640px) ========== */
@media (max-width: 640px) {
  .container {
    padding: 0 12px;
  }
  
  .logo span {
    font-size: 1.2rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .btn-large {
    padding: 14px 24px;
    font-size: 1rem;
  }
  
  .gerador-resultado {
    padding: 20px;
  }
  
  .resultado-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .resultado-actions {
    justify-content: center;
  }
  
  .dezena {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .config-item input[type="number"],
  .config-item select {
    font-size: 0.95rem;
    padding: 10px;
  }
}

/* ========== MOBILE PEQUENO (max-width: 480px) ========== */
@media (max-width: 480px) {
  /* Header */
  .logo {
    font-size: 1.2rem;
  }
  
  .logo i {
    font-size: 1.4rem;
  }
  
  /* Hero */
  .hero {
    padding: 100px 0 40px;
  }
  
  .hero-title {
    font-size: 1.6rem;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  
  /* Gerador */
  .gerador-section {
    margin: 15px 5px;
    border-radius: var(--radius-lg);
  }
  
  .gerador-options {
    grid-template-columns: 1fr;
  }
  
  .option-card {
    padding: 18px;
  }
  
  .option-card i {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }
  
  .option-card h3 {
    font-size: 0.95rem;
  }
  
  .option-card p {
    font-size: 0.8rem;
  }
  
  .option-card .badge-free,
  .option-card .badge-premium {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
  
  .gerador-config {
    padding: 15px;
  }
  
  .config-panel h3 {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .config-item {
    margin-bottom: 15px;
  }
  
  .config-item label {
    font-size: 0.85rem;
  }
  
  .config-item input[type="number"],
  .config-item select {
    padding: 10px;
    font-size: 0.9rem;
  }
  
  .numeros-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
  }
  
  .numero-btn {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  
  .btn-large {
    padding: 14px 20px;
    font-size: 1rem;
  }
  
  .limite-info {
    font-size: 0.8rem;
    padding: 8px;
  }
  
  /* Resultado */
  .gerador-resultado {
    padding: 20px 15px;
    margin-top: 30px;
  }
  
  .resultado-header h3 {
    font-size: 1rem;
  }
  
  .dezenas-container {
    padding: 15px;
    gap: 8px;
  }
  
  .dezena {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }
  
  .estatisticas-jogo {
    grid-template-columns: repeat(2, 1fr);
    padding: 15px;
    gap: 10px;
  }
  
  .estat-label {
    font-size: 0.75rem;
  }
  
  .estat-value {
    font-size: 1.1rem;
  }
  
  /* Estatísticas */
  .estatisticas-section {
    padding: 50px 0;
  }
  
  .section-header h2 {
    font-size: 1.6rem;
  }
  
  .stats-grid {
    gap: 15px;
  }
  
  .stat-card {
    padding: 20px;
  }
  
  .stat-card h3 {
    font-size: 1.1rem;
  }
  
  .stat-card p {
    font-size: 0.85rem;
  }
  
  .numeros-frequentes {
    gap: 8px;
  }
  
  .numero-frequente {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }
  
  /* Resultados */
  .resultados-section {
    padding: 50px 0;
  }
  
  .resultado-card {
    padding: 15px;
  }
  
  .resultado-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .concurso-num {
    font-size: 0.95rem;
  }
  
  .concurso-data {
    font-size: 0.85rem;
  }
  
  .resultado-dezenas {
    flex-wrap: wrap;
  }
  
  .dezena-small {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  
  /* CTA Premium */
  .cta-premium {
    padding: 50px 0;
  }
  
  .cta-content h2 {
    font-size: 1.6rem;
  }
  
  .cta-content p {
    font-size: 0.95rem;
  }
  
  .cta-beneficios li {
    font-size: 0.95rem;
    padding: 8px 0;
  }
  
  .cta-premium .btn-large {
    padding: 14px 28px;
    font-size: 1rem;
  }
  
  /* Footer */
  .main-footer {
    padding: 40px 0 20px;
  }
  
  .footer-grid {
    gap: 25px;
    margin-bottom: 30px;
  }
  
  .footer-col h4 {
    font-size: 1rem;
  }
  
  .footer-col ul li {
    font-size: 0.9rem;
  }
  
  .footer-bottom {
    padding-top: 20px;
    font-size: 0.85rem;
  }
  
  .pagamento-icons img {
    height: 25px;
  }
  
  /* Modais */
  .modal-content {
    padding: 25px 15px;
    width: 98%;
  }
  
  .modal-close {
    width: 30px;
    height: 30px;
    font-size: 1.3rem;
    top: 10px;
    right: 10px;
  }
  
  .auth-form .form-header h3 {
    font-size: 1.4rem;
  }
  
  .auth-form .form-header p {
    font-size: 0.9rem;
  }
  
  .auth-form .form-group input {
    padding: 12px;
    font-size: 0.95rem;
  }
  
  .form-options {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .upgrade-header i {
    font-size: 3rem;
  }
  
  .upgrade-header h2 {
    font-size: 1.5rem;
  }
  
  .beneficio-item {
    padding: 10px 0;
    font-size: 0.9rem;
  }
  
  .oferta-preco {
    margin-bottom: 8px;
  }
  
  .preco-atual {
    font-size: 1.8rem;
  }
  
  .upgrade-buttons {
    gap: 10px;
  }
  
  .limite-header i {
    font-size: 3rem;
  }
  
  .limite-header h2 {
    font-size: 1.4rem;
  }
  
  .limite-buttons {
    gap: 10px;
  }
  
  /* Toast */
  .toast {
    padding: 12px 18px;
    font-size: 0.9rem;
    bottom: 15px;
    left: 15px;
    right: 15px;
  }
  
  /* Planos */
  .planos-hero {
    padding: 100px 0 40px;
  }
  
  .planos-hero h1 {
    font-size: 1.8rem;
  }
  
  .planos-hero p {
    font-size: 0.95rem;
  }
  
  .planos-grid {
    grid-template-columns: 1fr;
    padding: 15px;
    gap: 20px;
  }
  
  .plano-card {
    padding: 25px 20px;
  }
  
  .plano-card h3 {
    font-size: 1.4rem;
  }
  
  .plano-card .preco {
    font-size: 2.2rem;
  }
  
  .plano-card .beneficios li {
    font-size: 0.9rem;
    padding: 10px 0;
  }
  
  .btn-pagamento {
    padding: 14px 16px;
    font-size: 0.95rem;
  }
  
  .garantia-section {
    padding: 40px 15px;
  }
  
  .garantia-icon {
    font-size: 3rem;
  }
  
  .garantia-content h2 {
    font-size: 1.6rem;
  }
  
  .garantia-benefits {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .faq-section {
    padding: 50px 15px;
  }
  
  .faq-section h2 {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }
  
  .faq-question {
    padding: 15px 20px;
    font-size: 0.95rem;
  }
  
  .faq-answer {
    padding: 15px 20px;
    font-size: 0.9rem;
  }
  
  .comparativo-table {
    font-size: 0.85rem;
  }
  
  .comparativo-table th,
  .comparativo-table td {
    padding: 10px 12px;
  }
  
  .cta-final {
    padding: 60px 15px;
  }
  
  .cta-final h2 {
    font-size: 1.8rem;
  }
  
  .cta-final p {
    font-size: 1rem;
  }
  
  .cta-final .btn {
    padding: 14px 30px;
    font-size: 1rem;
  }
  
  .pagamento-seguro {
    gap: 15px;
  }
  
  .pagamento-seguro img {
    height: 28px;
  }
}

/* ========== AJUSTES ESPECÍFICOS ========== */

/* Header fixo no mobile */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  
  .main-header {
    padding: 12px 0;
  }
}

/* Scroll suave desativado em mobile antigo */
@media (max-width: 480px) {
  html {
    scroll-behavior: auto;
  }
}

/* Imagens responsivas */
img {
  max-width: 100%;
  height: auto;
}

/* Tabelas responsivas */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Evitar zoom no iOS ao clicar em inputs */
@media screen and (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Botões grandes o suficiente para toque */
@media (max-width: 768px) {
  button, .btn, a.btn {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Melhor contraste em telas pequenas */
@media (max-width: 480px) {
  .text-secondary {
    color: var(--text-primary) !important;
    opacity: 0.8;
  }
}