/* Reset básico para garantir um estilo limpo */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Roboto', 'Arial', sans-serif;
    background-color: #0e0505c9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    border: 1px solid #ffffff14;
    border-radius: 5px;
    background-image: url(https://fivemdev.org/fdev-links/background2.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #333;
}

form {
    background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 460px;
    max-width: 500px;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

label {
    display: block;
    margin-bottom: 8px;
    color: #f18003;
    font-size: .9rem;
    font-weight: 600;
    font-family: 'Inter', 'Roboto', ui-sans-serif, system-ui, sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

input[type="text"] {
    width: 100%;
    padding: 14px;
    margin-bottom: 18px;
    border: 2px solid #ffffff17;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

input[type="text"]:focus {
    outline: none;
    border-color: #f18003;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(241, 128, 3, 0.2);
    transform: translateY(-1px);
}

input[type="text"]:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

input[type="link"] {
    width: 100%;
    padding: 14px;
    margin-bottom: 18px;
    border: 2px solid #ffffff17;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

input[type="submit"] {
    width: 100%;
    padding: 15px;
    background: linear-gradient(145deg, #7d5707, #a66d09);
    color: #ffd99d;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', 'Roboto', ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

input[type="submit"]:hover {
    background: linear-gradient(145deg, #f1800396, #ffaa00);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(241, 128, 3, 0.4);
}

input[type="submit"]:active {
    transform: translateY(0);
}

/* Efeito ripple no botão */
input[type="submit"]:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.6s, height 0.6s;
    transform: translate(-50%, -50%);
    z-index: 1;
}

input[type="submit"]:active:before {
    width: 300px;
    height: 300px;
}

/* Adicionando estilo ao formulário em dispositivos móveis */
@media (max-width: 768px) {
    body {
        padding: 10px;
        background-size: cover;
    }
    
    form {
        width: 100%;
        padding: 20px;
        margin: 10px 0;
    }
    
    .modal, .youtube, .support {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    input[type="text"] {
        font-size: 16px; /* Previne zoom no iOS */
    }
    
    label {
        font-size: 0.85rem;
    }
}

/* Estilos para preview de imagem */
#image-preview {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#preview-img {
    border: 2px solid rgba(241, 128, 3, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#preview-img:hover {
    border-color: #f18003;
    transform: scale(1.02);
}

/* Melhorando o botão da galeria */
button[onclick*="gallery"] {
    transition: all 0.3s ease !important;
    backdrop-filter: blur(5px) !important;
}

button[onclick*="gallery"]:hover {
    background-color: #666 !important;
    transform: scale(1.05);
}

.modal {
    width: 500px;
    background: linear-gradient(145deg, #2e2505, #3a2f06);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: wheat;
    margin-left: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

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

.modal h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #f18003;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal ul {
    list-style-type: none;
    padding: 0;
}

.modal ul li {
    font-size: 16px;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

.modal ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #f18003;
    font-weight: bold;
    font-size: 18px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(145deg, #7d5707, #a66d09);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-right: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: linear-gradient(145deg, #a66d09, #d18a0b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(166, 109, 9, 0.4);
}

.btn-close {
    padding: 12px 24px;
    background: linear-gradient(145deg, #555, #666);
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: linear-gradient(145deg, #666, #777);
    transform: translateY(-2px);
}

.youtube {
    width: 500px;
    background: linear-gradient(145deg, #2e2505, #3a2f06);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: wheat;
    margin-left: 50px;
    display: flex;
    margin-top: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.youtube:hover {
    background: linear-gradient(145deg, #3e2a0f, #4a3410);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.support {
    width: 500px;
    background: linear-gradient(145deg, #2e2505, #3a2f06);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: wheat;
    margin-left: 50px;
    display: flex;
    margin-top: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.support:hover {
    background: linear-gradient(145deg, #3e2a0f, #4a3410);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}


.mat-progress-bar .mat-progress-bar-element, .mat-progress-bar .mat-progress-bar-fill::after {
    height: 100%;
    position: absolute;
    width: 100%;
}


  .hidden {
    display: none;
  }

  .popupaviso {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #fff, #f8f9fa);
    border-radius: 15px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    z-index: 1000;
    padding: 30px;
    animation: popupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(241, 128, 3, 0.2);
    max-width: 450px;
    width: 90%;
  }

  .popupaviso-content {
    position: relative;
    text-align: center;
  }

  .popupaviso-content p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 500;
  }

.popupaviso-close {
    position: absolute;
    top: -25px;
    right: -15px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #f18003;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

  .popupaviso-close:hover {
    transform: rotate(90deg) scale(1.1);
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
  }

  @keyframes popupSlideIn {
    0% {
      opacity: 0;
      transform: translate(-50%, -60%) scale(0.8);
    }
    100% {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
  }
  
  body.overlay-active {
    overflow: hidden;
    position: relative;
  }

  body.overlay-active::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 999;
    animation: overlayFadeIn 0.3s ease;
  }

  @keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  .popupaviso-button {
    display: inline-block;
    background: linear-gradient(145deg, #007bff, #0056b3);
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 15px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  }

  .popupaviso-button:hover {
    background: linear-gradient(145deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
  }
  
  .flag {

    width: 16px;
    height: 16px;
    background: url("https://fivemdev.org/uploads/set_resources_9/84c1e40ea0e759e3f1505eb1788ddf3c_flags16.png") no-repeat;
    display: inline-block;
    vertical-align: text-top;
    line-height: 16px;

}


.brazil {
    background-position: 0 -800px;
}


.usa {
    background-position: 0 -3664px; 
}

/* Contador melhorado */
.improved-counter {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(30, 30, 30, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(181, 126, 9, 0.3);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    padding: 16px 20px;
    animation: slideUp 0.3s ease-out;
    z-index: 1000;
}

/* Animação de entrada */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Container do contador */
.counter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* Ícone do contador */
.counter-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b57e09 0%, #d4950a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(181, 126, 9, 0.3);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

/* Animação pulse do ícone */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(181, 126, 9, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(181, 126, 9, 0.5);
    }
}

/* Texto do contador */
.counter-text {
    font-size: 18px;
    font-weight: 600;
    color: #f5deb3;
    letter-spacing: 0.5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Número do contador */
.counter-number {
    font-size: 24px;
    font-weight: 800;
    color: #b57e09;
    text-shadow: 0 2px 10px rgba(181, 126, 9, 0.5);
    margin-left: 8px;
    position: relative;
    animation: countUp 0.6s ease-out;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Animação do número */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Linha decorativa sob o número */
.counter-number::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #b57e09 50%, transparent 100%);
    border-radius: 1px;
}

/* ===== RESPONSIVIDADE ===== */

/* Tablets */
@media (max-width: 768px) {
    .improved-counter {
        padding: 12px 16px;
    }
    
    .counter-container {
        gap: 10px;
    }
    
    .counter-icon {
        width: 35px;
        height: 35px;
    }
    
    .counter-text {
        font-size: 16px;
    }
    
    .counter-number {
        font-size: 20px;
    }
}

/* Smartphones */
@media (max-width: 480px) {
    .counter-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .counter-text {
        font-size: 14px;
    }
    
    .counter-number {
        font-size: 18px;
        margin-left: 0;
    }
    
    .improved-counter {
        padding: 10px 12px;
    }
}

/* Smartphones muito pequenos */
@media (max-width: 320px) {
    .counter-icon {
        width: 30px;
        height: 30px;
    }
    
    .counter-text {
        font-size: 13px;
    }
    
    .counter-number {
        font-size: 16px;
    }
}

/* ===== VARIAÇÕES DE COR (OPCIONAL) ===== */

/* Versão azul */
.improved-counter.blue-theme .counter-icon {
    background: linear-gradient(135deg, #0066cc 0%, #0080ff 100%);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.improved-counter.blue-theme .counter-number {
    color: #0066cc;
    text-shadow: 0 2px 10px rgba(0, 102, 204, 0.5);
}

.improved-counter.blue-theme {
    border-top: 1px solid rgba(0, 102, 204, 0.3);
}

/* Versão verde */
.improved-counter.green-theme .counter-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.improved-counter.green-theme .counter-number {
    color: #28a745;
    text-shadow: 0 2px 10px rgba(40, 167, 69, 0.5);
}

.improved-counter.green-theme {
    border-top: 1px solid rgba(40, 167, 69, 0.3);
}

/* Versão vermelha */
.improved-counter.red-theme .counter-icon {
    background: linear-gradient(135deg, #dc3545 0%, #ff6b6b 100%);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.improved-counter.red-theme .counter-number {
    color: #dc3545;
    text-shadow: 0 2px 10px rgba(220, 53, 69, 0.5);
}

.improved-counter.red-theme {
    border-top: 1px solid rgba(220, 53, 69, 0.3);
}

/* ===== EFEITOS ADICIONAIS ===== */

/* Hover effect no container inteiro */
.improved-counter:hover {
    backdrop-filter: blur(25px);
    transition: backdrop-filter 0.3s ease;
}

/* Efeito de brilho no número quando hover */
.counter-number:hover {
    text-shadow: 0 0 20px rgba(181, 126, 9, 0.8);
    transition: text-shadow 0.3s ease;
}

/* Animação de rotação suave no ícone quando hover */
.counter-icon:hover {
    transform: rotate(15deg) scale(1.1);
    transition: transform 0.3s ease;
}

/* ===== MODO ESCURO ADICIONAL ===== */
.dark-mode .improved-counter {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(15, 15, 15, 0.98) 100%);
}

.dark-mode .counter-text {
    color: #e6e6e6;
}

/* ===== ANIMAÇÕES EXTRAS ===== */

/* Fade in para o texto */
.counter-text {
    animation: fadeInLeft 0.5s ease-out 0.2s both;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Bounce para o ícone */
.counter-icon {
    animation: bounceIn 0.6s ease-out 0.1s both, pulse 2s infinite 1s;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}