/* Fırıncı paneli — referans tasarım (Inter, renkler, kartlar, tab bar) */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap");

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.bakery-panel {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

body.bakery-panel .app-shell--bakery {
  background: #ffffff;
  box-shadow: none;
}

body.bakery-panel .app-shell--grey {
  background: #ffffff;
}

body.bakery-panel .app-shell--with-tab {
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0));
}

/* ——— Ortak başlık + ayırıcı ——— */
.bp-header {
  text-align: center;
  padding: 18px 20px 0;
}

.bp-header__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1d2d50;
  letter-spacing: -0.01em;
}

.bp-header__rule {
  height: 1px;
  background: #e0dcd6;
  margin: 14px 0 0;
  border: none;
}

/* ——— Sayfa içi bölüm ——— */
.bp-main {
  padding: 18px 20px 24px;
  max-width: 430px;
  margin: 0 auto;
}

.bp-section-title {
  margin: 0 0 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1d2d50;
}

/* ——— Yönetim paneli: istatistik kartları ——— */
.bp-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.bp-stat {
  flex: 1;
  min-width: 0;
  border-radius: 16px;
  padding: 12px 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.bp-stat--ochre {
  background: #d19a66;
  color: #ffffff;
}

.bp-stat--ochre .bp-stat__label,
.bp-stat--ochre .bp-stat__value {
  color: #ffffff;
}

.bp-stat--beige {
  background: #ebe3d5;
  color: #1d2d50;
}

.bp-stat__label {
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 8px;
  color: inherit;
}

.bp-stat__value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.bp-stat__icon {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-stat__icon svg {
  width: 26px;
  height: 26px;
}

/* ——— Birincil / ikincil butonlar (turuncu-kahve) ——— */
.bp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 16px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease;
  box-sizing: border-box;
}

.bp-btn:hover {
  filter: brightness(1.03);
}

.bp-btn:active {
  transform: scale(0.99);
}

.bp-btn--primary {
  background: #a64b2a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(166, 75, 42, 0.35);
}

.bp-btn--primary .bp-btn__text {
  display: block;
}

.bp-btn--tan {
  background: #c69c6d;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(198, 156, 109, 0.35);
}

/* Giriş: tıklanabilir kalsın; hazır değilken soluk görünüm (disabled HTML kullanma) */
.bp-login-btn--inactive {
  opacity: 0.55;
  filter: grayscale(0.15);
  cursor: pointer;
}

.bp-login-btn--inactive:not(:hover) {
  box-shadow: 0 2px 8px rgba(198, 156, 109, 0.25);
}

.bp-btn--led {
  background: linear-gradient(165deg, #8b4d38 0%, #6b3a2a 48%, #5c2d22 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(92, 45, 34, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bp-btn--led:hover {
  filter: brightness(1.05);
}

.bp-btn--led:disabled {
  opacity: 0.92;
  cursor: default;
  filter: saturate(0.95);
}

/* ——— LED kartı — fırın girişi ——— */
.bp-led-panel {
  margin-bottom: 4px;
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: linear-gradient(165deg, #faf8f5 0%, #f4eee6 55%, #efe8dc 100%);
  border: 1px solid #e4d8ca;
  box-shadow: 0 4px 28px rgba(29, 45, 80, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.bp-led-panel__head {
  text-align: center;
  margin-bottom: 14px;
}

.bp-led-panel__badge {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 12px;
  background: linear-gradient(145deg, #c69c6d 0%, #a64b2a 100%);
  box-shadow: 0 6px 16px rgba(166, 75, 42, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  position: relative;
}

.bp-led-panel__badge::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 55%);
  pointer-events: none;
}

.bp-led-panel__title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1d2d50;
  letter-spacing: -0.02em;
}

.bp-led-panel__desc {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.5;
  color: #6b5344;
  font-weight: 500;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.bp-led-panel__device {
  border-radius: 16px;
  padding: 4px;
  background: linear-gradient(150deg, #4a3f52 0%, #1f1a26 45%, #141018 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 32px rgba(20, 16, 24, 0.45);
  margin-bottom: 14px;
}

.bp-led-connect__status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(185deg, #2a2432 0%, #1a1520 55%, #121018 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 48px rgba(0, 0, 0, 0.35);
}

.bp-led-connect__text {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.bp-led-connect__status--waiting .bp-led-connect__text {
  color: #c8c0b6;
}

.bp-led-connect__status--waiting .bp-led-connect__pulse {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f0a84a;
  box-shadow: 0 0 0 2px rgba(240, 168, 74, 0.35), 0 0 18px rgba(240, 168, 74, 0.55);
  animation: bp-led-pulse 1.35s ease-in-out infinite;
}

.bp-led-connect__status--ok .bp-led-connect__pulse {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3dd68c;
  box-shadow: 0 0 0 2px rgba(61, 214, 140, 0.35), 0 0 14px rgba(61, 214, 140, 0.45);
  animation: none;
}

.bp-led-connect__status--ok .bp-led-connect__text {
  color: #c8f5dc;
}

@keyframes bp-led-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.88);
  }
}

/* ——— LED önizleme — yönetim paneli ——— */
.bp-led-preview {
  margin-bottom: 18px;
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: linear-gradient(165deg, #faf8f5 0%, #f4eee6 55%, #efe8dc 100%);
  border: 1px solid #e4d8ca;
  box-shadow: 0 4px 28px rgba(29, 45, 80, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  color: #1d2d50;
}

.bp-led-preview__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.bp-led-preview__badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-top: 2px;
  border-radius: 12px;
  background: linear-gradient(145deg, #c69c6d 0%, #a64b2a 100%);
  box-shadow: 0 6px 16px rgba(166, 75, 42, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  position: relative;
}

.bp-led-preview__badge::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.bp-led-preview__head-text {
  min-width: 0;
}

.bp-led-preview__title {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1d2d50;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.bp-led-preview__hint {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.5;
  color: #6b5344;
  font-weight: 500;
}

.bp-led-preview__device {
  border-radius: 16px;
  padding: 4px;
  background: linear-gradient(150deg, #4a3f52 0%, #1f1a26 45%, #141018 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 32px rgba(20, 16, 24, 0.4);
}

.bp-led-preview__box {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  padding: 18px 14px 20px;
  border-radius: 12px;
  background: linear-gradient(185deg, #252030 0%, #1a1520 50%, #121018 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.bp-led-preview__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #8b8278;
}

.bp-led-preview__digits {
  font-size: 2.85rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #ffb84d;
  text-shadow: 0 0 28px rgba(255, 184, 77, 0.45), 0 2px 0 rgba(0, 0, 0, 0.35);
  line-height: 1;
  letter-spacing: -0.03em;
}

.bp-led-preview__unit {
  font-size: 0.88rem;
  font-weight: 600;
  color: #b8aea3;
}

/* ——— LED ekran sayfası (tam sayfa önizleme; sıcak krem / terrakota, siyah yok) ——— */
.bp-led-screen {
  padding: 4px 0 8px;
}

.bp-led-screen__intro {
  margin: 0 0 20px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #6b5344;
  text-align: center;
}

.bp-led-screen__frame {
  border-radius: 22px;
  padding: 22px 18px;
  background: linear-gradient(165deg, #faf8f5 0%, #f2ebe4 50%, #ebe3d5 100%);
  border: 1px solid #e4d8ca;
  box-shadow: 0 8px 32px rgba(166, 75, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.bp-led-screen__display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 20px 36px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #faf6f0 55%, #f5efe8 100%);
  border: 2px solid #e8d9c8;
  box-shadow:
    inset 0 2px 14px rgba(166, 75, 42, 0.07),
    0 4px 20px rgba(90, 82, 74, 0.08);
}

.bp-led-screen__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b6f5c;
}

.bp-led-screen__value {
  font-size: 3.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #a64b2a;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 28px rgba(198, 156, 109, 0.35);
}

.bp-led-screen__unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b5344;
}

.bp-led-screen__foot {
  margin: 18px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #7a7268;
  text-align: center;
}

.bp-led-ble-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bp-led-ble-actions .bp-btn {
  width: 100%;
  max-width: 320px;
}

.bp-led-ble-actions__status {
  margin: 4px 0 0;
  max-width: 360px;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.45;
}

.bp-led-ble-actions--push {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #efe3d5;
}

.bp-led-ble-actions--push code {
  font-size: 0.85em;
}

.bp-led-tech-details {
  margin-top: 12px;
  max-width: 380px;
  font-size: 0.78rem;
  color: #6b5344;
}

.bp-led-tech-details summary {
  cursor: pointer;
  font-weight: 600;
  color: #a64b2a;
  list-style-position: outside;
}

.bp-led-tech-details__body {
  margin: 10px 0 0;
  line-height: 1.45;
}

/* Giriş formu — fırın */
body.bakery-panel .form-group label {
  color: #1d2d50;
  font-weight: 600;
}

body.bakery-panel .input-wrap input {
  border-color: #ddd8d0;
  border-radius: 12px;
}

body.bakery-panel .hint {
  color: #6b5344;
}

body.bakery-panel .warning-banner {
  color: #a64b2a;
}

/* ——— Elden bağış kartı ——— */
.bp-donation-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  margin-top: 18px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

.bp-donation-card__title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1d2d50;
  text-align: left;
}

.bp-field {
  margin-bottom: 12px;
}

.bp-input {
  width: 100%;
  padding: 14px 14px;
  border: 1px solid #ddd8d0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #1a1a1a;
  background: #fff;
  box-sizing: border-box;
}

.bp-input::placeholder {
  color: #9a948c;
}

.bp-input:focus {
  outline: none;
  border-color: #c69c6d;
  box-shadow: 0 0 0 3px rgba(198, 156, 109, 0.2);
}

.bp-btn-mint {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  background: #b6f0d6;
  color: #145a45;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.bp-btn-mint:hover {
  filter: brightness(0.98);
}

/* ——— Geçmiş: filtre satırı ——— */
.bp-history-range-label {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b5344;
  line-height: 1.35;
}

.bp-calendar-wrap {
  flex: 0 0 48px;
  position: relative;
}

.bp-filter-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 16px;
}

.bp-calendar-btn {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #efe3d5;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.bp-calendar-btn svg {
  width: 24px;
  height: 24px;
}

.bp-segmented {
  flex: 1;
  display: flex;
  background: #efe3d5;
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.bp-segmented button {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 10px 8px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: #6b5344;
  transition: background 0.2s, color 0.2s;
}

.bp-segmented button.is-active {
  background: #a64b2a;
  color: #ffffff;
}

/* ——— İşlem listesi ——— */
.bp-tx-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.bp-tx-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.bp-tx-card__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-tx-card__icon--donate svg {
  overflow: visible;
}

.bp-tx-card__body {
  flex: 1;
  min-width: 0;
}

.bp-tx-card__time {
  font-size: 0.8rem;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.bp-tx-card__tag {
  font-size: 0.85rem;
  font-weight: 700;
}

.bp-tx-card__tag--withdraw {
  color: #8b4513;
}

.bp-tx-card__tag--donate {
  color: #00b359;
}

.bp-tx-card__qty {
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a1a;
  align-self: center;
}

/* Özet kartları */
.bp-summary-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.bp-summary-card {
  flex: 1;
  background: #efe3d5;
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1a375f;
  line-height: 1.35;
}

.bp-summary-card strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 6px;
  color: #1a375f;
}

.bp-summary-card__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 1.25rem;
  font-weight: 700;
}

.bp-summary-row--3 {
  flex-wrap: wrap;
}

.bp-summary-row--3 .bp-summary-card:not(.bp-summary-card--wide) {
  flex: 1 1 calc(50% - 5px);
  min-width: 120px;
}

.bp-summary-card--wide {
  flex: 1 1 100%;
  text-align: left;
}

.bp-summary-stock-line {
  margin: 8px 0 0;
  font-size: 0.7rem;
  font-weight: 500;
  color: #6b5344;
  line-height: 1.45;
}

/* PDF butonu */
.bp-btn-pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  background: #a64b2a;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(166, 75, 42, 0.35);
}

.bp-btn-pdf svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* PDF dışa aktarma — boyut/konum çoğunlukla JS inline (html2canvas uyumu) */
.bp-pdf-export {
  box-sizing: border-box;
  background: #ffffff;
  color: #111111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.45;
}

.bp-pdf-export__brand {
  margin: 0 0 6px;
  font-size: 9pt;
  font-weight: 600;
  color: #a64b2a;
  letter-spacing: 0.02em;
}

.bp-pdf-export__bakery {
  margin: 0 0 6px;
  font-size: 17pt;
  font-weight: 700;
  color: #1d2d50;
  line-height: 1.25;
}

.bp-pdf-export__subtitle {
  margin: 0 0 12px;
  font-size: 12pt;
  font-weight: 600;
  color: #1a375f;
}

.bp-pdf-export__h {
  margin: 14px 0 8px;
  font-size: 11pt;
  font-weight: 700;
  color: #1d2d50;
  border-bottom: 1px solid #e0dcd6;
  padding-bottom: 4px;
}

.bp-pdf-export ul {
  margin: 0 0 8px;
  padding-left: 18px;
}

.bp-pdf-export__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 8.5pt;
  margin: 0 0 8px;
}

.bp-pdf-export__table th,
.bp-pdf-export__table td {
  border: 1px solid #e0dcd6;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

.bp-pdf-export__table th {
  background: #f5efe6;
  font-weight: 600;
  color: #1d2d50;
}

.bp-pdf-export__footer {
  margin: 16px 0 0;
  font-size: 8pt;
  color: #6b5344;
}

/* ——— Sonuç ekranları (Onay / Verildi / Hata) ——— */
.bp-result {
  padding: 0 20px 20px;
  max-width: 430px;
  margin: 0 auto;
}

.bp-result__header {
  text-align: center;
  padding-top: 8px;
}

.bp-result__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2b4b;
}

.bp-result__rule {
  height: 1px;
  background: #e0dcd6;
  margin: 14px 0 20px;
  border: none;
}

.bp-status-circle {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-status-circle--ok {
  background: #b2f2bb;
}

.bp-status-circle--ok svg {
  width: 44px;
  height: 44px;
  color: #2f9e44;
}

.bp-status-circle--err {
  background: #ffc5c5;
}

.bp-status-circle--err svg {
  width: 40px;
  height: 40px;
  color: #8b1a1a;
}

.bp-user-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.bp-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8e0f5 0%, #d4c4f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.bp-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bp-user-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
}

.bp-info-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.bp-info-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #1a1a1a;
}

.bp-info-card--block {
  display: block;
  text-align: left;
}

.bp-info-card__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-info-card strong {
  font-weight: 700;
}

/* Ekmek verildi */
.bp-given-hero {
  text-align: center;
  margin-bottom: 18px;
}

.bp-given-hero__line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.bp-given-illustration {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 20px;
  padding: 8px 16px 16px;
}

.bp-given-illustration svg,
.bp-given-illustration img {
  width: 100%;
  height: auto;
}

.bp-footer-msg {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a2b4b;
  margin: 0 0 20px;
}

/* Hak yok — ikinci kart */
.bp-info-card--center {
  justify-content: center;
  text-align: center;
}

/* ——— Alt tab bar (fırıncı) ——— */
.bp-tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  border-top: 1px solid #e8e4df;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0));
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  z-index: 100;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.04);
}

.bp-tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #a0b0c5;
  text-decoration: none;
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.bp-tabbar__item--active {
  color: #c69c6d;
}

.bp-tabbar__item--active .bp-tabbar__svg {
  color: #c69c6d;
}

.bp-tabbar__svg {
  width: 26px;
  height: 26px;
  color: #a0b0c5;
}

.bp-tabbar--triple .bp-tabbar__item {
  padding: 6px 4px;
  font-size: 0.62rem;
}

.bp-tabbar--triple .bp-tabbar__svg {
  width: 24px;
  height: 24px;
}

.bp-back-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: #8a8580;
  text-decoration: none;
}

.bp-back-link:hover {
  text-decoration: underline;
}

/* Demo linkleri (geliştirme) */
.bp-demo-links {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #e0dcd6;
  text-align: center;
  font-size: 0.72rem;
  color: #9a948c;
}

.bp-demo-links a {
  color: #a0b0c5;
  margin: 0 6px;
}

/* PNG ikonlar (assets/image) */
.bp-icon-img {
  display: block;
  object-fit: contain;
}

.bp-stat__icon .bp-icon-img {
  width: 26px;
  height: 26px;
}

.bp-tx-card__icon .bp-icon-img {
  width: 36px;
  height: 36px;
}

.bp-summary-card__row .bp-icon-img {
  width: 22px;
  height: 22px;
}

.bp-info-card__icon .bp-icon-img {
  width: 22px;
  height: 22px;
}

.bp-given-hero__line .bp-icon-img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.bp-given-illustration__img {
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.bp-status-circle .bp-icon-img {
  width: 48px;
  height: 48px;
}

/* Demo ekranlar (geliştirme) */
.bp-demo-panel {
  margin-top: 24px;
  padding: 16px;
  border-radius: 14px;
  background: #f8f6f3;
  border: 1px dashed #d4ccc0;
}

.bp-demo-panel__title {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b5344;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bp-demo-panel__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bp-demo-panel__links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: #a64b2a;
  text-decoration: none;
  padding: 12px 14px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #ebe3d5;
  transition: background 0.15s ease;
}

.bp-demo-panel__links a:hover {
  background: #efe3d5;
}

/* Modal — kullanıcı seçimi */
.bp-modal[hidden] {
  display: none !important;
}

.bp-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0));
}

.bp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.bp-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 20px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}

.bp-modal__dialog h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #1d2d50;
}

.bp-modal__hint {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: #6b5344;
  line-height: 1.4;
}

.bp-modal__dialog .bp-field {
  margin-bottom: 12px;
}

.bp-modal__dialog label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #1d2d50;
}

.bp-modal__dialog .bp-input {
  width: 100%;
}

/* NFC / yükleme ekranı */
body.bakery-panel .nfc-listening {
  color: #a64b2a;
}

body.bakery-panel .spinner--bakery {
  border-color: #efe3d5;
  border-top-color: #a64b2a;
}

body.bakery-panel .loading-text--bakery {
  color: #6b5344;
  font-family: "Inter", system-ui, sans-serif;
}

body.bakery-panel .bp-tabbar a {
  text-decoration: none;
}

body.bakery-panel .bp-tabbar a:hover {
  text-decoration: none;
}

body.bakery-panel .bp-btn {
  text-decoration: none;
}

body.bakery-panel .bp-btn:hover {
  text-decoration: none;
}

/* NFC doğrulama sonucu */
.nfc-env-note {
  margin: 0;
  padding: 10px 16px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #6b5344;
  background: #faf6f0;
  border-bottom: 1px solid #efe3d5;
}

.nfc-scan-primary {
  margin-top: 20px;
  width: 100%;
  max-width: 280px;
}

.nfc-verify__banner {
  margin: 0;
  padding: 12px 16px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.nfc-verify__banner--error {
  background: var(--color-error-bg);
  color: #7f2319;
  border-bottom: 1px solid #f5c6c2;
}

.nfc-verify__banner--warn {
  background: #fff8e6;
  color: #6b5344;
  border-bottom: 1px solid #f0d9a8;
  font-size: 0.82rem;
  line-height: 1.45;
}

.nfc-verify-result {
  padding-top: 8px;
  padding-bottom: 8px;
}

.nfc-verify-result__title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #1d2d50;
}

.nfc-verify-cardbox {
  background: #faf6f0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid #efe3d5;
}

.nfc-verify-cardbox__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b5344;
  margin-bottom: 6px;
}

.nfc-verify-cardbox__id {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  word-break: break-all;
  font-family: ui-monospace, monospace;
}

.nfc-verify__steps {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.nfc-verify__step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: #333;
}

.nfc-verify__step:last-child {
  border-bottom: none;
}

.nfc-verify__step-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.nfc-verify__step--ok .nfc-verify__step-icon {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.nfc-verify__step--fail .nfc-verify__step-icon {
  background: var(--color-error-bg);
  color: var(--color-error);
}

.nfc-verify__final {
  margin: 0;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.nfc-verify__final--pending {
  background: #f0ebe4;
  color: #5c4a3a;
  font-weight: 500;
}

.nfc-verify__final--success {
  background: var(--color-success-bg);
  color: #1e5c3d;
}

.nfc-verify__final--error {
  background: var(--color-error-bg);
  color: #7f2319;
}

.nfc-demo-block {
  padding-top: 0;
}

.nfc-demo-block__title {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1d2d50;
}

.nfc-demo-block__hint {
  margin: 0 0 12px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #6b5344;
}

.nfc-demo-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.nfc-demo-buttons .bp-btn {
  flex: 1 1 calc(50% - 8px);
  min-width: 140px;
  font-size: 0.8rem;
  padding: 10px 12px;
}

.nfc-test-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.nfc-test-row__label {
  flex: 1 0 100%;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b5344;
}

.nfc-test-row__input {
  flex: 1 1 160px;
  min-width: 0;
}

.bp-btn--compact {
  flex-shrink: 0;
  padding-left: 16px;
  padding-right: 16px;
}

/* ——— Giriş seçimi (fırın / kullanıcı) ——— */
.choose-login-main {
  max-width: 440px;
  margin: 0 auto;
}

.choose-login-card {
  padding: 20px 18px;
  border-radius: 18px;
  background: linear-gradient(165deg, #faf8f5 0%, #f4eee6 55%, #efe8dc 100%);
  border: 1px solid #e4d8ca;
  box-shadow: 0 4px 22px rgba(29, 45, 80, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.choose-login-card__title {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 700;
  color: #1d2d50;
}

.choose-login-card__desc {
  margin: 0 0 16px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #6b5344;
}

.choose-login-card .bp-btn + .bp-btn {
  margin-top: 10px;
}


/* "Ekmek Ver" adet seçici (bakery-approved.html) */
.bp-give-qty {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  margin: 14px 0 8px;
}
.bp-give-qty__label {
  font-size: 0.85rem;
  color: #6b5344;
  font-weight: 600;
}
.bp-give-qty__controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e6dccb;
  border-radius: 999px;
  padding: 4px 6px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}
.bp-give-qty__btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: #f6efe2;
  color: #a64b2a;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
.bp-give-qty__btn:hover {
  background: #efe2c8;
}
.bp-give-qty__btn:active {
  transform: scale(0.96);
}
.bp-give-qty__value {
  width: 56px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1d2d50;
  border: none;
  background: transparent;
  outline: none;
  -moz-appearance: textfield;
}
.bp-give-qty__value::-webkit-outer-spin-button,
.bp-give-qty__value::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.bp-give-qty__hint {
  color: #8a7a64;
  font-size: 0.75rem;
}
