:root {
    --primary-app: #0f2a44;
    --primary-app-soft: #183b5d;
    --primary-app-light: #eef4fb;
    --light-bg: #f6f8fb;
    --success-app: #198754;
    --text-app: #1f2937;
    --muted-app: #64748b;
    --border-app: #e5e7eb;
}

html, body {
    min-height: 100%;
}

body {
    background: var(--light-bg);
    color: var(--text-app);
}

a {
    transition: all .18s ease-in-out;
}

.bg-primary-app,
.btn-primary-app {
    background: var(--primary-app) !important;
    border-color: var(--primary-app) !important;
    color: #fff !important;
}

.btn-primary-app:hover {
    background: var(--primary-app-soft) !important;
    border-color: var(--primary-app-soft) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.btn {
    border-radius: 10px;
    font-weight: 600;
}

.navbar {
    min-height: 62px;
}

.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #eaf1f8 100%);
    border-bottom: 1px solid var(--border-app);
}

.hero-commercial {
    position: relative;
    overflow: hidden;
}

.hero-commercial::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -120px;
    top: -120px;
    background: rgba(25, 135, 84, .12);
    border-radius: 50%;
}

.hero-panel,
.empty-state,
.dashboard-hero,
.next-step-card {
    background: #fff;
    border: 1px solid var(--border-app);
    box-shadow: 0 10px 30px rgba(15, 42, 68, 0.08);
    border-radius: 18px;
    padding: 1.5rem;
}

.dashboard-hero,
.next-step-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.section-label {
    display: inline-block;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--success-app);
    margin-bottom: .4rem;
}

.service-card,
.pricing-card,
.metric-card,
.demo-card,
.card.shadow-sm {
    border: 0;
    box-shadow: 0 8px 24px rgba(15, 42, 68, 0.08);
    border-radius: 16px;
}

.service-card:hover,
.demo-card:hover,
.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(15, 42, 68, 0.12);
}

.pricing-card {
    overflow: hidden;
}

.pricing-card.featured {
    border: 2px solid var(--success-app);
    transform: translateY(-4px);
}

.price-note {
    color: var(--primary-app);
    font-weight: 800;
    font-size: 1.05rem;
}

.demo-price {
    background: #f8fafc;
    border: 1px solid var(--border-app);
    border-radius: 12px;
    padding: .8rem;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-app), var(--primary-app-soft));
    color: #fff;
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 8px 24px rgba(15, 42, 68, 0.16);
}

.list-check {
    list-style: none;
    padding-left: 0;
}

.list-check li {
    margin-bottom: .7rem;
    padding-left: 1.8rem;
    position: relative;
}

.list-check li::before {
    content: "✓";
    color: var(--success-app);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.step-number {
    width: 42px;
    height: 42px;
    background: var(--primary-app);
    color: #fff;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 1rem;
}

.benefit-item {
    background: #fff;
    border: 1px solid var(--border-app);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    box-shadow: 0 8px 24px rgba(15, 42, 68, 0.06);
    font-weight: 700;
}

.bg-sidebar {
    background: #fff;
    border-right: 1px solid var(--border-app);
    min-height: calc(100vh - 56px);
}

.sidebar .nav-link {
    color: #334155;
    border-radius: 10px;
    margin: 2px 10px;
}

.sidebar .nav-link:hover {
    background: var(--primary-app-light);
    color: var(--primary-app);
}

.metric-card .metric {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-app);
    line-height: 1.1;
}

.metric-card .card-body {
    color: var(--muted-app);
}

.quick-card {
    display: block;
    background: #fff;
    padding: 1.2rem;
    border-radius: 14px;
    text-decoration: none;
    color: var(--primary-app);
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(15, 42, 68, 0.08);
    min-height: 76px;
}

.quick-card:hover {
    background: var(--primary-app-light);
    color: var(--primary-app);
    transform: translateY(-1px);
}

.message-box {
    max-height: 360px;
    overflow-y: auto;
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
}

.message-item {
    background: #fff;
    border: 1px solid var(--border-app);
    border-radius: 10px;
    padding: .75rem;
    margin-bottom: .75rem;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: #f8fafc;
    color: #334155;
    font-size: .84rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.table td,
.table th {
    vertical-align: middle;
}

.form-label {
    font-weight: 700;
    color: #334155;
}

.form-control,
.form-select {
    border-radius: 10px;
    border-color: #dbe3ee;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-app-soft);
    box-shadow: 0 0 0 .2rem rgba(15, 42, 68, .12);
}

.form-text {
    color: var(--muted-app);
}

.badge {
    border-radius: 999px;
    padding: .45rem .7rem;
}

.alert {
    border-radius: 14px;
    border: 0;
}

.footer {
    background: #fff !important;
}

@media (max-width: 767px) {
    .bg-sidebar {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--border-app);
    }

    .dashboard-hero,
    .next-step-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-section .btn,
    .cta-box .btn {
        width: 100%;
    }

    .metric-card .metric {
        font-size: 1.6rem;
    }
}
