/* ===== Formulário de cadastro ===== */
.rv10-form-wrap { max-width: 480px; margin: 0 auto; }
.rv10-publish-menu { margin-bottom: 20px; text-align: center; }
.rv10-dashboard { max-width: 620px; margin: 0 auto; }
.rv10-dashboard h2 { margin-bottom: 6px; }
.rv10-dashboard > p { color: #666; }
.rv10-panel-form { display: flex; gap: 8px; align-items: end; margin: 18px 0; flex-wrap: wrap; }
.rv10-panel-form label { width: 100%; font-weight: 600; font-size: 14px; }
.rv10-panel-form input { flex: 1; min-width: 220px; padding: 11px 12px; border: 1px solid #d7d7d7; border-radius: 8px; }
.rv10-dashboard-list { display: grid; gap: 10px; }
.rv10-dashboard-item { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid #e1e1e1; border-radius: 10px; background: #fff; }
.rv10-dashboard-item span { color: #1a7f37; font-size: 13px; }
.rv10-dashboard-item small { color: #777; }
.rv10-publish-menu h2 { margin: 0 0 6px; font-size: 26px; }
.rv10-publish-menu p { margin: 0; color: #666; font-size: 14px; }

/* Botão que abre o formulário em popup */
.rv10-publish-trigger {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: opacity .2s;
}
.rv10-publish-trigger:hover { opacity: .75; }
.rv10-publish-trigger:focus-visible { outline: 2px solid #1a1a1a; outline-offset: 4px; border-radius: 6px; }

/* Popup (modal) com o formulário */
.rv10-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.rv10-modal-overlay[hidden] { display: none; }

.rv10-modal {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}
.rv10-modal-title { margin: 0 0 18px; font-size: 22px; padding-right: 32px; }
.rv10-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    font-size: 16px;
    line-height: 1;
    color: #333;
    cursor: pointer;
}
.rv10-modal-close:hover { background: #e4e4e4; }

@media (max-width: 520px) {
    .rv10-modal { padding: 22px 16px; max-height: 100vh; border-radius: 12px; }
}
.rv10-step:not(.rv10-step-active) { display: none; }
.rv10-step h3 { margin: 0 0 14px; font-size: 19px; }
.rv10-copy-pix { margin: 0 0 14px; padding: 9px 14px; border: 0; border-radius: 999px; background: #1a1a1a; color: #fff; cursor: pointer; }
.rv10-copy-pix:hover { opacity: .85; }
.rv10-alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.rv10-alert-sucesso { background: #e6f7ec; color: #1a7f37; border: 1px solid #b7e4c7; }
.rv10-alert-erro { background: #fdecea; color: #b3261e; border: 1px solid #f5c2c0; }

.rv10-field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.rv10-field label { font-weight: 600; font-size: 14px; }
.rv10-field input[type="text"],
.rv10-field textarea {
    padding: 10px 12px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.rv10-field input[type="file"] { padding: 8px 0; }
.rv10-honeypot { position: absolute; left: -9999px; }

.rv10-btn {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 15px;
    cursor: pointer;
    transition: opacity .2s;
}
.rv10-btn:hover { opacity: .85; }
.rv10-btn:disabled { opacity: .5; cursor: not-allowed; }

.rv10-payment-box {
    margin: 0 0 20px;
    padding: 16px;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    background: #fafafa;
}
.rv10-payment-box h3 { margin: 0 0 12px; font-size: 18px; }
.rv10-plan-option { display: block; margin: 9px 0; padding: 10px; border: 1px solid #ddd; border-radius: 8px; background: #fff; cursor: pointer; }
.rv10-plan-option input { margin-right: 6px; }
.rv10-pix-instruction { margin: 16px 0 10px; padding: 12px; border-radius: 8px; background: #fff6dd; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.rv10-pix-instruction code { font-size: 12px; }
.rv10-plan-confirm { display: block; font-size: 13px; font-weight: 600; }
.rv10-video-status { font-size: 13px; margin-top: 4px; display: block; }
.rv10-video-status.rv10-ok { color: #1a7f37; }
.rv10-video-status.rv10-erro { color: #b3261e; }
#rv10_preview { margin-top: 10px; max-width: 220px; border-radius: 8px; }

/* Repetidor de links de afiliados no formulário */
.rv10-hint { font-size: 12px; color: #888; margin: 0 0 8px; }
.rv10-afiliado-row { display: flex; gap: 8px; margin-bottom: 8px; }
.rv10-afiliado-row input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    font-size: 13px;
    box-sizing: border-box;
}
.rv10-afiliado-remover {
    background: #f5f5f5;
    border: none;
    border-radius: 6px;
    width: 34px;
    flex-shrink: 0;
    cursor: pointer;
    font-size: 16px;
    color: #b3261e;
}
.rv10-btn-secundario {
    background: #f0f0f0;
    color: #111;
    border: none;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
}
.rv10-btn-secundario:hover { background: #e4e4e4; }

/* ===== Galeria (estilo vídeos curtos, formato retrato) ===== */
.rv10-galeria {
    display: grid;
    grid-template-columns: repeat(var(--rv10-cols, 4), 1fr);
    gap: 20px;
}
@media (max-width: 900px) { .rv10-galeria { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .rv10-galeria { grid-template-columns: 1fr; } }

.rv10-card {
    border-radius: 14px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
}
.rv10-video-box { position: relative; width: 100%; aspect-ratio: 9 / 16; background: #000; cursor: pointer; }
.rv10-video-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv10-play-btn {
    position: absolute; inset: 0; margin: auto;
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(255,255,255,.85); border: none;
    font-size: 20px; cursor: pointer;
}
.rv10-play-btn.rv10-hidden { display: none; }

/* Barra de links de afiliados no rodapé do vídeo */
.rv10-cta-bar {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    display: flex;
    gap: 6px;
    padding: 22px 10px 10px;
    overflow-x: auto;
    background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0));
    scrollbar-width: none;
}
.rv10-cta-bar::-webkit-scrollbar { display: none; }
.rv10-cta-pill {
    flex-shrink: 0;
    background: #fff;
    color: #111;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0,0,0,.3);
    transition: background .2s;
}
.rv10-cta-pill:hover { background: #ffd54f; color: #111; }

.rv10-card-body { background: #fff; padding: 14px; }
.rv10-card-title { margin: 0 0 4px; font-size: 16px; }
.rv10-card-autor { margin: 0 0 10px; font-size: 13px; color: #777; }
.rv10-disclosure { font-size: 11px; color: #999; font-style: italic; }
.rv10-disclosure-fora { margin: 6px 4px 0; font-size: 11px; color: #999; font-style: italic; text-align: center; }
.rv10-details { font-size: 13px; margin-bottom: 6px; }
.rv10-details summary { cursor: pointer; font-weight: 600; }
.rv10-details p { margin: 6px 0 0; white-space: pre-line; }

.rv10-empty { text-align: center; color: #777; grid-column: 1 / -1; }
.rv10-paginacao { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.rv10-paginacao .page-numbers { padding: 6px 12px; border-radius: 6px; border: 1px solid #ddd; text-decoration: none; color: #333; }
.rv10-paginacao .page-numbers.current { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }

/* ===== Visualizador em tela cheia (Stories/Reels) ===== */
.rv10-stories {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000;
}
.rv10-stories[hidden] { display: none; }

.rv10-stories-track {
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}
.rv10-stories-track::-webkit-scrollbar { display: none; }

.rv10-stories-slide {
    height: 100%;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
.rv10-stories-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.rv10-stories-close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.rv10-stories-progress {
    position: absolute;
    z-index: 4;
    left: 4%;
    right: 4%;
    bottom: 68px;
    width: 92%;
    height: 28px;
    margin: 0;
    accent-color: #fff;
    cursor: pointer;
    touch-action: none;
}

.rv10-stories-mute {
    position: absolute;
    z-index: 3;
    top: 16px;
    left: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.rv10-stories-caption {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 54px;
    max-height: 55%;
    overflow-y: auto;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,0) 85%);
    color: #fff;
}
.rv10-stories-caption .rv10-card-title { color: #fff; margin: 0 0 4px; font-size: 18px; }
.rv10-stories-caption .rv10-card-autor { color: #ddd; margin: 0 0 10px; font-size: 13px; }
.rv10-stories-caption .rv10-disclosure {
    color: #ccc;
    position: relative;
    z-index: 5;
    margin-bottom: 22px;
    padding-bottom: 4px;
}
.rv10-stories-caption .rv10-details summary { color: #fff; }
.rv10-stories-caption .rv10-details p { color: #eee; }
.rv10-stories-caption .rv10-cta-bar {
    position: static;
    pointer-events: auto;
    background: none;
    padding: 0 0 14px;
}

.rv10-stories-hint {
    position: absolute;
    bottom: 70%;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
    opacity: .95;
    animation: rv10-bounce 1.6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes rv10-bounce {
    0%, 100% { transform: translateY(0); opacity: .95; }
    50% { transform: translateY(-8px); opacity: .55; }
}
