@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    /* 🎨 Палитра: чистый светлый стиль */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0891b2;
    --secondary-dark: #0e7490;
    --secondary-light: #06b6d4;
    
    --accent-purple: #7c3aed;
    --accent-pink: #db2777;
    --accent-orange: #ea580c;
    --accent-green: #16a34a;
    --accent-yellow: #ca8a04;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-dark: #334155;
    
    --success: #16a34a;
    --warning: #ca8a04;
    --danger: #dc2626;
    --info: #0891b2;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --glow-primary: none;
    --glow-secondary: none;
    --glow-success: none;
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(8, 145, 178, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

::selection {
    background: var(--primary-light);
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--radius-full);
    border: none;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.main-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.main-header.scrolled {
    padding: 0.6rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    transition: transform var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand img {
    filter: none;
    transition: filter var(--transition-base);
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--primary) !important;
    background: rgba(37, 99, 235, 0.05);
}

.nav-link:hover::before {
    width: 70%;
}

.btn-main,
.btn.btn-main {
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-main:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-main:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.625rem 1.75rem;
    border-radius: var(--radius-md);
}

.btn-outline:hover {
    background: var(--primary);
    color: #ffffff;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.hero {
    padding: var(--space-2xl) var(--space-sm);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-family: 'Inter', sans-serif; /* Поменяли шрифт */
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease;
    line-height: 1.2;
    letter-spacing: -0.02em; /* Чуть плотнее буквы, выглядит современнее */
}

/* Чтобы весь сайт был в этом шрифте, добавь это в body */
body {
    font-family: 'Inter', sans-serif;
}

.hero .lead {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto var(--space-lg);
    animation: fadeIn 1s ease 0.2s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.card-soft {
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card-soft:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: #cbd5e1;
}

.card-glass {
    background: var(--bg-secondary);
    border: 1px solid #e2e8f0;
}

.card-gradient {
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    border: 1px solid #bfdbfe;
}

.stats-box {
    text-align: center;
    padding: var(--space-lg) !important;
    height: 100%;
    position: relative;
}

.stats-box .fs-3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 2.2rem !important;
    color: var(--primary);
    margin-top: var(--space-sm);
}

.stats-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 50%;
    height: 3px;
    background: var(--primary);
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.stats-box:hover::after {
    opacity: 1;
}

.form-control {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--text-primary);
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    font-size: 1rem;
}

.form-control:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    display: block;
    font-size: 0.875rem;
}

.table {
    color: var(--text-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
}

.table-dark thead th {
    background: var(--bg-secondary);
    border-bottom: 2px solid #e2e8f0;
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.table-dark tbody tr {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    transition: all var(--transition-fast);
}

.table-dark tbody tr:hover {
    background: #f8fafc;
}

.table-dark td {
    vertical-align: middle;
    padding: 0.875rem 1rem;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: #fafbfc;
}

.badge {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-soft {
    background: #eff6ff;
    color: var(--primary);
    border: 1px solid #bfdbfe;
}

.badge-success {
    background: #ecfdf5;
    color: var(--success);
    border: 1px solid #a7f3d0;
}

.badge-warning {
    background: #fffbeb;
    color: var(--warning);
    border: 1px solid #fde68a;
}

.badge-danger {
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
}

.badge-info {
    background: #ecfeff;
    color: var(--info);
    border: 1px solid #a5f3fc;
}

.alert {
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border: 1px solid transparent;
    border-left: 4px solid;
}

.alert-success {
    background: #ecfdf5;
    color: var(--success);
    border-left-color: var(--success);
}

.alert-danger {
    background: #fef2f2;
    color: var(--danger);
    border-left-color: var(--danger);
}

.alert-info {
    background: #ecfeff;
    color: var(--info);
    border-left-color: var(--info);
}

.alert-warning {
    background: #fffbeb;
    color: var(--warning);
    border-left-color: var(--warning);
}

.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid #e2e8f0;
    margin-top: var(--space-2xl);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.footer-subtitle {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    font-size: 1rem;
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list li {
    margin-bottom: var(--space-xs);
}

.footer-list a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-list a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-line {
    border: none;
    height: 1px;
    background: #e2e8f0;
    margin: var(--space-lg) 0;
}

.socials {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.social-btn {
    background: #3b82f6; /* Ярко-синий фон */
    color: #ffffff; /* Белый текст */
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #2563eb; /* Темно-синяя рамка */
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.social-btn:hover {
    background: #2563eb; /* Более темный синий при наведении */
    color: #ffffff; /* Текст остается белым */
    transform: translateY(-2px);
    border-color: #1d4ed8;
}


.page-title {
    
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted-soft {
    color: var(--text-muted);
}

.balance-big {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.miner-status-active {
    color: var(--success);
    font-weight: 600;
}

.miner-status-completed {
    color: var(--warning);
    font-weight: 600;
}

.miner-mini-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #cbd5e1;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.progress {
    background: #e2e8f0;
    border-radius: var(--radius-full);
    overflow: hidden;
    height: 8px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width var(--transition-slow);
}

@media (max-width: 991px) {
    .hero {
        padding: var(--space-lg) var(--space-sm);
    }
    
    .stats-box {
        margin-bottom: var(--space-md);
    }
    
    .navbar-collapse {
        background: #ffffff;
        padding: var(--space-md);
        border-radius: var(--radius-md);
        margin-top: var(--space-sm);
        border: 1px solid #e2e8f0;
        box-shadow: var(--shadow-lg);
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 2rem;
        --space-lg: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .card-soft {
        padding: var(--space-md);
    }
    
    .balance-big {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .btn-main {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
    
    .socials {
        flex-direction: column;
    }
    
    .social-btn {
        width: 100%;
        justify-content: center;
    }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.loading {
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.05), transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .main-header,
    .main-footer,
    .btn-main {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

.card-soft,
.btn-main,
.nav-link {
    will-change: transform;
}

.card-soft:hover,
.btn-main:hover {
    transform: translateY(-4px) translateZ(0);
    backface-visibility: hidden;
}
