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

:root {
    --primary-color: #FF0000;
    --secondary-color: #282828;
    --bg-color: #0F0F0F;
    --card-bg: #212121;
    --text-primary: #FFFFFF;
    --text-secondary: #AAAAAA;
    --border-color: #3F3F3F;
    --success-color: #00D000;
    --warning-color: #FFA500;
    --danger-color: #FF0000;
    --shadow: 0 2px 8px rgba(0,0,0,0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.splash-screen.active {
    display: flex;
}

.splash-content {
    text-align: center;
    animation: fadeInUp 0.6s ease;
}

.splash-logo {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

.splash-logo i {
    font-size: 60px;
    color: white;
}

.splash-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.splash-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.splash-loader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

/* No Internet Screen */
.no-internet-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.no-internet-screen.active {
    display: flex;
}

.no-internet-content {
    text-align: center;
    padding: 20px;
}

.no-internet-content i {
    font-size: 80px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.no-internet-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.no-internet-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Login Screen */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

.login-screen.active {
    display: flex;
}

.login-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 400px;
    width: 100%;
}

.login-logo {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.2);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.login-logo i {
    font-size: 70px;
    color: white;
}

.login-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.btn-google-login {
    background: white;
    color: #333;
    border: none;
    padding: 16px 32px;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-google-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.btn-google-login i {
    font-size: 20px;
}

.login-footer {
    margin-top: 40px;
    opacity: 0.8;
}

.login-footer a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

/* App Container */
.app-container {
    display: none;
    min-height: 100vh;
    padding-bottom: 70px;
}

.app-container.active {
    display: block;
}

/* Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    height: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    font-size: 28px;
    color: var(--primary-color);
}

.header-title {
    font-size: 18px;
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.points-badge {
    background: var(--primary-color);
    padding: 6px 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.points-badge i {
    font-size: 14px;
}

.btn-notifications {
    position: relative;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
    padding: 6px;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Main Content */
.main-content {
    margin-top: 56px;
    padding: 16px;
    min-height: calc(100vh - 126px);
}

/* Pages */
.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-header h3 {
    font-size: 24px;
    font-weight: 700;
}

.btn-filter {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-filter:hover {
    background: var(--border-color);
}

/* Ad Banner */
.ad-banner {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-banner.hidden {
    display: none;
}

/* Premium Banner */
.premium-banner {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    color: #000;
}

.premium-banner.hidden {
    display: none;
}

.premium-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.premium-content i {
    font-size: 32px;
}

.premium-content div {
    flex: 1;
}

.premium-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.premium-content p {
    font-size: 14px;
    opacity: 0.8;
}

.btn-upgrade {
    background: #000;
    color: #FFD700;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* Video Feed */
.video-feed {
    display: grid;
    gap: 16px;
}

.video-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: var(--secondary-color);
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.video-info {
    padding: 12px;
}

.video-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.video-reward {
    color: var(--primary-color);
    font-weight: 600;
}

.video-reward i {
    color: #FFD700;
}

/* Earn Page */
.earn-stats {
    background: var(--primary-color);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
}

.earn-instructions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.instruction-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.instruction-card i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.instruction-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.instruction-card p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.earn-videos h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.earn-video-list {
    display: grid;
    gap: 12px;
}

.earn-video-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.earn-video-item:hover {
    background: var(--border-color);
}

.earn-video-thumb {
    width: 120px;
    height: 68px;
    border-radius: 8px;
    background: var(--secondary-color);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.earn-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.earn-video-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.earn-video-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.earn-video-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.earn-video-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.earn-video-points {
    background: var(--primary-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Add Video Page */
.add-video-form {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.balance-info {
    background: var(--secondary-color);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.balance-info strong {
    color: var(--primary-color);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #CC0000;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-block {
    width: 100%;
}

.my-campaigns h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.campaign-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.campaign-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.campaign-title {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    margin-right: 12px;
}

.campaign-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.campaign-status.active {
    background: rgba(0, 208, 0, 0.2);
    color: var(--success-color);
}

.campaign-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.campaign-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Wallet Page */
.wallet-balance {
    margin-bottom: 24px;
}

.balance-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #CC0000 100%);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
}

.balance-card p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.balance-card h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 4px;
}

.balance-card h2 i {
    color: #FFD700;
}

.balance-subtitle {
    font-size: 16px;
    opacity: 0.8;
}

.withdrawal-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.withdrawal-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.transaction-history h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.transaction-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.transaction-icon.credit {
    background: rgba(0, 208, 0, 0.2);
    color: var(--success-color);
}

.transaction-icon.debit {
    background: rgba(255, 0, 0, 0.2);
    color: var(--danger-color);
}

.transaction-details {
    flex: 1;
    margin: 0 12px;
}

.transaction-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.transaction-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.transaction-amount {
    font-size: 16px;
    font-weight: 700;
}

.transaction-amount.credit {
    color: var(--success-color);
}

.transaction-amount.debit {
    color: var(--danger-color);
}

/* Profile Page */
.profile-header {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 4px solid var(--primary-color);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
}

.profile-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px 12px;
    text-align: center;
}

.stat-item h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.stat-item p {
    font-size: 12px;
    color: var(--text-secondary);
}

.profile-menu {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item:hover {
    background: var(--secondary-color);
}

.profile-menu-item i:first-child {
    font-size: 20px;
    width: 24px;
}

.profile-menu-item span {
    flex: 1;
    font-size: 14px;
}

.profile-menu-item i:last-child {
    font-size: 14px;
    color: var(--text-secondary);
}

.profile-menu-item.text-danger {
    color: var(--danger-color);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--secondary-color);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
    gap: 4px;
}

.nav-item i {
    font-size: 24px;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item:hover {
    color: var(--text-primary);
}

/* Watch Modal */
.watch-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    display: none;
}

.watch-modal.active {
    display: block;
}

.watch-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.watch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
}

.btn-close-watch {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

.watch-timer {
    flex: 1;
    display: flex;
    justify-content: center;
}

.timer-circle {
    position: relative;
    width: 60px;
    height: 60px;
}

.timer-svg {
    transform: rotate(-90deg);
}

.timer-circle-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 4;
}

.timer-circle-progress {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 163.36;
    stroke-dashoffset: 163.36;
    transition: stroke-dashoffset 1s linear;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-text span {
    font-size: 18px;
    font-weight: 700;
}

.timer-text small {
    font-size: 10px;
    color: var(--text-secondary);
}

.watch-points {
    background: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.watch-points i {
    color: #FFD700;
}

.watch-video-container {
    flex: 1;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#youtubePlayer {
    width: 100%;
    height: 100%;
}

.watch-progress {
    padding: 16px;
    background: var(--secondary-color);
}

.progress {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    transition: width 1s linear;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.watch-instruction {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.watch-instruction i {
    color: var(--primary-color);
    margin-right: 6px;
}

/* Interstitial Ad Modal */
.interstitial-ad-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

.interstitial-ad-modal.active {
    display: flex;
}

.interstitial-ad-content {
    width: 100%;
    max-width: 500px;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
}

.ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
}

.ad-header span {
    font-size: 14px;
    color: var(--text-secondary);
}

.btn-close-ad {
    background: var(--border-color);
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-close-ad:not(:disabled) {
    background: var(--primary-color);
    color: white;
    cursor: pointer;
}

.ad-container {
    min-height: 300px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
}

.loading-spinner i {
    font-size: 32px;
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .earn-instructions {
        grid-template-columns: 1fr;
    }
    
    .instruction-card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 16px;
    }
    
    .instruction-card i {
        margin-bottom: 0;
    }
}

/* Dark Mode Toggle (for future implementation) */
body.light-mode {
    --bg-color: #FFFFFF;
    --card-bg: #F9F9F9;
    --secondary-color: #F1F1F1;
    --text-primary: #0F0F0F;
    --text-secondary: #606060;
    --border-color: #E5E5E5;
}
