:root {
    --bg-main: #07111f;
    --bg-panel: rgba(10, 26, 46, 0.86);
    --line: rgba(255, 255, 255, 0.08);
    --text-main: #f5f7fb;
    --text-soft: #9db0c6;
    --primary: #2388ff;
    --primary-dark: #0b5dd7;
    --accent: #ff8d29;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

body.app-body {
    font-family: "Manrope", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(35, 136, 255, 0.22), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 141, 41, 0.16), transparent 26%),
        linear-gradient(180deg, #040b14 0%, #07111f 50%, #091522 100%);
    min-height: 100vh;
}

a { text-decoration: none; }

.brand-mark, .hero-title, .section-title, .dashboard-title {
    font-family: "Space Grotesk", sans-serif;
}

.glass-nav {
    background: rgba(5, 13, 24, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-section {
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
}

.hero-section::before {
    background: rgba(35, 136, 255, 0.18);
    top: 4rem;
    right: -6rem;
}

.hero-section::after {
    background: rgba(255, 141, 41, 0.14);
    left: -4rem;
    bottom: 0;
}

.hero-badge,
.mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    color: var(--text-soft);
}

.hero-title {
    font-size: clamp(2.8rem, 4vw, 4.8rem);
    font-weight: 800;
    line-height: 1.05;
}

.hero-text, .small-text, .muted-label {
    color: var(--text-soft);
}

.hero-card,
.feature-card,
.panel-card,
.auth-card,
.table-card,
.sidebar-card {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.hero-card, .feature-card, .panel-card, .auth-card, .table-card, .sidebar-card {
    padding: 1.5rem;
}

.floating-stat {
    padding: 1.2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-card { height: 100%; transition: transform 0.25s ease, border-color 0.25s ease; }
.feature-card:hover { transform: translateY(-6px); border-color: rgba(35, 136, 255, 0.35); }

.icon-pill {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(35, 136, 255, 0.2), rgba(255, 141, 41, 0.18));
    color: var(--accent);
    font-weight: 800;
}

.section-space { padding: 5rem 0; }

.section-title {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
}

.calc-output {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.step-card {
    height: 100%;
    padding: 1.8rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(13, 32, 54, 0.95), rgba(6, 16, 29, 0.95));
}

.site-footer {
    padding: 2rem 0 3rem;
    color: var(--text-soft);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
}

.btn-warning-brand {
    background: linear-gradient(135deg, #ff9d3c, var(--accent));
    color: #111827;
    border: none;
}

.auth-wrapper, .dashboard-wrapper {
    padding-top: 7rem;
    padding-bottom: 3rem;
}

.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-radius: 14px;
    padding: 0.85rem 1rem;
}

.form-control:focus, .form-select:focus {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(35, 136, 255, 0.55);
    box-shadow: 0 0 0 0.25rem rgba(35, 136, 255, 0.12);
}

.form-control::placeholder { color: rgba(157, 176, 198, 0.75); }

.dashboard-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
}

.sidebar-card {
    position: sticky;
    top: 6.5rem;
    background: rgba(7, 18, 33, 0.92);
    height: fit-content;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    color: var(--text-soft);
    transition: all 0.2s ease;
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(35, 136, 255, 0.12);
    color: var(--text-main);
}

.metric-card {
    padding: 1.4rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(10, 26, 46, 0.95), rgba(7, 17, 31, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 100%;
}

.metric-value {
    font-size: 1.85rem;
    font-weight: 800;
}

.table {
    color: var(--text-main);
    margin-bottom: 0;
}

.table > :not(caption) > * > * {
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.06);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.badge-soft {
    background: rgba(61, 213, 152, 0.12);
    color: #6ef0b7;
}

.badge-warning-soft {
    background: rgba(255, 141, 41, 0.16);
    color: #ffb977;
}

.chart-wrap { min-height: 320px; }
.report-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

@media (max-width: 991px) {
    .dashboard-shell { grid-template-columns: 1fr; }
    .sidebar-card { position: relative; top: 0; }
}

@media (max-width: 767px) {
    .hero-section { padding-top: 6.8rem; }
    .section-space { padding: 4rem 0; }
    .hero-card { margin-top: 2rem; }
}
