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

:root {
  --sky: #29b6e8; --sky-dark: #1a9fd1; --sky-light: #e8f7fd;
  --night: #0d1b2a; --night-2: #162333; --night-3: #1e2f42;
  --white: #ffffff; --gray-1: #f4f8fb; --gray-2: #e2edf5; --gray-3: #b0c4d4; --gray-4: #6e8fa8;
  --green: #22c97a; --red: #f04f5f; --orange: #ff8c42; --yellow: #ffc94a; --purple: #9b6bff;
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(41,182,232,0.12);
  --shadow-deep: 0 12px 40px rgba(13,27,42,0.22);
  --sidebar-w: 220px;
  --topbar-h: 58px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Nunito', sans-serif; background: var(--gray-1); color: var(--night); }

/* ============ LAYOUT ============ */
.app { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

/* TOPBAR */
.topbar {
  height: var(--topbar-h); background: var(--night); flex-shrink: 0;
  display: flex; align-items: center; padding: 0 16px; gap: 12px;
  z-index: 200; box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.topbar-logo { display: flex; align-items: center; gap: 9px; }
.topbar-logo img { height: 30px; }
.topbar-divider { width: 1px; height: 28px; background: rgba(255,255,255,0.1); margin: 0 2px; }
.topbar-branch {
  background: rgba(41,182,232,0.15); border: 1px solid rgba(41,182,232,0.3);
  border-radius: 7px; padding: 4px 11px; font-size: 12px; font-weight: 800; color: var(--sky);
}
.topbar-register {
  background: rgba(255,255,255,0.06); border-radius: 7px;
  padding: 4px 11px; font-size: 12px; font-weight: 700; color: var(--gray-3);
}

/* ERP Status badge */
.erp-status {
  display: flex; align-items: center; gap: 7px;
  background: rgba(34,201,122,0.1); border: 1px solid rgba(34,201,122,0.25);
  border-radius: 20px; padding: 4px 12px;
  font-size: 11px; font-weight: 800; color: var(--green);
  cursor: pointer; transition: all 0.2s;
}
.erp-status:hover { background: rgba(34,201,122,0.18); }
.erp-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 2px rgba(34,201,122,0.3);
  animation: erp-pulse 2s ease-in-out infinite;
}
@keyframes erp-pulse {
  0%,100% { box-shadow: 0 0 0 2px rgba(34,201,122,0.3); }
  50% { box-shadow: 0 0 0 5px rgba(34,201,122,0.08); }
}

.topbar-spacer { flex: 1; }
.topbar-datetime { text-align: right; line-height: 1.2; }
.topbar-date { font-size: 11px; font-weight: 700; color: var(--gray-4); }
.topbar-time { font-size: 18px; font-weight: 900; color: var(--white); font-variant-numeric: tabular-nums; }

.topbar-user {
  display: flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 11px; padding: 6px 12px; cursor: pointer; transition: all 0.2s;
  position: relative;
}
.topbar-user:hover { background: rgba(255,255,255,0.1); }
.user-avatar {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--sky), var(--sky-dark));
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; color: white; flex-shrink: 0;
}
.user-name { font-size: 12px; font-weight: 800; color: var(--white); }
.user-role { font-size: 10px; font-weight: 600; color: var(--gray-4); }
.user-caret { color: var(--gray-3); font-size: 12px; }

.user-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--night-2); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 8px; width: 210px;
  display: none; z-index: 999; box-shadow: var(--shadow-deep);
}
.user-menu.open { display: block; animation: slide-down 0.18s ease; }
@keyframes slide-down { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:translateY(0)} }
.um-info { padding: 8px 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 6px; }
.um-name { font-size: 13px; font-weight: 800; color: var(--white); }
.um-last { font-size: 10px; font-weight: 600; color: var(--gray-4); margin-top: 2px; }
.um-item {
  display: flex; align-items: center; gap: 9px; padding: 9px 9px;
  border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 700;
  color: var(--gray-3); transition: all 0.2s; text-decoration: none;
}
.um-item:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.um-item.danger { color: var(--red); }
.um-item.danger:hover { background: rgba(240,79,95,0.12); }
.um-item span:first-child { font-size: 16px; width: 24px; text-align: center; }

/* BODY = SIDEBAR + CONTENT */
.app-body { display: flex; flex: 1; overflow: hidden; }

/* SIDEBAR */
/* sidebar styles moved to burger section */

/* ============ BURGER MENU & SIDEBAR COLLAPSE ============ */
.burger-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9px;
  cursor: pointer;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px; flex-shrink: 0;
  transition: background 0.2s;
  padding: 0;
}
.burger-btn:hover { background: rgba(255,255,255,0.14); }
.burger-line {
  width: 16px; height: 2px;
  background: var(--gray-3);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
/* Animate to X when open */
.burger-btn.open .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open .burger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-btn.open .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; background: var(--night-2);
  display: flex; flex-direction: column; overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.06);
  transition: width 0.28s cubic-bezier(0.4,0,0.2,1);
}
.sidebar.collapsed { width: 56px; }

/* Hide labels, badges, section labels when collapsed */
.sidebar.collapsed .nav-section-label { opacity: 0; height: 0; padding: 0; overflow: hidden; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 10px 0; }
.sidebar.collapsed .nav-item .nav-text { display: none; }
.sidebar.collapsed .nav-badge { display: none; }
.sidebar.collapsed .sidebar-nav { padding: 12px 6px; }

/* Nav text span wrapper */
.nav-text { white-space: nowrap; overflow: hidden; }
.sidebar-nav { flex: 1; padding: 12px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }
.nav-section-label {
  font-size: 10px; font-weight: 800; color: var(--gray-4);
  text-transform: uppercase; letter-spacing: 1px;
  padding: 10px 10px 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--gray-3);
  transition: all 0.2s; text-decoration: none; border: none;
  background: transparent; width: 100%; text-align: left;
}
.nav-item:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.nav-item.active { background: rgba(41,182,232,0.15); color: var(--sky); }
.nav-item .nav-icon { font-size: 18px; width: 26px; text-align: center; flex-shrink: 0; }
.nav-badge {
  margin-left: auto; background: var(--red); color: white;
  border-radius: 20px; padding: 1px 7px; font-size: 10px; font-weight: 800;
}
.nav-badge.green { background: var(--green); }

/* CONTENT AREA */
.content { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.page { display: none; flex: 1; overflow: hidden; }
.page.active { display: flex; }

/* ============ POS PAGE ============ */
#pagePOS { flex-direction: row; }

.product-panel {
  flex: 1; display: flex; flex-direction: column;
  overflow: hidden; padding: 14px 14px 14px 16px; gap: 10px;
}
.category-tabs { display: flex; gap: 7px; flex-shrink: 0; flex-wrap: wrap; padding-bottom: 2px; }
.cat-tab {
  display: flex; align-items: center; gap: 7px; padding: 10px 16px;
  border-radius: 12px; border: 2px solid var(--gray-2); background: var(--white);
  font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 800;
  color: var(--gray-4); cursor: pointer; white-space: nowrap; transition: all 0.2s;
  flex-shrink: 0; min-height: 46px;
}
.cat-tab:hover { border-color: var(--sky); color: var(--sky); }
.cat-tab.active { background: var(--sky); border-color: var(--sky); color: white; box-shadow: 0 3px 14px rgba(41,182,232,0.35); }
.cat-icon { font-size: 18px; }
.cat-count { background: rgba(0,0,0,0.12); border-radius: 20px; padding: 1px 6px; font-size: 10px; }

.search-bar { position: relative; flex-shrink: 0; }
.search-input {
  width: 100%; height: 46px; border: 2px solid var(--gray-2); border-radius: 12px;
  padding: 0 44px 0 44px;
  font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--night); background: var(--white); outline: none; transition: all 0.25s;
}
.search-input:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(41,182,232,0.1); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--gray-3); }
.search-barcode { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--gray-3); cursor: pointer; }

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px; overflow-y: auto; padding: 3px 2px 3px 0; align-content: start;
  /* padding-top: kaydirma kutusu ust sira kartlarin 2px border'ini ve
     hover'daki -1px kaymayi kirpiyordu — ust kenarlik ince gorunuyordu */
}
.product-grid::-webkit-scrollbar { width: 3px; }
.product-grid::-webkit-scrollbar-thumb { background: var(--gray-2); }
.product-card {
  background: var(--white); border: 2px solid var(--gray-2); border-radius: var(--radius);
  padding: 14px 12px 12px; cursor: pointer; transition: all 0.18s;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: relative; user-select: none; -webkit-user-select: none;
}
.product-card:hover { border-color: var(--sky); box-shadow: var(--shadow); transform: translateY(-1px); }
.product-card:active { transform: scale(0.96); }
.product-card.out-of-stock { opacity: 0.45; pointer-events: none; }
/* KE3.2: salt-okuma (lisans süresi dolmuş) modunda ürün kartları da
   pasifleşir — D0.11'de yalnız ÖDEME AL kilitliydi, kasiyer sepeti
   doldurduktan sonra duvara çarpıyordu. Tükenmiş ürün deseniyle aynı
   (opacity + pointer-events); asıl kapı sunucudadır (403 license_readonly). */
.product-card.ro-locked { opacity: 0.42; pointer-events: none; filter: grayscale(0.6); }
.product-emoji { font-size: 32px; line-height: 1; }
.product-name { font-size: 12px; font-weight: 800; color: var(--night); text-align: center; line-height: 1.3; }
.product-price { font-size: 15px; font-weight: 900; color: var(--sky-dark); }
.product-stock { position: absolute; top: 8px; right: 8px; font-size: 9px; font-weight: 800; background: var(--green); color: white; border-radius: 5px; padding: 2px 6px; }
.product-stock.low { background: var(--orange); }
.product-stock.out { background: var(--red); }
.product-stock.service { background: var(--sky); }

/* CART */
.cart-panel {
  width: 360px; flex-shrink: 0; background: var(--white);
  display: flex; flex-direction: column; border-left: 1px solid var(--gray-2);
}
.cart-header { padding: 14px 16px 12px; border-bottom: 1px solid var(--gray-2); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.cart-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; font-weight: 900; color: var(--night); }
.cart-count { background: var(--sky); color: white; border-radius: 20px; padding: 2px 9px; font-size: 11px; font-weight: 800; }
.customer-row { padding: 10px 14px; border-bottom: 1px solid var(--gray-2); display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.customer-btn {
  flex: 1; height: 38px; border: 2px dashed var(--gray-2); border-radius: 9px;
  background: transparent; font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 700;
  color: var(--gray-3); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.2s;
}
.customer-btn:hover { border-color: var(--sky); color: var(--sky); }
.table-btn {
  height: 38px; padding: 0 12px; border: 2px solid var(--gray-2); border-radius: 9px;
  background: transparent; font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 700;
  color: var(--gray-4); cursor: pointer; display: flex; align-items: center; gap: 5px; transition: all 0.2s;
}
.table-btn:hover { border-color: var(--sky); color: var(--sky); }
.table-num { background: var(--night); color: white; border-radius: 5px; padding: 1px 7px; font-size: 11px; }
.cart-items { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; }
.cart-items::-webkit-scrollbar { width: 3px; }
.cart-items::-webkit-scrollbar-thumb { background: var(--gray-2); }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--gray-3); text-align: center; }
.cart-empty .empty-icon { font-size: 48px; opacity: 0.4; }
.cart-empty p { font-size: 13px; font-weight: 700; }
.cart-item {
  display: flex; align-items: center; gap: 9px;
  background: var(--gray-1); border-radius: 11px; padding: 9px 10px;
  border: 1px solid var(--gray-2); transition: all 0.2s;
}
.ci-emoji { font-size: 22px; flex-shrink: 0; }
.ci-img { width: 28px; height: 28px; object-fit: cover; border-radius: 7px; display: block; }
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-size: 12px; font-weight: 800; color: var(--night); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-price { font-size: 11px; font-weight: 700; color: var(--gray-4); margin-top: 1px; }
.ci-qty { display: flex; align-items: center; gap: 5px; }
.qty-btn {
  width: 30px; height: 30px; border-radius: 7px; border: none;
  font-size: 17px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.15s; flex-shrink: 0;
}
.qty-minus { background: var(--gray-2); color: var(--gray-4); }
.qty-minus:hover { background: var(--red); color: white; }
.qty-plus { background: var(--sky); color: white; }
.qty-plus:hover { background: var(--sky-dark); }
.qty-num { font-size: 14px; font-weight: 900; color: var(--night); min-width: 20px; text-align: center; }
.ci-total { font-size: 13px; font-weight: 900; color: var(--night); min-width: 52px; text-align: right; flex-shrink: 0; }
.cart-totals { padding: 12px 16px; border-top: 1px solid var(--gray-2); flex-shrink: 0; }
.total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.total-label { font-size: 12px; font-weight: 700; color: var(--gray-4); }
.total-val { font-size: 13px; font-weight: 700; color: var(--night); }
.total-row.discount .total-val { color: var(--green); }
.total-row.grand { margin-top: 10px; padding-top: 10px; border-top: 2px solid var(--gray-2); }
.total-row.grand .total-label { font-size: 15px; font-weight: 800; color: var(--night); }
.total-row.grand .total-val { font-size: 22px; font-weight: 900; color: var(--sky-dark); }
.cart-actions { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 7px; flex-shrink: 0; }
.action-row { display: flex; gap: 7px; }
.btn-action {
  flex: 1; height: 42px; border-radius: 10px; border: none;
  font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.2s;
}
.btn-action:active { transform: scale(0.96); }
.btn-discount { background: var(--gray-1); color: var(--gray-4); border: 2px solid var(--gray-2); }
.btn-discount:hover { border-color: var(--orange); color: var(--orange); }
.btn-hold { background: var(--gray-1); color: var(--gray-4); border: 2px solid var(--gray-2); }
.btn-hold:hover { border-color: var(--purple); color: var(--purple); }
.btn-clear { background: var(--gray-1); color: var(--gray-4); border: 2px solid var(--gray-2); }
.btn-clear:hover { background: rgba(240,79,95,0.08); border-color: var(--red); color: var(--red); }
.btn-pay {
  width: 100%; height: 58px; background: linear-gradient(135deg, #22c97a 0%, #18a862 100%);
  color: white; border: none; border-radius: 14px;
  font-family: 'Nunito', sans-serif; font-size: 17px; font-weight: 900;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 5px 20px rgba(34,201,122,0.38); transition: all 0.2s;
}
.btn-pay:hover { transform: translateY(-2px); box-shadow: 0 9px 28px rgba(34,201,122,0.45); }
.btn-pay:active { transform: scale(0.98); }

/* ============ GENERIC PAGE STYLES ============ */
.page-inner { flex: 1; overflow-y: auto; padding: 20px 24px; }
.page-inner::-webkit-scrollbar { width: 4px; }
.page-inner::-webkit-scrollbar-thumb { background: var(--gray-2); border-radius: 2px; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-shrink: 0; }
.page-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 900; color: var(--night); }
.page-subtitle { font-size: 13px; font-weight: 600; color: var(--gray-4); margin-top: 2px; }

.btn-primary {
  height: 40px; padding: 0 18px; background: var(--sky); color: white; border: none;
  border-radius: 10px; font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; gap: 7px; transition: all 0.2s;
  box-shadow: 0 3px 12px rgba(41,182,232,0.3);
}
.btn-primary:hover { background: var(--sky-dark); transform: translateY(-1px); }
.btn-secondary {
  height: 40px; padding: 0 16px; background: var(--white); color: var(--gray-4);
  border: 2px solid var(--gray-2); border-radius: 10px;
  font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; gap: 7px; transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--sky); color: var(--sky); }

/* STAT CARDS */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card {
  background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 6px;
}
.stat-icon { font-size: 26px; }
.stat-label { font-size: 11px; font-weight: 700; color: var(--gray-4); text-transform: uppercase; letter-spacing: 0.6px; }
.stat-value { font-size: 22px; font-weight: 900; color: var(--night); }
.stat-change { font-size: 11px; font-weight: 700; }
.stat-change.up { color: var(--green); }
.stat-change.down { color: var(--red); }

/* TABLE */
.data-table-wrap { background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius); overflow: hidden; }
.table-toolbar { padding: 12px 16px; border-bottom: 1px solid var(--gray-2); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.table-search {
  height: 36px; border: 2px solid var(--gray-2); border-radius: 9px;
  padding: 0 12px 0 34px; font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--night); background: var(--gray-1); outline: none; width: 220px; transition: all 0.2s;
}
.table-search:focus { border-color: var(--sky); background: white; }
.table-search-wrap { position: relative; }
.table-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--gray-3); }
.filter-btn {
  height: 36px; padding: 0 13px; border: 2px solid var(--gray-2); border-radius: 9px;
  background: var(--white); font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 700;
  color: var(--gray-4); cursor: pointer; display: flex; align-items: center; gap: 5px; transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--sky); color: var(--sky); }
.filter-btn.active { background: var(--sky); border-color: var(--sky); color: white; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 800;
  color: var(--gray-4); text-transform: uppercase; letter-spacing: 0.6px;
  background: var(--gray-1); border-bottom: 1px solid var(--gray-2);
}
tbody tr { border-bottom: 1px solid var(--gray-2); transition: background 0.15s; cursor: pointer; }
tbody tr:hover { background: var(--sky-light); }
tbody tr:last-child { border-bottom: none; }
tbody td { padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--night); }
.td-bold { font-weight: 800; }
.badge {
  display: inline-flex; align-items: center;
  border-radius: 20px; padding: 2px 10px; font-size: 11px; font-weight: 800;
}
.badge-green { background: rgba(34,201,122,0.12); color: var(--green); }
.badge-red { background: rgba(240,79,95,0.12); color: var(--red); }
.badge-orange { background: rgba(255,140,66,0.12); color: var(--orange); }
.badge-sky { background: rgba(41,182,232,0.12); color: var(--sky-dark); }
.badge-gray { background: var(--gray-2); color: var(--gray-4); }
.badge-purple { background: rgba(155,107,255,0.12); color: var(--purple); }
.table-pagination { padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--gray-2); }
.page-info { font-size: 12px; font-weight: 700; color: var(--gray-4); }
.page-btns { display: flex; gap: 5px; }
.page-btn {
  height: 32px; min-width: 32px; padding: 0 8px;
  border: 2px solid var(--gray-2); border-radius: 8px; background: white;
  font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 800; color: var(--gray-4);
  cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center;
}
.page-btn:hover { border-color: var(--sky); color: var(--sky); }
.page-btn.active { background: var(--sky); border-color: var(--sky); color: white; }

/* ROW ACTIONS */
.row-actions { display: flex; gap: 5px; }
.row-btn {
  height: 28px; padding: 0 10px; border-radius: 7px; border: none;
  font-family: 'Nunito', sans-serif; font-size: 11px; font-weight: 800;
  cursor: pointer; transition: all 0.15s;
}
.row-btn-view { background: var(--sky-light); color: var(--sky-dark); }
.row-btn-view:hover { background: var(--sky); color: white; }
.row-btn-edit { background: rgba(255,196,74,0.15); color: #b07d00; }
.row-btn-edit:hover { background: var(--yellow); color: var(--night); }
.row-btn-del { background: rgba(240,79,95,0.1); color: var(--red); }
.row-btn-del:hover { background: var(--red); color: white; }

/* REPORT CHARTS */
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.report-card { background: var(--white); border: 1px solid var(--gray-2); border-radius: var(--radius); padding: 16px; }
.report-card-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; font-weight: 800; color: var(--night); margin-bottom: 12px; }
.bar-chart { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-label { font-size: 12px; font-weight: 700; color: var(--gray-4); width: 80px; flex-shrink: 0; }
.bar-track { flex: 1; height: 22px; background: var(--gray-1); border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; display: flex; align-items: center; padding-left: 8px; font-size: 11px; font-weight: 800; color: white; transition: width 0.6s ease; }
.bar-fill.sky { background: linear-gradient(90deg, var(--sky), var(--sky-dark)); }
.bar-fill.green { background: linear-gradient(90deg, var(--green), #18a862); }
.bar-fill.orange { background: linear-gradient(90deg, var(--orange), #e06b20); }
.bar-val { font-size: 12px; font-weight: 800; color: var(--night); min-width: 60px; text-align: right; }

.donut-wrap { display: flex; align-items: center; gap: 16px; }
.donut-legend { display: flex; flex-direction: column; gap: 8px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--gray-4); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ERP PAGE */
.erp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.erp-card {
  background: var(--white); border: 2px solid var(--gray-2); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 12px; transition: all 0.2s;
}
.erp-card:hover { box-shadow: var(--shadow); }
.erp-card.connected { border-color: rgba(34,201,122,0.4); }
.erp-card-header { display: flex; align-items: center; gap: 12px; }
.erp-logo { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.erp-name { font-size: 15px; font-weight: 800; color: var(--night); }
.erp-type { font-size: 11px; font-weight: 600; color: var(--gray-4); margin-top: 1px; }
.erp-status-badge {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 20px; font-size: 11px; font-weight: 800;
}
.erp-status-badge.on { background: rgba(34,201,122,0.12); color: var(--green); }
.erp-status-badge.off { background: var(--gray-2); color: var(--gray-4); }
.erp-status-badge .dot { width: 7px; height: 7px; border-radius: 50%; }
.erp-status-badge.on .dot { background: var(--green); animation: erp-pulse 2s infinite; }
.erp-status-badge.off .dot { background: var(--gray-3); }
.erp-info { display: flex; flex-direction: column; gap: 5px; }
.erp-info-row { display: flex; justify-content: space-between; font-size: 12px; }
.erp-info-key { font-weight: 700; color: var(--gray-4); }
.erp-info-val { font-weight: 800; color: var(--night); }
.erp-actions { display: flex; gap: 7px; }

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(13,27,42,0.72);
  backdrop-filter: blur(4px); z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: 14px;
}
.modal-overlay.open { display: flex; animation: fade-in 0.18s ease; }
@keyframes fade-in { from{opacity:0}to{opacity:1} }
.modal-box {
  background: var(--white); border-radius: 20px; padding: 20px 22px;
  width: 100%; max-width: 450px; max-height: calc(100vh - 28px);
  overflow-y: auto; box-shadow: var(--shadow-deep);
  animation: modal-up 0.22s ease; flex-shrink: 0;
}
@keyframes modal-up { from{transform:translateY(16px);opacity:0}to{transform:translateY(0);opacity:1} }
.modal-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 17px; font-weight: 900; color: var(--night); margin-bottom: 2px; }
.modal-amount { font-size: 32px; font-weight: 900; color: var(--sky-dark); margin-bottom: 14px; }

/* ---- ÖDEME MODALI — iki sütun yerleşim (Oturum P1) --------------------
   Kural: 1366x768 ve 1024x768'de SCROLL YOK. Yükseklik bütçesi (px):
   başlık 42 + sütunlar ~452 + butonlar 46 + boşluk/padding ~60 = ~600.
   Dokunmatik hedefler min 44px (numpad 46, yöntem 50, belge tipi 44). */
.pay-box { max-width: 780px; display: flex; flex-direction: column; gap: 10px; }
.pay-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pay-head-amount { font-size: 28px; font-weight: 900; color: var(--sky-dark); line-height: 1.1; }
.pay-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.pay-col { display: flex; flex-direction: column; min-width: 0; }
.pay-sec-lbl {
  font-size: 11px; font-weight: 800; color: var(--gray-4);
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px;
}
/* Ödeme satırları listesi — parçalı ödemede her parça bir satırdır */
.pay-lines {
  flex: 1; min-height: 96px; max-height: 190px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px;
}
.pay-lines::-webkit-scrollbar { width: 4px; }
.pay-lines::-webkit-scrollbar-thumb { background: var(--gray-2); border-radius: 2px; }
.pay-line {
  display: flex; align-items: center; gap: 8px; min-height: 44px;
  border: 2px solid var(--gray-2); border-radius: 10px; padding: 6px 8px 6px 11px; background: var(--gray-1);
}
.pay-line-ico { font-size: 16px; flex-shrink: 0; }
.pay-line-lbl { flex: 1; min-width: 0; font-size: 12px; font-weight: 800; color: var(--night); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-line-amt { font-size: 14px; font-weight: 900; color: var(--night); }
.pay-line-del {
  width: 32px; height: 32px; flex-shrink: 0; border: none; border-radius: 8px;
  background: transparent; color: var(--gray-4); font-size: 15px; font-weight: 900;
  cursor: pointer; transition: all .18s;
}
.pay-line-del:hover { background: rgba(240,79,95,0.1); color: var(--red); }
.pay-lines-empty {
  flex: 1; display: flex; align-items: center; justify-content: center; text-align: center;
  border: 2px dashed var(--gray-2); border-radius: 10px; padding: 10px 12px;
  font-size: 11px; font-weight: 700; color: var(--gray-4); line-height: 1.5;
}
/* KALAN — canlı; 0 olunca yeşile döner ve "Satışı Tamamla" aktifleşir */
.pay-remain {
  display: flex; align-items: center; justify-content: space-between;
  border: 2px solid rgba(47,180,240,0.28); background: rgba(47,180,240,0.08);
  border-radius: 10px; padding: 9px 13px; min-height: 44px;
}
.pay-remain-lbl { font-size: 11px; font-weight: 800; color: var(--sky-dark); letter-spacing: .5px; }
.pay-remain-amount { font-size: 20px; font-weight: 900; color: var(--sky-dark); }
.pay-remain.done { border-color: rgba(34,201,122,0.28); background: rgba(34,201,122,0.09); }
.pay-remain.done .pay-remain-lbl, .pay-remain.done .pay-remain-amount { color: var(--green); }
.btn-addpay {
  height: 46px; border: 2px solid var(--sky); border-radius: 11px; background: var(--sky-light);
  font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 800; color: var(--sky-dark);
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; transition: all .18s;
}
.btn-addpay:hover { background: var(--sky); color: white; }
.btn-addpay:active { transform: scale(0.97); }
.btn-complete:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; transform: none; }
/* Bekleyen sepetler kısayolu (sepet boşken de erişilebilir olmalı) */
.held-btn {
  height: 38px; min-width: 52px; padding: 0 10px; border: 2px solid var(--gray-2); border-radius: 9px;
  background: transparent; font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 800;
  color: var(--gray-3); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 5px;
  flex-shrink: 0; transition: all .2s;
}
.held-btn:hover { border-color: var(--purple); color: var(--purple); }
.held-btn.has-items { border-color: var(--purple); color: var(--purple); background: rgba(139,107,232,0.08); }
/* Alçak ekran (768px sınıfı) — birkaç piksel kırpılarak scroll kesin önlenir */
@media (max-height: 800px) {
  .pay-box { padding: 16px 18px; gap: 8px; }
  .pay-head-amount { font-size: 24px; }
  .pay-lines { min-height: 78px; max-height: 150px; }
  .numpad-btn { height: 44px; }
  .pay-method { height: 46px; }
}

.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 8px; }
.pay-method {
  height: 50px; border: 2px solid var(--gray-2); border-radius: 11px;
  background: var(--gray-1); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  cursor: pointer; transition: all 0.2s; font-family: 'Nunito', sans-serif;
}
.pay-method:hover { border-color: var(--sky); background: var(--sky-light); }
.pay-method.active { border-color: var(--sky); background: var(--sky); color: white; }
.pm-icon { font-size: 20px; }
.pm-label { font-size: 11px; font-weight: 800; }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.numpad-btn {
  height: 46px; border: 2px solid var(--gray-2); border-radius: 10px;
  background: var(--gray-1); font-family: 'Nunito', sans-serif;
  font-size: 20px; font-weight: 800; color: var(--night);
  cursor: pointer; transition: all 0.15s; display: flex; align-items: center; justify-content: center;
}
.numpad-btn:hover { background: var(--gray-2); }
.numpad-btn:active { transform: scale(0.92); }
.numpad-btn.del { font-size: 17px; color: var(--red); }
.numpad-btn.zero { grid-column: span 2; }
/* KE3.3 — hızlı tutar düğmeleri (numpad üstü, yalnız nakitte görünür) */
.quick-amounts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 8px; }
.qa-btn {
  height: 34px; border: 2px solid var(--gray-2); border-radius: 8px;
  background: var(--gray-1); font-family: 'Nunito', sans-serif;
  font-size: 12px; font-weight: 800; color: var(--night);
  cursor: pointer; transition: all 0.15s; display: flex; align-items: center; justify-content: center;
}
.qa-btn:hover { background: var(--sky-light); border-color: var(--sky); color: var(--sky-dark); }
.qa-btn:active { transform: scale(0.94); }
.received-display {
  background: var(--gray-1); border: 2px solid var(--gray-2); border-radius: 10px;
  padding: 9px 14px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
}
.received-label { font-size: 11px; font-weight: 700; color: var(--gray-4); }
.received-amount { font-size: 20px; font-weight: 900; color: var(--night); }
.change-display {
  background: rgba(34,201,122,0.07); border: 2px solid rgba(34,201,122,0.22);
  border-radius: 10px; padding: 9px 14px;
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
}
.change-label { font-size: 11px; font-weight: 700; color: var(--green); }
.change-amount { font-size: 20px; font-weight: 900; color: var(--green); }
.modal-btns { display: flex; gap: 8px; }
.btn-cancel {
  flex: 1; height: 46px; border: 2px solid var(--gray-2); border-radius: 11px;
  background: transparent; font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 800;
  color: var(--gray-4); cursor: pointer; transition: all 0.2s;
}
.btn-cancel:hover { border-color: var(--red); color: var(--red); }
.btn-complete {
  flex: 2; height: 46px; border: none; border-radius: 11px;
  background: linear-gradient(135deg, var(--green) 0%, #18a862 100%);
  font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 800;
  color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px;
  box-shadow: 0 3px 14px rgba(34,201,122,0.32); transition: all 0.2s;
}
.btn-complete:hover { transform: translateY(-1px); }

/* TOAST */
/* C5: white-space nowrap KALDIRILDI - uzun bilgi/hata metinleri (kullanici
   yonetimi 403/409 mesajlari, cihaz hata metinleri) tek satirda ekrandan
   tasiyordu. Kisa metinler shrink-to-fit ile yine tek satir kalir. */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--night); color: white; padding: 12px 22px; border-radius: 12px;
  font-size: 13px; font-weight: 800; z-index: 2000; box-shadow: var(--shadow-deep);
  transition: transform 0.3s ease;
  white-space: normal; max-width: min(560px, calc(100vw - 48px));
  text-align: center; line-height: 1.45;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--green); }

/* Tooltip on collapsed nav icons */
.sidebar.collapsed .nav-item { position: relative; }
.sidebar.collapsed .nav-item::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%; transform: translateY(-50%);
  background: var(--night);
  color: var(--white);
  font-size: 12px; font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 500;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.sidebar.collapsed .nav-item:hover::after { opacity: 1; }

/* ============ SAYIM MODAL ============ */
#sayimModal .modal-box { border-radius: 18px; }
#sayimTableBody tr:hover { background: var(--sky-light) !important; }
#sayimTableBody input[type=number]::-webkit-inner-spin-button,
#sayimTableBody input[type=number]::-webkit-outer-spin-button { opacity: 1; }

/* ============ ORTAK PAGINATION (pagination.js — Oturum B1) ============ */
.pagi {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 10px; padding: 10px 14px; border-top: 1px solid var(--gray-2); background: var(--white);
}
.pagi-left { display: flex; align-items: center; gap: 8px; }
.pagi-lbl { font-size: 11px; font-weight: 800; color: var(--gray-4); text-transform: uppercase; letter-spacing: .5px; }
.pagi-select {
  height: 32px; border: 2px solid var(--gray-2); border-radius: 8px; padding: 0 6px;
  font-family: Nunito, sans-serif; font-size: 12px; font-weight: 800; color: var(--night);
  background: var(--gray-1); outline: none; cursor: pointer;
}
.pagi-select:focus { border-color: var(--sky); background: white; }
.pagi-info { font-size: 12px; font-weight: 700; color: var(--gray-4); }
.pagi-right { display: flex; align-items: center; gap: 4px; }
.pagi-btn {
  min-width: 32px; height: 32px; padding: 0 8px; border: 2px solid var(--gray-2);
  border-radius: 8px; background: var(--white); font-family: Nunito, sans-serif;
  font-size: 12px; font-weight: 800; color: var(--gray-4); cursor: pointer; transition: all .15s;
}
.pagi-btn:hover:not(:disabled) { border-color: var(--sky); color: var(--sky); }
.pagi-btn.active { background: var(--sky); border-color: var(--sky); color: white; }
.pagi-btn:disabled { opacity: .4; cursor: default; }
.pagi-dots { font-size: 12px; font-weight: 800; color: var(--gray-3); padding: 0 3px; }

/* ============ SATIŞLAR — TARİH FİLTRESİ (Oturum B1) ============ */
.dt-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dt-tabs { display: flex; border: 2px solid var(--gray-2); border-radius: 9px; overflow: hidden; }
.dt-tab {
  height: 34px; padding: 0 12px; border: none; background: var(--gray-1);
  font-family: Nunito, sans-serif; font-size: 12px; font-weight: 800; color: var(--gray-4);
  cursor: pointer; transition: all .15s;
}
.dt-tab.active { background: var(--sky); color: white; }
.dt-inp {
  height: 34px; border: 2px solid var(--gray-2); border-radius: 9px; padding: 0 8px;
  font-family: Nunito, sans-serif; font-size: 12px; font-weight: 700; color: var(--night);
  background: var(--gray-1); outline: none;
}
.dt-inp:focus { border-color: var(--sky); background: white; }
.dt-sep { font-size: 12px; font-weight: 800; color: var(--gray-4); }

/* ============ SATIŞ DETAY MODALI (Oturum B1) ============ */
.sale-detail-box { max-width: 640px; width: 94vw; max-height: 88vh; overflow-y: auto; text-align: left; }
.sd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.sd-title { font-size: 17px; font-weight: 900; color: var(--night); }
.sd-sub { font-size: 12px; font-weight: 700; color: var(--gray-4); margin-top: 2px; }
.sd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 14px; }
.sd-cell { background: var(--gray-1); border: 1px solid var(--gray-2); border-radius: 9px; padding: 8px 10px; }
.sd-k { font-size: 9px; font-weight: 800; color: var(--gray-4); text-transform: uppercase; letter-spacing: .5px; }
.sd-v { font-size: 13px; font-weight: 800; color: var(--night); margin-top: 2px; word-break: break-word; }
.sd-section { font-size: 11px; font-weight: 900; color: var(--gray-4); text-transform: uppercase; letter-spacing: .8px; margin: 14px 0 6px; }
.sd-table { width: 100%; border-collapse: collapse; }
.sd-table th {
  text-align: left; font-size: 10px; font-weight: 800; color: var(--gray-4); text-transform: uppercase;
  letter-spacing: .5px; padding: 6px 8px; border-bottom: 2px solid var(--gray-2); background: var(--gray-1);
}
.sd-table td { font-size: 12px; font-weight: 700; color: var(--night); padding: 7px 8px; border-bottom: 1px solid var(--gray-2); }
.sd-table .num { text-align: right; white-space: nowrap; }
.sd-totals { display: flex; justify-content: flex-end; gap: 18px; padding: 10px 8px 0; font-size: 13px; font-weight: 800; }
.sd-eft {
  background: var(--sky-light); border: 1px solid rgba(41,182,232,0.35); border-radius: 9px;
  padding: 9px 11px; font-size: 12px; font-weight: 700; color: var(--night);
  display: flex; flex-wrap: wrap; gap: 14px;
}

/* ============ OTURUM L1: Stok partileri (ürün kartı) ============ */
/* Maliyet artık SALT GÖSTERİM: "Son Alış" (products.cost, her stok
   girişinde güncellenir) + "Ort. Maliyet" (kalan stoğun FIFO ağırlıklı
   ortalaması). Yükseklik, yerini aldığı .sett-inp ile aynı (38px) —
   ürün formunun ızgara hizası bozulmaz. */
.cost-ro {
  display: flex; gap: 8px; height: 38px; border: 2px solid var(--gray-2);
  border-radius: 9px; background: var(--gray-1); padding: 0 8px; align-items: center;
}
.cost-ro-cell { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.cost-ro-cell + .cost-ro-cell { border-left: 1px solid var(--gray-2); padding-left: 8px; }
.cost-ro-lbl { font-size: 9px; font-weight: 800; color: var(--gray-4); text-transform: uppercase; letter-spacing: .4px; }
.cost-ro-val {
  font-size: 13px; font-weight: 900; color: var(--night);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Ürün modalının alt bloğu: düzenlemede Partiler + Barkodlar YAN YANA
   (P1 sığma dersi — alt alta dizilince 768px yükseklikte modal 94px
   taşıyordu). Yeni ürün formunda Partiler bölümü olmadığı için tek
   çocuk kalır ve auto-fit sayesinde barkodlar tam genişliğe yayılır. */
.np-two-col {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px; margin-bottom: 14px; align-items: start;
}
.np-col-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; min-height: 30px; }
/* Partiler listesi KENDİ İÇİNDE kayar: parti sayısı arttıkça modal büyümez */
.lot-box {
  max-height: 168px; overflow-y: auto; border: 1px solid var(--gray-2);
  border-radius: 10px; background: var(--white);
}
@media (max-height: 800px) { .lot-box { max-height: 148px; } }
.lot-empty { padding: 14px; text-align: center; font-size: 12px; font-weight: 700; color: var(--gray-4); }
.lot-table { width: 100%; border-collapse: collapse; }
.lot-table th {
  position: sticky; top: 0; background: var(--gray-1); z-index: 1;
  padding: 7px 8px; font-size: 10px; font-weight: 800; color: var(--gray-4);
  text-align: left; border-bottom: 1px solid var(--gray-2); white-space: nowrap;
}
.lot-table td {
  padding: 7px 8px; font-size: 12px; font-weight: 700; color: var(--night);
  border-bottom: 1px solid var(--gray-2); white-space: nowrap;
}
.lot-table tr:last-child td { border-bottom: none; }
.lot-table tr.lot-done td { opacity: .5; }

/* ============ OTURUM C2: Ürün görseli + emoji seçici ============ */
/* POS grid: görsel emoji ile aynı yuvada durur (kart düzeni bozulmaz) */
.product-img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; display: block; }
/* Stok listesi küçük görsel */
.stock-thumb {
  width: 26px; height: 26px; object-fit: cover; border-radius: 6px;
  vertical-align: middle; margin-right: 4px; border: 1px solid var(--gray-2);
}
/* Ürün formu görsel önizleme */
.np-img-preview {
  width: 64px; height: 64px; border-radius: 12px; border: 2px solid var(--gray-2);
  background: var(--gray-1); display: flex; align-items: center; justify-content: center;
  font-size: 30px; overflow: hidden; flex-shrink: 0;
}
.np-img-preview img { width: 100%; height: 100%; object-fit: cover; }
/* Simge seç butonu (ürün formu + kategori modalı) */
.icon-pick-btn { display: flex; align-items: center; gap: 10px; cursor: pointer; text-align: left; }
.icon-pick-btn > span:first-child { font-size: 22px; line-height: 1; }
.icon-pick-hint { font-size: 12px; font-weight: 800; color: var(--sky-dark); }
/* Emoji seçici modal */
.ep-box { max-width: 560px; width: 100%; }
.ep-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ep-grid { max-height: 320px; overflow-y: auto; border: 1px solid var(--gray-2); border-radius: 12px; padding: 10px; }
.ep-cat-title {
  font-size: 11px; font-weight: 900; color: var(--gray-4); text-transform: uppercase;
  letter-spacing: .8px; margin: 10px 0 6px;
}
.ep-cat-title:first-child { margin-top: 0; }
.ep-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; }
.ep-btn {
  height: 42px; font-size: 22px; line-height: 1; background: var(--gray-1);
  border: 2px solid var(--gray-2); border-radius: 9px; cursor: pointer;
}
.ep-btn:hover { border-color: var(--sky); background: rgba(41,182,232,0.07); }
.ep-btn.sel { border-color: var(--sky); background: rgba(41,182,232,0.14); }
