* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow: hidden;
    overflow-x: hidden;
    height: 100vh;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    touch-action: pan-y;
}

/* Barra de Progresso dos Stories */
.stories-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    padding: 8px 12px;
    background: rgba(10, 10, 10, 0.3);
    backdrop-filter: blur(10px);
}

.progress-bar {
    display: flex;
    gap: 4px;
    height: 3px;
}

.progress-segment {
    flex: 1;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #ffffff;
    border-radius: 2px;
}

.progress-segment.completed .progress-fill {
    width: 100% !important;
}

/* Header dos Stories */
.stories-header {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1500;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    pointer-events: auto;
}

.binds-logo {
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
}

.account-logo {
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
}

.account-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.header-right {
    pointer-events: auto;
}

/* Light Beam Fixo */
.fixed-light-beam {
    position: fixed;
    top: 85px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, transparent, #00d4ff, transparent);
    box-shadow: 0 0 20px #00d4ff, 0 0 40px #00d4ff;
    z-index: 1400;
    pointer-events: none;
    transform-origin: center;
}

.control-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.control-btn:active {
    transform: scale(0.95);
}

.control-icon {
    width: 18px;
    height: 18px;
    color: #ffffff;
}

.control-icon.hidden {
    display: none;
}

/* Áreas de Navegação */
.nav-area {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 1000;
    cursor: pointer;
}

.nav-left {
    left: 0;
}

.nav-right {
    right: 0;
}

/* Container Principal */
.container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 70px;
    overflow: hidden;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Cenas (Stories) */
.scene {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    visibility: hidden;
    padding: 120px 16px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    max-height: 100vh;
}

.scene.active {
    opacity: 1;
    visibility: visible;
}

/* Cena 1: Introdução */
.intro-scene {
    background: radial-gradient(circle at center, #1a1a2e 0%, #0a0a0a 100%);
    justify-content: flex-start;
    padding-top: 120px;
}

.intro-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #00d4ff 0%, #ff00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    margin-top: 20px;
    opacity: 0;
    line-height: 1.2;
    padding: 0 10px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.intro-label {
    display: inline-block;
    background: linear-gradient(135deg, #00d4ff 0%, #ff00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cena 2: Big Numbers */
.big-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00d4ff 0%, #ff00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin: 8px 0;
}

.big-number-label {
    font-size: 1.1rem;
    color: #ffffff;
    margin-top: 8px;
    opacity: 0.9;
    text-align: center;
}

.support-text {
    font-size: 0.95rem;
    color: #aaaaaa;
    margin-top: 16px;
    text-align: center;
    max-width: 90%;
    padding: 0 10px;
}

/* Cena 3: Canais */
.scene-channels {
    overflow: hidden !important;
    justify-content: flex-start;
    padding: 70px 16px 12px;
}

.channels-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin-top: 25px;
    padding: 0 8px;
    overflow: visible;
}

.channel-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 6px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.8);
    opacity: 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

.channel-card.favorite {
    background: rgba(0, 212, 255, 0.15);
    border: 2px solid #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    z-index: 2;
}

.scene-title {
    font-size: 1.1rem;
    margin-bottom: 1.4rem;
    text-align: center;
    width: 100%;
}

.channel-icon {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.channel-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.channel-stats {
    font-size: 0.65rem;
    color: #aaaaaa;
    line-height: 1.2;
}

.channel-highlight {
    color: #00d4ff;
    font-weight: 700;
}

.favorite-label {
    margin-bottom: 2px;
    font-size: 0.7rem;
}

@media (min-width: 768px) {
    .favorite-label {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
}

/* Cena 4: Timing e Ferramentas */
.timing-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 100%;
    padding: 0 8px;
}

.timing-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(50px);
    opacity: 0;
    width: 100%;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timing-icon {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.timing-label {
    font-size: 0.75rem;
    color: #aaaaaa;
    margin-bottom: 6px;
    line-height: 1.2;
}

.timing-value {
    font-size: 1rem;
    font-weight: 700;
    color: #00d4ff;
    line-height: 1.2;
    word-break: break-word;
}

/* Cena 5: NPS e Sentimento */
.nps-container {
    text-align: center;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.nps-gauge {
    width: 140px;
    height: 140px;
    margin: 0;
    position: relative;
    transform: scale(0);
}

.gauge-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 12px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.gauge-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 12px solid transparent;
    border-top-color: #00d4ff;
    border-right-color: #00d4ff;
    transform: rotate(-90deg);
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.6rem;
    font-weight: 900;
    color: #00d4ff;
}

.nps-label {
    font-size: 0.95rem;
    color: #00d4ff;
    margin: 0;
    font-weight: 600;
}

.sentiment-container {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin: 0;
    width: 100%;
    max-width: 100%;
    padding: 0 8px;
}

.sentiment-bubble {
    flex: 1;
    padding: 12px 8px;
    border-radius: 12px;
    text-align: center;
    transform: scale(0);
    min-width: 0;
}

.sentiment-bubble.positive {
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid #00ff00;
}

.sentiment-bubble.negative {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff0000;
}

.sentiment-bubble.neutral {
    background: rgba(128, 128, 128, 0.2);
    border: 2px solid #808080;
}

.sentiment-number {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
}

.sentiment-label {
    font-size: 0.75rem;
    opacity: 0.9;
    line-height: 1.2;
}

/* Cena 6: Features */
.scene-features {
    overflow: hidden !important;
    justify-content: center;
    padding: 80px 16px 16px;
}

.features-wrapper {
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.feature-intro {
    font-size: 0.9rem;
    color: #ffffff;
    text-align: center;
    max-width: 100%;
    margin: 0 auto 15px;
    padding: 0 8px;
    opacity: 0.9;
    line-height: 1.15;
    font-weight: 600;
}

.features-section {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 8px;
    overflow: visible;
    max-height: none;
}

.feature-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(255, 0, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    opacity: 0;
    backdrop-filter: blur(10px);
    width: 100%;
    min-height: 75px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.feature-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1px;
    line-height: 1.15;
}

.feature-subtitle {
    font-size: 0.6rem;
    color: #b8c0ff;
    line-height: 1.15;
    opacity: 0.9;
}

/* Cena 7: Encerramento */
.closing-scene {
    text-align: center;
    padding: 0 16px;
    width: 100%;
}

.closing-title {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff 0%, #ff00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1.3;
}

.closing-text {
    font-size: 1rem;
    color: #aaaaaa;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.4;
}

/* Partículas de Confete */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #00d4ff;
    position: absolute;
    opacity: 0;
}

/* Áudio de Fundo */
#backgroundMusic {
    display: none;
}

/* Start Overlay */
.start-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(26, 26, 46, 0.95), rgba(10, 10, 10, 0.95));
    z-index: 6000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.start-button {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0a0a0a;
    background: linear-gradient(135deg, #00d4ff 0%, #ff00ff 100%);
    border: none;
    border-radius: 12px;
    padding: 22px 28px;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.35), 0 10px 30px rgba(255, 0, 255, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.start-button:active {
    transform: scale(0.98);
}

@media (min-width: 768px) {
    .start-button {
        font-size: 2rem;
        padding: 28px 40px;
        border-radius: 16px;
    }
}

/* Fallback Overlay */
.fallback-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.95);
    z-index: 7000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fallback-card {
    max-width: 700px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    backdrop-filter: blur(8px);
}

.fallback-title {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff 0%, #ff00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.fallback-text {
    color: #cfd2ff;
    font-size: 1rem;
}

/* Media Queries - Desktop */
@media (min-width: 768px) {
    .stories-progress-container {
        display: none;
    }

    .control-btn {
        display: none;
    }

    .stories-header {
        top: 30px;
        padding: 0 40px;
    }

    .fixed-light-beam {
        top: 110px;
        height: 3px;
    }

    .binds-logo {
        max-width: 100px;
        max-height: 100px;
    }

    .account-logo {
        max-width: 100px;
        max-height: 100px;
    }

    .account-name {
        font-size: 16px;
    }

    .control-btn {
        width: 44px;
        height: 44px;
    }

    .control-icon {
        width: 22px;
        height: 22px;
    }

    .container {
        padding-top: 90px;
    }

    .scene {
        padding: 120px 40px 40px;
    }

    .intro-scene {
        padding-top: 150px;
    }

    .intro-title {
        font-size: 3.5rem;
        margin: 0;
        margin-top: 30px;
    }

    .big-number {
        font-size: 6rem;
        margin: 20px 0;
    }

    .big-number-label {
        font-size: 2rem;
        margin-top: 20px;
    }

    .support-text {
        font-size: 1.5rem;
        margin-top: 30px;
    }

    .channels-container {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 12px;
        max-width: 1200px;
        justify-content: center;
        padding: 0;
        margin-top: 15px;
    }

    .channel-card {
        flex: 1;
        min-width: 250px;
        max-width: 350px;
        padding: 16px;
    }

    .channel-icon {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }

    .channel-name {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .channel-stats {
        font-size: 0.8rem;
    }

    .timing-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 900px;
        padding: 0;
    }

    .timing-card {
        padding: 20px;
        min-height: 120px;
    }

    .timing-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .timing-label {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .timing-value {
        font-size: 1.8rem;
    }

    .nps-container {
        max-width: 800px;
    }

    .nps-gauge {
        width: 200px;
        height: 200px;
        margin: 0;
    }

    .gauge-circle {
        border-width: 16px;
    }

    .gauge-fill {
        border-width: 16px;
    }

    .gauge-value {
        font-size: 2.5rem;
    }

    .nps-label {
        font-size: 1.2rem;
        margin: 0;
    }

    .nps-container {
        gap: 20px;
    }

    .sentiment-container {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
        margin: 0;
        padding: 0 20px;
    }

    .sentiment-bubble {
        flex: 1;
        min-width: 120px;
        padding: 20px 16px;
    }

    .sentiment-number {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }

    .sentiment-label {
        font-size: 0.9rem;
    }

    .feature-intro {
        font-size: 1.8rem;
        margin-bottom: 24px;
    }

    .features-section {
        max-width: 1100px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        max-height: none;
        overflow-y: visible;
        padding: 0;
    }

    .feature-card {
        padding: 20px;
        min-height: 100px;
    }

    .feature-title {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .feature-subtitle {
        font-size: 0.95rem;
    }

    .closing-title {
        font-size: 3rem;
        margin-bottom: 30px;
    }

    .closing-text {
        font-size: 1.8rem;
    }
}

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

    .features-section {
        grid-template-columns: repeat(3, 1fr);
    }
}
