/* ============================================================
   LAVIENNE FILMS - Tüm Stil Tanımları
   ============================================================ */

:root {
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --primary: #4f46e5;
    --primary-2: #7c3aed;
    --accent: #14b8a6;
    --danger: #ef4444;
    --success: #22c55e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background: linear-gradient(135deg, #f8fbff 0%, #f5f7ff 45%, #f7f9fc 100%);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    overflow: hidden;
}

.hidden { display: none !important; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.35), transparent 28%),
        linear-gradient(135deg, #4f46e5 0%, #7c3aed 45%, #0f172a 100%);
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(255,255,255,0.65);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

.login-card h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1a1a1a;
}

.login-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 28px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 6px;
}

.field input,
.field select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: var(--radius-md);
    font-size: 15px;
    background: #fafafa;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s;
    font-family: var(--font);
}

.field input:focus,
.field select:focus {
    border-color: #667eea;
    background: #fff;
}

.btn-primary {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.24);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(79, 70, 229, 0.28);
}

.btn-secondary {
    padding: 10px 20px;
    border: 1.5px solid #e0e0e0;
    border-radius: var(--radius-md);
    background: #fff;
    color: #444;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}

.btn-secondary:hover {
    background: #f5f5f5;
}

.btn-danger {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    background: #ef4444;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-success {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    background: #22c55e;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}

.btn-success:hover {
    background: #16a34a;
}

.error-msg {
    color: #ef4444;
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
}

/* ============================================================
   CLIENT PORTAL
   ============================================================ */
.client-portal-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
}

.client-portal-card {
    width: 100%;
    max-width: 980px;
    background: #fff;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    padding: 32px;
    border: 1px solid rgba(79, 70, 229, 0.12);
}

.client-portal-card h2 {
    font-size: 28px;
    margin-bottom: 8px;
    color: #111827;
}

.client-portal-card p {
    color: var(--muted);
    margin-bottom: 20px;
}

.portal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.portal-actions .btn-primary,
.portal-actions .btn-secondary {
    width: auto;
}

.portal-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
    color: #334155;
}

.portal-embed {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    min-height: 560px;
    background: #f8fafc;
}

.portal-embed iframe {
    width: 100%;
    height: 560px;
    border: 0;
    background: #fff;
}

.portal-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.portal-link:hover {
    text-decoration: underline;
}

/* ============================================================
   APP SHELL
   ============================================================ */
.app-shell {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 22px 0 18px;
    flex-shrink: 0;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo {
    padding: 0 24px 24px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255,255,255,0.72);
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    margin: 2px 12px;
    border-radius: 12px;
}

.nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(79,70,229,0.22) 0%, rgba(79,70,229,0.08) 100%);
    color: #fff;
    border-left-color: #818cf8;
}

.nav-icon {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.nav-item.active .nav-icon {
    opacity: 1;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.topbar {
    height: 68px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226,232,240,0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.topbar-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.topbar-user {
    font-size: 13px;
    color: #888;
}

.page {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
}

/* ============================================================
   KANBAN BOARD
   ============================================================ */
.kanban-board {
    display: flex;
    gap: 16px;
    height: calc(100vh - 140px);
    overflow-x: auto;
    padding-bottom: 8px;
}

.kanban-col {
    flex: 1;
    min-width: 260px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #f8fafc 0%, #f8fbff 100%);
    border-radius: 22px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.kanban-header {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0f0f3;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.kanban-count {
    font-size: 12px;
    color: #888;
    background: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.kanban-cards {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kanban-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    cursor: grab;
    transition: all 0.22s ease;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.kanban-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.kanban-card.dragging {
    opacity: 0.5;
    transform: rotate(3deg);
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-meta {
    font-size: 12px;
    color: #888;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.card-amount {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-amount.remaining {
    color: #ef4444;
}

.card-amount.paid {
    color: #22c55e;
}

.card-badge {
    display: inline-block;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.badge-salon {
    background: #dbeafe;
    color: #2563eb;
}

.badge-dis {
    background: #fce7f3;
    color: #db2777;
}

.badge-sosyal {
    background: #d1fae5;
    color: #059669;
}

/* FAB */
.fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #667eea;
    color: #fff;
    border: none;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(102,126,234,0.4);
    transition: all 0.2s;
    z-index: 50;
}

.fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(102,126,234,0.5);
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 540px;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 24px;
}

.form-row {
    display: flex;
    gap: 14px;
    margin-bottom: 0;
}

.form-row .field {
    flex: 1;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    justify-content: flex-end;
}

/* ============================================================
   TABS
   ============================================================ */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e8e8e8;
    margin-bottom: 20px;
}

.tab {
    padding: 12px 20px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: #888;
    transition: all 0.2s;
    font-weight: 500;
}

.tab:hover {
    color: #555;
}

.tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

/* ============================================================
   CHECKLIST
   ============================================================ */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: #f8f8fa;
    border: 1px solid #e8e8e8;
    transition: all 0.2s;
}

.check-item:hover {
    background: #f0f0f3;
}

.check-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #667eea;
    cursor: pointer;
    flex-shrink: 0;
}

.check-item label {
    font-size: 14px;
    flex: 1;
    cursor: pointer;
    color: #333;
}

.check-item.done {
    opacity: 0.6;
}

.check-item.done label {
    text-decoration: line-through;
    color: #888;
}

.todo-input-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.todo-input-row input {
    flex: 1;
    padding: 11px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: var(--radius-md);
    font-size: 14px;
    background: #fafafa;
    outline: none;
}

.todo-input-row input:focus {
    border-color: #667eea;
}

/* ============================================================
   LEDGER
   ============================================================ */
.ledger-summary {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.ledger-stat {
    flex: 1;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: #f8f8fa;
    border: 1px solid #e8e8e8;
    text-align: center;
}

.ledger-stat .label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ledger-stat .value {
    font-size: 32px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ledger-stat .value.positive {
    color: #22c55e;
}

.ledger-stat .value.negative {
    color: #ef4444;
}

.ledger-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.ledger-actions .btn {
    flex: 1;
    padding: 12px;
    font-size: 14px;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
}

.data-table th {
    font-weight: 600;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #f8f8fa;
}

.data-table tr:hover {
    background: #fafafa;
}

.data-table .tx-income {
    color: #22c55e;
    font-weight: 600;
}

.data-table .tx-expense {
    color: #ef4444;
    font-weight: 600;
}

/* ============================================================
   WALLETS PAGE
   ============================================================ */
.wallet-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.wallet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.wallet-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.wallet-summary-card {
    padding: 18px 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.wallet-summary-card.primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
}

.summary-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 6px;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.summary-caption {
    font-size: 13px;
    opacity: 0.8;
}

.wallet-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.wallet-search {
    flex: 1;
    min-width: 220px;
    padding: 12px 14px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #fff;
    font-size: 14px;
    outline: none;
}

.filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid #dbe3ee;
    background: #fff;
    color: #475569;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.filter-pill.active {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

.wallet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.wallet-card {
    padding: 22px 24px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: all 0.2s ease;
}

.wallet-card.premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.wallet-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.wallet-card .name {
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.wallet-pill {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: #eef2ff;
    color: #4338ca;
}

.wallet-card .balance {
    font-size: 32px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-bottom: 8px;
}

.wallet-card .balance.positive {
    color: #0f766e;
}

.wallet-card .balance.negative {
    color: #dc2626;
}

.wallet-caption {
    font-size: 13px;
    color: #64748b;
}

.wallet-table-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.wallet-table-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
}

.tx-badge {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.tx-income {
    color: #0f766e;
    font-weight: 700;
}

.tx-expense {
    color: #dc2626;
    font-weight: 700;
}

.tx-transfer {
    color: #4338ca;
    font-weight: 700;
}

/* ============================================================
   REPORTS PAGE
   ============================================================ */
.report-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    align-items: center;
}

.report-filters select {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1.5px solid #e0e0e0;
    background: #fff;
    font-size: 14px;
    color: #333;
    outline: none;
    cursor: pointer;
    font-family: var(--font);
}

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.report-summary-card {
    padding: 18px 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.report-summary-card.primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
}

.chart-container {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e8e8e8;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 32px;
    height: 180px;
    padding-bottom: 40px;
    position: relative;
}

.bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bar {
    width: 56px;
    border-radius: 6px 6px 0 0;
    min-height: 4px;
    transition: height 0.5s ease-out;
}

.bar-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.bar-label {
    font-size: 13px;
    color: #666;
    text-align: center;
}

.chart-legend {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    font-size: 13px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
    margin-right: 6px;
}

.audit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.audit-card {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: #f8f8fa;
    border: 1px solid #e8e8e8;
}

.audit-card .label {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.audit-card .value {
    font-size: 24px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   SPLIT OPTIONS
   ============================================================ */
.split-options {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.split-option {
    flex: 1;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 2px solid #e0e0e0;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    background: #fafafa;
}

.split-option:hover {
    border-color: #667eea;
    background: #f5f5ff;
}

.split-option.selected {
    border-color: #667eea;
    background: #eef0ff;
}

.split-option .opt-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.split-option .opt-desc {
    font-size: 12px;
    color: #888;
}

/* ============================================================
   UI IMPROVEMENTS
   ============================================================ */
body {
    overflow-x: hidden;
    background: linear-gradient(135deg, #f6f8ff 0%, #f9fbff 100%);
}

.page-content {
    padding: 8px 4px 24px;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f7f9ff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.page-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #667eea;
    margin-bottom: 6px;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.page-subtitle {
    font-size: 14px;
    color: #64748b;
    max-width: 640px;
}

.btn-inline {
    width: auto;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.insight-panel {
    margin-bottom: 18px;
}

.insight-card {
    background: linear-gradient(135deg, rgba(79,70,229,0.08) 0%, rgba(255,255,255,0.95) 100%);
    border: 1px solid rgba(79,70,229,0.12);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.insight-card.empty {
    background: rgba(255,255,255,0.95);
    border-style: dashed;
}

.insight-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f2937;
}

.insight-copy {
    font-size: 13px;
    color: #64748b;
}

.insight-list {
    display: grid;
    gap: 10px;
}

.insight-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.8);
    border-radius: 12px;
}

.insight-item-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.insight-item-meta {
    font-size: 12px;
    color: #64748b;
}

.insight-badge {
    padding: 6px 10px;
    background: rgba(20, 184, 166, 0.12);
    color: #0f766e;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.dashboard-search {
    flex: 1;
    min-width: 220px;
    padding: 12px 14px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #fff;
    font-size: 14px;
    outline: none;
}

.stat-card {
    padding: 18px 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.stat-card.primary {
    background: linear-gradient(135deg, #667eea 0%, #4f46e5 100%);
    color: #fff;
}

.stat-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-caption {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.4;
}

.kanban-board {
    align-items: flex-start;
    padding-bottom: 16px;
}

.kanban-col {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.kanban-card {
    border: 1px solid #e5e7eb;
    border-left: 4px solid #667eea;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.kanban-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    color: #64748b;
}

.card-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-weight: 600;
}

.empty-state {
    width: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border: 1px dashed #cbd5e1;
    border-radius: 24px;
    color: #475569;
}

.empty-icon {
    font-size: 34px;
    margin-bottom: 4px;
}

.empty-state h3 {
    font-size: 20px;
    color: #111827;
}

.empty-state p {
    max-width: 420px;
    color: #64748b;
}

.modal {
    border: 1px solid #e5e7eb;
}

.modal-body .field input,
.modal-body .field select {
    border-radius: 14px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .stats-grid,
    .report-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sidebar {
        width: 200px;
    }
    
    .wallet-grid,
    .audit-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .report-summary-grid {
        grid-template-columns: 1fr;
    }

    .app-shell {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        flex-direction: row;
        padding: 8px 12px;
        height: auto;
    }
    
    .sidebar-logo {
        display: none;
    }
    
    .nav-item {
        flex: 1;
        justify-content: center;
        padding: 10px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .nav-item.active {
        border-left-color: transparent;
        border-bottom-color: #667eea;
    }
    
    .kanban-board {
        flex-direction: column;
        height: auto;
    }
    
    .kanban-col {
        max-width: 100%;
    }
    
    .fab {
        bottom: 80px;
    }
}