/* ==========================================================================
   MARKET POS & CARİ HESAP & ÜRÜN YÖNETİM SİSTEMİ - TASARIM SİSTEMİ
   AVAPOS 15" Dokunmatik Uyumlu, Glassmorphic, Neon LED ve Premium Kasa Teması
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Renk Paleti - Derin Gece & Neon Vurgular */
  --bg-main: #0B0F19;
  --bg-surface: #111827;
  --bg-card: rgba(22, 31, 49, 0.85);
  --bg-card-hover: rgba(30, 41, 67, 0.95);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(59, 130, 246, 0.25);

  /* Marka & Durum Renkleri */
  --primary: #3B82F6;
  --primary-glow: rgba(59, 130, 246, 0.4);
  --primary-hover: #2563EB;
  
  --accent-neon: #10B981;
  --accent-glow: rgba(16, 185, 129, 0.35);
  
  --warning: #F59E0B;
  --warning-glow: rgba(245, 158, 11, 0.3);
  
  --danger: #EF4444;
  --danger-glow: rgba(239, 68, 68, 0.35);
  
  --purple: #8B5CF6;
  --purple-glow: rgba(139, 92, 246, 0.3);
  
  --cyan: #06B6D4;

  /* Metin Renkleri */
  --text-main: #F9FAFB;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;

  /* Tipografi */
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-alt: 'Plus Jakarta Sans', sans-serif;

  /* Dokunmatik Buton Standartları (AVAPOS 15" Dokunmatik Uyumlu) */
  --touch-btn-height: 54px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Gölgeler */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-neon: 0 0 20px rgba(16, 185, 129, 0.25);
}

/* Sıfırlama ve Temel */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  user-select: none;
}

input, textarea {
  user-select: text;
  touch-action: auto;
}

button, .quick-prod-card, .park-btn, .pay-btn, .nav-tab-btn, .qty-btn, .item-del-btn {
  touch-action: manipulation;
  cursor: pointer;
}

button:active, .quick-prod-card:active, .park-btn:active, .pay-btn:active {
  transform: scale(0.95);
  transition: transform 0.05s ease;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  overscroll-behavior: none;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 40%);
}

/* ==========================================================================
   ÜST BAŞLIK (HEADER & NAVİGASYON)
   ========================================================================== */

.app-header {
  height: 64px;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 50;
  flex-shrink: 0;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  box-shadow: 0 0 14px var(--primary-glow);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Ana Sekmeler */
.nav-tabs {
  display: flex;
  gap: 8px;
  background: rgba(11, 15, 25, 0.7);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.nav-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 16px var(--primary-glow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kiosk-fullscreen-btn {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93C5FD;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.kiosk-fullscreen-btn:hover {
  background: rgba(59, 130, 246, 0.3);
  color: #ffffff;
}

.kiosk-fullscreen-btn.active {
  background: linear-gradient(135deg, #059669, #10B981);
  border-color: #10B981;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.4);
}

.pos-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.clock-display {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   ANA GÖVDE & SAYFALAR
   ========================================================================== */

.main-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.view-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.view-panel.active {
  display: flex;
  opacity: 1;
}

/* ==========================================================================
   1. POS KASA SATIŞ EKRANI
   ========================================================================== */

.pos-layout {
  display: grid;
  grid-template-columns: 430px 1fr;
  height: 100%;
  width: 100%;
  gap: 12px;
  padding: 12px;
}

/* Sol Taraf: Sepet, LED Ekran, Ödeme Butonları */
.pos-left-pane {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Dijital LED Gösterge (Fotoğraftaki SystemPOS 0,00 Tarzı) */
.led-display-card {
  background: linear-gradient(180deg, #060B12 0%, #0F172A 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 15px rgba(16, 185, 129, 0.12);
  position: relative;
}

.led-label {
  display: flex;
  flex-direction: column;
}

.led-title {
  font-size: 0.75rem;
  color: #6EE7B7;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.led-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.led-amount-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.led-amount {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 800;
  color: #10B981;
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
  letter-spacing: -1px;
}

.led-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: #34D399;
}

/* İade Modu Banner */
.refund-active-banner {
  background: linear-gradient(90deg, #DC2626, #991B1B);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  animation: pulse-danger 2s infinite;
}

.refund-active-banner.visible {
  display: flex;
}

@keyframes pulse-danger {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* Aktif Miktar Çarpanı Banner */
.multiplier-active-banner {
  background: linear-gradient(90deg, #D97706, #B45309);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #F59E0B;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
  animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Kasa Üst Aksiyonları: Park (Sipariş 1/2) ve İade Butonu (Fotoğraftaki İADE & SİPARİŞ 1/2) */
.pos-cart-actions-bar {
  display: flex;
  gap: 8px;
}

.park-btn {
  flex: 1;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: rgba(30, 41, 59, 0.8);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.park-btn.active {
  background: linear-gradient(135deg, #D97706, #B45309);
  color: #ffffff;
  border-color: #F59E0B;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.refund-toggle-btn {
  height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.15);
  color: #FCA5A5;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.refund-toggle-btn.active {
  background: #DC2626;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.5);
}

/* Sepet Tablosu */
.pos-cart-container {
  flex: 1;
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cart-table-header {
  display: grid;
  grid-template-columns: 2.2fr 125px 95px 100px 42px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px;
  -webkit-overflow-scrolling: touch;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 2.2fr 125px 95px 100px 42px;
  align-items: center;
  padding: 8px 10px;
  background: rgba(22, 31, 49, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  font-size: 0.92rem;
  transition: background 0.15s ease;
}

.cart-item-row:hover {
  background: rgba(30, 41, 67, 0.9);
}

.item-name-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.item-title {
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
}

.item-barcode {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.item-qty-cell {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

/* Dokunmatik Parmak Dostu Adet Butonları (38px x 38px) */
.qty-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  transition: all 0.1s ease;
}

.qty-btn:active {
  background: var(--primary);
  transform: scale(0.92);
}

.qty-val {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.15rem;
  min-width: 32px;
  text-align: center;
}

.item-price-cell, .item-total-cell {
  font-family: var(--font-mono);
  font-weight: 700;
  text-align: right;
  padding-right: 6px;
  font-size: 0.95rem;
}

.item-total-cell {
  color: #34D399;
  font-weight: 800;
}

.item-del-btn {
  width: 38px;
  height: 38px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #F87171;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: bold;
}

.item-del-btn:active {
  background: var(--danger);
  color: #fff;
}

.item-del-btn:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

.empty-cart-msg {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  gap: 10px;
  font-size: 0.9rem;
}

/* Sepet Özeti */
.pos-cart-summary {
  background: rgba(15, 23, 42, 0.8);
  border-top: 1px solid var(--border-color);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.summary-row.total-row {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  border-top: 1px dashed var(--border-color);
  padding-top: 6px;
  margin-top: 2px;
}

/* ==========================================================================
   DOKUNMATİK NUMPAD & MİKTAR ÇARPAN PANELİ (AVAPOS 15" UYUMLU)
   ========================================================================== */
.pos-numpad-panel {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.multiplier-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.multiplier-bar-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
}

.mult-pill {
  flex: 1;
  height: 38px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
}

.mult-pill:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--primary);
}

.mult-pill.active {
  background: linear-gradient(135deg, #059669, #10B981);
  border-color: #10B981;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.toggle-numpad-btn {
  flex: 2;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93C5FD;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.toggle-numpad-btn.active {
  background: #2563EB;
  color: #ffffff;
}

/* 4x4 Dokunmatik Tuş Takımı */
.touch-numpad-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: max-height 0.2s ease, opacity 0.2s ease;
}

.touch-numpad-grid.collapsed {
  display: none;
}

.numpad-lcd-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #060B12;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
}

.numpad-lcd-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 700;
}

.numpad-lcd-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: #34D399;
  letter-spacing: 1px;
}

.numpad-keys-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.numpad-key {
  height: 44px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #F8FAFC;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s ease;
  touch-action: manipulation;
}

.numpad-key:active {
  transform: scale(0.92);
  background: var(--primary);
}

.numpad-key.action-mult {
  background: linear-gradient(135deg, #D97706, #B45309);
  color: #ffffff;
  border-color: #F59E0B;
  font-size: 0.85rem;
  font-family: var(--font-main);
}

.numpad-key.action-del {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
  font-size: 0.85rem;
  font-family: var(--font-main);
}

.numpad-key.action-clear {
  background: rgba(100, 116, 139, 0.25);
  border-color: rgba(100, 116, 139, 0.4);
  color: #CBD5E1;
  font-size: 0.8rem;
  font-family: var(--font-main);
}

.numpad-key.action-enter {
  background: linear-gradient(135deg, #059669, #10B981);
  color: #ffffff;
  border-color: #10B981;
  font-size: 0.85rem;
  font-family: var(--font-main);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Arama çubuğu içindeki dokunmatik butonlar */
.input-clear-touch-btn {
  position: absolute;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.input-clear-touch-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}

.touch-bar-numpad-toggle {
  height: 48px;
  padding: 0 14px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93C5FD;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  touch-action: manipulation;
}

.touch-bar-numpad-toggle:active {
  background: var(--primary);
  color: #fff;
}

/* Ödeme Düğmeleri Izgarası (AVAPOS Dokunmatik Tasarımı) */
.pos-payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pay-btn {
  height: var(--touch-btn-height);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}

.pay-btn:active {
  transform: scale(0.97);
}

.pay-btn.cash {
  background: linear-gradient(135deg, #059669, #10B981);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.pay-btn.card {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

/* Veresiye / Cari Hesaba Yaz Butonu */
.pay-btn.credit {
  background: linear-gradient(135deg, #7C3AED, #8B5CF6);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pay-btn.split {
  grid-column: span 1;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.pay-btn.clear-cart {
  grid-column: span 2;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
}

.pay-btn.clear-cart:hover {
  background: rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   SAĞ TARAF: BARKOD GİRİŞİ, HIZLI DOKUNMATİK BUTONLAR, KATEGORİLER
   ========================================================================== */

.pos-right-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  overflow: hidden;
}

/* Barkod ve Arama Üst Çubuğu (Datalogic Global Listener ile Entegre) */
.pos-search-bar {
  display: flex;
  gap: 10px;
  background: var(--bg-surface);
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  align-items: center;
}

.barcode-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.barcode-icon {
  position: absolute;
  left: 14px;
  color: var(--accent-neon);
  font-size: 1.2rem;
}

.pos-barcode-input {
  width: 100%;
  height: 48px;
  background: rgba(11, 15, 25, 0.8);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 0 14px 0 46px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.pos-barcode-input:focus {
  border-color: #10B981;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
}

.datalogic-scanner-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34D399;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.scanner-laser-icon {
  display: inline-block;
  width: 10px;
  height: 2px;
  background: #EF4444;
  box-shadow: 0 0 6px #EF4444;
}

/* Kategori Sekmeleri */
.quick-categories-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  flex-shrink: 0;
}

.quick-cat-btn {
  background: rgba(22, 31, 49, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.quick-cat-btn:hover {
  background: rgba(30, 41, 67, 0.95);
  color: var(--text-main);
}

.quick-cat-btn.active {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: #ffffff;
  border-color: #3B82F6;
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Hızlı Ürün Dokunmatik Izgarası (Ekmek, Su, Simit vb.) */
.quick-products-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
  align-content: start;
}

.quick-prod-card {
  background: rgba(22, 31, 49, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 96px;
  position: relative;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.quick-prod-card.has-img {
  padding: 8px;
  min-height: 145px;
}

.quick-prod-img-wrap {
  width: 100%;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 6px;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
}

.quick-prod-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.quick-prod-card:hover .quick-prod-img {
  transform: scale(1.05);
}

.quick-prod-card:hover {
  transform: translateY(-2px);
  background: rgba(30, 41, 67, 0.95);
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.quick-prod-card:active {
  transform: scale(0.96);
}

.quick-prod-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.quick-prod-badge {
  font-size: 0.65rem;
  background: rgba(59, 130, 246, 0.2);
  color: #93C5FD;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.quick-prod-stock {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.quick-prod-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-prod-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.quick-prod-price {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: #34D399;
}

/* ==========================================================================
   2. MÜŞTERİ CARİ HESAP (VERESİYE) YÖNETİMİ
   ========================================================================== */

.cari-layout {
  display: grid;
  grid-template-columns: 480px 1fr;
  height: 100%;
  width: 100%;
  gap: 14px;
  padding: 14px;
}

/* Sol Taraf: Müşteri Listesi & Üst İstatistikler */
.cari-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px;
  overflow: hidden;
}

/* Piyasa Toplam Alacak Özeti */
.cari-stat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-card {
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-card.glow-purple {
  border-color: rgba(139, 92, 246, 0.4);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(11, 15, 25, 0.9));
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 800;
  color: #C4B5FD;
}

.cari-search-header {
  display: flex;
  gap: 8px;
}

.cari-search-input {
  flex: 1;
  height: 42px;
  background: rgba(11, 15, 25, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
}

.cari-search-input:focus {
  border-color: var(--primary);
}

.add-customer-btn {
  height: 42px;
  padding: 0 14px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.add-customer-btn:hover {
  background: var(--primary-hover);
}

.customer-list-wrap {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.customer-card {
  background: rgba(22, 31, 49, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.15s ease;
}

.customer-card:hover {
  background: rgba(30, 41, 67, 0.9);
  border-color: var(--border-glow);
}

.customer-card.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.cust-info-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cust-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-main);
}

.cust-phone {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.cust-balance-col {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cust-balance-val {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.15rem;
}

.cust-balance-val.debt {
  color: #F87171;
}

.cust-balance-val.clear {
  color: #34D399;
}

.cust-limit-info {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Sağ Taraf: Müşteri Cari Detay & Ekstre */
.cari-detail-view {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.customer-profile-bar {
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.profile-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.profile-actions {
  display: flex;
  gap: 10px;
}

/* WhatsApp ile Borç Bildirme Butonu */
.whatsapp-btn {
  background: #128C7E;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 12px rgba(18, 140, 126, 0.4);
  transition: all 0.15s ease;
}

.whatsapp-btn:hover {
  background: #075E54;
  transform: translateY(-1px);
}

/* Tahsilat Yap (Ödeme Al) Butonu */
.collect-payment-btn {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.collect-payment-btn:hover {
  background: #059669;
}

/* Cari Hareketler Tablosu */
.statement-container {
  flex: 1;
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.statement-header {
  display: grid;
  grid-template-columns: 140px 1fr 120px 120px 120px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.statement-rows {
  flex: 1;
  overflow-y: auto;
  padding: 4px;
}

.statement-row {
  display: grid;
  grid-template-columns: 140px 1fr 120px 120px 120px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
}

.statement-row:hover {
  background: rgba(30, 41, 67, 0.6);
}

.tx-date {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.tx-desc {
  color: var(--text-main);
  font-weight: 500;
}

.tx-type-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.tx-type-tag.debt {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
}

.tx-type-tag.payment {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
}

.tx-amount {
  font-family: var(--font-mono);
  font-weight: 700;
  text-align: right;
}

.tx-balance {
  font-family: var(--font-mono);
  font-weight: 700;
  text-align: right;
  color: #E2E8F0;
}

/* ==========================================================================
   3. ÜRÜN VE STOK YÖNETİMİ
   ========================================================================== */

.products-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  gap: 12px;
  padding: 14px;
}

.products-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.prod-search-filters {
  display: flex;
  gap: 10px;
  flex: 1;
}

.prod-search-input {
  width: 320px;
  height: 42px;
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

.prod-category-select {
  height: 42px;
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

.quick-price-shortcut-btn {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FCD34D;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.add-product-btn {
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  height: 42px;
  padding: 0 18px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-product-btn:hover {
  background: var(--primary-hover);
}

.products-table-container {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.prod-table-header {
  display: grid;
  grid-template-columns: 48px 140px 2fr 120px 95px 100px 90px 75px 100px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.prod-table-rows {
  flex: 1;
  overflow-y: auto;
  padding: 4px;
}

.prod-table-row {
  display: grid;
  grid-template-columns: 48px 140px 2fr 120px 95px 100px 90px 75px 100px;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  transition: background 0.15s ease;
}

.prod-table-thumb {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  cursor: pointer;
}

.prod-table-thumb:hover {
  transform: scale(2.2);
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  border-color: var(--primary);
}

.prod-table-thumb-placeholder {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-dim);
}

.modal-image-upload-wrap {
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(11, 15, 25, 0.6);
  border: 1px dashed var(--border-color);
  padding: 12px;
  border-radius: var(--radius-md);
}

.modal-img-preview-box {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.modal-img-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prod-table-row:hover {
  background: rgba(30, 41, 67, 0.7);
}

.prod-barcode {
  font-family: var(--font-mono);
  color: #93C5FD;
  font-size: 0.82rem;
}

.prod-name {
  font-weight: 600;
  color: var(--text-main);
}

.prod-cat {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.prod-buy, .prod-sell {
  font-family: var(--font-mono);
  font-weight: 600;
  text-align: right;
  padding-right: 12px;
}

.prod-sell {
  color: #34D399;
  font-weight: 700;
}

.prod-stock-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.prod-stock-badge.ok {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
}

.prod-stock-badge.low {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
}

.prod-stock-badge.out {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
}

.prod-actions-cell {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.prod-action-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
}

.prod-action-btn:hover {
  background: var(--primary);
}

/* ==========================================================================
   4. RAPORLAR VE GÜN SONU (Z RAPORU)
   ========================================================================== */

.reports-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  gap: 14px;
  padding: 16px;
  overflow-y: auto;
}

.reports-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.report-summary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.report-card-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.report-card-val {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: #10B981;
}

.report-card-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.z-report-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 24px;
}

.z-report-paper {
  width: 320px;
  background: #FFFBEB;
  color: #1F2937;
  padding: 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   MODAL PENCERELER (ÖDEME, CARİ SEÇİMİ, MÜŞTERİ EKLEME, FİŞ)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal-window {
  background: #161F31;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 520px;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 14px 20px;
  background: rgba(11, 15, 25, 0.6);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Hızlı Banknot Butonları (10, 20, 50, 100, 200 TL ve Tam Tutar) */
.quick-cash-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.cash-nominal-btn {
  height: 48px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
}

.cash-nominal-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.cash-nominal-btn:active {
  transform: scale(0.95);
}

.cash-nominal-btn.exact-btn {
  background: linear-gradient(135deg, #059669, #10B981);
  color: #fff;
  border-color: #10B981;
}

/* Modal İçi Dokunmatik Rakam Tuşları (3x4 Matrix) */
.modal-touch-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.modal-touch-key {
  height: 48px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s ease;
  touch-action: manipulation;
}

.modal-touch-key:active {
  transform: scale(0.93);
  background: var(--primary);
}

.modal-touch-key.action-clear {
  background: rgba(100, 116, 139, 0.3);
  color: #E2E8F0;
}

.modal-touch-key.action-del {
  background: rgba(239, 68, 68, 0.2);
  color: #F87171;
}

.change-due-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.change-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #34D399;
}

.change-val {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: #10B981;
}

/* Form Elemanları */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.form-control {
  height: 44px;
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-main);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
}

/* ==========================================================================
   4. ŞIK HUD BİLDİRİM SİSTEMİ (TOAST & NOTIFICATIONS)
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 72px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  pointer-events: none;
  width: min(420px, calc(100vw - 32px));
}

.hud-toast {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 16px 18px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: hudToastIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  cursor: pointer;
  user-select: none;
  transition: transform 0.18s ease, opacity 0.2s ease;
}

.hud-toast:hover {
  transform: translateY(-2px) scale(1.01);
}

.hud-toast.hide {
  animation: hudToastOut 0.25s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes hudToastIn {
  from { transform: translateX(110%) scale(0.92); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes hudToastOut {
  from { transform: translateX(0); opacity: 1; max-height: 140px; margin-bottom: 0; }
  to { transform: translateX(115%); opacity: 0; max-height: 0; margin-bottom: -12px; padding-top: 0; padding-bottom: 0; }
}

.hud-toast-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.hud-toast.success {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.7), 0 0 24px rgba(16, 185, 129, 0.25);
}
.hud-toast.success .hud-toast-icon-wrap {
  background: rgba(16, 185, 129, 0.18);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.45);
}
.hud-toast.success .hud-toast-progress-bar {
  background: linear-gradient(90deg, #10B981, #34D399);
}

.hud-toast.danger {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.7), 0 0 24px rgba(239, 68, 68, 0.25);
}
.hud-toast.danger .hud-toast-icon-wrap {
  background: rgba(239, 68, 68, 0.18);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.45);
}
.hud-toast.danger .hud-toast-progress-bar {
  background: linear-gradient(90deg, #DC2626, #EF4444);
}

.hud-toast.warning {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.7), 0 0 24px rgba(245, 158, 11, 0.25);
}
.hud-toast.warning .hud-toast-icon-wrap {
  background: rgba(245, 158, 11, 0.18);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}
.hud-toast.warning .hud-toast-progress-bar {
  background: linear-gradient(90deg, #D97706, #F59E0B);
}

.hud-toast.info {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.7), 0 0 24px rgba(56, 189, 248, 0.25);
}
.hud-toast.info .hud-toast-icon-wrap {
  background: rgba(56, 189, 248, 0.18);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.45);
}
.hud-toast.info .hud-toast-progress-bar {
  background: linear-gradient(90deg, #0284C7, #38BDF8);
}

.hud-toast-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-toast-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.2px;
}

.hud-toast-message {
  font-size: 0.86rem;
  color: #CBD5E1;
  line-height: 1.42;
  word-break: break-word;
}

.hud-toast-close {
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  transition: all 0.15s ease;
  margin-left: auto;
}

.hud-toast-close:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.hud-toast-progress-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.hud-toast-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left;
  animation: hudProgressBar linear forwards;
}

@keyframes hudProgressBar {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* ==========================================================================
   ŞIK DOKUNMATİK ONAY DİYALOĞU (CONFIRM MODAL WINDOW)
   ========================================================================== */
.confirm-modal-window {
  max-width: 440px;
  text-align: center;
  border-radius: var(--radius-xl);
  padding: 24px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  animation: modalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.confirm-modal-icon-wrap {
  width: 66px;
  height: 66px;
  margin: 0 auto 14px auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  transition: all 0.2s ease;
}

.confirm-modal-icon-wrap.danger {
  background: rgba(239, 68, 68, 0.16);
  border: 2px solid #EF4444;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
}

.confirm-modal-icon-wrap.warning {
  background: rgba(245, 158, 11, 0.16);
  border: 2px solid #F59E0B;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
}

.confirm-modal-icon-wrap.info {
  background: rgba(56, 189, 248, 0.16);
  border: 2px solid #38BDF8;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}

.confirm-modal-icon-wrap.success {
  background: rgba(16, 185, 129, 0.16);
  border: 2px solid #10B981;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

.confirm-modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 8px 0;
}

.confirm-modal-message {
  font-size: 0.95rem;
  color: #94A3B8;
  line-height: 1.5;
  margin: 0 0 22px 0;
  white-space: pre-line;
}

.confirm-modal-actions {
  display: flex;
  gap: 12px;
}

.confirm-btn {
  flex: 1;
  height: 50px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  user-select: none;
}

.confirm-btn:active {
  transform: scale(0.94);
}

.confirm-btn.cancel {
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.confirm-btn.cancel:hover {
  background: rgba(255, 255, 255, 0.15);
}

.confirm-btn.confirm.danger {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.45);
}

.confirm-btn.confirm.warning {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45);
}

.confirm-btn.confirm.info {
  background: linear-gradient(135deg, #0284C7, #0369A1);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.45);
}

.confirm-btn.confirm.success {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.45);
}

/* ==========================================================================
   5. TELEFON ARAMA (CALLER ID) GÖRSEL BİLDİRİM VE RENK SİSTEMİ
   ========================================================================== */

.caller-hud-card {
  width: 100%;
  background: #111827;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

/* KULLANICI KURALINA GÖRE RENKLER: */

/* 1. BORÇLU İSE: KIRMIZI / MERCAN */
.caller-header-debt {
  border: 2.5px solid #EF4444;
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.4), inset 0 0 20px rgba(239, 68, 68, 0.08);
}
.caller-header-debt .caller-hud-top {
  background: linear-gradient(90deg, #991B1B, #DC2626);
}

/* 2. ALACAKLI İSE: MOR / CAMGÖBEĞİ */
.caller-header-credit {
  border: 2.5px solid #8B5CF6;
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.4), inset 0 0 20px rgba(139, 92, 246, 0.08);
}
.caller-header-credit .caller-hud-top {
  background: linear-gradient(90deg, #5B21B6, #7C3AED);
}

/* 3. BAKİYE SIFIR İSE: ZÜMRÜT YEŞİLİ */
.caller-header-zero {
  border: 2.5px solid #10B981;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.4), inset 0 0 20px rgba(16, 185, 129, 0.08);
}
.caller-header-zero .caller-hud-top {
  background: linear-gradient(90deg, #065F46, #059669);
}

/* 4. REHBERDE KAYITSIZ NUMARA: KEHRİBAR SARI */
.caller-header-unknown {
  border: 2.5px solid #F59E0B;
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.4);
}
.caller-header-unknown .caller-hud-top {
  background: linear-gradient(90deg, #92400E, #D97706);
}

.caller-hud-top {
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
}

.caller-ringing-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-vibrate-icon {
  font-size: 1.8rem;
  display: inline-block;
  animation: phoneRingVibrate 0.6s infinite ease-in-out;
}

@keyframes phoneRingVibrate {
  0% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(-15deg) scale(1.1); }
  40% { transform: rotate(15deg) scale(1.1); }
  60% { transform: rotate(-10deg) scale(1.05); }
  80% { transform: rotate(10deg) scale(1.05); }
  100% { transform: rotate(0deg) scale(1); }
}

.pulse-call-ring {
  width: 12px;
  height: 12px;
  background-color: #fff;
  border-radius: 50%;
  animation: pulse 1.2s infinite;
}

.caller-hud-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.caller-main-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.caller-main-phone {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 600;
}

.caller-balance-status-box {
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.caller-status-tag {
  font-size: 0.88rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.caller-balance-huge {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.caller-status-desc {
  font-size: 0.85rem;
  font-weight: 600;
}

.caller-address-box {
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.caller-recent-txs {
  background: rgba(11, 15, 25, 0.7);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-md);
}

.caller-hud-footer {
  padding: 16px 20px;
  background: rgba(11, 15, 25, 0.9);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
}

.caller-action-btn {
  height: 50px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.caller-action-btn.primary {
  flex: 2;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.caller-action-btn.primary:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
}

.caller-action-btn.secondary {
  flex: 1.5;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #C4B5FD;
}

.caller-action-btn.secondary:hover {
  background: rgba(139, 92, 246, 0.35);
}

.caller-action-btn.cancel {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.caller-action-btn.cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Üst Başlık Caller ID Butonu */
.caller-id-top-btn {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #C4B5FD;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.caller-id-top-btn:hover {
  background: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 12px var(--purple-glow);
}

/* ==========================================================================
   DOKUNMATİK EKRAN KAYDIRMA ÇUBUKLARI & ERGONOMİ (AVAPOS 15")
   ========================================================================== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(11, 15, 25, 0.5);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active {
  background: rgba(59, 130, 246, 0.7);
}

/* AVAPOS 15" Ekran Çözünürlük Uyarlamaları (1024x768 ve 1366x768) */
@media (max-width: 1100px), (max-height: 800px) {
  .app-header {
    height: 56px;
    padding: 0 12px;
  }
  .brand-name {
    font-size: 0.95rem;
  }
  .brand-sub {
    display: none;
  }
  .nav-tab-btn {
    padding: 6px 12px;
    font-size: 0.88rem;
  }
  .pos-layout {
    grid-template-columns: 390px 1fr;
    padding: 8px;
    gap: 8px;
  }
  .led-display-card {
    padding: 10px 14px;
  }
  .led-amount {
    font-size: 2.2rem;
  }
  .pay-btn {
    height: 46px;
    font-size: 0.88rem;
  }
  .numpad-key {
    height: 38px;
    font-size: 1.1rem;
  }
  .mult-pill {
    height: 34px;
    font-size: 0.82rem;
  }
  .quick-prod-card {
    min-height: 85px;
    padding: 8px;
  }
  .quick-prod-img-wrap {
    height: 60px;
  }
}

/* =========================================================
   ZİNCİR MARKETLER FİYAT ARAMA & KIYASLAMA EKRANI (F5)
   ========================================================= */
.chain-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  padding: 14px;
  overflow-y: auto;
}

.chain-top-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.chain-search-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.chain-search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.chain-search-icon {
  position: absolute;
  left: 14px;
  font-size: 1.2rem;
  color: var(--text-muted);
  pointer-events: none;
}

.chain-search-input {
  width: 100%;
  height: 50px;
  padding: 0 16px 0 46px;
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 1.05rem;
  outline: none;
  transition: all 0.2s ease;
}

.chain-search-input:focus {
  border-color: #38BDF8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.95);
}

.chain-filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chain-filter-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-right: 4px;
}

.chain-filter-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.chain-filter-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.chain-filter-chip.active {
  background: #0284C7;
  color: #FFFFFF;
  border-color: #38BDF8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.chain-quick-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.chain-quick-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94A3B8;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chain-quick-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #F8FAFC;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Özet İstatistikler */
.chain-metrics-bar {
  display: flex;
  gap: 14px;
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  align-items: center;
}

.chain-metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chain-metric-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.chain-metric-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: #38BDF8;
}

/* Ürün Kartları Izgarası */
.chain-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  padding-bottom: 20px;
}

.chain-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.chain-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.chain-card.is-cheapest-card {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, var(--bg-surface) 40%);
}

.chain-cheapest-ribbon {
  position: absolute;
  top: -9px;
  right: 14px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  letter-spacing: 0.5px;
}

.chain-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chain-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.chain-category-tag {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.chain-card-body {
  display: flex;
  gap: 12px;
  align-items: center;
}

.chain-img-wrap {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chain-prod-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chain-prod-no-thumb {
  font-size: 1.5rem;
  opacity: 0.6;
}

.chain-info-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chain-prod-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.chain-meta-row {
  display: flex;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.chain-meta-row code {
  font-family: var(--font-mono);
  color: #94A3B8;
}

.chain-unit-price {
  font-size: 0.72rem;
  color: #F59E0B;
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Fiyat Bölümü */
.chain-price-section {
  display: flex;
  gap: 10px;
  background: rgba(11, 15, 25, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.chain-price-col, .chain-our-price-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chain-our-price-col {
  border-left: 1px solid var(--border-color);
  padding-left: 10px;
}

.chain-price-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.chain-price-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: #F8FAFC;
}

.chain-old-price {
  font-size: 0.75rem;
  text-decoration: line-through;
  color: var(--text-dim);
}

.chain-our-price-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: #10B981;
}

.chain-our-price-val.no-price {
  font-size: 0.9rem;
  color: #F59E0B;
}

/* Fark Satırı */
.chain-diff-row {
  display: flex;
}

.chain-diff-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  width: 100%;
}

.chain-diff-badge.cheaper {
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.chain-diff-badge.expensive {
  background: rgba(239, 68, 68, 0.12);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.chain-diff-badge.equal {
  background: rgba(255, 255, 255, 0.06);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.chain-diff-badge.not-stocked {
  background: rgba(245, 158, 11, 0.12);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Eylem Butonları */
.chain-actions-row {
  display: flex;
  gap: 8px;
}

.chain-action-btn {
  flex: 1;
  height: 42px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.chain-action-btn.apply-btn {
  background: linear-gradient(135deg, #0284C7, #0369A1);
  color: #FFFFFF;
}

.chain-action-btn.apply-btn:hover {
  background: linear-gradient(135deg, #0369A1, #075985);
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.4);
}

.chain-action-btn.import-btn {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
}

.chain-action-btn.import-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   ZİNCİR MARKET İÇE AKTARMA & FİYAT DÜZENLEME MODALI
   ========================================================================== */
.chain-import-modal-window {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.chain-import-summary-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
}

.chain-import-img-wrap {
  width: 74px;
  height: 74px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chain-import-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chain-import-meta-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chain-import-source-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chain-source-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: #FF6600;
  color: #FFFFFF;
  letter-spacing: 0.3px;
}

.chain-source-price-pill {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(59, 130, 246, 0.18);
  color: #93C5FD;
  border: 1px solid rgba(59, 130, 246, 0.35);
  font-family: var(--font-mono);
}

.chain-import-barcode-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.chain-import-barcode-row code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Fiyatlandırma & Kârlılık Düzenleme Kartı */
.price-edit-highlight-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.85));
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.price-edit-card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #F1F5F9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.price-edit-hint {
  font-size: 0.75rem;
  font-weight: 500;
  color: #34D399;
}

.price-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.input-currency-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-currency-wrap .price-input {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  height: 48px;
  padding-right: 32px;
}

.input-currency-wrap .price-input.sell-highlight {
  border-color: #10B981;
  color: #10B981;
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.input-currency-wrap .currency-symbol {
  position: absolute;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
}

/* Canlı Kâr ve Marj Kutusu */
.margin-live-display {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.margin-metric-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.margin-metric-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.margin-metric-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: #10B981;
  transition: color 0.2s ease;
}

.margin-metric-val.negative {
  color: #EF4444;
}

.margin-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
}

/* Hızlı Fiyat Şablon Butonları */
.quick-price-preset-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 2px;
}

.preset-price-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
  touch-action: manipulation;
}

.preset-price-btn span {
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.preset-price-btn small {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

.preset-price-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.preset-price-btn:active {
  transform: translateY(1px);
}

.preset-price-btn.competitive {
  border-color: rgba(14, 165, 233, 0.35);
}

.preset-price-btn.competitive:hover {
  background: rgba(14, 165, 233, 0.15);
  border-color: #0EA5E9;
}

.preset-price-btn.competitive small {
  color: #38BDF8;
}

.preset-price-btn.deal {
  border-color: rgba(245, 158, 11, 0.35);
}

.preset-price-btn.deal:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: #F59E0B;
}

.preset-price-btn.deal small {
  color: #FBBF24;
}

.preset-price-btn.margin {
  border-color: rgba(16, 185, 129, 0.35);
}

.preset-price-btn.margin:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10B981;
}

.preset-price-btn.margin small {
  color: #34D399;
}

/* ==========================================================================
   DAİRE & SAKİN (KİRACI / EV SAHİBİ) BİRLEŞİK CARİ HESAP STİLLERİ
   ========================================================================== */

.block-chips-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 2px 8px 2px;
  margin-bottom: 6px;
}

.block-chips-bar::-webkit-scrollbar {
  height: 4px;
}

.block-chip {
  background: rgba(30, 41, 67, 0.7);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  user-select: none;
}

.block-chip:hover {
  background: rgba(59, 130, 246, 0.2);
  color: #fff;
  border-color: var(--primary);
}

.block-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.apartment-card {
  background: rgba(22, 31, 49, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.15s ease;
}

.apartment-card:hover {
  background: rgba(30, 41, 67, 0.9);
  border-color: var(--border-glow);
}

.apartment-card.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.apt-code-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: #60A5FA;
}

.apt-residents-summary {
  font-size: 0.8rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.residents-section-wrapper {
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.residents-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.residents-section-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #C4B5FD;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}

.toggle-former-btn {
  background: rgba(30, 41, 67, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.toggle-former-btn:hover {
  background: rgba(30, 41, 67, 0.9);
  color: #fff;
}

.former-badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 0.7rem;
}

.residents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.resident-card {
  background: rgba(22, 31, 49, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: transform 0.1s ease;
}

.resident-card:active {
  transform: scale(0.98);
}

.resident-card.owner {
  border-left: 4px solid #10B981;
}

.resident-card.tenant {
  border-left: 4px solid #3B82F6;
}

.resident-card.family {
  border-left: 4px solid #8B5CF6;
}

.resident-role-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.resident-role-badge.owner {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.resident-role-badge.tenant {
  background: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.resident-role-badge.family {
  background: rgba(139, 92, 246, 0.2);
  color: #C4B5FD;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.resident-role-badge.former {
  background: rgba(156, 163, 175, 0.2);
  color: #9CA3AF;
  border: 1px solid rgba(156, 163, 175, 0.4);
}

.resident-action-btns {
  display: flex;
  gap: 6px;
  align-items: center;
}

.res-btn {
  background: rgba(30, 41, 67, 0.8);
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 0.72rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  min-height: 32px;
}

.res-btn:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: var(--primary);
}

.res-btn.wa-res {
  background: rgba(18, 140, 126, 0.2);
  border-color: rgba(18, 140, 126, 0.5);
  color: #34D399;
}

.res-btn.wa-res:hover {
  background: #128C7E;
  color: #fff;
}

.res-btn.move-out {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

.res-btn.move-out:hover {
  background: rgba(239, 68, 68, 0.35);
  border-color: #EF4444;
  color: #fff;
}

.former-residents-wrap {
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.former-res-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.former-res-row:last-child {
  border-bottom: none;
}

.statement-header-apt {
  display: grid;
  grid-template-columns: 140px 1.4fr 1.2fr 90px 110px 110px;
  gap: 8px;
}

.statement-row-apt {
  display: grid;
  grid-template-columns: 140px 1.4fr 1.2fr 90px 110px 110px;
  gap: 8px;
  align-items: center;
}

/* ==================== KİOSK DOKUNMATİK KİLİT & AUTH SİSTEMİ ==================== */

.active-user-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 20px;
  font-size: 0.85rem;
  color: #fff;
  font-weight: 500;
}

.lock-screen-top-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #EF4444;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.lock-screen-top-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #EF4444;
}

.lock-screen-top-btn:active {
  transform: scale(0.92);
}

/* Tam Ekran Kilit Katmanı */
.pos-lock-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.95) 0%, rgba(5, 8, 18, 0.98) 100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.pos-lock-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lock-card {
  background: rgba(18, 26, 44, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 36px 32px;
  width: 400px;
  max-width: 92vw;
  text-align: center;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.85), 0 0 30px rgba(16, 185, 129, 0.15);
  animation: lockCardPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lockCardPop {
  0% { transform: scale(0.9) translateY(15px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.lock-icon-wrap {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.05) 70%);
  border: 2px solid rgba(16, 185, 129, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.lock-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.lock-subtitle {
  font-size: 0.85rem;
  color: var(--primary, #10B981);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.lock-status-msg {
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 20px;
  transition: color 0.2s ease;
}

/* PIN Noktaları */
.pin-dots-container {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 20px 0 26px 0;
}

.pin-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pin-dot.filled {
  background: #10B981;
  border-color: #10B981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.8);
  transform: scale(1.15);
}

/* Numpad Butonları */
.lock-numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.pin-key-btn {
  height: 62px;
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.pin-key-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.pin-key-btn:active {
  transform: scale(0.92);
  background: rgba(16, 185, 129, 0.25);
  border-color: #10B981;
}

.pin-key-btn.action-clear {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  font-size: 1.3rem;
}

.pin-key-btn.action-clear:active {
  background: rgba(239, 68, 68, 0.3);
  border-color: #EF4444;
}

.pin-key-btn.action-back {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
  font-size: 1.4rem;
}

.pin-key-btn.action-back:active {
  background: rgba(245, 158, 11, 0.3);
  border-color: #F59E0B;
}

.lock-footer-hint {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.role-hint-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.role-hint-badge.cashier strong {
  color: #10B981;
}

.role-hint-badge.admin strong {
  color: #F59E0B;
}

/* Sallanma Efekti (Hatalı PIN) */
@keyframes shakeAnim {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}

.shake {
  animation: shakeAnim 0.45s ease-in-out;
}



