/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== TIPOGRAFIA ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2rem;
    color: #ffffff;
}

h2 {
    font-size: 1.5rem;
    color: #2d3748;
}

h3 {
    font-size: 1.25rem;
    color: #4a5568;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* ===== LAYOUT PRINCIPAL ===== */
.screen {
    display: none;
    min-height: 100vh;
    flex-direction: column;
}

.screen.active {
    display: flex;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Botão para voltar às loterias */
.back-to-lottery-btn {
    background: #28a745;
    color: white;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-to-lottery-btn:hover {
    background: #218838;
    border-color: #218838;
    transform: translateY(-1px);
}

.back-to-lottery-btn .icon {
    font-size: 1rem;
}

.header h1 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    flex: 1;
    text-align: center;
}

/* Espaçador para centralizar o título */
.header-spacer {
    width: 120px; /* Largura aproximada do botão de voltar (padding + texto) */
    flex-shrink: 0;
}

.header p {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

.main-content {
    flex: 1;
    padding: 1.5rem 1rem;
    max-width: 100%;
    margin: 0 auto;
}

.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* ===== BOTÕES ===== */
button {
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    min-height: 48px;
    min-width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.back-btn {
    background: #e2e8f0;
    color: #4a5568;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #cbd5e0;
    color: #2d3748;
    transform: translateY(-50%); /* Mantém a posição original */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.help-btn {
    background: #4299e1;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.2;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.help-btn:hover {
    background: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ===== GRID DE LOTERIAS ===== */
.lottery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.lottery-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.lottery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #4299e1;
}

.lottery-card:active {
    transform: translateY(-2px);
}

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

.card-header h3 {
    color: #2d3748;
    font-size: 1.1rem;
    margin: 0;
}

.card-icon {
    font-size: 1.5rem;
}

.card-info {
    color: #718096;
    font-size: 0.9rem;
}

.card-info p {
    margin-bottom: 0.25rem;
}

.card-info strong {
    color: #2d3748;
}

/* ===== SELEÇÃO DE QUANTIDADE ===== */
.quantity-section {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.quantity-section h2 {
    margin-bottom: 2rem;
    color: white;
    font-size: 1.3rem;
}

.quantity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.quantity-btn {
    background: white;
    color: #2d3748;
    border: 2px solid #e2e8f0;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    min-height: 60px;
}

.quantity-btn:hover {
    border-color: #4299e1;
    background: #f7fafc;
}

.quantity-btn.selected {
    background: #4299e1;
    color: white;
    border-color: #4299e1;
}

/* ===== CONTADOR DE SELEÇÃO ===== */
.selection-counter {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.selection-counter h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.selection-counter span {
    font-weight: 700;
    font-size: 1.3rem;
}

/* ===== SELEÇÃO DE NÚMEROS ===== */
.selection-section {
    max-width: 500px;
    margin: 0 auto;
}

.quantity-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.quantity-info h2 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.quantity-display {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quantity-display .quantity-btn {
    margin: 0.25rem;
    min-height: 50px;
    min-width: 50px;
}

.fullscreen-toggle {
    text-align: center;
    margin-bottom: 2rem;
}

.fullscreen-btn {
    background: #48bb78;
    color: white;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 25px;
    min-height: 60px;
}

.number-grid {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 2rem;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.number-btn {
    background: #f7fafc;
    color: #2d3748;
    border: 2px solid #e2e8f0;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    min-height: 50px;
    transition: all 0.2s ease;
}

.number-btn:hover {
    border-color: #4299e1;
    background: #edf2f7;
}

.number-btn.selected {
    background: #4299e1;
    color: white;
    border-color: #4299e1;
    transform: scale(1.05);
}

.number-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== TELA CHEIA ===== */
.fullscreen-section {
    max-width: 100%;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.fullscreen-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.fullscreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.fullscreen-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.fullscreen-number-grid {
    flex: 1;
    display: grid;
    gap: 0.5rem;
    padding: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.fullscreen-number-grid .number-btn {
    min-height: 50px;
    font-size: 1rem;
    font-weight: 600;
}

/* ===== ESTILOS PARA TELA CHEIA REAL (CONTAINER COMPLETO) ===== */
#fullscreen-container:fullscreen {
    background: white;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    position: relative;
}

#fullscreen-container:-webkit-full-screen {
    background: white;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    position: relative;
}

#fullscreen-container:-moz-full-screen {
    background: white;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    position: relative;
}

#fullscreen-container:-ms-fullscreen {
    background: white;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ===== CONTADOR FULLSCREEN ===== */
.fullscreen-counter {
    text-align: center;
    flex: 1;
    margin: 0 2rem;
}

.fullscreen-counter h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fullscreen-counter span {
    font-weight: 700;
    font-size: 1.5rem;
}

/* ===== GRID FULLSCREEN ESPECÍFICO ===== */
#fullscreen-container:fullscreen .fullscreen-number-grid {
    display: grid !important;
    grid-template-columns: repeat(8, 1fr) !important;
    gap: 0.5rem !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-width: 100% !important;
    padding: 1rem !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

#fullscreen-container:-webkit-full-screen .fullscreen-number-grid {
    display: grid !important;
    grid-template-columns: repeat(8, 1fr) !important;
    gap: 0.5rem !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-width: 100% !important;
    padding: 1rem !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

#fullscreen-container:-moz-full-screen .fullscreen-number-grid {
    display: grid !important;
    grid-template-columns: repeat(8, 1fr) !important;
    gap: 0.5rem !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-width: 100% !important;
    padding: 1rem !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

#fullscreen-container:-ms-fullscreen .fullscreen-number-grid {
    display: grid !important;
    grid-template-columns: repeat(8, 1fr) !important;
    gap: 0.5rem !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-width: 100% !important;
    padding: 1rem !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

/* Ocultar botão de voltar às loterias no fullscreen */
#fullscreen-container:fullscreen .back-to-lottery-btn,
#fullscreen-container:-webkit-full-screen .back-to-lottery-btn,
#fullscreen-container:-moz-full-screen .back-to-lottery-btn,
#fullscreen-container:-ms-fullscreen .back-to-lottery-btn {
    display: none !important;
}

/* ===== BOTÃO DE TELA CHEIA ===== */
.fullscreen-btn {
    background: #48bb78;
    color: white;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 25px;
    min-height: 60px;
    transition: all 0.3s ease;
}

.fullscreen-btn:hover {
    background: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.fullscreen-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===== INDICADOR DE TELA CHEIA ===== */
.fullscreen-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 1001;
    display: none;
}

/* ===== BOTÃO DE SAIR DA TELA CHEIA ===== */
.exit-fullscreen-btn {
    background: #ffcccb;
    color: #000;
    border: 2px solid #ff6b6b;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
}

.exit-fullscreen-btn:hover {
    background: #ffb3b3;
    border-color: #ff5252;
    transform: scale(1.1);
}

.exit-fullscreen-btn:active {
    transform: scale(0.95);
    background: #ff9999;
}

/* ===== PERSONALIZAÇÃO DO ÍCONE X ===== */
.exit-fullscreen-btn .icon {
    color: #000 !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.exit-fullscreen-btn:hover .icon {
    color: #000 !important;
    font-size: 1.6rem !important;
}

/* ===== ÍCONES ===== */
.icon {
    font-size: 1.2rem;
    line-height: 1;
}

/* ===== ESTILOS PARA TELA CHEIA REAL ===== */
#fullscreen-container:fullscreen .fullscreen-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#fullscreen-container:-webkit-full-screen .fullscreen-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#fullscreen-container:-moz-full-screen .fullscreen-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#fullscreen-container:-ms-fullscreen .fullscreen-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ===== NÚMEROS SELECIONADOS ===== */
.selected-numbers {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.selected-numbers h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2d3748;
}

.selected-list {
    background: #f7fafc;
    border-radius: 8px;
    padding: 1rem;
    min-height: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.selected-number {
    background: #4299e1;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== BOTÕES DE AÇÃO ===== */
.action-buttons {
    text-align: center;
}

.confirm-btn {
    background: #48bb78;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 25px;
    min-height: 60px;
    width: 100%;
    max-width: 300px;
}

.share-btn {
    background: #25d366;
    color: white;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 25px;
    min-height: 60px;
    width: 100%;
    max-width: 300px;
    margin-bottom: 1rem;
}

.new-game-btn {
    background: #4299e1;
    color: white;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 25px;
    min-height: 60px;
    width: 100%;
    max-width: 300px;
}

/* ===== TELA DE CONFIRMAÇÃO ===== */
.confirmation-section {
    max-width: 500px;
    margin: 0 auto;
}

.game-summary {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.game-summary h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.summary-details p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.confirm-numbers {
    background: #f7fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

/* ===== TELA DE AJUDA ===== */
.help-section {
    max-width: 500px;
    margin: 0 auto;
}

.help-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.help-content h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2d3748;
}

.help-step {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.help-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.help-step h3 {
    color: #4299e1;
    margin-bottom: 0.5rem;
}

.help-step p {
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.help-tips {
    background: #f7fafc;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.help-tips h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.help-tips ul {
    list-style: none;
    padding: 0;
}

.help-tips li {
    padding: 0.5rem 0;
    color: #4a5568;
    position: relative;
    padding-left: 1.5rem;
}

.help-tips li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.loading-spinner i {
    font-size: 2rem;
    color: #4299e1;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-spinner p {
    color: #4a5568;
    margin: 0;
}

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

/* ===== RESPONSIVIDADE ===== */
@media (min-width: 480px) {
    .lottery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quantity-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .lottery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .quantity-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .main-content {
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .lottery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== RESPONSIVIDADE PARA GRIDS DE NÚMEROS ===== */
/* Telas muito pequenas (até 320px) - 4 colunas com botões menores */
@media (max-width: 320px) {
    .number-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .fullscreen-number-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .number-btn {
        min-height: 35px !important;
        font-size: 0.8rem !important;
        padding: 0.5rem !important;
    }
}

/* Telas pequenas (321px a 480px) - 5 colunas com botões menores */
@media (min-width: 321px) and (max-width: 480px) {
    .number-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
    
    .fullscreen-number-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
    
    .number-btn {
        min-height: 40px !important;
        font-size: 0.9rem !important;
        padding: 0.6rem !important;
    }
}

/* Telas médias (481px a 768px) - 6 colunas */
@media (min-width: 481px) and (max-width: 768px) {
    .number-grid {
        grid-template-columns: repeat(6, 1fr) !important;
    }
    
    .fullscreen-number-grid {
        grid-template-columns: repeat(6, 1fr) !important;
    }
    
    .number-btn {
        min-height: 45px !important;
        font-size: 0.95rem !important;
    }
}

/* Telas grandes (769px a 1024px) - 7 colunas */
@media (min-width: 769px) and (max-width: 1024px) {
    .number-grid {
        grid-template-columns: repeat(7, 1fr) !important;
    }
    
    .fullscreen-number-grid {
        grid-template-columns: repeat(7, 1fr) !important;
    }
}

/* Telas muito grandes (acima de 1024px) - 8 colunas */
@media (min-width: 1025px) {
    .number-grid {
        grid-template-columns: repeat(8, 1fr) !important;
    }
    
    .fullscreen-number-grid {
        grid-template-columns: repeat(8, 1fr) !important;
    }
}

/* ===== ACESSIBILIDADE ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== ESTADOS DE FOCO ===== */
button:focus,
.lottery-card:focus {
    outline: 3px solid #4299e1;
    outline-offset: 2px;
}

.number-btn:focus {
    outline: 2px solid #4299e1;
    outline-offset: 1px;
}

/* ===== SCROLLBAR CUSTOMIZADA ===== */
.number-grid::-webkit-scrollbar,
.fullscreen-number-grid::-webkit-scrollbar {
    width: 8px;
}

.number-grid::-webkit-scrollbar-track,
.fullscreen-number-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.number-grid::-webkit-scrollbar-thumb,
.fullscreen-number-grid::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.number-grid::-webkit-scrollbar-thumb:hover,
.fullscreen-number-grid::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ===== TELA DE GRUPOS ===== */
.groups-section {
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.groups-header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.groups-info h2 {
    color: #2d3748;
    margin-bottom: 0;
    font-size: 1.5rem;
    text-align: center;
}

.groups-info p {
    color: #4a5568;
    font-size: 1rem;
    margin-bottom: 0;
}

.groups-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}


.create-group-btn, .export-all-btn, .import-btn, .config-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
}

.create-group-btn:hover, .export-all-btn:hover, .import-btn:hover, .config-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.create-group-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.export-all-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
}

.import-btn {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.config-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.groups-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.group-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.group-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

.group-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

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

.group-actions button {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
}

.group-actions button:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.edit-group-btn {
    color: #3182ce;
}

.edit-group-btn:hover {
    background: #ebf8ff;
    border-color: #3182ce;
}

.delete-group-btn {
    color: #e53e3e;
}

.delete-group-btn:hover {
    background: #fed7d7;
    border-color: #e53e3e;
}

.share-group-btn {
    color: #38a169;
}

.share-group-btn:hover {
    background: #f0fff4;
    border-color: #38a169;
}

.group-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.group-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
}

.no-groups {
    text-align: center;
    padding: 3rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.no-groups-content .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.no-groups-content h3 {
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.no-groups-content p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.create-first-group-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.create-first-group-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Botão Visualizar Grupos */
.view-groups-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    width: 100%;
    margin-top: 1rem;
}

.view-groups-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Botão Salvar Grupo */
.save-group-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    width: 100%;
    margin-bottom: 1rem;
}

.save-group-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ===== MODAL DE CONFIRMAÇÃO ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

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

.modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
}

.modal-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 1.5rem;
}

.modal-game-info {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.modal-game-info p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.modal-numbers {
    margin-bottom: 1.5rem;
}

.modal-numbers h3 {
    margin-bottom: 1rem;
    color: #2d3748;
    font-size: 1.1rem;
}

.modal-numbers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    min-height: 60px;
    align-items: center;
}

.modal-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.modal-message {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-message p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #4a5568;
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.modal-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.save-group-modal-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.edit-numbers-modal-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
}

.generate-xlsx-modal-btn {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.cancel-modal-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

/* Responsividade da tela de grupos */
@media (max-width: 768px) {
    .groups-actions {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .group-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .group-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .group-actions button {
        flex: 1;
        min-height: 48px;
    }
    
    .group-numbers {
        justify-content: center;
    }
    
    .no-groups {
        padding: 2rem 1rem;
    }
    
    .no-groups-content .icon {
        font-size: 3rem;
    }
    
    /* Responsividade do modal */
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-actions {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-actions {
        padding: 1rem;
    }
}

/* ===== ESTILOS DOS NOVOS MODAIS ===== */

/* Modal de Edição */
.edit-modal-ok-btn {
    background: #28a745;
    color: white;
    border: 2px solid #28a745;
}

.edit-modal-ok-btn:hover {
    background: #218838;
    border-color: #218838;
}

/* Estilos específicos para o modal de edição - otimizado para usuários 50+ */
.edit-modal-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.edit-modal-info {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: center;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.edit-modal-instruction {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.edit-modal-steps {
    margin: 1.5rem 0;
}

.edit-modal-step {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.step-number {
    background: #28a745;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-text {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.4;
    flex: 1;
}

.edit-modal-note {
    font-size: 1rem;
    color: #666;
    margin-top: 1.5rem;
    text-align: center;
    font-style: italic;
    background: #e9ecef;
    padding: 0.8rem;
    border-radius: 6px;
}

/* Modal de Confirmação */
.confirmation-modal-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.confirmation-modal-info {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: center;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.confirmation-modal-numbers {
    margin: 1.5rem 0;
}

.confirmation-modal-numbers h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.confirmation-modal-question {
    font-size: 1.1rem;
    color: #333;
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 600;
    background: #e9ecef;
    padding: 1rem;
    border-radius: 8px;
}

/* Modal de Sucesso */
.success-modal-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.success-modal-info {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: center;
    background: #d4edda;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.success-modal-ok-btn {
    background: #28a745;
    color: white;
    border: 2px solid #28a745;
}

.success-modal-ok-btn:hover {
    background: #218838;
    border-color: #218838;
}

/* Modal de Erro */
.error-modal-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.error-modal-info {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: center;
    background: #f8d7da;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

.error-modal-ok-btn {
    background: #dc3545;
    color: white;
    border: 2px solid #dc3545;
}

.error-modal-ok-btn:hover {
    background: #c82333;
    border-color: #c82333;
}

/* Modal de Confirmação de Exclusão */
.delete-confirm-modal-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.delete-confirm-modal-info {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: center;
    background: #fff3cd;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.delete-confirm-modal-numbers {
    margin: 1.5rem 0;
}

.delete-confirm-modal-numbers h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.delete-confirm-modal-cancel-btn {
    background: #6c757d;
    color: white;
    border: 2px solid #6c757d;
}

.delete-confirm-modal-cancel-btn:hover {
    background: #5a6268;
    border-color: #5a6268;
}

.delete-confirm-modal-delete-btn {
    background: #dc3545;
    color: white;
    border: 2px solid #dc3545;
}

.delete-confirm-modal-delete-btn:hover {
    background: #c82333;
    border-color: #c82333;
}

/* Modal de Importação */
.import-modal-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.import-modal-results {
    margin: 1rem 0;
}

.import-result-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.import-result-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.import-result-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.import-result-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.import-result-icon {
    font-size: 1.3rem;
    margin-right: 0.8rem;
    flex-shrink: 0;
}

.import-result-text {
    flex: 1;
    line-height: 1.4;
    word-wrap: break-word;
}

.import-modal-ok-btn {
    background: #007bff;
    color: white;
    border: 2px solid #007bff;
}

.import-modal-ok-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
}


/* Modal de Compartilhamento */
.whatsapp-share-modal-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Notificação de clipboard */
.clipboard-notification {
    margin: 1rem 0;
    padding: 0.75rem;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 0.375rem;
    text-align: center;
}

.clipboard-success {
    color: #155724;
    margin: 0;
    font-size: 0.9rem;
}

/* Preview da mensagem */
.message-preview {
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.message-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin: 0 0 0.5rem 0;
}

.message-content {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.75rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #495057;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 120px;
    overflow-y: auto;
}

.whatsapp-share-modal-info {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: center;
    background: #cce7ff;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.whatsapp-share-modal-options {
    margin: 1.5rem 0;
}


.whatsapp-share-modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.whatsapp-share-modal-whatsapp-btn {
    background: #25d366;
    color: white;
    border: 2px solid #25d366;
    flex: 1;
    min-width: 200px;
}

.whatsapp-share-modal-whatsapp-btn:hover {
    background: #1da851;
    border-color: #1da851;
}

.whatsapp-share-modal-download-btn {
    background: #28a745;
    color: white;
    border: 2px solid #28a745;
    flex: 1;
    min-width: 200px;
}

.whatsapp-share-modal-download-btn:hover {
    background: #218838;
    border-color: #218838;
}

.whatsapp-share-modal-cancel-btn {
    background: #6c757d;
    color: white;
    border: 2px solid #6c757d;
}

.whatsapp-share-modal-cancel-btn:hover {
    background: #5a6268;
    border-color: #5a6268;
}

/* Botão de compartilhamento na tela de grupos */
.share-all-btn {
    background: #25d366;
    color: white;
    border: 2px solid #25d366;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-all-btn:hover {
    background: #1da851;
    border-color: #1da851;
    transform: translateY(-2px);
}


/* Modal de Exportação */
.export-modal-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.export-modal-info {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: center;
    background: #cce7ff;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.export-modal-options {
    margin: 1.5rem 0;
}

.export-modal-phone-selection {
    margin-bottom: 1.5rem;
}

.export-modal-phone-selection label {
    display: block;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.export-phone-select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.export-phone-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.export-modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.export-modal-whatsapp-btn {
    background: #25d366;
    color: white;
    border: 2px solid #25d366;
    flex: 1;
    min-width: 200px;
}

.export-modal-whatsapp-btn:hover {
    background: #1da851;
    border-color: #1da851;
}

.export-modal-download-btn {
    background: #28a745;
    color: white;
    border: 2px solid #28a745;
    flex: 1;
    min-width: 200px;
}

.export-modal-download-btn:hover {
    background: #218838;
    border-color: #218838;
}

.export-modal-cancel-btn {
    background: #6c757d;
    color: white;
    border: 2px solid #6c757d;
}

.export-modal-cancel-btn:hover {
    background: #5a6268;
    border-color: #5a6268;
}

/* Estilos específicos para listas ordenadas nos modais */
.modal-message ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.modal-message ol li {
    margin: 0.5rem 0;
    line-height: 1.4;
}

/* Estilos para botões de números nos modais */
.modal-numbers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    justify-content: center;
}

.modal-number-btn {
    background: #007bff;
    color: white;
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    font-size: 1rem;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
    cursor: default;
    transition: all 0.2s ease;
}

.modal-number-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
}

/* Responsividade para botões de números nos modais */
@media (max-width: 768px) {
    .modal-numbers-list {
        gap: 0.3rem;
        margin: 0.8rem 0;
    }
    
    .modal-number-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
        min-width: 35px;
    }
}

@media (max-width: 480px) {
    .modal-numbers-list {
        gap: 0.2rem;
        margin: 0.6rem 0;
    }
    
    .modal-number-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
        min-width: 30px;
    }
}

/* Responsividade para os novos modais */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-message p {
        font-size: 0.9rem;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-btn {
        width: 100%;
        padding: 0.8rem;
    }
    
    /* Responsividade específica para modais */
    .edit-modal-title,
    .confirmation-modal-title,
    .success-modal-title,
    .error-modal-title,
    .delete-confirm-modal-title,
    .import-modal-title {
        font-size: 1.2rem;
    }
    
    .edit-modal-info,
    .confirmation-modal-info,
    .success-modal-info,
    .error-modal-info,
    .delete-confirm-modal-info,
    .import-modal-info {
        font-size: 1.1rem;
        padding: 0.8rem;
    }
    
    .edit-modal-instruction {
        font-size: 1rem;
    }
    
    .edit-modal-step {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
        margin-right: 0.8rem;
    }
    
    .step-text {
        font-size: 1rem;
    }
    
    .edit-modal-note {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
    
    .confirmation-modal-question {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .import-result-item {
        font-size: 1rem;
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .import-result-icon {
        font-size: 1.2rem;
        margin-right: 0.6rem;
    }
}

@media (max-width: 480px) {
    /* Responsividade para telas muito pequenas */
    .edit-modal-title,
    .confirmation-modal-title,
    .success-modal-title,
    .error-modal-title,
    .delete-confirm-modal-title,
    .import-modal-title {
        font-size: 1.1rem;
    }
    
    .edit-modal-info,
    .confirmation-modal-info,
    .success-modal-info,
    .error-modal-info,
    .delete-confirm-modal-info,
    .import-modal-info {
        font-size: 1rem;
        padding: 0.6rem;
    }
    
    .edit-modal-instruction {
        font-size: 0.95rem;
    }
    
    .edit-modal-step {
        padding: 0.6rem;
        margin-bottom: 0.6rem;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        margin-right: 0.6rem;
    }
    
    .step-text {
        font-size: 0.95rem;
    }
    
    .edit-modal-note {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
    
    .confirmation-modal-question {
        font-size: 0.95rem;
        padding: 0.6rem;
    }
    
    .import-result-item {
        font-size: 0.95rem;
        padding: 0.6rem;
        margin-bottom: 0.6rem;
    }
    
    .import-result-icon {
        font-size: 1.1rem;
        margin-right: 0.5rem;
    }
    
    .help-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .whatsapp-config-modal-input input {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
}

/* ===== ESTILOS PARA LOTERIAS DESATIVADAS ===== */
.lottery-card.disabled {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.disabled-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #e53e3e;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ===== ESTILOS PARA MODAL DE CONFIRMAÇÃO DE COMPARTILHAMENTO ===== */
.share-confirmation-modal-info {
    margin: 1rem 0;
}

.share-confirmation-item {
    margin: 0.75rem 0;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.share-confirmation-item strong {
    color: #495057;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.share-confirmation-item span {
    color: #212529;
    font-size: 0.95rem;
}

.share-confirmation-message {
    background: #e9ecef;
    padding: 0.75rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: pre-line;
    max-height: 120px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
}

.share-confirmation-modal-confirm-btn {
    background: #28a745;
    color: white;
    border: 2px solid #28a745;
}

.share-confirmation-modal-confirm-btn:hover {
    background: #218838;
    border-color: #218838;
}

.share-confirmation-modal-cancel-btn {
    background: #dc3545;
    color: white;
    border: 2px solid #dc3545;
}

.share-confirmation-modal-cancel-btn:hover {
    background: #c82333;
    border-color: #c82333;
}