/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0a0f1e;
    --panel: rgba(255, 255, 255, 0.05);
    --panel-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.75);
    --primary: #f0b429;
    --primary-dim: rgba(240, 180, 41, 0.2);
    --win: #38b26a;
    --loss: #d94b4b;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === Layout === */
.min-h-screen { min-height: 100vh; }
.container { max-width: 1152px; margin: 0 auto; padding: 0 16px; }

/* === Header === */
.header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo-link { display: flex; align-items: center; gap: 12px; }
.logo-img { width: 40px; height: 40px; object-fit: contain; }
.logo-text { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--text); }
.logo-text .text-primary { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: var(--panel);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: background 0.2s;
}
.btn-outline:hover { background: var(--panel-hover); text-decoration: none; }

/* === Hero === */
.hero {
    background-image: linear-gradient(to bottom, rgba(10, 15, 30, 0.7), rgba(10, 15, 30, 0.96)), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 64px 16px;
    text-align: center;
}

.hero-logo { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 0 25px rgba(240, 180, 41, 0.35)); }
.hero-title { margin-top: 24px; font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.hero-subtitle { margin-top: 16px; max-width: 640px; font-size: 18px; color: var(--text-muted); }

@media (min-width: 640px) {
    .hero-inner { padding: 96px 24px; }
    .hero-title { font-size: 60px; }
}

/* === Main Content === */
.main-content { padding: 48px 16px; }

.grid-2 { display: grid; gap: 24px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* === Cards === */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 200px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-size: cover;
    background-position: center;
}
.card:hover { border-color: rgba(240, 180, 41, 0.5); box-shadow: 0 0 30px -5px rgba(240, 180, 41, 0.3); text-decoration: none; }

.card-premium { background-image: linear-gradient(to top, rgba(10, 15, 30, 0.95), rgba(10, 15, 30, 0.45)), url('card-premium.jpg'); }
.card-free { background-image: linear-gradient(to top, rgba(10, 15, 30, 0.95), rgba(10, 15, 30, 0.45)), url('card-free.jpg'); }

.badge {
    position: absolute;
    right: 16px;
    top: 16px;
    padding: 4px 12px;
    border: 1px solid rgba(240, 180, 41, 0.4);
    border-radius: 999px;
    background: rgba(240, 180, 41, 0.2);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

.card-icon { color: var(--primary); margin-bottom: 12px; }
.card-title { font-size: 24px; font-weight: 700; }
.card-desc { margin-top: 4px; font-size: 14px; color: var(--text-muted); }
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}
.card:hover .card-link svg { transform: translateX(4px); transition: transform 0.2s; }

/* === Support Grid === */
.support-grid {
    display: grid;
    gap: 16px;
    margin-top: 48px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 640px) { .support-grid { grid-template-columns: 1fr 1fr; } }

.support-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
}
.support-btn:hover { text-decoration: none; }

.support-btn-telegram {
    border: 1px solid rgba(56, 189, 248, 0.3);
    background: rgba(56, 189, 248, 0.1);
    color: #7dd3fc;
}
.support-btn-telegram:hover { border-color: rgba(56, 189, 248, 0.6); background: rgba(56, 189, 248, 0.2); }

.support-btn-affiliate {
    border: 1px solid rgba(240, 180, 41, 0.4);
    background: rgba(240, 180, 41, 0.15);
    color: var(--primary);
}
.support-btn-affiliate:hover { border-color: rgba(240, 180, 41, 0.7); background: rgba(240, 180, 41, 0.25); }

/* === Promo Code === */
.promo-code {
    margin-top: 16px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    padding: 12px 16px;
    border: 1px solid rgba(240, 180, 41, 0.2);
    border-radius: 8px;
    background: rgba(240, 180, 41, 0.05);
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: rgba(240, 180, 41, 0.9);
}

/* === Premium / Pricing Page === */
.pricing-card {
    max-width: 480px;
    margin: 0 auto;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--panel);
    text-align: center;
}
.pricing-title { font-size: 32px; font-weight: 700; }
.pricing-desc { margin-top: 8px; color: var(--text-muted); }
.pricing-features { margin: 24px 0; text-align: left; }
.pricing-features ul { list-style: none; }
.pricing-features li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.pricing-price { margin: 24px 0; }
.price { font-size: 48px; font-weight: 700; color: var(--primary); }
.price small { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: var(--bg);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary:hover { background: #d8b458; text-decoration: none; }
.btn-full { display: block; width: 100%; }
.pricing-note { margin-top: 16px; font-size: 14px; color: var(--text-muted); }

/* === Free Tips Page === */
.section-title { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.section-subtitle { color: var(--text-muted); margin-bottom: 32px; }

.day-card {
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel);
}
.day-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.day-date { font-size: 18px; font-weight: 600; }
.day-pill { padding: 2px 10px; border-radius: 999px; background: var(--panel-hover); font-size: 12px; color: var(--text-muted); }

.picks-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.picks-table th, .picks-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border); }
.picks-table th { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.row-won .res { color: var(--win); font-weight: 600; }
.row-lost .res { color: var(--loss); font-weight: 600; }

.stats-box {
    margin-top: 32px;
    padding: 16px;
    border: 1px solid rgba(240, 180, 41, 0.2);
    border-radius: 8px;
    background: rgba(240, 180, 41, 0.05);
    text-align: center;
    color: rgba(240, 180, 41, 0.9);
}

/* === Responsive === */
@media (max-width: 640px) {
    .header-inner { height: 56px; }
    .logo-text { font-size: 16px; }
    .btn-outline { padding: 6px 12px; font-size: 12px; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    .picks-table { font-size: 12px; }
    .picks-table th, .picks-table td { padding: 6px 6px; }
    .price { font-size: 36px; }
}