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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
}

.app {
    display: flex;
    min-height: 100vh;
}

/* ========== САЙДБАР ========== */
.sidebar {
    width: 260px;
    background: #1a1a2e;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.sidebar-header h2 {
    font-size: 18px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: block;
    padding: 12px 20px;
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar hr {
    margin: 10px 20px;
    border-color: rgba(255,255,255,0.1);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    text-align: center;
}

/* ========== ОСНОВНАЯ ОБЛАСТЬ ========== */
.main {
    flex: 1;
    margin-left: 260px;
}

.main-header {
    background: white;
    padding: 15px 25px;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.main-header h1 {
    font-size: 22px;
    color: #1a1a2e;
}

.main-content {
    padding: 25px;
}

/* ========== КАРТОЧКИ ========== */
.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card h2 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

/* ========== ТАБЛИЦЫ ========== */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8f9fa;
    font-weight: 600;
}

/* ========== ФОРМЫ ========== */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    max-width: 400px;
}

button, .btn {
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover {
    background: #0056b3;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
    margin: 2px;
}

.btn-pause { background: #ff9800; }
.btn-resume { background: #4CAF50; }
.btn-delete { background: #f44336; }
.btn-refill { background: #2196F3; }

/* ========== СООБЩЕНИЯ ========== */
.error {
    color: red;
    background: #ffe0e0;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.success {
    color: green;
    background: #e0ffe0;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* ========== САЙТЫ ДЛЯ СЕРФИНГА ========== */
.site-card {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    background: #fafafa;
}

.site-card strong {
    display: inline-block;
    width: 120px;
}

.reward {
    color: green;
    font-weight: bold;
}

/* ========== СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ (СВЕТЛАЯ ТЕМА) ========== */
.header {
    background: white;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header h1 {
    font-size: 36px;
    color: #1a1a2e;
}

.header p {
    color: #666;
    margin-top: 10px;
}

.nav-links {
    margin-top: 15px;
}

.nav-links a {
    text-decoration: none;
    margin: 0 15px;
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s;
    display: inline-block;
}

.nav-links a.btn-primary {
    background: #667eea;
    color: white;
}

.nav-links a.btn-outline {
    border: 1px solid #667eea;
    color: #667eea;
}

.nav-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero {
    text-align: center;
    margin-bottom: 50px;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #666;
}

.hero .btn-large {
    background: #667eea;
    color: white;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.3s;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

.hero .btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102,126,234,0.4);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 25px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    min-width: 160px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .number {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
}

.stat-card .label {
    color: #666;
    margin-top: 8px;
    font-size: 14px;
}

.features {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.feature {
    background: white;
    border-radius: 20px;
    padding: 30px;
    flex: 1;
    min-width: 250px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature h3 {
    margin-bottom: 10px;
    color: #1a1a2e;
}

.feature p {
    color: #666;
    line-height: 1.5;
}

.activity-section {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.activity-block {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.activity-block h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #1a1a2e;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    display: inline-block;
}

.activity-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

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

.activity-title {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.activity-title:hover {
    color: #667eea;
}

.activity-reward {
    color: #4CAF50;
    font-weight: bold;
    font-size: 14px;
}

.activity-date {
    color: #888;
    font-size: 12px;
}

.view-all {
    margin-top: 15px;
    text-align: right;
}

.view-all a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.view-all a:hover {
    text-decoration: underline;
}

.payment-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    color: white;
    text-align: center;
}

.payment-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.payment-info p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.payment-icon {
    background: rgba(255,255,255,0.15);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
}

.main-content {
    min-height: calc(100vh - 200px);
}

.footer {
    text-align: center;
    padding: 30px;
    background: white;
    color: #666;
    border-top: 1px solid #e0e0e0;
    margin-top: 40px;
}

.footer a {
    color: #667eea;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}
/* ========== БЛОК ДЛЯ РЕКЛАМОДАТЕЛЕЙ ========== */
.advertiser-section {
    margin: 60px 0 40px;
    text-align: center;
}

.section-title {
    font-size: 32px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #666;
    margin-bottom: 40px;
    font-size: 18px;
}

.advertiser-grid {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.advertiser-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    flex: 1;
    min-width: 260px;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.advertiser-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.advertiser-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.advertiser-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a1a2e;
}

.advertiser-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.advertiser-card ul {
    text-align: left;
    margin: 15px 0;
    padding-left: 20px;
}

.advertiser-card li {
    color: #555;
    font-size: 13px;
    margin: 8px 0;
    list-style: none;
    position: relative;
}

.advertiser-card li::before {
    content: "✓";
    color: #4CAF50;
    font-weight: bold;
    position: absolute;
    left: -20px;
}

.btn-advertiser {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-advertiser:hover {
    background: #5a67d8;
}

.advertiser-note {
    background: #e8f5e9;
    border-radius: 12px;
    padding: 15px 25px;
    margin-top: 30px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.advertiser-note p {
    color: #2e7d32;
    margin: 0;
}

@media (max-width: 768px) {
    .advertiser-grid {
        flex-direction: column;
        align-items: center;
    }
    .advertiser-card {
        max-width: 100%;
    }
    .section-title {
        font-size: 28px;
    }
}
/* ========== АДАПТИВ ========== */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    .main {
        margin-left: 200px;
    }
    .hero h2 { font-size: 32px; }
    .stats { gap: 15px; }
    .stat-card { padding: 15px 20px; }
    .features { flex-direction: column; }
    .activity-section { flex-direction: column; }
}