:root {
    --bg: #0f1117;
    --surface: #1a1d27;
    --border: #2a2d3a;
    --text: #e1e4ed;
    --text-muted: #8b8fa3;
    --accent: #4f8ff7;
    --accent-hover: #6ba3ff;
    --green: #34d399;
    --red: #f87171;
    --yellow: #fbbf24;
    --gradient-start: #1a1d27;
    --gradient-end: #0f1117;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

/* ========== Navbar ========== */
.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(26, 29, 39, 0.92);
}
.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }

/* Language switcher */
.lang-switcher { position: relative; }
.lang-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: border-color 0.2s;
}
.lang-btn:hover { border-color: var(--accent); color: var(--text); }
.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    min-width: 140px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    overflow: hidden;
    z-index: 200;
}
.lang-dropdown.show { display: block; }
.lang-option {
    display: block;
    padding: 8px 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.15s;
}
.lang-option:hover { background: rgba(79,143,247,0.1); color: var(--text); }
.lang-option.active { color: var(--accent); }

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-telegram {
    background: #229ED9;
    color: #fff;
}
.btn-telegram:hover { background: #1a8cc4; }

/* ========== Hero ========== */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, #141728 0%, #0f1117 50%, #111827 100%);
    border-bottom: 1px solid var(--border);
}
.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 28px;
    line-height: 1.6;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
}
.stat { text-align: center; }
.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}
.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* ========== Section ========== */
.section-full {
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}
.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 36px;
    letter-spacing: -0.02em;
}

/* ========== Features / How it works ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--accent); }
.feature-icon { font-size: 2.4rem; margin-bottom: 14px; }
.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text);
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ========== About ========== */
.about-section { background: var(--surface); }
.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.about-content p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}
.about-highlight {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--green) !important;
}

/* ========== Signals grid ========== */
.signals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.signal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, transform 0.15s;
}
.signal-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.symbol { font-size: 1.25rem; font-weight: 700; }
.card-body { font-size: 0.9rem; }
.card-row { display: flex; justify-content: space-between; padding: 5px 0; }
.card-footer { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 0.8rem; }

/* Signal types */
.signal-type { font-size: 0.75rem; padding: 3px 10px; border-radius: 6px; font-weight: 600; text-transform: uppercase; }
.signal-type--bounce_up, .signal-type--breakout_up { background: rgba(52,211,153,0.15); color: var(--green); }
.signal-type--bounce_down, .signal-type--breakout_down { background: rgba(248,113,113,0.15); color: var(--red); }

/* Status */
.status { font-size: 0.75rem; padding: 3px 10px; border-radius: 6px; }
.status--open { background: rgba(79,143,247,0.15); color: var(--accent); }
.status--tp1_hit, .status--tp2_hit { background: rgba(52,211,153,0.15); color: var(--green); }
.status--sl_hit { background: rgba(248,113,113,0.15); color: var(--red); }
.status--expired, .status--closed { background: rgba(139,143,163,0.15); color: var(--text-muted); }

/* Badge */
.badge { font-size: 0.75rem; padding: 3px 10px; border-radius: 6px; }
.badge--unicorn { background: rgba(251,191,36,0.15); color: var(--yellow); }
.badge--bluechip { background: rgba(79,143,247,0.15); color: var(--accent); }

/* ========== Report detail ========== */
.report-container { padding: 24px 0; min-height: calc(100vh - 120px); }
.report-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.report-meta { text-align: right; }
.report-meta time { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.subtitle { color: var(--text-muted); font-size: 0.9rem; }

.section { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 22px; margin-bottom: 16px; }
.section h2 { font-size: 1.1rem; margin-bottom: 12px; color: var(--accent); }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; }
.data-table td, .data-table th { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.data-table th { color: var(--text-muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }
.table-responsive { overflow-x: auto; }
.fundamentals-table { font-size: 0.85rem; }

.text-green { color: var(--green); }
.text-red { color: var(--red); }

/* Quality */
.quality-display { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.stars { color: var(--yellow); font-size: 1.2rem; }
.quality-checks { list-style: none; font-size: 0.9rem; }
.quality-checks li { padding: 4px 0; }
.quality-checks li::before { content: "\2713 "; color: var(--green); }

/* Experts */
.experts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.expert-card { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
.expert-card h3 { font-size: 0.9rem; margin-bottom: 6px; }
.expert-card p { font-size: 0.85rem; color: var(--text-muted); }
.verdict { font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.verdict--buy, .verdict--bullish { background: rgba(52,211,153,0.15); color: var(--green); }
.verdict--sell, .verdict--bearish { background: rgba(248,113,113,0.15); color: var(--red); }
.verdict--hold, .verdict--neutral { background: rgba(139,143,163,0.15); color: var(--text-muted); }
.consensus { margin-bottom: 12px; }

/* Disclaimer */
.disclaimer { font-size: 0.8rem; color: var(--text-muted); }

/* ========== Footer ========== */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--surface);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-cta { margin-bottom: 4px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.disclaimer-text { font-size: 0.8rem; color: var(--text-muted); max-width: 500px; }
.copyright { font-size: 0.75rem; color: var(--text-muted); opacity: 0.6; }

/* ========== Empty / misc ========== */
.empty-state { text-align: center; padding: 60px 0; color: var(--text-muted); }
.date { color: var(--text-muted); }

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-stats { gap: 24px; }
    .stat-value { font-size: 1.5rem; }
    .features-grid { grid-template-columns: 1fr; }
    .signals-grid { grid-template-columns: 1fr; }
    .report-header { flex-direction: column; }
    .report-meta { text-align: left; }
    .experts-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .hero { padding: 50px 0 40px; }
    .hero-title { font-size: 1.5rem; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .footer-links { flex-direction: column; gap: 12px; }
}
