:root {
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --text-strong: #0f172a;
    --text-soft: #64748b;
    --brand: #23423c;
    --brand-dark: #1c3530;
    --debt: #dc2626;
    --credit: #2563eb;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: radial-gradient(circle at top right, #c9d7d4 0%, #f8fafc 40%, #dbeafe 100%);
    color: var(--text-strong);
    -webkit-tap-highlight-color: transparent;
}

input,
textarea,
select {
    font: inherit;
}

button {
    font: inherit;
}

.pb-safe {
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

.pt-safe {
    padding-top: max(0.5rem, env(safe-area-inset-top));
}

.app-orb {
    pointer-events: none;
    position: fixed;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.45;
    z-index: -1;
}

.app-orb-one {
    height: 17rem;
    width: 17rem;
    right: -3rem;
    top: -2rem;
    background: #7ea29b;
}

.app-orb-two {
    height: 14rem;
    width: 14rem;
    left: -4rem;
    bottom: 10rem;
    background: #bfdbfe;
}

.balance-chip {
    animation: float-chip 5s ease-in-out infinite;
}

@keyframes float-chip {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-3px);
    }
}

.card-pop {
    animation: pop-in 0.35s ease;
}

@keyframes pop-in {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fade-in 0.3s ease;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

.balance-positive {
    color: var(--credit);
}

.balance-negative {
    color: var(--debt);
}

.balance-even {
    color: var(--brand);
}

.shad-input {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 0.85rem 1rem;
    font-weight: 600;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.shad-input:focus {
    outline: none;
    border-color: #5e8579;
    box-shadow: 0 0 0 3px rgba(35, 66, 60, 0.14);
}

.shad-button {
    width: 100%;
    border: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, #2f5a52, #23423c);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 0.9rem 1rem;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 16px 32px -20px rgba(35, 66, 60, 0.8);
}

.shad-button:active {
    transform: scale(0.98);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.status-pill {
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.65rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-credit {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.status-debt {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.status-even {
    background: rgba(35, 66, 60, 0.12);
    color: #23423c;
}

.modal-backdrop {
    backdrop-filter: blur(4px);
}

.tab-icon-wrap {
    height: 2rem;
    width: 2rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tab-active .tab-icon-wrap {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 12px 20px -14px rgba(35, 66, 60, 0.9);
}

[data-inline-title],
[data-large-title] {
    transition: opacity 0.24s ease, transform 0.24s ease;
}

[data-large-header] {
    transition: padding 0.24s ease, background-color 0.24s ease, border-color 0.24s ease;
}

[data-large-header] [data-large-title] {
    max-height: 4.5rem;
    overflow: hidden;
    transition: max-height 0.24s ease, margin-top 0.24s ease, opacity 0.24s ease, transform 0.24s ease;
}

[data-large-header].header-compact {
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
}

[data-large-header].header-compact [data-large-title] {
    max-height: 0;
    margin-top: 0 !important;
    opacity: 0;
    transform: translateY(-8px);
}

.skeleton-card {
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 1rem;
}
