:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg: #0f172a;
    --bg-light: #1e293b;
    --bg-card: #1e293b;
    --bg-card-hover: #273549;
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --border-light: #475569;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-hover: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
    --radius: 12px;
    --radius-lg: 16px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Навигация */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(99, 102, 241, 0.1);
}

.nav-link.active {
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: all 0.3s;
}

/* Hero секция */
.hero {
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.1), transparent 70%);
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 50px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-image {
    position: relative;
    height: 450px;
}

.floating-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow);
    animation: float 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.card-icon {
    font-size: 2rem;
}

.card-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.card-1 { top: 15%; left: 5%; animation-delay: 0s; }
.card-2 { top: 45%; right: 10%; animation-delay: 1.5s; }
.card-3 { bottom: 20%; left: 15%; animation-delay: 3s; }

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

/* Кнопки */
.btn {
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    background: var(--gradient-hover);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

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

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

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

.btn-icon {
    font-size: 1.2rem;
}

/* Секции */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin: 0 auto 24px;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.feature-card h3 {
    margin-bottom: 14px;
    font-size: 1.3rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Benefits */
.benefits {
    background: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.benefit-item:hover {
    transform: translateX(5px);
    border-color: var(--primary);
}

.benefit-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.benefit-item h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.benefit-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* CTA */
.cta-section {
    background: var(--gradient);
    text-align: center;
    padding: 80px 0;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: white;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.cta-content .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* Surf страница - ОБНОВЛЕННЫЕ СТИЛИ */
.surf-section {
    padding: 40px 0;
}

.surf-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.surf-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.surf-description {
    color: var(--text-secondary);
}

.surf-stats {
    display: flex;
    gap: 16px;
}

.surf-stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 20px;
    text-align: center;
    min-width: 80px;
}

.surf-stat-box span:first-child {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.surf-stat-box span:last-child {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}

.surf-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Таймер - ОБНОВЛЕННЫЕ СТИЛИ */
.timer-section {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-light);
}

.timer-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.timer-progress {
    height: 100%;
    background: var(--gradient);
    transition: width 1s linear; /* Плавное движение каждую секунду без рывков */
    border-radius: 3px;
    width: 0%;
}

.timer-progress.complete {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.timer-progress.warning {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.timer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.timer-info > span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.timer-text {
    font-weight: 700;
    color: var(--primary-light);
    font-size: 1.2rem;
    min-width: 40px;
    display: inline-block;
    text-align: center;
}

.timer-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.bonus-display {
    transition: all 0.3s ease;
    font-weight: 600;
}

.bonus-display.bonus-active {
    color: #10b981;
    animation: pulse-bonus 1s ease-in-out;
}

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

/* Фрейм */
.site-frame-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    background: #ffffff;
}

.frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.5s ease;
}

.overlay-content {
    text-align: center;
    color: var(--text-secondary);
}

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

.site-frame-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Управление */
.surf-controls {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-light);
    flex-wrap: wrap;
}

.surf-controls .btn {
    flex: 1;
    min-width: 150px;
    justify-content: center;
}

/* Информация о сайте */
.current-site-info {
    padding: 16px 24px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.current-site-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

.current-site-info a {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.9rem;
    word-break: break-all;
}

.current-site-info a:hover {
    text-decoration: underline;
}

/* Add Site страница */
.add-site-section {
    padding: 60px 0;
}

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

.add-site-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-description {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.add-site-wrapper {
    max-width: 650px;
    margin: 0 auto;
}

.add-site-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.label-icon {
    font-size: 1.2rem;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

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

.form-help {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.form-checkbox input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-checkbox a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
}

.form-checkbox a:hover {
    text-decoration: underline;
}

.add-site-info {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.add-site-info h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.add-site-info ul {
    list-style: none;
}

.add-site-info li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Контентные страницы */
.content-page {
    padding: 60px 0;
    min-height: 60vh;
}

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

.content-header h1 {
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.content-header p {
    color: var(--text-secondary);
}

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

.rule-section {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.rule-section h2 {
    color: var(--primary-light);
    margin-bottom: 20px;
    font-size: 1.4rem;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.rule-section p {
    margin-bottom: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.rule-section ul {
    margin: 16px 0 16px 20px;
    color: var(--text-secondary);
}

.rule-section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Сообщения */
.message {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-top: 20px;
    font-weight: 500;
}

.message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: #6ee7b7;
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    color: #fca5a5;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

/* Подвал */
.footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.footer-section h4 {
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-social {
    display: flex;
    gap: 12px;
    font-size: 1.5rem;
    margin-top: 16px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Анимации */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

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

.pulse {
    animation: pulse 1s infinite;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-image {
        height: 300px;
        order: -1;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-light);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }
    
    .hero-image {
        height: 250px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .surf-header {
        flex-direction: column;
    }
    
    .surf-stats {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .surf-stat-box {
        flex: 1;
        min-width: 80px;
    }
    
    .site-frame-wrapper {
        height: 400px;
    }
    
    .add-site-form {
        padding: 24px;
    }
    
    .surf-controls {
        flex-direction: column;
    }
    
    .surf-controls .btn {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .content-header h1 {
        font-size: 2rem;
    }
    
    .timer-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .current-site-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Стили для бонусной системы */
.bonus-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    z-index: 9999;
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 600;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.timer-details {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timer-bonus {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.bonus-label {
    color: #10b981;
    font-size: 0.9rem;
}

.bonus-value {
    color: #10b981;
    font-weight: 700;
    font-size: 0.95rem;
}

.site-meta {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.meta-item {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.points-badge {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    text-align: center;
    min-width: 80px;
}

.points-value {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
}

.points-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.time-info-box {
    margin-top: 12px;
    padding: 16px;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.time-info-item {
    display: flex;
    gap: 12px;
    padding: 8px 0;
}

.time-info-item:first-child {
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.time-icon {
    font-size: 1.5rem;
}

.time-info-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
}

.time-info-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

.points-preview {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.points-preview h4 {
    margin-bottom: 12px;
    color: var(--primary-light);
}

.points-calculator {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.points-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.points-amount {
    font-weight: 700;
    color: var(--primary-light);
    transition: all 0.3s;
}

.surf-history {
    margin-top: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.surf-history h3 {
    margin-bottom: 16px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: var(--bg);
    border-radius: 8px;
    font-size: 0.9rem;
}

.points-earned {
    font-weight: 700;
    color: #10b981;
}

/* Auth pages */
.auth-section {
    padding: 60px 0;
    min-height: 60vh;
}
.auth-wrapper {
    max-width: 400px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.auth-wrapper h2 {
    margin-bottom: 30px;
    text-align: center;
}
.auth-form .form-group {
    margin-bottom: 20px;
}
.auth-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
}
.auth-link a {
    color: var(--primary-light);
    text-decoration: none;
}
.auth-link a:hover {
    text-decoration: underline;
}

/* Profile */
.profile-section {
    padding: 60px 0;
    min-height: 60vh;
}
.profile-wrapper {
    max-width: 700px;
    margin: 0 auto;
}
.profile-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
}
.profile-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.profile-item:last-child {
    border-bottom: none;
}
.profile-item .label {
    color: var(--text-secondary);
    font-weight: 500;
}
.profile-item .value {
    font-weight: 600;
}
.profile-item .balance {
    color: var(--primary-light);
    font-size: 1.2rem;
}
.profile-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}
.purchases-list {
    margin-top: 20px;
}
.purchase-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--bg);
    border-radius: var(--radius);
    margin-bottom: 10px;
    border: 1px solid var(--border);
}
.purchase-item .p-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.purchase-item .p-amount {
    font-weight: 600;
    color: #10b981;
}
.purchase-item .p-price {
    font-weight: 500;
}

/* Buy page */
.buy-section {
    padding: 60px 0;
    min-height: 60vh;
}
.buy-wrapper {
    max-width: 900px;
    margin: 0 auto;
}
.buy-wrapper h2 {
    text-align: center;
    margin-bottom: 20px;
}
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
}
.package-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.package-header .views {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    color: var(--primary-light);
}
.package-header .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.package-price {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 15px 0;
}
.package-card .buy-btn {
    width: 100%;
}

/* Captcha */
.captcha-group {
    margin-bottom: 20px;
}
.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}
.captcha-wrapper img {
    width: 120px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid var(--border);
}
.captcha-input {
    width: 100px;
    flex-shrink: 0;
}
.captcha-group .form-help {
    margin-top: 4px;
}

/* Единый стиль для всех уведомлений на формах */
.form-message,
.message {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 20px;
    /* Создает правильный отступ до кнопки или следующих полей */
    box-sizing: border-box;
    width: 100%;
}

/* Успешное уведомление (зеленое) */
.form-message.success,
.message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Уведомление об ошибке (красное) */
.form-message.error,
.message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

@media (max-width: 768px) {

    /* Жестко перебиваем десктопные стили контейнера */
    section.hero .container .hero-image {
        position: relative !important;
        height: auto !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        margin-top: 30px !important;
        width: 100% !important;
        transform: none !important;
    }

    /* Жестко перебиваем абсолютные координаты каждой карточки */
    section.hero .container .hero-image .floating-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
        box-sizing: border-box !important;
        animation: fadeInUp 0.5s ease forwards;
        opacity: 0;
    }

    /* Плавное появление карточек друг за другом */
    section.hero .container .hero-image .floating-card.card-1 {
        animation-delay: 0.1s;
    }

    section.hero .container .hero-image .floating-card.card-2 {
        animation-delay: 0.2s;
    }

    section.hero .container .hero-image .floating-card.card-3 {
        animation-delay: 0.3s;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

