/* LedgerFlow — premium SaaS shell (Bootstrap 5.3 extension layer) */

:root {
    --lf-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --lf-bg: #f4f6f9;
    --lf-surface: #ffffff;
    --lf-surface-muted: #eef1f7;
    --lf-border: rgba(15, 23, 42, 0.08);
    --lf-text: #0f172a;
    --lf-muted: #64748b;
    --lf-sidebar: #0c1222;
    --lf-sidebar-text: rgba(248, 250, 252, 0.72);
    --lf-sidebar-active: #f8fafc;
    --lf-accent: #4f46e5;
    --lf-accent-2: #0891b2;
    --lf-radius: 1rem;
    --lf-radius-sm: 0.75rem;
    --lf-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    --lf-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--lf-font);
    color: var(--lf-text);
    background: var(--lf-bg);
    -webkit-font-smoothing: antialiased;
}

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

/* --- Layout frame --- */
.app-frame {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #0c1222 0%, #111a2e 55%, #0c1222 100%);
    color: var(--lf-sidebar-text);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1040;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.app-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.35);
}

@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed;
        left: 0;
        transform: translateX(-102%);
    }

    body.sidebar-open {
        overflow: hidden;
    }
}

.sidebar-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.5rem 0.75rem 1rem;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--lf-sidebar-active);
}

.brand-text {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: conic-gradient(from 210deg, #6366f1, #22d3ee, #a78bfa, #6366f1);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.45);
    flex-shrink: 0;
}

.brand-mark--lg {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.brand-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 11px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
}

.brand-img--lg {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.brand-img--guest {
    display: inline-block;
    vertical-align: middle;
}

.sidebar-section-label {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.38);
    padding: 1rem 0.75rem 0.35rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.65rem;
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

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

.sidebar-link.is-active {
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.35), rgba(34, 211, 238, 0.12));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.sidebar-icon {
    width: 2rem;
    display: inline-flex;
    justify-content: center;
    opacity: 0.9;
}

.sidebar-divider {
    height: 1px;
    margin: 0.5rem 0.5rem;
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-footer {
    padding: 1rem 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-user .avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.sidebar-user-meta .name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.sidebar-user-meta .role {
    font-size: 0.75rem;
    color: rgba(248, 250, 252, 0.45);
}

.btn-ghost-light {
    color: rgba(248, 250, 252, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1030;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.sidebar-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.app-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--lf-border);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.topbar-title {
    letter-spacing: -0.02em;
}

.app-content {
    flex: 1 1 auto;
}

/* --- Buttons --- */
.btn-gradient {
    border: 0;
    color: #fff !important;
    background: linear-gradient(120deg, #4f46e5, #6366f1 40%, #0891b2);
    box-shadow: 0 10px 28px rgba(79, 70, 229, 0.35);
}

.btn-gradient:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.btn-gradient:active {
    transform: translateY(0);
}

.btn-primary-soft {
    background: rgba(79, 70, 229, 0.1);
    color: #4338ca !important;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.btn-primary-soft:hover {
    background: rgba(79, 70, 229, 0.16);
}

.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--lf-border);
}

/* --- Cards & surfaces --- */
.card-elevated {
    border: 1px solid var(--lf-border);
    border-radius: var(--lf-radius);
    box-shadow: var(--lf-shadow-sm);
    background: var(--lf-surface);
}

.toolbar-card {
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

.stat-card {
    border-radius: var(--lf-radius);
    padding: 1.15rem 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border: 1px solid var(--lf-border);
    background: var(--lf-surface);
    box-shadow: var(--lf-shadow-sm);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.06;
    pointer-events: none;
}

.stat-card--primary::after {
    background: radial-gradient(circle at 0 0, #4f46e5, transparent 55%);
}

.stat-card--amber::after {
    background: radial-gradient(circle at 0 0, #f59e0b, transparent 55%);
}

.stat-card--emerald::after {
    background: radial-gradient(circle at 0 0, #10b981, transparent 55%);
}

.stat-card--violet::after {
    background: radial-gradient(circle at 0 0, #8b5cf6, transparent 55%);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: var(--lf-surface-muted);
    color: #334155;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lf-muted);
    font-weight: 600;
}

.stat-value {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.stat-hint {
    font-size: 0.75rem;
    color: var(--lf-muted);
    margin-top: 0.25rem;
}

.bg-gradient-tile {
    background: linear-gradient(145deg, #312e81 0%, #1e1b4b 45%, #0f172a 100%);
    border: 0 !important;
    box-shadow: var(--lf-shadow);
}

.tile-kicker {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.55);
}

.tile-list li {
    margin-bottom: 0.35rem;
    color: rgba(248, 250, 252, 0.85);
}

.bg-surface-muted {
    background: var(--lf-surface-muted) !important;
}

/* --- Tables --- */
.data-table thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lf-muted);
    font-weight: 600;
    border-bottom-color: var(--lf-border) !important;
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

.empty-state i {
    font-size: 2.25rem;
    opacity: 0.35;
}

.badge-status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35em 0.65em;
    border-radius: 999px;
    text-transform: capitalize;
    border: 1px solid transparent;
}

.badge-status--draft,
.badge-status--cancelled {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

.badge-status--sent,
.badge-status--pending {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.badge-status--approved {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.badge-status--failed {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

/* --- Guest / auth --- */
.guest-body {
    min-height: 100vh;
    background: var(--lf-bg);
}

.guest-body--split {
    padding: 0;
}

.guest-split {
    display: flex;
    min-height: 100vh;
}

.guest-hero {
    flex: 1.1;
    position: relative;
    background: radial-gradient(120% 80% at 10% 0%, #312e81 0%, #0f172a 55%, #020617 100%);
    align-items: stretch;
}

.guest-hero-inner {
    position: relative;
    z-index: 1;
    padding: 3.5rem 3rem;
    max-width: 560px;
}

.guest-hero-glow {
    position: absolute;
    inset: auto -20% -30% -10%;
    height: 60%;
    background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.35), transparent 55%),
        radial-gradient(circle at 70% 60%, rgba(129, 140, 248, 0.45), transparent 50%);
    filter: blur(2px);
}

.text-gradient-hero {
    background: linear-gradient(120deg, #a5b4fc, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.guest-points {
    list-style: none;
}

.guest-points li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: rgba(248, 250, 252, 0.78);
    margin-bottom: 0.65rem;
    font-size: 0.95rem;
}

.guest-points i {
    color: #34d399;
}

.guest-panel {
    flex: 0.9;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.login-card {
    border-radius: 1.25rem !important;
}

/* --- Wizard --- */
.guest-body--wizard {
    background: radial-gradient(120% 80% at 10% 0%, rgba(99, 102, 241, 0.12), transparent 50%), var(--lf-bg);
}

.wizard-shell {
    min-height: 100vh;
}

.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.stepper-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--lf-muted);
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
}

.stepper-dot {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    background: #e2e8f0;
    color: #475569;
}

.stepper-item.is-active .stepper-dot {
    background: linear-gradient(120deg, #4f46e5, #0891b2);
    color: #fff;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.stepper-item.is-complete .stepper-dot {
    background: #ecfdf3;
    color: #047857;
}

.stepper-item.is-active {
    color: var(--lf-text);
}

.stepper-line {
    flex: 0 0 28px;
    height: 2px;
    background: #e2e8f0;
    border-radius: 99px;
}

.review-block {
    background: #f8fafc !important;
}

/* --- Feature orbs --- */
.feature-orb {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: linear-gradient(145deg, rgba(79, 70, 229, 0.12), rgba(8, 145, 178, 0.12));
    color: #4338ca;
}

.feature-orb--muted {
    background: #f1f5f9;
    color: #64748b;
}

/* --- Users / roles --- */
.role-hints .role-pill {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border-radius: 0.35rem;
    margin-right: 0.35rem;
}

.role-pill--admin {
    background: rgba(79, 70, 229, 0.12);
    color: #4338ca;
}

.role-pill--viewer {
    background: #f1f5f9;
    color: #475569;
}

.role-pill--reporter {
    background: rgba(8, 145, 178, 0.12);
    color: #0e7490;
}

/* --- Reports mini chart --- */
.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.45rem;
    height: 200px;
    padding: 0.5rem 0.25rem 0;
}

.mini-chart-bar {
    flex: 1;
    border-radius: 999px 999px 0.35rem 0.35rem;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.85), rgba(8, 145, 178, 0.55));
    opacity: 0.9;
    min-height: 18%;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mini-chart-bar:hover {
    transform: translateY(-3px);
    opacity: 1;
}

.report-dl dt,
.report-dl dd {
    padding: 0.35rem 0;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
}

.report-dl dd:last-of-type,
.report-dl dt:last-of-type {
    border-bottom: 0;
}

/* --- Bank cards --- */
.bank-chip {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #4338ca;
    font-size: 1.25rem;
}

.bank-card {
    border: 1px solid var(--lf-border);
}

/* --- Settings --- */
.settings-tabs .nav-link {
    border-radius: 999px !important;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lf-muted);
    border: 1px solid transparent;
}

.settings-tabs .nav-link.active {
    color: #fff !important;
    background: linear-gradient(120deg, #4f46e5, #6366f1) !important;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.3);
}

.settings-aside {
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
    border: 1px solid var(--lf-border);
}

/* --- Email templates --- */
.template-list .list-group-item {
    padding: 0.85rem 1rem;
}

.placeholder-chip {
    font-size: 0.75rem;
    padding: 0.2rem 0.45rem;
    border-radius: 0.35rem;
    background: #f1f5f9;
    color: #475569;
}

/* --- WhatsApp preview --- */
.wa-card {
    border-radius: 1.25rem;
    border: 1px solid var(--lf-border);
    overflow: hidden;
    background: #ecfdf5;
    box-shadow: var(--lf-shadow-sm);
}

.wa-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: #022c22;
    color: #ecfdf5;
    font-size: 0.8rem;
    font-weight: 600;
}

.wa-card-header .wa-title {
    flex: 1;
    min-width: 0;
}

.wa-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: rgba(2, 44, 34, 0.06);
}

.wa-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
}

.wa-card-body {
    padding: 1rem 1.1rem 1.25rem;
}

.wa-line {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    color: #064e3b;
}

.wa-line--strong {
    font-weight: 700;
}

.wa-chip {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #022c22;
    color: #ecfdf5;
}

.wa-card-footer {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(6, 78, 59, 0.08);
}

/* --- Misc --- */
.text-primary-soft {
    color: #6366f1 !important;
}

.breadcrumb-item a {
    color: var(--lf-muted);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--lf-accent);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(79, 70, 229, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.12);
}

.font-monospace {
    font-size: 0.85rem;
}

@media (max-width: 991.98px) {
    .guest-split {
        flex-direction: column;
    }

    .guest-hero {
        min-height: 220px;
    }

    .guest-hero-inner {
        padding: 2rem 1.5rem;
    }
}

/* --- Public payment (bank transfer) — premium layout --- */
.guest-body--payment {
    background:
        radial-gradient(100% 60% at 50% -10%, rgba(99, 102, 241, 0.14), transparent 55%),
        radial-gradient(80% 50% at 100% 50%, rgba(8, 145, 178, 0.06), transparent 45%),
        var(--lf-bg);
}

.lf-pay-card {
    border-radius: 1.25rem !important;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(15, 23, 42, 0.04) !important;
    background: var(--lf-surface);
}

.lf-pay-card::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--lf-accent), #22d3ee);
}

.lf-pay-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lf-accent);
    margin-bottom: 0.35rem;
}

.lf-pay-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--lf-text);
    line-height: 1.25;
}

.lf-pay-ref {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.65rem 1rem;
    background: linear-gradient(135deg, var(--lf-surface-muted) 0%, rgba(238, 242, 255, 0.85) 100%);
    border: 1px solid var(--lf-border);
    border-radius: var(--lf-radius-sm);
}

.lf-pay-ref span {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lf-muted);
}

.lf-pay-ref code {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--lf-text);
    background: transparent;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lf-pay-invoice {
    border-radius: var(--lf-radius-sm);
    border: 1px solid var(--lf-border);
    overflow: hidden;
    background: var(--lf-surface);
}

.lf-pay-invoice .table {
    margin-bottom: 0;
}

.lf-pay-invoice .table thead th {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lf-muted);
    border-bottom: 1px solid var(--lf-border);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    background: rgba(248, 250, 252, 0.9);
}

.lf-pay-invoice .table tbody td {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    vertical-align: middle;
}

.lf-pay-invoice .table tfoot td {
    border-top: 1px solid var(--lf-border);
    padding-top: 1rem;
    padding-bottom: 1rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.65) 100%);
}

.lf-pay-total-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--lf-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lf-pay-total-amt {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--lf-text);
    font-variant-numeric: tabular-nums;
}

.lf-pay-panel {
    border-radius: var(--lf-radius-sm);
    border: 1px solid var(--lf-border);
    background: linear-gradient(165deg, #fafbff 0%, var(--lf-surface-muted) 100%);
    padding: 1.1rem 1.25rem;
}

.lf-pay-panel + .lf-pay-panel {
    margin-top: 0.75rem;
}

.lf-pay-bank-bundle {
    border-radius: var(--lf-radius-sm);
    border: 1px solid var(--lf-border);
    background: linear-gradient(165deg, #fafbff 0%, var(--lf-surface-muted) 100%);
    overflow: hidden;
}

.lf-pay-bank-bundle__section {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--lf-border);
}

.lf-pay-bank-bundle__section:last-child {
    border-bottom: none;
}

.lf-pay-bank-bundle__section--instructions .lf-pay-instructions__label {
    margin-bottom: 0;
}

.lf-pay-bank-bundle__pre {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--lf-text);
    white-space: pre-wrap;
    font-family: var(--lf-font);
}

.lf-pay-panel__label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--lf-muted);
    margin-bottom: 0.35rem;
}

.lf-pay-panel__label i {
    font-size: 0.95rem;
    opacity: 0.75;
}

.lf-pay-panel__value {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--lf-text);
    line-height: 1.4;
}

.lf-pay-instructions {
    border-radius: var(--lf-radius-sm);
    border: 1px solid var(--lf-border);
    background: var(--lf-surface);
    padding: 1.1rem 1.25rem;
}

.lf-pay-instructions__label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--lf-muted);
    margin-bottom: 0.65rem;
}

.lf-pay-instructions pre {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--lf-text);
    white-space: pre-wrap;
    font-family: var(--lf-font);
}

.lf-pay-hint {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--lf-muted);
}

.lf-pay-proof {
    border-top: 1px solid var(--lf-border);
    margin-top: 1.75rem;
    padding-top: 1.75rem;
}

.lf-pay-proof .form-control,
.lf-pay-proof .form-select {
    border-radius: var(--lf-radius-sm);
}

.lf-pay-proof .btn-primary {
    border-radius: var(--lf-radius-sm);
    font-weight: 600;
    padding-block: 0.65rem;
}

/* Inline clipboard (payment + invoice) */
.lf-copy-ico {
    opacity: 0.55;
    transition: opacity 0.15s ease, color 0.15s ease;
    vertical-align: 0.08em;
    text-decoration: none !important;
    line-height: 1;
}

.lf-copy-ico:hover,
.lf-copy-ico:focus-visible {
    opacity: 1;
    color: var(--lf-accent) !important;
}

/* Invoice view — denser layout */
.inv-view-head {
    padding: 0.85rem 1rem;
}

.inv-view-meta {
    font-size: 0.8125rem;
    color: var(--lf-muted);
}

.inv-view-body {
    padding: 0.85rem 1rem;
}

.inv-view-aside {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--lf-border);
}

@media (min-width: 992px) {
    .inv-view-aside {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        border-left: 1px solid var(--lf-border);
        padding-left: 1.25rem !important;
    }
}

.inv-view-bank-pre {
    max-height: 9.5rem;
    overflow-y: auto;
    font-size: 0.8125rem;
    line-height: 1.45;
    white-space: pre-wrap;
    font-family: var(--lf-font);
}
