/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Páginas */
.page {
    display: none;
    min-height: 100vh;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.page.active {
    display: block;
}

.page.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Landing Page */
#landing-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 40px;
}

.logo i {
    font-size: 36px;
    color: #ffd700;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.highlight {
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

.benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.benefit-item i {
    color: #ffd700;
    font-size: 1.2rem;
    width: 24px;
}

.cta-button {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    border: none;
    padding: 18px 36px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.trust-badges {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.badge i {
    color: #ffd700;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.money-animation {
    position: relative;
    width: 200px;
    height: 200px;
}

.coin {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: #333;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

.coin:nth-child(1) {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.coin:nth-child(2) {
    top: 80px;
    right: 20px;
    animation-delay: 1s;
}

.coin:nth-child(3) {
    bottom: 20px;
    left: 80px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* App Page */
#app-page {
    background: #f8fafc;
    min-height: 100vh;
}

.app-header {
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-small {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.logo-small i {
    color: #ffd700;
}

.balance-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    background: linear-gradient(45deg, #4ade80, #22c55e);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
    font-size: 0.9rem;
}

.balance {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.logout-btn {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.app-main {
    padding: 40px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.welcome-section p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.user-welcome {
    margin-top: 16px;
    padding: 12px 20px;
    background: linear-gradient(45deg, #4ade80, #22c55e);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
}

.user-welcome p {
    margin: 0;
    color: white;
}

/* Progress Section */
.progress-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 6px;
    transition: width 0.5s ease;
    width: 10%;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #333;
}

.progress-percentage {
    color: #667eea;
    font-size: 1.1rem;
}

/* Video Section */
.video-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: 15px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-container iframe,
.video-container video {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
    object-fit: cover;
}

.video-container::before {
    content: "🎬";
    font-size: 3rem;
    color: #cbd5e1;
    position: absolute;
    z-index: 1;
}

.video-container.has-video::before {
    display: none;
}

/* Rating Section */
.rating-section {
    margin-top: 30px;
    text-align: center;
}

.rating-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.stars-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.stars-container.disabled {
    opacity: 0.7;
    filter: grayscale(0.3);
}

.stars-container.enabled {
    opacity: 1;
    filter: none;
}

.star {
    cursor: pointer !important;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
}

.star:hover {
    transform: scale(1.2);
    background: rgba(255, 215, 0, 0.1);
}

.star i {
    font-size: 2rem;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.star.active i,
.star:hover i {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.star.rated i {
    color: #ffd700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rating-text {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
    min-height: 24px;
}

.comment-section {
    margin: 20px 0;
    text-align: left;
}

.comment-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 1rem;
}

.comment-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
    background: white;
}

.comment-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.comment-input::placeholder {
    color: #9ca3af;
}

.comment-counter {
    text-align: right;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 4px;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.nav-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    min-width: 120px;
    justify-content: center;
}

.prev-btn {
    background: linear-gradient(45deg, #6b7280, #9ca3af);
    color: white;
}

.prev-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 114, 128, 0.3);
}

.prev-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.next-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.next-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    background: linear-gradient(45deg, #9ca3af, #6b7280) !important;
}

.trailers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.trailer-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 600px;
    margin: 0 auto;
}

.trailer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.trailer-info {
    padding: 30px;
}

.trailer-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.trailer-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.trailer-status {
    margin-top: 20px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-badge.rated {
    background: linear-gradient(45deg, #4ade80, #22c55e);
    color: white;
}

.status-badge.pending {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    color: white;
}

.trailer-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.like-btn {
    background: linear-gradient(45deg, #4ade80, #22c55e);
    color: white;
}

.like-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 222, 128, 0.3);
}

.dislike-btn {
    background: linear-gradient(45deg, #f87171, #ef4444);
    color: white;
}

.dislike-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(248, 113, 113, 0.3);
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Dashboard */
.dashboard {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.withdrawal-btn-small {
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.withdrawal-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.withdrawal-btn-small:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.dashboard h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.stats-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.stats-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #4ade80, #22c55e);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

.notification i {
    font-size: 1.2rem;
}



/* Responsividade */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .trust-badges {
        justify-content: center;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .balance-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .user-info {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .logout-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .trailers-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .stats-btn {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .progress-section {
        padding: 20px;
    }
    
    .progress-text {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .video-section {
        padding: 20px;
    }
    
    .video-container {
        aspect-ratio: 16/9;
    }
    
    .rating-section {
        margin-top: 20px;
    }
    
    .rating-title {
        font-size: 1.1rem;
    }
    
    .star i {
        font-size: 1.5rem;
    }
    
    .comment-section {
        margin: 15px 0;
    }
    
    .comment-input {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-btn {
        min-width: 100%;
        padding: 14px 20px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 16px 28px;
        font-size: 1.1rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .trailer-actions {
        flex-direction: column;
    }
}

/* Animações */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.6s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

/* Página de Resgate */
.withdrawal-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.withdrawal-header {
    text-align: center;
    margin-bottom: 40px;
}

.withdrawal-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.withdrawal-header p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.withdrawal-info {
    margin-bottom: 40px;
}

.info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    font-size: 2rem;
    color: #ffd700;
}

.info-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    opacity: 0.9;
}

.info-content span {
    font-size: 1.5rem;
    font-weight: 700;
}

.info-item.total {
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid #ffd700;
}

.info-item .fee {
    color: #ff6b6b;
}

.withdrawal-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.withdrawal-summary {
    background: #f8fafc;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    border: 2px solid #e5e7eb;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.summary-item.fee {
    color: #ef4444;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin: 10px 0;
    padding: 15px 0;
}

.summary-item.total {
    color: #059669;
    font-size: 1.3rem;
    font-weight: 700;
    border-top: 2px solid #10b981;
    padding-top: 15px;
    margin-top: 15px;
}

.withdrawal-btn {
    width: 100%;
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.withdrawal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}

.withdrawal-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsividade para página de resgate */
@media (max-width: 768px) {
    .withdrawal-section {
        padding: 10px;
    }
    
    .withdrawal-header h2 {
        font-size: 2rem;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .withdrawal-form {
        padding: 20px;
    }
    
    .summary-item {
        font-size: 1rem;
    }
    
    .summary-item.total {
        font-size: 1.2rem;
    }
} 