@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
    --navy-900: #060d1b;
    --navy-800: #0f172a;
    --navy-700: #1e293b;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --blue-600: #2563eb;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-600: #475569;
    --slate-800: #1e293b;
    --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: var(--slate-50);
    color: var(--navy-800);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    padding-bottom: 50px;
}

h1, h2, h3, h4, .logo, nav a, .btn { font-family: 'Plus Jakarta Sans', sans-serif; }

.ticker-bar {
    background: var(--navy-900);
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 0.4rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow-x: auto;
}
.ticker-items { display: flex; gap: 1.5rem; white-space: nowrap; }
.ticker-item strong { color: #f8fafc; margin-right: 0.3rem; }
.ticker-up { color: var(--emerald-500); font-weight: 600; }

header {
    background: rgba(15, 23, 42, 0.98);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo-badge {
    background: linear-gradient(135deg, var(--emerald-500), var(--blue-600));
    color: white;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 700;
}

nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    padding: 0.3rem 0;
}
nav a:hover, nav a.active {
    color: #ffffff;
    border-bottom: 2px solid var(--emerald-500);
}

.layout {
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
}
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }

main {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--slate-200);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.page-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--navy-900);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.page-desc { color: var(--slate-600); font-size: 1.05rem; margin-bottom: 2rem; }

.ad-container {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1.8rem 0;
    min-height: 100px;
}
.ad-tag {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}
.ad-content-placeholder { color: #64748b; font-size: 0.85rem; font-weight: 600; text-align: center; }

.calc-box {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 1.8rem;
    margin-bottom: 2rem;
}
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.88rem; font-weight: 700; color: var(--navy-800); }

input, select {
    padding: 0.75rem;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.btn-submit {
    background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
    color: #ffffff;
    border: none;
    padding: 1rem 1.8rem;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
}
.btn-submit:hover { background: linear-gradient(135deg, var(--blue-600), var(--navy-800)); }

.output-card {
    background: linear-gradient(135deg, var(--navy-900), #111827);
    color: white;
    border-radius: 12px;
    padding: 1.8rem;
    margin-top: 1.8rem;
}
.output-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.2rem;
    margin-top: 1rem;
}
.stat-box { background: rgba(255,255,255,0.05); padding: 1rem; border-radius: 8px; }
.stat-label { font-size: 0.8rem; color: #94a3b8; font-weight: 600; text-transform: uppercase; }
.stat-value { font-size: 1.4rem; font-weight: 800; color: #ffffff; margin-top: 0.3rem; }
.stat-value.highlight { color: var(--emerald-500); }

.seo-text-section {
    margin-top: 3rem;
    border-top: 1px solid var(--slate-200);
    padding-top: 2rem;
}
.seo-text-section h2 { font-size: 1.5rem; color: var(--navy-900); margin-bottom: 1rem; }
.seo-text-section h3 { font-size: 1.2rem; color: var(--navy-800); margin: 1.5rem 0 0.5rem 0; }
.seo-text-section p { color: var(--slate-600); margin-bottom: 1rem; font-size: 1rem; line-height: 1.7; }

.faq-box {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1rem;
}
.faq-box h4 { font-size: 1.05rem; color: var(--navy-900); margin-bottom: 0.4rem; }
.faq-box p { font-size: 0.95rem; color: var(--slate-600); margin: 0; }

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.portal-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 1.8rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.portal-card:hover { transform: translateY(-4px); border-color: var(--emerald-500); box-shadow: var(--shadow-lg); }

.timer-display {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--navy-900);
    text-align: center;
    font-family: monospace;
    margin: 1.5rem 0;
}

footer {
    background: var(--navy-900);
    color: #94a3b8;
    padding: 3.5rem 1.5rem 2rem 1.5rem;
    margin-top: 4rem;
    text-align: center;
}
footer a { color: #38bdf8; text-decoration: none; margin: 0 0.5rem; font-size: 0.9rem; }
