/* ========================================= */
/* === 1. BASE & LAYOUT === */
/* ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main);
    /* Убираем height: 100vh для главной, чтобы работал скролл */
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* По умолчанию колонка (для лендинга) */
    overflow-x: hidden;
}

/* Для админки и дашборда возвращаем row */
body.dashboard-body {
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
button { font-family: inherit; }

html { scroll-behavior: smooth; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* ========================================= */
/* === 2. SIDEBAR (Only for Dashboard) === */
/* ========================================= */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(2, 3, 5, 0.95);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    padding: 30px;
    flex-shrink: 0;
    z-index: 10;
    height: 100%; /* Fix height */
}

.logo { 
    font-weight: 900; font-size: 1.4rem; display: flex; align-items: center; 
    gap: 10px; color: white; letter-spacing: -0.5px; margin-bottom: 50px;
}
/* Логотип в хедере лендинга имеет margin 0 */
header .logo { margin-bottom: 0; }

.nav-menu { display: flex; flex-direction: column; gap: 8px; flex: 1; }

.nav-item {
    display: flex; align-items: center; gap: 15px; padding: 14px 20px;
    border-radius: 14px; color: var(--text-muted); font-weight: 600; font-size: 0.95rem;
    transition: all 0.3s ease; cursor: pointer; border: 1px solid transparent;
}
.nav-item i { width: 22px; text-align: center; font-size: 1.1rem; }
.nav-item:hover { background: rgba(255, 255, 255, 0.03); color: white; }
.nav-item.active {
    background: rgba(59, 130, 246, 0.1); color: var(--primary);
    border-color: rgba(59, 130, 246, 0.15);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}
.nav-item.logout { margin-top: auto; color: #ef4444; }
.nav-item.logout:hover { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

/* ========================================= */
/* === 3. MAIN CONTENT (Dashboard) === */
/* ========================================= */
.main-content {
    flex: 1;
    padding: 40px 50px;
    overflow-y: auto;
    position: relative;
    background: radial-gradient(circle at top right, rgba(59,130,246,0.05) 0%, transparent 60%);
}

.page-header { margin-bottom: 40px; display: flex; justify-content: space-between; align-items: center; }
.page-header h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.5px; line-height: 1.2; }
.page-header p { color: var(--text-muted); font-size: 1rem; }

/* ========================================= */
/* === 4. LANDING PAGE STYLES === */
/* ========================================= */

/* --- HEADER (Premium Glassmorphism) --- */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(2, 3, 5, 0.6); /* Большая прозрачность */
    backdrop-filter: blur(20px); /* Сильное размытие фона */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-wrapper { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* Логотип */
.logo { 
    font-weight: 900; font-size: 1.4rem; display: flex; align-items: center; gap: 10px; 
    color: white; letter-spacing: -0.5px; margin-bottom: 0;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3); /* Легкое свечение */
}

/* Меню-капсула */
.nav-links { 
    display: flex; 
    gap: 4px; 
    background: rgba(255, 255, 255, 0.03); /* Подложка меню */
    padding: 5px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Ссылки как кнопки */
.nav-links a { 
    font-size: 0.9rem; 
    font-weight: 600; 
    color: var(--text-muted); 
    padding: 8px 20px;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Ховер эффект */
.nav-links a:hover { 
    color: white; 
    background: rgba(255, 255, 255, 0.08);
}

/* Активный пункт меню (Крутая подсветка) */
.nav-links a.active { 
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, #2563EB 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.header-actions { display: flex; gap: 15px; align-items: center; }

/* Buttons */
.btn-login {
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    padding: 10px 24px; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
    color: white; transition: 0.3s; cursor: pointer;
}
.btn-login:hover { background: rgba(255, 255, 255, 0.1); border-color: white; }

.btn-primary {
    background: var(--primary); color: white; border: none;
    padding: 12px 30px; border-radius: 50px; font-weight: 700; font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3); transition: 0.3s; cursor: pointer;
}
.btn-primary:hover { background: #2563EB; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5); }

/* Hero */
.hero { padding: 180px 0 100px; position: relative; overflow: hidden; width: 100%; }
.hero::before { content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 800px; height: 500px; background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%); z-index: -1; pointer-events: none; }
.hero-content { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 50px; }
.hero-text h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 25px; font-weight: 800; letter-spacing: -1px; }
.hero-text span { color: var(--primary); }
.hero-text p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 40px; max-width: 580px; }
.hero-stats { display: flex; gap: 40px; margin-top: 50px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); }
.h-stat strong { font-size: 1.5rem; display: block; color: white; }
.h-stat span { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.hero-visual { position: relative; height: 500px; background: url('https://loveopium.ru/content/2017/07/mine/00.jpg') center/cover; border-radius: 30px; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 30px 80px rgba(0,0,0,0.5); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* Sections */
.section { padding: 100px 0; width: 100%; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; color: white; }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 50px; }
.step-card { background: linear-gradient(145deg, #0F131F 0%, #090C13 100%); border: 1px solid var(--border); padding: 40px 30px; border-radius: 24px; position: relative; transition: 0.4s ease; overflow: hidden; display: flex; flex-direction: column; }
.step-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 20px 50px rgba(59,130,246,0.1); }
.step-bg-num { font-size: 8rem; font-weight: 900; color: rgba(255,255,255,0.03); position: absolute; top: -10px; right: 20px; line-height: 1; user-select: none; transition: 0.4s; }
.step-card:hover .step-bg-num { color: rgba(59,130,246,0.08); transform: scale(1.1); }
.step-icon-wrap { width: 60px; height: 60px; background: rgba(59, 130, 246, 0.1); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 25px; border: 1px solid rgba(59, 130, 246, 0.2); position: relative; z-index: 2; }
.step-title { font-size: 1.4rem; margin-bottom: 15px; font-weight: 800; color: white; position: relative; z-index: 2; }
.step-desc { color: var(--text-muted); font-size: 0.95rem; position: relative; z-index: 2; line-height: 1.6; }

/* Miners Grid (Landing) */
.miners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 30px; }
.miner-card { background: linear-gradient(145deg, #0e121b 0%, #05070a 100%); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 24px; overflow: hidden; transition: all 0.4s ease; display: flex; flex-direction: column; position: relative; }
.miner-card:hover { border-color: var(--primary); transform: translateY(-10px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.miner-visual { height: 280px; background: radial-gradient(circle at center, rgba(59,130,246,0.08) 0%, transparent 70%); display: flex; align-items: center; justify-content: center; position: relative; padding: 20px; }
.miner-visual img { max-width: 80%; max-height: 80%; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6)); transition: transform 0.5s ease; }
.miner-card:hover .miner-visual img { transform: scale(1.05) translateY(-5px); }
.tag { position: absolute; top: 20px; right: 20px; background: rgba(255, 255, 255, 0.05); color: var(--text-muted); padding: 6px 12px; border-radius: 6px; font-size: 0.7rem; font-weight: 600; border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(5px); }
.tag.liquid { color: var(--primary); border-color: rgba(59,130,246,0.3); background: rgba(59,130,246,0.1); }
.miner-info { padding: 30px; flex: 1; display: flex; flex-direction: column; }
.miner-title { font-size: 1.4rem; color: white; margin-bottom: 8px; font-weight: 700; }
.miner-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; margin-bottom: 25px; }
.specs-grid-detailed { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); }
.spec-item { display: flex; flex-direction: column; gap: 4px; }
.spec-label { font-size: 0.75rem; color: #6B7280; text-transform: uppercase; }
.spec-value { font-size: 1rem; color: white; font-weight: 600; }
.spec-value.highlight { color: var(--primary); }

/* Pricing */
.pricing-section { background: linear-gradient(180deg, var(--bg-body) 0%, #06080e 100%); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; align-items: flex-start; }
.price-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 28px; padding: 40px 30px; display: flex; flex-direction: column; min-height: 550px; position: relative; transition: all 0.4s ease; }
.price-card.tier-start { --accent: var(--color-start); } .price-card.tier-base { --accent: var(--color-base); } .price-card.tier-prem { --accent: var(--color-prem); }
.price-card:hover { border-color: var(--accent); box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5), 0 0 0 1px var(--accent) inset; transform: translateY(-5px); }
.popular-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 6px 16px; border-radius: 20px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 15px rgba(59,130,246,0.4); z-index: 2; }
.card-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.tier-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.card-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; color: white; }
.card-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 30px; line-height: 1.5; height: 90px; overflow: hidden; }
.calc-block { margin-bottom: 30px; }
.calc-values { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 15px; }
.amount-display { font-size: 1.8rem; font-weight: 800; color: white; font-variant-numeric: tabular-nums; }
.range-wrap { position: relative; height: 30px; display: flex; align-items: center; }
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; cursor: pointer; height: 6px; border-radius: 10px; outline: none; z-index: 1; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 6px; border-radius: 10px; background: rgba(255,255,255,0.1); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 24px; width: 24px; border-radius: 50%; background: white; border: 3px solid var(--accent); margin-top: -9px; box-shadow: 0 0 15px var(--accent); transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.2); cursor: grab; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.1); cursor: grabbing; }
.card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 20px; }
.stat-box small { display: block; font-size: 0.7rem; color: #6B7280; text-transform: uppercase; margin-bottom: 4px; }
.stat-box span { font-size: 1.1rem; font-weight: 700; color: white; }
.profit-val { color: var(--accent-green) !important; }
.details-trigger { background: none; border: none; width: 100%; color: var(--text-muted); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 10px 0; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.3s; }
.details-trigger:hover { color: white; }
.details-trigger::after { content: '›'; font-size: 1.2rem; transform: rotate(90deg); transition: transform 0.3s; display: inline-block; line-height: 0.8; }
.details-trigger.active::after { transform: rotate(-90deg); }
.details-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, opacity 0.4s ease; opacity: 0; }
.details-body.open { max-height: 300px; opacity: 1; margin-bottom: 20px; }
.tech-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,0.05); }
.tech-row:last-child { border-bottom: none; }
.tech-row span:first-child { color: #6B7280; } .tech-row span:last-child { color: #E5E7EB; font-weight: 500; }
.card-btn { width: 100%; padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,0.03); color: white; font-weight: 700; cursor: pointer; transition: 0.3s; margin-top: auto; }
.card-btn:hover { background: rgba(255,255,255,0.1); border-color: white; }
.card-btn.filled { background: var(--accent); border-color: var(--accent); box-shadow: 0 4px 20px -5px var(--accent); }
.card-btn.filled:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* FAQ & Partners */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; text-align: left; background: none; border: none; color: white; padding: 25px 0; font-size: 1.1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { height: 0; overflow: hidden; transition: 0.3s; color: var(--text-muted); }
.faq-answer p { padding-bottom: 25px; line-height: 1.6; }
.faq-question.active .faq-icon { transform: rotate(45deg); color: var(--primary); }
.faq-question.active + .faq-answer { height: auto; }
.faq-icon { font-size: 1.5rem; transition: 0.3s; }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 40px; align-items: center; justify-items: center; padding: 40px 0; }
.partner-logo { opacity: 0.4; transition: all 0.4s ease; filter: grayscale(100%); max-width: 140px; height: auto; }
.partner-logo:hover { opacity: 1; filter: grayscale(0%); transform: scale(1.1); filter: drop-shadow(0 0 10px rgba(59,130,246,0.5)); }

/* Contacts & Footer */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.info-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 30px; margin-bottom: 20px; transition: 0.3s; }
.info-card:hover { border-color: var(--primary); transform: translateX(5px); }
.info-icon { font-size: 1.5rem; color: var(--primary); margin-bottom: 15px; display: inline-block; }
.info-label { display: block; font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 5px; letter-spacing: 1px; }
.info-value { font-size: 1.2rem; font-weight: 600; color: white; }
.info-sub { font-size: 0.9rem; color: var(--text-muted); margin-top: 5px; }
.contact-form { background: linear-gradient(145deg, #0F131F 0%, #090C13 100%); border: 1px solid var(--border); padding: 50px; border-radius: 24px; }
.form-header { margin-bottom: 30px; }
.form-header h3 { font-size: 1.8rem; margin-bottom: 10px; color: white; }
.form-group { margin-bottom: 25px; }
.form-label { display: block; margin-bottom: 10px; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.form-input, .form-textarea { width: 100%; padding: 15px; background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 10px; color: white; font-size: 1rem; font-family: var(--font-main); transition: 0.3s; }
.form-input:focus, .form-textarea:focus { border-color: var(--primary); box-shadow: 0 0 15px rgba(59,130,246,0.1); }
.form-textarea { height: 150px; resize: vertical; }
.btn-submit { width: 100%; padding: 18px; background: var(--primary); color: white; border: none; border-radius: 12px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 20px rgba(59,130,246,0.3); }
.btn-submit:hover { background: var(--primary-hover); transform: translateY(-2px); }
footer { border-top: 1px solid var(--border); padding: 80px 0 30px; background: #010203; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 20px; color: white; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--primary); padding-left: 5px; }
.copyright { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); color: #555; font-size: 0.8rem; }

/* Support & Modals */
.support-circle { position: fixed; bottom: 30px; right: 30px; width: 64px; height: 64px; background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4); z-index: 9999; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.1); }
.support-circle:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 15px 35px rgba(59, 130, 246, 0.6); }
.pulse-ring { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 50%; border: 2px solid #3B82F6; opacity: 0; animation: pulse 2s infinite; pointer-events: none; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; z-index: 99999; opacity: 0; transition: 0.3s ease; }
.modal-overlay.active { opacity: 1; display: flex; }
.modal-content { background: #0D1117; border: 1px solid rgba(255, 255, 255, 0.1); padding: 40px; border-radius: 24px; width: 90%; max-width: 420px; position: relative; box-shadow: 0 20px 40px rgba(0,0,0,0.6); transform: translateY(20px); transition: 0.3s ease; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.close-modal { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.05); border: none; color: #9CA3AF; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 100; transition: 0.2s; }
.close-modal:hover { background: #ef4444; color: white; }
.reg-header { text-align: center; margin-bottom: 25px; }
.reg-header h3 { font-size: 1.8rem; color: #fff; margin: 0 0 8px 0; font-family: sans-serif; }
.reg-header p { color: #9CA3AF; font-size: 0.9rem; margin: 0; }
.input-container { position: relative; margin-bottom: 12px; }
.has-icon-local input { padding-left: 45px !important; }
.input-icon-local { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #3B82F6; font-weight: bold; font-size: 0.9rem; pointer-events: none; display: flex; align-items: center; justify-content: center; }
#auth-form-local input, #login-form-local input { width: 100%; padding: 14px 16px; background: #161B22; border: 1px solid #30363D; border-radius: 12px; color: #fff; font-size: 1rem; box-sizing: border-box; outline: none; }
#auth-form-local input:focus, #login-form-local input:focus { border-color: #3B82F6; background: #1C2128; }
.btn-submit-reg-local { width: 100%; padding: 16px; background: #3B82F6; color: white; border: none; border-radius: 12px; font-weight: bold; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 15px; transition: 0.2s; }
.btn-submit-reg-local:hover { background: #2563EB; transform: scale(1.02); }

/* Animation Utils */
.fade-in { opacity: 0; transform: translateY(30px) scale(0.98); transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); will-change: opacity, transform; }
.fade-in.visible { opacity: 1; transform: translateY(0) scale(1); }
.delay-100 { transition-delay: 0.1s; } .delay-200 { transition-delay: 0.2s; } .delay-300 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    body { flex-direction: column; height: auto; overflow-y: auto; }
}
@media (max-width: 768px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 2.8rem; }
    .hero-stats { justify-content: center; }
    .nav-links { display: none; }
    .steps-grid, .footer-grid { grid-template-columns: 1fr; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

/* ========================================= */
/* === 5. INNER PAGES (About, Privacy) === */
/* ========================================= */

.text-blue { color: var(--primary); }
.text-justify { text-align: justify; text-justify: inter-word; }

/* --- Page Hero --- */
.page-hero {
    padding: 180px 0 100px; text-align: center; position: relative;
    background: radial-gradient(circle at top, rgba(59,130,246,0.1), transparent 60%);
}
.page-title { font-size: 4rem; font-weight: 800; margin-bottom: 20px; line-height: 1.1; letter-spacing: -1px; }
.page-desc { 
    font-size: 1.2rem; color: var(--text-muted); max-width: 800px; margin: 0 auto; 
    line-height: 1.6; text-align: center; 
}

/* --- Stats Grid (About) --- */
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px;
    margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--border);
}
.stat-item h3 { font-size: 3rem; color: white; font-weight: 900; margin-bottom: 5px; line-height: 1; }
.stat-item p { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* --- Values Grid (About) --- */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.value-card {
    background: linear-gradient(145deg, #0F131F 0%, #090C13 100%);
    border: 1px solid var(--border); padding: 40px; border-radius: 24px;
    transition: 0.3s;
}
.value-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.value-icon { font-size: 2.5rem; margin-bottom: 20px; display: block; }
.value-title { font-size: 1.4rem; margin-bottom: 10px; font-weight: 700; color: white; }
.value-text { color: var(--text-muted); font-size: 1rem; line-height: 1.6; text-align: justify; text-justify: inter-word; }

/* --- Timeline (About) --- */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
    width: 2px; background: var(--border); transform: translateX(-50%);
}
.timeline-item {
    display: flex; justify-content: flex-end; padding-right: 50px;
    position: relative; margin-bottom: 60px; width: 50%;
}
.timeline-item:nth-child(even) {
    align-self: flex-end; justify-content: flex-start; padding-right: 0; padding-left: 50px; margin-left: 50%;
}
.timeline-dot {
    position: absolute; right: -6px; top: 5px; width: 14px; height: 14px;
    background: var(--primary); border-radius: 50%; box-shadow: 0 0 15px var(--primary);
    z-index: 2;
}
.timeline-item:nth-child(even) .timeline-dot { right: auto; left: -6px; }
.timeline-content { text-align: right; }
.timeline-item:nth-child(even) .timeline-content { text-align: left; }
.year { font-size: 3.5rem; font-weight: 900; color: rgba(255,255,255,0.03); line-height: 1; margin-bottom: -25px; position: relative; z-index: 0; }
.event-title { font-size: 1.5rem; font-weight: 700; color: white; position: relative; z-index: 1; margin-bottom: 5px; }
.event-desc { color: var(--text-muted); font-size: 0.95rem; text-align: justify; text-justify: inter-word; }
.timeline-item:nth-child(odd) .event-desc { text-align-last: right; } 
.timeline-item:nth-child(even) .event-desc { text-align-last: left; }

/* --- Team Grid (About) --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.team-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 24px; overflow: hidden; transition: 0.4s;
}
.team-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.team-photo {
    height: 340px; background-color: #1a1f2e; background-size: cover; background-position: center;
    filter: grayscale(100%); transition: 0.4s;
}
.team-card:hover .team-photo { filter: grayscale(0%); }
.team-info { padding: 25px; border-top: 1px solid var(--border); }
.team-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 5px; color: white; }
.team-role { color: var(--primary); font-size: 0.8rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }

/* --- Legal Layout (Privacy) --- */
.legal-wrapper {
    padding-top: 140px;
    padding-bottom: 100px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    flex: 1;
}
.legal-sidebar { position: sticky; top: 120px; height: fit-content; max-height: 80vh; overflow-y: auto; }
.sidebar-menu { border-left: 2px solid rgba(255,255,255,0.05); }
.sidebar-link {
    display: block; padding: 12px 20px;
    color: var(--text-muted); font-size: 0.9rem;
    transition: 0.3s; border-left: 2px solid transparent; margin-left: -2px;
}
.sidebar-link:hover, .sidebar-link.active {
    color: var(--primary); border-left-color: var(--primary);
    background: linear-gradient(90deg, rgba(59,130,246,0.05), transparent);
}
.legal-content { min-width: 0; }
.legal-content h1 { font-size: 2.5rem; margin-bottom: 10px; line-height: 1.1; font-weight: 800; }
.last-updated { color: var(--text-muted); margin-bottom: 40px; display: block; font-size: 0.9rem; }

.legal-section { 
    margin-bottom: 80px; 
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    scroll-margin-top: 140px; 
}
.legal-section:last-child { border-bottom: none; }

.legal-section h2 { font-size: 2rem; margin-bottom: 25px; color: white; font-weight: 700; }
.legal-section h3 { font-size: 1.3rem; margin: 35px 0 15px 0; color: #E5E7EB; font-weight: 600; }
.legal-section p { color: #B0B8C4; margin-bottom: 12px; font-size: 1rem; line-height: 1.7; text-align: justify; }
.intro-text { font-size: 1.1rem; color: white; margin-bottom: 30px; }

/* Responsive Updates */
@media (max-width: 900px) {
    .legal-wrapper { grid-template-columns: 1fr; padding-top: 100px; }
    .legal-sidebar { display: none; }
}
@media (max-width: 768px) {
    .page-title { font-size: 2.8rem; }
    .timeline::before { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 0; text-align: left; }
    .timeline-item:nth-child(even) { margin-left: 0; }
    .timeline-content, .timeline-item:nth-child(even) .timeline-content { text-align: left; }
    .timeline-dot, .timeline-item:nth-child(even) .timeline-dot { left: 14px; right: auto; }
    .timeline-item:nth-child(odd) .event-desc { text-align-last: left; }
}



/* ========================================= */
/* === 6. VIEW TRANSITIONS (SPA) === */
/* ========================================= */

/*     View (Main ) */
main[id^='view-'] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-out;
    will-change: opacity, transform;
}

/*  '' (  /) */
.view-hidden-anim {
    opacity: 0 !important;
    transform: translateY(20px) !important;
    pointer-events: none; /*        */
}



/* ========================================= */
/* === 7. AUTH BUTTONS & PROFILE WIDGET === */
/* ========================================= */

/*  '' (Glass Style) */
.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-1px);
}

/*  '' (Accent Glow) */
.btn-accent-glow {
    background: linear-gradient(135deg, var(--primary) 0%, #2563EB 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-accent-glow:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/*   ( ) */
.user-profile-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 6px 6px 16px;
    border-radius: 50px;
    transition: 0.3s;
    cursor: pointer;
}
.user-profile-widget:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.logout-icon {
    color: #ef4444;
    font-size: 1.1rem;
    padding: 8px;
    border-radius: 50%;
    transition: 0.2s;
    margin-left: 5px;
}
.logout-icon:hover {
    background: rgba(239, 68, 68, 0.15);
}



/* Premium Dashboard Button */
.btn-dashboard-premium {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, rgba(59,130,246,0.1) 0%, rgba(37,99,235,0.1) 100%);
    border: 1px solid rgba(59,130,246,0.3);
    padding: 8px 20px 8px 8px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    group: hover;
}
.btn-dashboard-premium:hover {
    background: linear-gradient(90deg, rgba(59,130,246,0.2) 0%, rgba(37,99,235,0.2) 100%);
    border-color: rgba(59,130,246,0.6);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}
.btn-dashboard-premium .icon-box {
    width: 32px;
    height: 32px;
    background: #3B82F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4);
}
.btn-dashboard-premium .text {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}



/* ========================================= */
/* === 8. MOBILE OPTIMIZATION (iPhone 14 Pro Max) === */
/* ========================================= */

@media (max-width: 1024px) {
    /* --- 1. HEADER & NAV --- */
    .nav-links { display: none; } /*    */
    
    .burger-btn {
        display: flex; /*   */
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
        width: 44px;
        height: 44px;
        border-radius: 12px;
        cursor: pointer;
        z-index: 1002;
    }
    .burger-line {
        width: 20px;
        height: 2px;
        background: white;
        margin: 0 auto;
        border-radius: 2px;
        transition: 0.3s;
    }
    
    /*     */
    body.menu-open .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.menu-open .burger-line:nth-child(2) { opacity: 0; }
    body.menu-open .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /*   () */
    .mobile-menu {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(2, 3, 5, 0.95);
        backdrop-filter: blur(20px);
        z-index: 1001;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        opacity: 0;
    }
    body.menu-open .mobile-menu {
        transform: translateY(0);
        opacity: 1;
    }
    
    .mobile-link {
        font-size: 1.5rem;
        font-weight: 700;
        color: white;
        text-decoration: none;
        opacity: 0;
        transform: translateY(20px);
        transition: 0.3s;
    }
    body.menu-open .mobile-link {
        opacity: 1;
        transform: translateY(0);
    }
    /*     */
    body.menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
    body.menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
    body.menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
    body.menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
    body.menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }
    body.menu-open .mobile-link:nth-child(6) { transition-delay: 0.35s; }

    /* --- 2. LAYOUT ADJUSTMENTS --- */
    .container { padding: 0 20px; }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding-top: 40px;
    }
    
    .hero-text h1 { font-size: 2.8rem; }
    .hero-text p { margin: 0 auto 30px; }
    
    .hero-stats {
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .hero-visual {
        height: 300px; /*   */
        order: -1; /*  ?  ?    ,   */
    }

    /* Grids to Single Column */
    .steps-grid, .miners-grid, .pricing-grid, .values-grid, .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Legal Pages */
    .legal-wrapper {
        grid-template-columns: 1fr;
        padding-top: 100px;
    }
    .legal-sidebar {
        display: none; /*    ,   */
    }
    
    /* Buttons */
    .header-actions {
        /*      ,       ? */
        /*    /   */
    }
    #main-reg-btn { display: none; } /*     (  ) */
}

/* Specific for iPhone 14 Pro Max (Large Phones) */
@media (min-width: 400px) and (max-width: 480px) {
    .hero-text h1 { font-size: 3.2rem; }
}

