/* Base styles */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #f9fafb;
    --text: #1f2937;
    --text-light: #6b7280;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: #e5e7eb;
    --card-bg: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #f3f4f6;
}

a {
    text-decoration: none;
    color: var(--primary);
}

button {
    cursor: pointer;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
}

/* Header & Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #7e22ce 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.cta-button {
    background-color: white;
    color: var(--primary);
    font-size: 1.1rem;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 700;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* How It Works */
.how-it-works {
    padding: 4rem 2rem;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text);
}

.steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 250px;
    box-shadow: var(--shadow);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

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

/* Calculator */
.calculator {
    padding: 4rem 2rem;
    background-color: var(--secondary);
    text-align: center;
}

.calculator h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.calc-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.calc-controls label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.calc-result {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

.calc-result .note {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Sign Up Form */
.signup {
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.signup h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.help-text {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.submit-btn {
    background-color: var(--primary);
    color: white;
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
}

/* Dashboard */
.dashboard-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2rem;
}

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

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.active {
    background-color: #dcfce7;
    color: #166534;
}

.status-badge.suspended {
    background-color: #fee2e2;
    color: #b91c1c;
}

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

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

.balance-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--primary);
}

.balance-note {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.payout-btn {
    background-color: var(--success);
    color: white;
    padding: 10px 20px;
}

.available-ads {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.available-ads h2 {
    margin-bottom: 1.5rem;
}

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

.payout-history {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

#payoutTable {
    width: 100%;
    border-collapse: collapse;
}

#payoutTable th, #payoutTable td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

#payoutTable th {
    color: var(--text-light);
    font-weight: 600;
}

.referral-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

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

.referral-link input {
    flex: 1;
}

/* Watch Page */
.watch-container {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.ad-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.progress-section {
    text-align: center;
    margin-bottom: 2rem;
}

.progress-bar {
    height: 10px;
    background-color: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 1s linear;
}

.timer {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ad-info {
    color: var(--text-light);
}

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

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

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

.fraud-warning {
    background-color: #fef3c7;
    color: #92400e;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
}

/* Profile Page */
.profile-container {
    padding: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.profile-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.form-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.form-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.crypto-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.crypto-item {
    background: var(--secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.save-btn {
    background-color: var(--primary);
    color: white;
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
}

.delete-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.delete-section h2 {
    margin-bottom: 1rem;
}

.delete-btn {
    background-color: var(--danger);
    color: white;
    padding: 10px 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .steps {
        flex-direction: column;
        align-items: center;
    }
    
    .calc-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .balance-section {
        grid-template-columns: 1fr;
    }
    
    .ads-info {
        flex-direction: column;
        align-items: stretch;
    }
    
    .referral-link {
        flex-direction: column;
    }
}