:root {
    --makdo-primary: #3b82f6;
    --makdo-primary-dark: #1e40af;
    --makdo-primary-light: #60a5fa;
    --makdo-success: #10b981;
    --makdo-success-dark: #059669;
    --makdo-danger: #ef4444;
    --makdo-warning: #f59e0b;

    --bg-body: #eef2ff;
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-card-solid: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: rgba(148, 163, 184, 0.25);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    --nav-height: 62px;
    --nav-safe-bottom: env(safe-area-inset-bottom, 0px);
    --nav-total-height: calc(var(--nav-height) + var(--nav-safe-bottom) + 12px);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: var(--bg-body);
    min-height: 100%;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    padding-bottom: var(--nav-total-height);
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Arka plan gradient */
.app-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.18), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(16, 185, 129, 0.1), transparent),
        linear-gradient(165deg, #eef2ff 0%, #f0f9ff 40%, #f8fafc 100%);
    pointer-events: none;
}

.app-main {
    animation: fadeInUp 0.4s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes pulse-soft {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}

/* ===== ALT NAVİGASYON — iPhone Safe Area ===== */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    padding: 0 10px;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
    pointer-events: none;
}

.bottom-nav-inner {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-xl);
    box-shadow: 0 -4px 30px rgba(15, 23, 42, 0.12), 0 8px 32px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.bottom-nav-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 4px;
    gap: 2px;
}

.bottom-nav-scroll::-webkit-scrollbar {
    display: none;
}

.bottom-nav-item {
    flex: 1 0 auto;
    min-width: 58px;
    max-width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 4px 6px;
    min-height: 54px;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-user-select: none;
    user-select: none;
    position: relative;
}

.bottom-nav-item:active {
    transform: scale(0.92);
}

.bottom-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 1.15rem;
    transition: all 0.25s ease;
}

.bottom-nav-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.bottom-nav-item.active {
    color: var(--makdo-primary);
}

.bottom-nav-item.active .bottom-nav-icon {
    background: linear-gradient(135deg, var(--makdo-primary) 0%, var(--makdo-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    animation: pulse-soft 2s ease-in-out infinite;
}

.bottom-nav-item.active .bottom-nav-label {
    color: var(--makdo-primary-dark);
    font-weight: 700;
}

/* ===== ALERT ===== */
.app-alert {
    margin: 12px 12px 0;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    animation: scaleIn 0.3s ease;
    position: relative;
    z-index: 100;
}

/* ===== KARTLAR ===== */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:active {
    transform: scale(0.99);
}

.stat-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    background: var(--bg-card-solid);
    overflow: hidden;
    position: relative;
    animation: fadeInUp 0.5s ease backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }

.stat-card-primary {
    border-left: none;
    background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(255,255,255,0.95) 60%);
}
.stat-card-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--makdo-primary), var(--makdo-primary-dark));
    border-radius: 4px 0 0 4px;
}

.stat-card-success {
    border-left: none;
    background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, rgba(255,255,255,0.95) 60%);
}
.stat-card-success::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--makdo-success), var(--makdo-success-dark));
    border-radius: 4px 0 0 4px;
}

.stat-card-warning {
    border-left: none;
    background: linear-gradient(135deg, rgba(245,158,11,0.1) 0%, rgba(255,255,255,0.95) 60%);
}
.stat-card-warning::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, #f59e0b, #d97706);
    border-radius: 4px 0 0 4px;
}

/* ===== BUTONLAR ===== */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--makdo-primary) 0%, var(--makdo-primary-dark) 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--makdo-primary-light) 0%, var(--makdo-primary) 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.btn-success {
    background: linear-gradient(135deg, var(--makdo-success) 0%, var(--makdo-success-dark) 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-success:hover, .btn-success:focus {
    background: linear-gradient(135deg, #34d399 0%, var(--makdo-success) 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-outline-primary {
    border: 2px solid var(--makdo-primary);
    color: var(--makdo-primary);
    background: rgba(59, 130, 246, 0.05);
}

.btn-action {
    min-height: 84px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    gap: 4px;
    animation: fadeInUp 0.5s ease backwards;
}

.btn-action:nth-child(1) { animation-delay: 0.1s; }
.btn-action:nth-child(2) { animation-delay: 0.15s; }
.btn-action:nth-child(3) { animation-delay: 0.2s; }

.btn-lg, .form-control-lg, .form-select-lg {
    min-height: 50px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
}

.form-control, .form-select {
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-card-solid);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--makdo-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ===== LİSTELER ===== */
.list-group {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.list-group-item {
    background: var(--bg-card-solid);
    border-color: var(--border-color);
    transition: background 0.15s ease;
}

.list-group-item-action {
    border-left: none;
    border-right: none;
}

.list-group-item-action:active,
.list-group-item-action:hover {
    background: rgba(59, 130, 246, 0.06);
}

.list-group-item-action .badge {
    font-size: 0.65rem;
    padding: 0.35em 0.6em;
    border-radius: 6px;
}

/* ===== BADGE ===== */
.badge.bg-primary { background: linear-gradient(135deg, var(--makdo-primary), var(--makdo-primary-dark)) !important; }
.badge.bg-success { background: linear-gradient(135deg, var(--makdo-success), var(--makdo-success-dark)) !important; }

/* ===== BAŞLIKLAR ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

.dashboard-page > h1,
.container-fluid > h1 {
    background: linear-gradient(135deg, var(--makdo-primary-dark) 0%, var(--makdo-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* ===== AUTOCOMPLETE ===== */
.autocomplete-results {
    position: absolute;
    z-index: 1050;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    max-height: 240px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: calc(100% - 24px);
    display: none;
    animation: scaleIn 0.2s ease;
}

.autocomplete-results.show { display: block; }

.autocomplete-results.fixed-dropdown {
    position: fixed;
    z-index: 10050;
    width: auto;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.22);
    overscroll-behavior: contain;
    touch-action: pan-y;
}

/* Satış formu: klavye açıkken alt nav ve toplam alanı autocomplete'i kapatmasın */
#saleForm .sale-item {
    position: relative;
    z-index: 1;
}

.sale-form-page {
    padding-bottom: 120px;
}

body.keyboard-open .bottom-nav {
    z-index: 900;
}

body.keyboard-open .sale-form-page {
    scroll-padding-bottom: 40vh;
}

.autocomplete-item {
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}

.autocomplete-item:hover, .autocomplete-item:active {
    background: rgba(59, 130, 246, 0.08);
}

.autocomplete-item:last-child { border-bottom: none; }

.sale-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card-solid);
    box-shadow: var(--shadow-sm);
}

.mb-3:has(.autocomplete-results) { position: relative; }

.timeline-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    transition: padding-left 0.2s;
}

.timeline-item:active { padding-left: 4px; }
.timeline-item:last-child { border-bottom: none; }

/* ===== DASHBOARD ===== */
.dashboard-page .summary-tabs .nav-link {
    font-size: 0.78rem;
    padding: 0.45rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.dashboard-page .summary-tabs .nav-link.active {
    background: linear-gradient(135deg, var(--makdo-primary), var(--makdo-primary-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.dashboard-page .summary-block {
    background: linear-gradient(135deg, rgba(59,130,246,0.06) 0%, rgba(255,255,255,0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.dashboard-page .chart-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dashboard-page .chart-container canvas {
    display: block;
    max-width: 100%;
}

.dashboard-page .dashboard-table { font-size: 0.85rem; }

.dashboard-page .dashboard-table th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    white-space: nowrap;
    border-bottom-width: 1px;
}

.dashboard-page .last7-row:last-child { border-bottom: none !important; }

.dashboard-page .dashboard-filter-form .btn-sm {
    font-size: 0.72rem;
    padding: 0.4rem 0.65rem;
    border-radius: 20px;
    font-weight: 600;
}

/* ===== AUTH SAYFASI ===== */
body.auth-page {
    background: linear-gradient(160deg, #1e3a8a 0%, #3b82f6 50%, #0ea5e9 100%);
    min-height: 100dvh;
}

body.auth-page .app-bg { display: none; }

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.5s ease;
}

.auth-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--makdo-primary), var(--makdo-primary-dark));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

/* ===== TABLO ===== */
.table {
    --bs-table-bg: transparent;
}

.table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

/* ===== PAGINATION ===== */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: none;
    color: var(--makdo-primary);
    font-weight: 600;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--makdo-primary), var(--makdo-primary-dark));
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 414px) {
    .btn-action {
        min-height: 76px;
        font-size: 0.72rem;
    }

    .bottom-nav-item {
        min-width: 54px;
    }

    .bottom-nav-label {
        font-size: 0.55rem;
    }
}

@media (max-width: 360px) {
    .row.g-2 > [class*="col-4"] {
        padding-left: 4px;
        padding-right: 4px;
    }

    .form-control-lg {
        font-size: 0.9rem;
        padding: 10px;
    }
}

/* iPhone landscape — nav daha kompakt */
@media (orientation: landscape) and (max-height: 500px) {
    .bottom-nav-item {
        min-height: 48px;
        padding: 4px 2px;
    }

    .bottom-nav-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .bottom-nav-label { display: none; }
}

/* ===== PAGE HEADER ===== */
.page-header {
    display: flex;
    align-items: center;
    gap: 14px;
    animation: fadeInUp 0.4s ease;
}

.page-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--makdo-primary), var(--makdo-primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
    flex-shrink: 0;
}

.page-header-icon.admin-icon {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

.page-title {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--makdo-primary-dark), var(--makdo-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ===== DETAIL HERO ===== */
.detail-hero {
    text-align: center;
    padding: 24px 16px;
    background: linear-gradient(135deg, rgba(59,130,246,0.1) 0%, rgba(255,255,255,0.95) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.5s ease;
}

.detail-hero-sale {
    background: linear-gradient(135deg, rgba(59,130,246,0.12) 0%, rgba(255,255,255,0.95) 100%);
}

.detail-hero-collection {
    background: linear-gradient(135deg, rgba(16,185,129,0.12) 0%, rgba(255,255,255,0.95) 100%);
}

.detail-hero-expense {
    background: linear-gradient(135deg, rgba(245,158,11,0.14) 0%, rgba(255,255,255,0.95) 100%);
}

.detail-hero-avatar,
.detail-hero-badge {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--makdo-primary), var(--makdo-primary-dark));
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.detail-hero-collection .detail-hero-badge {
    background: linear-gradient(135deg, var(--makdo-success), var(--makdo-success-dark));
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.detail-hero-expense .detail-hero-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

.expense-type-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    font-weight: 600;
}

.detail-hero-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.detail-hero-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.detail-hero-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--makdo-primary);
}

.detail-balance {
    margin-top: 8px;
}

.detail-balance-amount {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
}

.detail-balance-status {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* ===== INFO CARD ===== */
.info-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.5s ease 0.1s backwards;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
}

.info-row i {
    margin-top: 2px;
    flex-shrink: 0;
}

.info-row + .info-row {
    border-top: 1px solid var(--border-color);
}

.avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--makdo-primary), var(--makdo-primary-dark));
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-sm.avatar-success {
    background: linear-gradient(135deg, var(--makdo-success), var(--makdo-success-dark));
}

.balance-rows {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.balance-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
}

.balance-row.highlight {
    font-weight: 700;
}

.balance-row.total {
    font-weight: 700;
    border-top: 1px dashed var(--border-color);
    margin-top: 6px;
    padding-top: 10px;
}

.meta-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.note-box {
    background: rgba(59, 130, 246, 0.06);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.payment-badge {
    background: linear-gradient(135deg, #64748b, #475569) !important;
    font-size: 0.75rem;
    padding: 0.4em 0.8em;
    border-radius: 20px;
}

.action-btn {
    border-radius: var(--radius-md) !important;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* ===== TIMELINE MODERN ===== */
.timeline-modern {
    position: relative;
    padding-left: 4px;
}

.timeline-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 14px 14px 20px;
    margin-bottom: 10px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fadeInUp 0.4s ease backwards;
}

.timeline-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-md);
}

.timeline-dot {
    position: absolute;
    left: -5px;
    top: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--makdo-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.timeline-collection .timeline-dot {
    background: var(--makdo-success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.timeline-amount {
    font-weight: 800;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* ===== METRIC CARDS (Reports) ===== */
.metric-card {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.4s ease backwards;
    position: relative;
    overflow: hidden;
}

.metric-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 60px; height: 60px;
    border-radius: 0 0 0 60px;
    opacity: 0.08;
}

.metric-sales::after { background: var(--makdo-primary); }
.metric-collections::after { background: var(--makdo-success); }
.metric-expenses::after { background: #f59e0b; }

.metric-icon {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.metric-sales .metric-icon { color: var(--makdo-primary); }
.metric-collections .metric-icon { color: var(--makdo-success); }
.metric-expenses .metric-icon { color: #f59e0b; }
.metric-expenses .metric-value { color: #b45309; }

.metric-net-expense {
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(255,255,255,0.95));
}

.metric-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 4px 0;
}

.metric-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.metric-net {
    background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(255,255,255,0.95));
}

.metric-net-positive .metric-value { color: var(--makdo-primary); }
.metric-net-negative .metric-value { color: var(--makdo-success); }

.filter-card {
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.3s ease;
}

.report-tabs .nav-link {
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.45rem 0.9rem;
    color: var(--text-secondary);
    border: none;
    transition: all 0.2s;
}

.report-tabs .nav-link.active {
    background: linear-gradient(135deg, var(--makdo-primary), var(--makdo-primary-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.table-modern {
    font-size: 0.85rem;
}

.table-modern thead th {
    background: rgba(59, 130, 246, 0.04);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 12px;
}

.table-modern tbody td {
    padding: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    vertical-align: middle;
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

.fade-in-row {
    animation: fadeInUp 0.4s ease backwards;
}

/* ===== ADMIN ===== */
.mini-stat {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.4s ease backwards;
}

.mini-stat i { font-size: 1.1rem; }

.mini-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.mini-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.danger-zone {
    border: 2px solid rgba(239, 68, 68, 0.3) !important;
    background: linear-gradient(135deg, rgba(239,68,68,0.04), rgba(255,255,255,0.95));
    border-radius: var(--radius-md);
}

.danger-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.12);
    color: var(--makdo-danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
    font-weight: 700;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 2.5rem;
    opacity: 0.3;
    display: block;
    margin-bottom: 8px;
}

.empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* ===== PWA INSTALL ===== */
.pwa-install-card {
    background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(255,255,255,0.95) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    animation: fadeInUp 0.5s ease;
}

.pwa-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pwa-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.pwa-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--makdo-primary), var(--makdo-primary-dark));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Standalone PWA modunda üst boşluk */
@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top, 0px);
    }
}
