* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --navy: #0F172A; --navy-2: #1E293B;
  --cyan: #06B6D4; --purple: #8B5CF6; --green: #10B981; --amber: #F59E0B; --red: #EF4444;
  --bg: #F8FAFC; --card: #FFFFFF; --text: #0F172A; --text-2: #64748B; --border: #E2E8F0;
}
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }

/* SPLASH */
.splash { position: fixed; inset: 0; background: linear-gradient(135deg, #10B981, #059669); display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; z-index: 999; }
.splash-logo { width: 130px; height: 130px; background: white; border-radius: 32px; display: grid; place-items: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); margin-bottom: 24px; }
.splash h1 { font-size: 34px; font-weight: 800; letter-spacing: -1px; margin-bottom: 6px; }
.splash .alt { font-size: 14px; opacity: .85; letter-spacing: 2px; }
.splash .version { position: absolute; bottom: 30px; font-size: 11px; opacity: .6; }
.loading { margin-top: 40px; width: 40px; height: 40px; border: 3px solid rgba(255,255,255,.3); border-top-color: white; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* LOGIN */
.login-bg { min-height: 100vh; background: linear-gradient(160deg, #0F172A 0%, #1E293B 50%, #0F172A 100%); padding: 60px 24px 30px; display: flex; flex-direction: column; color: white; position: relative; overflow: hidden; }
.login-bg::before { content:''; position:absolute; top:0; right:0; width:250px; height:250px; background: radial-gradient(circle, rgba(6,182,212,.4), transparent 70%); border-radius:50%; }
.login-bg::after { content:''; position:absolute; bottom:0; left:0; width:250px; height:250px; background: radial-gradient(circle, rgba(139,92,246,.3), transparent 70%); border-radius:50%; }
.login-logo { width: 80px; height: 80px; background: white; border-radius: 22px; display: grid; place-items: center; margin: 0 auto 20px; box-shadow: 0 12px 40px rgba(0,0,0,.3); position: relative; z-index:1; }
.login-logo svg { width: 50px; height: 50px; }
.login-bg h1 { text-align: center; font-size: 26px; font-weight: 800; margin-bottom: 4px; position: relative; z-index:1; }
.login-bg .alt-yazi { text-align: center; font-size: 12px; opacity: .6; margin-bottom: 40px; position: relative; z-index:1; }
.field { margin-bottom: 14px; position: relative; z-index:1; }
.field label { display: block; font-size: 11px; opacity: .7; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.field-input { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; padding: 14px 16px; color: white; font-size: 15px; font-family: inherit; width: 100%; }
.field-input:focus { outline: none; border-color: var(--cyan); background: rgba(6,182,212,.1); box-shadow: 0 0 0 3px rgba(6,182,212,.2); }
.field-input::placeholder { color: rgba(255,255,255,.4); }
.btn-primary { background: linear-gradient(135deg, var(--cyan), var(--purple)); color: white; border: none; padding: 16px; border-radius: 14px; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; margin-top: 12px; box-shadow: 0 8px 24px rgba(6,182,212,.3); position: relative; z-index:1; }
.btn-primary:active { transform: scale(.98); }

/* DASHBOARD */
.statusbar { background: var(--navy); color: white; padding: 8px 20px; font-size: 11px; font-weight: 600; display: flex; justify-content: space-between; }
.dash-header { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: white; padding: 16px 20px 24px; position: relative; overflow: hidden; }
.dash-header::before { content:''; position:absolute; top:-50%; right:-20%; width:200px; height:200px; background: radial-gradient(circle, rgba(6,182,212,.4), transparent 70%); border-radius:50%; }
.dash-header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; position: relative; z-index:1; }
.dash-logo { font-size: 17px; font-weight: 800; letter-spacing: -.5px; display: flex; align-items: center; gap: 8px; }
.dash-logo-icon { width: 30px; height: 30px; background: white; border-radius: 9px; display: grid; place-items: center; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--purple)); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.dash-selam { font-size: 12px; opacity: .75; margin-bottom: 4px; position: relative; z-index:1; }
.mukellef-sec { position: relative; z-index:1; background: rgba(255,255,255,.12); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
.mukellef-sec .etiket { font-size: 10px; opacity: .7; text-transform: uppercase; letter-spacing: 1px; }
.mukellef-sec .ad { font-size: 15px; font-weight: 600; margin-top: 2px; }
.dash-content { padding: 16px 16px 100px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; margin-top: -28px; position: relative; z-index: 2; }
.action-card { background: var(--card); border-radius: 18px; padding: 18px 16px; box-shadow: 0 4px 12px rgba(0,0,0,.06); cursor: pointer; transition: all .25s; border: 1px solid var(--border); text-decoration: none; color: inherit; }
.action-card:active { transform: scale(.97); }
.action-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; font-size: 20px; }
.icon-gelen { background: linear-gradient(135deg, #DBEAFE, #BFDBFE); }
.icon-giden { background: linear-gradient(135deg, #D1FAE5, #A7F3D0); }
.icon-yeni { background: linear-gradient(135deg, #EDE9FE, #DDD6FE); }
.icon-iptal { background: linear-gradient(135deg, #FEE2E2, #FECACA); }
.action-title { font-size: 13px; font-weight: 600; }
.action-sub { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.stat { background: var(--card); border-radius: 14px; padding: 14px; border: 1px solid var(--border); }
.stat-val { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.stat-val.cyan { color: var(--cyan); }
.stat-val.green { color: var(--green); }
.stat-val.amber { color: var(--amber); }
.stat-label { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.section-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.section-title .tumu { font-size: 12px; color: var(--cyan); font-weight: 500; text-decoration: none; }
.invoice-list { background: var(--card); border-radius: 16px; border: 1px solid var(--border); overflow: hidden; }
.invoice-item { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.invoice-item:last-child { border-bottom: none; }
.inv-musteri { font-size: 13px; font-weight: 600; }
.inv-tarih { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.inv-tutar { font-size: 14px; font-weight: 700; text-align: right; }
.inv-durum { font-size: 10px; padding: 2px 8px; border-radius: 6px; margin-top: 4px; display: inline-block; font-weight: 600; }
.durum-onayli { background: #D1FAE5; color: #047857; }
.durum-bekle { background: #FEF3C7; color: #92400E; }

/* FAB */
.fab { position: fixed; bottom: 76px; left: 50%; transform: translateX(-50%); width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--purple)); color: white; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(6,182,212,.4), 0 0 0 6px rgba(255,255,255,.9); cursor: pointer; z-index: 6; font-size: 28px; text-decoration: none; }

/* BOTTOM NAV */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,.95); backdrop-filter: blur(20px); border-top: 1px solid var(--border); padding: 8px 0 20px; display: flex; justify-content: space-around; z-index: 5; }
.nav-item { flex: 1; text-align: center; padding: 6px; color: var(--text-2); text-decoration: none; }
.nav-item.aktif { color: var(--cyan); }
.nav-item svg { display: block; margin: 0 auto 2px; }
.nav-item span { font-size: 10px; font-weight: 500; }

/* FATURA FORM */
.form-header { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: white; padding: 14px 20px; display: flex; align-items: center; gap: 12px; }
.back-btn { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.12); border: none; color: white; display: grid; place-items: center; cursor: pointer; text-decoration: none; font-size: 18px; }
.form-title { font-size: 16px; font-weight: 700; flex: 1; }
.form-body { padding: 16px 16px 100px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 11px; color: var(--text-2); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.form-input { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; font-size: 14px; font-family: inherit; width: 100%; color: var(--text); }
.form-input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6,182,212,.1); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-save { background: linear-gradient(135deg, var(--cyan), var(--purple)); color: white; border: none; padding: 16px; border-radius: 14px; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; width: 100%; margin-top: 20px; box-shadow: 0 8px 24px rgba(6,182,212,.3); }

/* KALEM SATIRLARI */
.kalem-satir { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.kalem-ust { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.kalem-ad { font-size: 14px; font-weight: 700; flex: 1; }
.kalem-sil { background: #FEE2E2; color: #B91C1C; border: none; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-weight: 700; }
.kalem-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.kalem-grid label { font-size: 10px; color: var(--text-2); margin-bottom: 4px; display: block; }
.kalem-grid input { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-family: inherit; }
.toplam-kutu { background: var(--navy); color: white; border-radius: 14px; padding: 16px; margin-top: 16px; }
.toplam-satir { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.toplam-satir.buyuk { font-size: 18px; font-weight: 800; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.2); }

/* FATURALAR */
.list-header { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: white; padding: 14px 20px; display: flex; align-items: center; gap: 12px; }
.list-content { padding: 16px 16px 100px; }
.fatura-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.fatura-ust { display: flex; justify-content: space-between; margin-bottom: 8px; }
.firma-adi { font-size: 14px; font-weight: 700; }
.vkn { font-size: 11px; color: var(--text-2); margin-top: 2px; }
.fatura-tutar { font-size: 16px; font-weight: 800; }
.fatura-alt { display: flex; justify-content: space-between; align-items: center; }
.fatura-tarih { font-size: 11px; color: var(--text-2); }
.empty { padding: 60px 20px; text-align: center; color: var(--text-2); }
.empty-icon { font-size: 60px; opacity: .3; margin-bottom: 12px; }

/* MODAL */
.modal-bg { position: fixed; inset: 0; background: rgba(15,23,42,.6); display: none; align-items: flex-end; z-index: 100; }
.modal-bg.aktif { display: flex; }
.modal { background: white; border-radius: 20px 20px 0 0; padding: 20px; width: 100%; max-height: 80vh; overflow-y: auto; }
.modal h3 { font-size: 16px; margin-bottom: 14px; }
.modal-item { padding: 14px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.modal-item:active { background: #F1F5F9; }

/* Chips (filtre butonları) */
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; background: white; border: 1px solid #E2E8F0;
        padding: 7px 14px; border-radius: 20px; font-size: 12px;
        font-weight: 600; color: #64748B; cursor: pointer;
        display: flex; align-items: center; gap: 6px; }
.chip.aktif { background: linear-gradient(135deg, #06B6D4, #8B5CF6);
              color: white; border-color: transparent; }

/* Menü satırı */
.grup-baslik { font-size: 11px; font-weight: 700; color: #64748B;
                text-transform: uppercase; letter-spacing: 1px;
                padding: 20px 20px 8px; }
.menu-item { background: white; padding: 16px 20px; display: flex;
             align-items: center; gap: 14px;
             border-bottom: 1px solid #E2E8F0; cursor: pointer;
             text-decoration: none; color: inherit; }
.menu-item:hover { background: #F8FAFC; }
.menu-icon { font-size: 20px; width: 24px; text-align: center; }
.menu-text { flex: 1; font-size: 14px; font-weight: 500; }
.menu-chevron { color: #94A3B8; font-size: 18px; }
.cikis-btn { margin: 20px 16px; background: #FEE2E2; color: #B91C1C;
             border: none; padding: 16px; border-radius: 14px;
             font-size: 14px; font-weight: 700; font-family: inherit;
             width: calc(100% - 32px); cursor: pointer;
             display: flex; align-items: center;
             justify-content: center; gap: 8px;
             text-decoration: none; }

/* Radyo seçim satırı */
.secim-satir { background: white; padding: 14px 20px;
               display: flex; align-items: center; gap: 14px;
               border-bottom: 1px solid #E2E8F0;
               cursor: pointer; font-size: 13px; }
.secim-satir:hover { background: #F8FAFC; }

/* Tarih kutusu */
.tarih-kutu { margin: 0 16px 12px; border-radius: 14px; padding: 14px 16px; }

/* Vergi seçim modalı için özel */
#vergiModal .modal {
    max-height: 85vh;
}
#vergiModal .modal-item {
    padding: 12px 14px;
    margin-bottom: 8px;
}
#vergiModal .modal-item:hover {
    background: #F0FDF4;
    border-color: #10B981;
}
