:root {
    --bg: #f5efe3;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --text: #0f172a;
    --text-soft: #64748b;
    --border: rgba(15, 23, 42, 0.08);
    --brand: #0f766e;
    --brand-dark: #134e4a;
    --accent: #f97316;
    --accent-soft: #fed7aa;
    --danger: #dc2626;
    --shadow: 0 20px 70px rgba(15, 23, 42, 0.09);
    --radius-xl: 28px;
    --radius-lg: 20px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 32%),
        radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.18), transparent 28%),
        var(--bg);
}

.auth-body,
.app-body {
    min-height: 100vh;
}

.auth-gradient,
.page-blur {
    position: fixed;
    inset: auto;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.55;
    z-index: 0;
    pointer-events: none;
}

.auth-gradient {
    width: 380px;
    height: 380px;
    top: -140px;
    right: -80px;
    background: rgba(249, 115, 22, 0.4);
}

.blur-one {
    width: 320px;
    height: 320px;
    top: -120px;
    left: -120px;
    background: rgba(15, 118, 110, 0.25);
}

.blur-two {
    width: 340px;
    height: 340px;
    bottom: -140px;
    right: -80px;
    background: rgba(249, 115, 22, 0.22);
}

.container,
.app-shell {
    position: relative;
    z-index: 1;
}

.auth-hero {
    padding: 2rem 1rem 2rem 0;
}

.auth-copy {
    max-width: 560px;
    color: rgba(15, 23, 42, 0.7);
    font-size: 1.05rem;
    line-height: 1.8;
}

.auth-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.auth-card,
.surface-card,
.glass-card,
.metric-card,
.category-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow);
    border-radius: var(--radius-xl);
}

.auth-card {
    padding: 2rem;
    backdrop-filter: blur(14px);
}

.surface-card {
    padding: 1.5rem;
}

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

.eyebrow-pill,
.feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.eyebrow-pill {
    color: var(--brand-dark);
    background: rgba(15, 118, 110, 0.12);
}

.eyebrow-pill.subtle {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text);
}

.feature-chip {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.app-shell {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
}

.app-sidebar {
    width: 290px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.88));
    color: #fff;
    min-height: calc(100vh - 2.5rem);
    border-radius: 32px;
    padding: 1.5rem;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.25);
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: #fff;
}

.brand-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), #14b8a6);
    font-size: 1.35rem;
}

.brand-mark small {
    display: block;
    color: rgba(255, 255, 255, 0.62);
}

.sidebar-nav {
    gap: 0.5rem;
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    padding: 0.9rem 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

.sidebar-footer {
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
}

.app-main {
    flex: 1;
    min-width: 0;
}

.topbar {
    padding: 1rem 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.topbar-label {
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 700;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-badge {
    background: rgba(255, 255, 255, 0.76);
    padding: 0.8rem 1rem;
    border-radius: 18px;
    min-width: 240px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.user-badge small {
    display: block;
    color: var(--text-soft);
}

.hero-panel {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.98), rgba(20, 184, 166, 0.88));
    color: white;
    border-radius: 32px;
    padding: 2rem;
    box-shadow: 0 30px 70px rgba(15, 118, 110, 0.25);
}

.hero-title {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
    max-width: 720px;
}

.hero-title span {
    color: #fde68a;
}

.hero-copy {
    color: rgba(255, 255, 255, 0.86);
    max-width: 700px;
    line-height: 1.7;
}

.metric-card {
    padding: 1.35rem;
    height: 100%;
}

.metric-card.compact {
    min-height: 144px;
}

.metric-card small,
.metric-card span {
    display: block;
}

.metric-card small {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--text-soft);
    margin-bottom: 0.75rem;
}

.metric-card strong {
    font-size: 1.75rem;
    line-height: 1.15;
    margin-bottom: 0.45rem;
    display: block;
}

.metric-card span {
    color: var(--text-soft);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.metric-icon.success {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.metric-icon.danger {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.metric-icon.info {
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
}

.metric-icon.warning {
    background: rgba(249, 115, 22, 0.12);
    color: #c2410c;
}

.empty-state {
    border: 1px dashed rgba(15, 23, 42, 0.12);
    border-radius: 24px;
    min-height: 240px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--text-soft);
    padding: 1.5rem;
}

.empty-state.compact {
    min-height: auto;
}

.empty-state i {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.list-stack {
    display: grid;
    gap: 0.9rem;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: var(--surface-muted);
}

.category-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.insight-panel {
    background: var(--surface-muted);
    border-radius: 24px;
    padding: 1.2rem;
}

.insight-label {
    display: block;
    font-size: 0.84rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-soft);
    margin-bottom: 0.5rem;
}

.finance-table thead th {
    color: var(--text-soft);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom-width: 1px;
}

.finance-table tbody td {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-color: rgba(15, 23, 42, 0.06);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.category-card {
    padding: 1.15rem;
}

.sticky-form {
    position: sticky;
    top: 1rem;
}

.form-control,
.form-select {
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    padding: 0.85rem 1rem;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(15, 118, 110, 0.5);
}

.form-control-color {
    height: 52px;
    padding: 0.4rem;
}

.btn {
    font-weight: 700;
    border-width: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), #14b8a6);
    border-color: transparent;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #115e59, #0f766e);
    border-color: transparent;
}

.offcanvas {
    border-top-right-radius: 28px;
    border-bottom-right-radius: 28px;
}

@media (max-width: 991.98px) {
    .app-shell {
        padding: 1rem;
    }

    .topbar {
        padding-top: 0.25rem;
    }

    .hero-panel {
        padding: 1.5rem;
    }

    .sticky-form {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .auth-hero {
        padding-right: 0;
        padding-bottom: 0.5rem;
    }

    .auth-card,
    .surface-card,
    .hero-panel,
    .metric-card,
    .category-card {
        border-radius: 24px;
    }

    .topbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .list-item {
        flex-direction: column;
        align-items: flex-start;
    }
}
