:root {
    --fp-ink: #101828;
    --fp-deep: #16324f;
    --fp-ocean: #245a7a;
    --fp-sand: #f4ede3;
    --fp-accent: #d66d3d;
    --fp-soft: #eef3f7;
    --fp-line: rgba(16, 24, 40, 0.09);
}

body.app-body {
    background:
        radial-gradient(circle at top left, rgba(214, 109, 61, 0.14), transparent 28%),
        linear-gradient(180deg, #f7f8fb 0%, #eef3f7 100%);
    color: var(--fp-ink);
    min-height: 100vh;
}

.hero-shell {
    background:
        linear-gradient(135deg, rgba(14, 34, 54, 0.98), rgba(34, 85, 117, 0.92)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent);
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.18);
}

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

.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -5% -35% auto;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(214, 109, 61, 0.16);
    filter: blur(16px);
}

.eyebrow {
    display: inline-block;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--fp-accent);
}

.glass-card,
.feature-card,
.package-card,
.sidebar-card,
.table-shell,
.empty-state {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(16, 24, 40, 0.08);
}

.glass-card {
    backdrop-filter: blur(12px);
}

.metric-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
}

.metric-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.feature-card,
.package-card,
.sidebar-card,
.empty-state {
    padding: 1.5rem;
}

.feature-step {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--fp-sand);
    color: var(--fp-accent);
    font-weight: 700;
}

.package-code {
    display: inline-block;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: var(--fp-soft);
    color: var(--fp-ocean);
    font-size: 0.9rem;
    font-weight: 700;
}

.mini-stat {
    background: #fff;
    border: 1px solid var(--fp-line);
    border-radius: 1rem;
    padding: 0.85rem 1rem;
}

.mini-stat strong {
    display: block;
    font-size: 1.3rem;
}

.mini-stat span {
    color: #667085;
    font-size: 0.88rem;
}

.list-group-item {
    border: 0;
    border-radius: 1rem !important;
    margin-bottom: 0.6rem;
    background: #fff;
}

.list-group-item.active {
    background: linear-gradient(135deg, var(--fp-deep), var(--fp-ocean));
    border-color: transparent;
}

.detail-header {
    padding: 2rem;
    border-radius: 1.75rem;
    background:
        linear-gradient(135deg, rgba(214, 109, 61, 0.1), rgba(36, 90, 122, 0.08)),
        #fff;
    box-shadow: 0 20px 40px rgba(16, 24, 40, 0.06);
}

.table-shell {
    overflow: hidden;
}

.table thead th {
    background: #f9fafb;
    border-bottom: 1px solid var(--fp-line);
    color: #475467;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.table td,
.table th {
    padding: 1rem 1.1rem;
    border-color: var(--fp-line);
}

.section-row td {
    background: rgba(36, 90, 122, 0.08);
    color: var(--fp-deep);
    font-weight: 700;
}

.note-row td {
    background: rgba(244, 237, 227, 0.7);
    color: #69432a;
}

.submission-sheet {
    background: #fff;
    border-radius: 1.75rem;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(16, 24, 40, 0.08);
}

.submission-sheet__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.submission-sheet__kicker {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--fp-accent);
}

.submission-sheet__title {
    margin: 0;
    font-size: 2rem;
}

.submission-sheet__subtitle {
    margin: 0.35rem 0 0;
    color: #667085;
}

.submission-sheet__badge {
    min-width: 5rem;
    text-align: center;
    border-radius: 1rem;
    padding: 0.8rem 1rem;
    background: var(--fp-soft);
    color: var(--fp-ocean);
    font-weight: 700;
}

.submission-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.submission-meta div {
    background: #f9fafb;
    border: 1px solid var(--fp-line);
    border-radius: 1rem;
    padding: 0.9rem 1rem;
}

.submission-meta strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #667085;
    margin-bottom: 0.35rem;
}

.submission-meta span {
    display: block;
}

.submission-notes {
    border-left: 4px solid var(--fp-accent);
    padding: 0.9rem 1rem;
    background: #fff8f3;
    margin-bottom: 1.5rem;
}

.submission-table thead th {
    background: #eef3f7;
}

.price-cell {
    min-width: 8rem;
}

.submission-signatures {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.signature-line {
    height: 4rem;
    border-bottom: 1px solid #98a2b3;
    margin-top: 0.8rem;
}

@media (max-width: 991.98px) {
    .hero-panel .display-5 {
        font-size: 2.35rem;
    }

    .detail-header {
        padding: 1.4rem;
    }

    .submission-meta,
    .submission-signatures {
        grid-template-columns: 1fr;
    }
}

@media print {
    .navbar,
    .feature-card form,
    .btn,
    .sidebar-card,
    .hero-shell {
        display: none !important;
    }

    body.app-body {
        background: #fff;
    }

    .submission-sheet {
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }
}
