@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #d63384; 
    --dark-color: #141414;
    --gray-color: #333;
    --light-color: #fff;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-color);
    color: var(--light-color);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.form-body {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(https://images.unsplash.com/photo-1595424841038-3e1647f15494?q=80&w=2070&auto=format&fit=crop);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.form-container { background-color: rgba(0, 0, 0, 0.85); padding: 2rem 1.5rem; border-radius: 8px; width: 90%; max-width: 450px; box-sizing: border-box; }
.form-container h1 { text-align: center; margin-bottom: 25px; font-weight: 600; }
.input-group { position: relative; margin-bottom: 25px; }
.input-group input { width: 100%; padding: 16px; background-color: var(--gray-color); border: none; border-radius: 4px; color: var(--light-color); font-size: 1rem; box-sizing: border-box; }
.input-group label { position: absolute; top: 16px; left: 16px; color: #8c8c8c; pointer-events: none; transition: all 0.2s ease; }
.input-group input:focus + label, .input-group input:not(:placeholder-shown) + label { top: 6px; font-size: 0.75rem; }
.submit-btn { width: 100%; padding: 16px; background-color: var(--primary-color); color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 1.1rem; font-weight: 600; margin-top: 20px; transition: background-color 0.2s ease; }
.submit-btn:hover { background-color: #e84a9a; }
.bottom-text { text-align: center; margin-top: 30px; color: #8c8c8c; }
.bottom-text a { color: var(--light-color); text-decoration: none; font-weight: 500; }
.bottom-text a:hover { text-decoration: underline; }
.mensagem { padding: 15px; border-radius: 5px; margin-bottom: 1rem; text-align: center; font-weight: 500; }
.sucesso { background-color: #1f4e2a; color: #a3e9b3; }
.erro { background-color: #801b22; color: #f8baba; }

.main-container { padding: 20px 4%; }
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 15px; }
.header h1 { color: var(--primary-color); margin: 0; font-size: 1.8rem; }
.header .user-info { display: flex; align-items: center; gap: 15px; }
.header a.btn { color: #fff; text-decoration: none; background-color: var(--primary-color); padding: 8px 15px; border-radius: 4px; font-size: 0.9rem; }

.carrossel { margin-bottom: 40px; }
.carrossel-header h2 { font-size: 1.2rem; font-weight: 600; margin: 0 0 10px 0; }
.carrossel-track { display: flex; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #555 var(--dark-color); padding-bottom: 20px; gap: 15px; }
.carrossel-track::-webkit-scrollbar { height: 8px; }
.carrossel-track::-webkit-scrollbar-thumb { background: #555; border-radius: 4px; }

.item { flex: 0 0 150px; background-color: #1f1f1f; border-radius: 5px; overflow: hidden; position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column; cursor: pointer; }
.item:hover { transform: scale(1.05); z-index: 10; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.item.desbloqueado { cursor: pointer; }
.item.desbloqueado:hover { transform: scale(1.02); }
.preview-container { width: 100%; height: 220px; background-color: #000; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.preview-container .media-wrapper { width: 100%; height: 100%; }
.item.bloqueado .media-wrapper { filter: blur(8px); transform: scale(1.1); }
.preview-container img, .preview-container video { width: 100%; height: 100%; object-fit: cover; }
.lock-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); display: none; justify-content: center; align-items: center; z-index: 5; }
.item.bloqueado .lock-overlay { display: flex; flex-direction: column; }
.lock-icon { width: 35px; height: 35px; opacity: 0.8; filter: drop-shadow(0px 0px 5px rgba(0,0,0,0.7)); }
.item.bloqueado:hover .lock-overlay { background: rgba(0, 0, 0, 0.6); }
.buy-area { padding: 10px; background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0)); display: flex; justify-content: space-between; align-items: center; position: absolute; bottom: 0; width: 100%; box-sizing: border-box; opacity: 0; transition: opacity 0.3s ease; z-index: 6; pointer-events: none; }
.item.bloqueado:hover .buy-area { opacity: 1; }
.item.desbloqueado .buy-area { display: none; }
.buy-area * { pointer-events: all; }
.item-price { font-weight: 600; color: var(--light-color); text-shadow: 1px 1px 2px rgba(0,0,0,0.7); }
.comprar-item-btn { padding: 6px 12px; font-size: 0.8rem; font-weight: 600; background-color: var(--primary-color); color: white; border: none; border-radius: 4px; cursor: pointer; transition: background-color 0.2s ease; }
.comprar-item-btn:hover { background-color: #e84a9a; }
.main-footer { text-align: center; padding: 40px 20px; margin-top: 50px; border-top: 1px solid var(--gray-color); color: #8c8c8c; }
.main-footer p { margin: 5px 0; font-size: 0.9rem; }

.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.85); align-items: center; justify-content: center; }
.modal-content { background-color: #212121; color: #f1f1f1; position: relative; margin: auto; padding: 25px 30px; border: 1px solid #444; width: 90%; max-width: 400px; border-radius: 10px; text-align: center; box-shadow: 0 5px 25px rgba(0,0,0,0.5); animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.modal-content h2 { color: var(--primary-color); margin-top: 0; margin-bottom: 20px; font-weight: 600; }
.modal-content p { margin-bottom: 15px; font-size: 0.95rem; line-height: 1.5; }
#qr-code-container { background-color: #fff; padding: 15px; border-radius: 8px; margin: 20px auto; display: inline-block; }
#qr-code-container img { display: block; width: 100%; max-width: 220px; }
#pix-copia-cola { width: 100%; padding: 12px; margin-top: 5px; font-size: 0.85rem; border: 1px solid #555; background-color: #333; color: #fff; border-radius: 4px; box-sizing: border-box; text-align: center; word-break: break-all; }
#copiar-pix-btn { width: 100%; padding: 14px; margin-top: 15px; background-color: var(--primary-color); color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 1rem; font-weight: 600; transition: background-color 0.2s ease, transform 0.1s ease; }
#copiar-pix-btn:hover { background-color: #e84a9a; }
#copiar-pix-btn:active { transform: scale(0.98); }
.close-btn { color: #aaa; position: absolute; top: 10px; right: 15px; font-size: 28px; font-weight: bold; cursor: pointer; transition: color 0.2s ease; }
.close-btn:hover { color: #fff; }
.success-icon { width: 80px; height: 80px; border-radius: 50%; display: block; stroke-width: 2; stroke: #4bb71b; stroke-miterlimit: 10; margin: 20px auto; box-shadow: inset 0px 0px 0px #4bb71b; animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both; }
.success-icon-circle { stroke-dasharray: 166; stroke-dashoffset: 166; stroke-width: 2; stroke-miterlimit: 10; stroke: #4bb71b; fill: none; animation: stroke .6s cubic-bezier(0.65, 0, 0.45, 1) forwards; }
.success-icon-check { transform-origin: 50% 50%; stroke-dasharray: 48; stroke-dashoffset: 48; animation: stroke .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards; }
@keyframes stroke { 100% { stroke-dashoffset: 0; } }
@keyframes scale { 0%, 100% { transform: none; } 50% { transform: scale3d(1.1, 1.1, 1); } }
@keyframes fill { 100% { box-shadow: inset 0px 0px 0px 40px #4bb71b; } }

.fullscreen-modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95); justify-content: center; align-items: center; animation: fadeIn 0.3s; }
.fullscreen-content { position: relative; max-width: 90%; max-height: 90%; display: flex; justify-content: center; align-items: center; }
.fullscreen-content img, .fullscreen-content video { max-width: 100%; max-height: 95vh; object-fit: contain; }
.fullscreen-close-btn { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; transition: color 0.3s ease; }
.fullscreen-close-btn:hover { color: #bbb; }

.unlock-text { margin-top: 10px; color: white; font-weight: 600; font-size: 0.9rem; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.item.bloqueado:hover .unlock-text { opacity: 1; }

@media (min-width: 600px) {
    .header h1 { font-size: 2.2rem; }
    .carrossel-header h2 { font-size: 1.4rem; }
    .item { flex: 0 0 220px; }
    .preview-container { height: 300px; }
    .lock-icon { width: 45px; height: 45px; }
}
@media (min-width: 1024px) {
    .main-container { padding: 30px 5%; }
    .header h1 { font-size: 2.5rem; }
    .carrossel-header h2 { font-size: 1.6rem; }
    .item { flex: 0 0 280px; }
    .preview-container { height: 160px; }
    .lock-icon { width: 50px; height: 50px; }
}