:root {
    --esz-blue: #1f5fbf;
    --esz-blue-600: #1a50a0;
    --esz-blue-50: #e8f0ff;
    --esz-text: #0f172a;
    --esz-muted: #64748b;
    --esz-bg: #f8fafc;
    --esz-card: #ffffff;
    --esz-success: #10b981;
    --esz-warning: #f59e0b;
    --esz-error: #ef4444;
    --esz-radius: 14px;
    --esz-shadow: 0 10px 25px rgba(2,12,27,0.06);
    --esz-border: #e2e8f0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--esz-bg);
    color: var(--esz-text);
    line-height: 1.6;
}

/* Container & Layout */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--esz-text);
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--esz-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background-color: var(--esz-blue-600);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--esz-card);
    color: var(--esz-text);
    border: 2px solid var(--esz-border);
}

.btn-secondary:hover {
    background-color: var(--esz-blue-50);
    border-color: var(--esz-blue);
}

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

.btn-success:hover {
    background-color: #059669;
}

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

.btn-warning:hover {
    background-color: #d97706;
}

.btn-danger {
    background-color: var(--esz-error);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-info {
    background-color: #06b6d4;
    color: white;
}

.btn-info:hover {
    background-color: #0891b2;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--esz-text);
}

input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--esz-border);
    border-radius: var(--esz-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: var(--esz-card);
}

.form { max-width: 420px; }
.auth-form, .register-form { max-width: 720px; margin: 0 auto; }
.auth-card .auth-form { max-width: 420px; margin: 0; }

.auth-card, .register-card {
    border: 1px solid var(--esz-border);
}

.auth-card .form-group, .register-card .form-group {
    margin-bottom: 1rem;
}

.auth-card .btn-full, .register-card .btn-full {
    margin-top: 0.5rem;
}

.auth-card .auth-footer, .register-card .auth-footer {
    text-align: left;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--esz-blue);
    box-shadow: 0 0 0 3px rgba(31, 95, 191, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

small {
    color: var(--esz-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--esz-radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: #f0fdf4;
    border-left-color: var(--esz-success);
    color: #166534;
}

.alert-error {
    background-color: #fef2f2;
    border-left-color: var(--esz-error);
    color: #991b1b;
}

.alert-warning {
    background-color: #fffbeb;
    border-left-color: var(--esz-warning);
    color: #92400e;
}

.alert-info {
    background-color: var(--esz-blue-50);
    border-left-color: var(--esz-blue);
    color: var(--esz-blue-600);
}

/* Cards */
.card {
    background-color: var(--esz-card);
    border-radius: var(--esz-radius);
    box-shadow: var(--esz-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Homepage Styles */
.hero {
    background: linear-gradient(135deg, var(--esz-blue) 0%, var(--esz-blue-600) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    border-radius: var(--esz-radius);
    margin: 2rem 0;
}

.hero-content {
    max-width: 100%;
    margin: 0;
}

.hero-content h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.packages-preview {
    padding: 3rem 0;
    text-align: left;
}

.packages-preview h2 {
    text-align: left;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.package-card {
    background-color: var(--esz-card);
    border-radius: var(--esz-radius);
    box-shadow: var(--esz-shadow);
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(2,12,27,0.1);
}

.package-card.selected {
    border-color: var(--esz-blue);
    box-shadow: 0 0 0 3px rgba(31, 95, 191, 0.1);
}

.package-header h3 {
    color: var(--esz-text);
    margin-bottom: 1rem;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--esz-blue);
    margin-bottom: 1.5rem;
}

.free-badge {
    background-color: var(--esz-success);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 1rem;
}

.features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
}

.features-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.features-list li::before {
    content: "✓";
    color: var(--esz-success);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.package-description {
    color: var(--esz-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.exclusive-features {
    background-color: var(--esz-blue-50);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.exclusive-features h4 {
    color: var(--esz-blue);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.exclusive-features ul {
    list-style: none;
    font-size: 0.85rem;
}

.exclusive-features li::before {
    content: "★";
    color: var(--esz-warning);
    margin-right: 0.5rem;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--esz-blue-50) 0%, var(--esz-bg) 100%);
}

.auth-card, .register-card {
    background-color: var(--esz-card);
    border-radius: var(--esz-radius);
    box-shadow: var(--esz-shadow);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.register-container {
    min-height: 100vh;
    padding: 2rem;
    background: linear-gradient(135deg, var(--esz-blue-50) 0%, var(--esz-bg) 100%);
}

.register-card {
    max-width: 800px;
    margin: 0 auto;
}

.auth-header {
    text-align: left;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: var(--esz-text);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--esz-muted);
    margin-bottom: 0;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--esz-border);
}

.auth-footer a {
    color: var(--esz-blue);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-brand {
    text-align: center;
    margin-top: 2rem;
    color: var(--esz-muted);
    font-size: 0.9rem;
    display: none !important;
}

.auth-brand a {
    color: var(--esz-blue);
    text-decoration: none;
}

/* Register Form */
.register-form {
    max-width: none;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--esz-border);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    color: var(--esz-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--esz-blue-50);
}

.package-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

/* Payment Information */
.payment-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--esz-blue-50);
    border-radius: var(--esz-radius);
}

.payment-methods {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.payment-method {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.payment-note {
    background-color: var(--esz-card);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--esz-blue);
    margin-top: 1rem;
}

/* Dashboard */
.dashboard-container {
    min-height: 100vh;
    background-color: var(--esz-bg);
}

.dashboard-header {
    background-color: var(--esz-card);
    padding: 2rem;
    box-shadow: var(--esz-shadow);
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-content h1 {
    color: var(--esz-text);
    margin-bottom: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.package-badge {
    background-color: var(--esz-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.dashboard-nav {
    background-color: var(--esz-card);
    box-shadow: var(--esz-shadow);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.nav-tabs {
    display: flex;
    padding: 0 2rem;
}

.nav-tab {
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--esz-muted);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-tab:hover {
    color: var(--esz-blue);
    background-color: var(--esz-blue-50);
}

.nav-tab.active {
    color: var(--esz-blue);
    border-bottom-color: var(--esz-blue);
    background-color: var(--esz-blue-50);
}

.dashboard-main {
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.dashboard-footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--esz-card);
    color: var(--esz-muted);
}

.dashboard-footer a {
    color: var(--esz-blue);
    text-decoration: none;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background-color: var(--esz-card);
    border-radius: var(--esz-radius);
    box-shadow: var(--esz-shadow);
    padding: 2rem;
    text-align: center;
}

.stat-card h3 {
    color: var(--esz-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--esz-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--esz-muted);
    font-size: 0.85rem;
}

.stat-actions {
    margin-top: 0.5rem;
}

.stat-actions form {
    margin: 0;
}

.stat-actions .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.text-warning {
    color: var(--esz-warning) !important;
}

/* Dashboard Overview */
.dashboard-overview {
    display: grid;
    gap: 2rem;
}

.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.package-info, .quick-actions {
    background-color: var(--esz-card);
    border-radius: var(--esz-radius);
    box-shadow: var(--esz-shadow);
    padding: 2rem;
}

.package-details p {
    margin-bottom: 0.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Video Tasks */
.progress-summary {
    background-color: var(--esz-card);
    border-radius: var(--esz-radius);
    box-shadow: var(--esz-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.video-tasks {
    display: grid;
    gap: 2rem;
}

.video-task-card {
    background-color: var(--esz-card);
    border-radius: var(--esz-radius);
    box-shadow: var(--esz-shadow);
    padding: 2rem;
}

.video-player-container {
    margin-top: 2rem;
}

.video-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

/* Ethical Video Player Styles */
.youtube-player {
    width: 100%;
    height: 400px;
    border-radius: var(--esz-radius);
    overflow: hidden;
    background-color: #000;
    display: block;
    margin: 0 auto;
    position: relative;
}

/* Video overlay styles */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,123,255,0.9), rgba(0,86,179,0.8));
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Start and completion button styles */
.video-overlay button {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 0;
}

.video-overlay button:hover {
    background: #218838;
    transform: scale(1.05);
}

.video-overlay button:active {
    transform: scale(0.95);
}

/* Overlay status text */
.video-overlay div {
    text-align: center;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
    max-width: 80%;
}

/* Additional YouTube Player Control Hiding Styles from dashboard */
.video-player-container {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.youtube-player {
    position: relative;
    width: 100%;
    height: 315px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.youtube-player iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
    border-radius: 8px;
}

/* Hide YouTube controls overlay */
.video-player-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: transparent;
    z-index: 10;
    pointer-events: none;
}

/* Custom control overlay to block interactions with YouTube controls */
.youtube-controls-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
    z-index: 5;
    pointer-events: none;
}

/* Hide specific YouTube UI elements using CSS */
.video-wrapper {
    position: relative;
}

.video-wrapper iframe {
    pointer-events: auto;
}

/* Block right-click context menu on video */
.youtube-player {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.youtube-player iframe {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Custom play button overlay */
.custom-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.custom-play-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.custom-play-overlay::before {
    content: '▶';
    color: white;
    font-size: 24px;
    margin-left: 3px;
}

.custom-play-overlay:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Enhanced video loading state */
.video-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 315px;
    background: #000;
    color: white;
    border-radius: 8px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Video controls styling */
.video-controls {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #dee2e6;
}

.watch-timer {
    font-weight: bold;
    margin-bottom: 10px;
    color: #495057;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.task-status {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    padding: 5px;
    background: #e9ecef;
    border-radius: 4px;
}

.task-status.completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.task-status.watching {
    background: #cce5ff;
    color: #0066cc;
    border: 1px solid #99d6ff;
}

.task-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f1aeb5;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .youtube-player {
        height: 250px;
    }
    
    .video-overlay button {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .video-overlay div {
        font-size: 12px;
        max-width: 90%;
    }
    
    .video-loading {
        height: 250px;
    }
    
    .custom-play-overlay {
        width: 60px;
        height: 60px;
    }
    
    .custom-play-overlay::before {
        font-size: 20px;
    }
    
    /* Ensure progress bar is visible on mobile */
    .video-controls {
        padding: 12px;
        background: #f8f9fa;
        border-radius: 0 0 8px 8px;
        border-top: 1px solid #dee2e6;
    }
    
    .watch-timer {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .progress-bar {
        height: 10px;
        margin-bottom: 8px;
    }
    
    .task-status {
        font-size: 13px;
        padding: 6px;
    }
}

/* Ensure iframe fills the container */
.youtube-player iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
    border-radius: var(--esz-radius);
    pointer-events: none !important; /* Disable all interactions */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: none !important; /* Disable touch interactions */
    -webkit-touch-callout: none; /* Disable iOS callout */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlights */
    outline: none;
}

/* Mobile-specific iframe protections - ULTRA AGGRESSIVE */
@media (max-width: 768px) {
    /* Ensure video controls are visible and functional on mobile */
    .video-controls {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .progress-bar {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .progress {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .watch-timer {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .task-status {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Allow normal YouTube player interaction on mobile */
    .youtube-player iframe {
        pointer-events: auto !important;
        touch-action: auto !important;
    }
}

/* Additional security - hide YouTube UI elements */
.youtube-player iframe::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 5;
}

/* Video loading indicator */
.video-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    color: var(--esz-muted);
    background-color: #f5f5f5;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--esz-border);
    border-top: 4px solid var(--esz-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.video-loading p {
    margin: 0;
    font-size: 0.9rem;
}

/* Legacy video overlay - hidden for minimalist player */
.video-overlay {
    display: none !important;
}

/* Legacy start button - hidden for minimalist player */
.start-button-container,
.start-video-btn {
    display: none !important;
}

/* Mobile overlay enhancements - ULTRA AGGRESSIVE */
@media (max-width: 768px) {
    .video-overlay {
        touch-action: none !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        pointer-events: auto !important;
        z-index: 20 !important;
    }
    
    .video-overlay div {
        pointer-events: none !important;
        touch-action: none !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }
    
    /* Ultra protection for mobile */
    .video-player-container::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: transparent !important;
        z-index: 35 !important;
        touch-action: none !important;
        pointer-events: auto !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
        display: none !important;
    }
}

.start-button-container {
    text-align: center;
    margin-bottom: 1rem;
}

.start-video-btn {
    background: linear-gradient(135deg, var(--esz-success) 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: var(--esz-radius);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    width: 100%;
    max-width: 300px;
}

.start-video-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.start-video-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.start-video-btn:disabled {
    background: var(--esz-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Mobile video protection overlay */
#mobile-overlay-[id] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 15;
    touch-action: none !important;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Disable text selection and touch callouts on mobile */
@media (max-width: 768px) {
    .video-player-container,
    .video-wrapper,
    .youtube-player {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        touch-action: none;
    }
    
    .video-player-container * {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        touch-action: none;
    }
    
    /* Force hide any YouTube mobile controls */
    .youtube-player iframe {
        position: relative;
    }
    
    .youtube-player iframe::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        z-index: 10;
        touch-action: none;
        pointer-events: auto;
    }
}

.video-controls {
    background-color: var(--esz-bg);
    border-radius: var(--esz-radius);
    padding: 1rem;
    margin-top: 1rem;
    display: none; /* Hide traditional controls for minimalist player */
}

/* Show only essential status for minimalist player */
.video-controls .task-status {
    display: block;
    text-align: center;
    padding: 0.5rem;
    background: transparent;
    border: none;
    margin: 0;
}

/* Hide timer and progress bar for minimalist experience */
.watch-timer,
.progress-bar {
    display: none;
}

.watch-timer, .task-status {
    text-align: center;
    margin-bottom: 1rem;
}

.timer {
    font-weight: bold;
    color: var(--esz-blue);
    font-size: 1.1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--esz-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress {
    height: 100%;
    background-color: var(--esz-blue);
    transition: width 0.3s ease;
    width: 0%;
}

.task-status {
    color: var(--esz-muted);
    font-style: italic;
}

/* Wallet */
.wallet-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.balance-card {
    background: linear-gradient(135deg, var(--esz-blue) 0%, var(--esz-blue-600) 100%);
    color: white;
    border-radius: var(--esz-radius);
    box-shadow: var(--esz-shadow);
    padding: 2rem;
    text-align: center;
}

.balance-card h3 {
    color: white;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.balance-amount {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0;
}

.balance-actions {
    margin-top: 1rem;
}

.balance-actions form {
    margin: 0;
}

.balance-actions .btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

.balance-actions .btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.earnings-breakdown {
    background-color: var(--esz-card);
    border-radius: var(--esz-radius);
    box-shadow: var(--esz-shadow);
    padding: 2rem;
}

.earning-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--esz-border);
}

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

.balance-mismatch {
    background-color: #fef3c7;
    color: #92400e;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #fbbf24;
    margin-top: 1rem;
}

.balance-fix-notice {
    background-color: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.balance-fix-notice p {
    margin: 0;
    color: #92400e;
    font-size: 0.9rem;
}

.recent-earnings {
    background-color: var(--esz-card);
    border-radius: var(--esz-radius);
    box-shadow: var(--esz-shadow);
    padding: 2rem;
}

.earnings-list, .withdrawals-list {
    max-height: 400px;
    overflow-y: auto;
}

.earning-record, .withdrawal-record, .referral-record {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--esz-border);
}

.earning-record:last-child, .withdrawal-record:last-child, .referral-record:last-child {
    border-bottom: none;
}

.earning-info, .withdrawal-info, .referral-info {
    flex: 1;
}

.earning-type, .earning-desc {
    display: block;
}

.earning-type {
    font-weight: 500;
    text-transform: capitalize;
}

.earning-type.task {
    color: var(--esz-blue);
}

.earning-type.referral {
    color: var(--esz-success);
}

.earning-desc {
    color: var(--esz-muted);
    font-size: 0.9rem;
}

.earning-details, .withdrawal-details, .referral-details {
    text-align: right;
}

.earning-amount, .withdrawal-amount, .referral-commission {
    display: block;
    font-weight: bold;
    color: var(--esz-success);
    margin-bottom: 0.25rem;
}

.earning-date, .withdrawal-date, .referral-date {
    color: var(--esz-muted);
    font-size: 0.85rem;
}

/* Withdraw */
.withdraw-info {
    background-color: var(--esz-card);
    border-radius: var(--esz-radius);
    box-shadow: var(--esz-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.balance-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.balance-info p {
    margin-bottom: 0.5rem;
}

.withdraw-form {
    max-width: 500px;
}

.withdrawal-history {
    background-color: var(--esz-card);
    border-radius: var(--esz-radius);
    box-shadow: var(--esz-shadow);
    padding: 2rem;
}

/* Status badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-processing {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background-color: #d1fae5;
    color: #065f46;
}

.status-rejected {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-active {
    background-color: #d1fae5;
    color: #065f46;
}

.status-suspended {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-pending_payment_review {
    background-color: #fef3c7;
    color: #92400e;
}

.status-earned {
    background-color: #d1fae5;
    color: #065f46;
}

/* Referrals */
.referral-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.referral-tools {
    background-color: var(--esz-card);
    border-radius: var(--esz-radius);
    box-shadow: var(--esz-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.referral-link-container {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.referral-link-container input {
    flex: 1;
}

.referral-list {
    background-color: var(--esz-card);
    border-radius: var(--esz-radius);
    box-shadow: var(--esz-shadow);
    padding: 2rem;
}

.referrals-table {
    max-height: 400px;
    overflow-y: auto;
}

.referral-username {
    font-weight: 500;
    display: block;
}

.referral-package {
    color: var(--esz-muted);
    font-size: 0.9rem;
}

.referral-status {
    margin-left: 0.5rem;
}

/* History */
.history-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.history-tab {
    background-color: var(--esz-card);
    border: 2px solid var(--esz-border);
    border-radius: var(--esz-radius);
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.history-tab:hover {
    border-color: var(--esz-blue);
    background-color: var(--esz-blue-50);
}

.history-tab.active {
    background-color: var(--esz-blue);
    border-color: var(--esz-blue);
    color: white;
}

.history-content {
    background-color: var(--esz-card);
    border-radius: var(--esz-radius);
    box-shadow: var(--esz-shadow);
    padding: 2rem;
}

.history-tab-content {
    display: none;
}

.history-tab-content.active {
    display: block;
}

/* Admin Styles */
.admin-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--esz-bg);
}

.admin-nav {
    background-color: var(--esz-card);
    box-shadow: var(--esz-shadow);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-brand h2 {
    color: var(--esz-blue);
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--esz-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--esz-blue-50);
    color: var(--esz-blue);
}

.nav-link.active {
    background-color: var(--esz-blue);
    color: white;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-main {
    flex: 1;
    padding: 2rem;
}

.admin-header {
    margin-bottom: 3rem;
}

.admin-header h1 {
    color: var(--esz-text);
    margin-bottom: 0.5rem;
}

.admin-header p {
    color: var(--esz-muted);
    margin: 0;
}

.admin-controls {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-form input, .search-form select {
    margin-bottom: 0;
}

.admin-table {
    background-color: var(--esz-card);
    border-radius: var(--esz-radius);
    box-shadow: var(--esz-shadow);
    overflow: hidden;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--esz-border);
}

.admin-table th {
    background-color: var(--esz-bg);
    font-weight: 600;
    color: var(--esz-text);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-section {
    background-color: var(--esz-card);
    border-radius: var(--esz-radius);
    box-shadow: var(--esz-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--esz-border);
}

.admin-footer {
    background-color: var(--esz-card);
    text-align: center;
    padding: 2rem;
    color: var(--esz-muted);
}

.admin-footer a {
    color: var(--esz-blue);
    text-decoration: none;
}

.admin-content {
    display: grid;
    gap: 2rem;
}

/* Approvals */
.approvals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.approval-card {
    background-color: var(--esz-card);
    border-radius: var(--esz-radius);
    box-shadow: var(--esz-shadow);
    padding: 2rem;
    border: 2px solid var(--esz-border);
}

.approval-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--esz-border);
}

.approval-header h3 {
    color: var(--esz-text);
    margin-bottom: 0.5rem;
}

.username {
    color: var(--esz-muted);
    font-size: 0.9rem;
}

.approval-details {
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--esz-bg);
}

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

.detail-item label {
    font-weight: 500;
    color: var(--esz-text);
    margin-bottom: 0;
}

.detail-item span {
    color: var(--esz-muted);
}

.payment-proof {
    margin-bottom: 2rem;
}

.payment-proof label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
}

.screenshot-container {
    text-align: center;
}

.payment-screenshot {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--esz-radius);
    box-shadow: var(--esz-shadow);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.payment-screenshot:hover {
    transform: scale(1.05);
}

.approval-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Withdrawals */
.withdrawals-summary {
    margin-bottom: 2rem;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.summary-card {
    background-color: var(--esz-card);
    border-radius: var(--esz-radius);
    box-shadow: var(--esz-shadow);
    padding: 2rem;
    text-align: center;
}

.summary-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--esz-blue);
    margin-bottom: 0.5rem;
}

.summary-amount {
    color: var(--esz-success);
    font-weight: 500;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info strong {
    color: var(--esz-text);
}

.user-info small {
    color: var(--esz-muted);
    margin-top: 0.25rem;
}

.method-badge {
    background-color: var(--esz-blue-50);
    color: var(--esz-blue);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.withdrawal-details {
    background-color: var(--esz-bg);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--esz-text);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Videos Admin */
.video-link {
    color: var(--esz-blue);
    text-decoration: none;
}

.video-link:hover {
    text-decoration: underline;
}

.package-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Settings */
.settings-form {
    max-width: 800px;
}

.settings-sections {
    display: grid;
    gap: 3rem;
}

.settings-section {
    background-color: var(--esz-card);
    border-radius: var(--esz-radius);
    box-shadow: var(--esz-shadow);
    padding: 2rem;
}

.settings-section h2 {
    color: var(--esz-blue);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--esz-blue-50);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.system-info {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--esz-border);
}

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

.quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background-color: var(--esz-card);
    border-radius: var(--esz-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-content.image-modal {
    max-width: 90vw;
    max-height: 90vh;
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--esz-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--esz-text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--esz-muted);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: var(--esz-bg);
    color: var(--esz-text);
}

.modal-body {
    padding: 2rem;
}

.full-image {
    width: 100%;
    height: auto;
    border-radius: var(--esz-radius);
}

.withdrawal-info {
    display: grid;
    gap: 2rem;
}

.info-section {
    background-color: var(--esz-bg);
    padding: 1.5rem;
    border-radius: var(--esz-radius);
}

.info-section h4 {
    color: var(--esz-blue);
    margin-bottom: 1rem;
}

.info-section pre {
    background-color: var(--esz-card);
    padding: 1rem;
    border-radius: 8px;
    font-family: inherit;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Footer */
.site-footer {
    background-color: var(--esz-text);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.site-footer a {
    color: var(--esz-blue);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-content {
        grid-template-columns: 1fr;
    }
    
    .wallet-summary {
        grid-template-columns: 1fr;
    }
    
    .balance-info {
        grid-template-columns: 1fr;
    }
    
    .nav-tabs {
        padding: 0 1rem;
    }
    
    .dashboard-main {
        padding: 0 1rem;
    }
    
    .admin-main {
        padding: 1rem;
    }
    
    .admin-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-menu {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .admin-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .approvals-grid {
        grid-template-columns: 1fr;
    }
    
    .youtube-player {
        height: 250px;
    }
    
    .video-controls {
        padding: 0.75rem;
    }
    
    .watch-timer {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .video-loading {
        min-height: 200px;
    }
    
    .video-task-card {
        padding: 1.5rem;
    }
    
    .start-video-btn {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }
    
    .video-overlay {
        border-radius: 8px;
    }
    
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        margin: 0;
    }
    
    .admin-table {
        overflow-x: auto;
    }
    
    .admin-table table {
        min-width: 600px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .balance-amount {
        font-size: 2rem;
    }
    
    .package-card {
        padding: 1.5rem;
    }
    
    .auth-card, .register-card {
        padding: 1.5rem;
    }
    
    .auth-container, .register-container {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .referral-stats {
        grid-template-columns: 1fr;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .approval-card {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .dashboard-nav,
    .admin-nav,
    .action-buttons,
    .btn {
        display: none !important;
    }
    
    .dashboard-container,
    .admin-container {
        background: white !important;
    }
    
    .card,
    .admin-table,
    .modal-content {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 1rem !important;
}

.mb-2 {
    margin-bottom: 2rem !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 1rem !important;
}

.mt-2 {
    margin-top: 2rem !important;
}

.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

.gap-1 {
    gap: 1rem;
}

.gap-2 {
    gap: 2rem;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Profile Page Styles */
.profile-section {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-card {
    background: var(--esz-card);
    border-radius: var(--esz-radius);
    padding: 2rem;
    box-shadow: var(--esz-shadow);
    border: 1px solid var(--esz-border);
}

.profile-card h2 {
    margin-bottom: 1.5rem;
    color: var(--esz-text);
    font-size: 1.5rem;
}

.profile-form,
.password-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--esz-text);
    font-size: 0.95rem;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid var(--esz-border);
    border-radius: var(--esz-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--esz-blue);
}

.form-group input[readonly] {
    background-color: var(--esz-bg);
    color: var(--esz-muted);
    cursor: not-allowed;
}

.form-group small {
    color: var(--esz-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.account-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--esz-border);
}

.info-row:last-child {
    border-bottom: none;
}

.video-history .task-list {
    margin-top: 15px;
}

.video-history .task-item {
    display: flex;
    justify-content: space-between;
    background-color: var(--esz-card);
    border-radius: var(--esz-radius);
    padding: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--esz-border);
}

.video-history .task-info h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--esz-text);
}

.video-history .task-info p {
    margin: 5px 0;
    color: var(--esz-muted);
}

.info-label {
    font-weight: 500;
    color: var(--esz-text);
}

.info-value {
    color: var(--esz-muted);
    font-weight: 500;
}

.status-active {
    color: var(--esz-success);
}

.status-pending_payment_review {
    color: var(--esz-warning);
}

.status-pending {
    color: var(--esz-warning);
}

.status-inactive {
    color: var(--esz-error);
}

/* Responsive Profile */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .profile-card {
        padding: 1.5rem;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Task Progress Styles */
.task-progress {
    background: var(--esz-blue-50);
    color: var(--esz-blue);
    padding: 0.5rem 1rem;
    border-radius: var(--esz-radius);
    font-weight: 500;
    text-align: center;
    margin: 1rem 0;
    border: 1px solid var(--esz-blue);
}

.video-task-card {
    background: var(--esz-card);
    border-radius: var(--esz-radius);
    padding: 2rem;
    box-shadow: var(--esz-shadow);
    border: 1px solid var(--esz-border);
    margin-bottom: 2rem;
}

.video-task-card h3 {
    color: var(--esz-text);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.video-task-card p {
    margin-bottom: 0.5rem;
    color: var(--esz-muted);
}

.video-player-container {
    margin-top: 1.5rem;
}

.youtube-player {
    width: 100%;
    max-width: 100%;
    border-radius: var(--esz-radius);
    overflow: hidden;
    margin-bottom: 1rem;
}

.video-controls {
    background: var(--esz-bg);
    padding: 1rem;
    border-radius: var(--esz-radius);
    border: 1px solid var(--esz-border);
}

.watch-timer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--esz-border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress {
    height: 100%;
    background: var(--esz-blue);
    width: 0%;
    transition: width 0.3s ease;
}

.task-status {
    text-align: center;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: var(--esz-radius);
    background: var(--esz-card);
    border: 1px solid var(--esz-border);
}

/* Glowing completion button animation */
@keyframes glow {
    from {
        box-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #28a745, 0 0 20px #28a745;
    }
    to {
        box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #28a745, 0 0 40px #28a745;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .youtube-player {
        height: 250px;
    }
    
    .video-controls {
        padding: 0.75rem;
    }
    
    .watch-timer {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .progress-bar {
        height: 10px;
        margin-bottom: 1rem;
    }
    
    .task-status {
        font-size: 0.9rem;
        padding: 0.4rem;
    }
}

@media (max-width: 480px) {
    .youtube-player {
        height: 200px;
    }
    
    .watch-timer {
        font-size: 0.9rem;
    }
    
    .progress-bar {
        height: 8px;
    }
}

/* Alert Styles for Video Completion */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--esz-radius);
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #f0fdf4;
    border-color: var(--esz-success);
    color: #166534;
}

.alert-info {
    background-color: var(--esz-blue-50);
    border-color: var(--esz-blue);
    color: var(--esz-blue-600);
}

.alert-warning {
    background-color: #fffbeb;
    border-color: var(--esz-warning);
    color: #92400e;
}

.alert-error {
    background-color: #fef2f2;
    border-color: var(--esz-error);
    color: #991b1b;
}

.alert h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.alert p {
    margin-bottom: 0.5rem;
}

.alert p:last-child {
    margin-bottom: 0;
}
