/* Bonus Kart modulu — kompakt premium əməliyyat düymələri və səhifə qarışığı */

.bk-page .bk-title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1a2e;
}

.bk-page .bk-subtitle {
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 650;
  color: #243044;
}

.bk-page .bk-subtitle--static {
  margin-top: 10px;
}

.bk-page .bk-result {
  margin-top: 12px;
}

.bk-date-row {
  margin-top: 8px;
}

/* “Hesabatı al” üstündə yüklənmə / hazırdır statusu */
.bk-fetch-status {
  min-height: 1.35em;
  margin: 0 0 2px;
  font-size: 13px;
}

.bk-fetch-status__msg {
  font-weight: 700;
}

.bk-fetch-status__msg--load {
  color: #007bff;
}

.bk-fetch-status__msg--ok {
  color: #198754;
}

/* Hero: birinci sətir tam; qoşa plitələr daha dar 2 sütun — fon gradientləri dəyişilmir */
.bk-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 0 4px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

/* İlk düymə: əlavə cərgədə tək, əsas blok qədər en (məhdudiyyətsiz genişlənə bilər) */
.bk-btn--hero {
  width: 100%;
  max-width: min(560px, 100%);
}

/* Qalan düymələr: məhdud ümumi en, hər sətirdə 2 və daha “ensiz” plitə */
.bk-actions-pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  width: 100%;
  max-width: min(420px, 100%);
}

.bk-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: none;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(17, 24, 39, 0.92);
  cursor: pointer;
  text-align: left;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 4px 12px rgba(15, 23, 42, 0.05);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.bk-btn:hover {
  filter: brightness(1.03);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 2px 4px rgba(15, 23, 42, 0.08),
    0 6px 16px rgba(15, 23, 42, 0.07);
}

.bk-btn:active {
  transform: scale(0.985);
}

.bk-btn__ico {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

/* FA Solid: 500 çəki ikonu sıradan çıxarırdı — 900 olmalıdır */
.bk-btn__ico i {
  font-size: 13px;
  line-height: 1;
  opacity: 0.88;
  font-weight: 900;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
}

.bk-btn__txt {
  flex: 1 1 auto;
  line-height: 1.3;
  min-width: 0;
}

@media (max-width: 420px) {
  .bk-btn {
    padding: 9px 10px;
    min-height: 46px;
    font-size: 11.8px;
    gap: 8px;
  }
  .bk-btn__ico {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }
  .bk-btn__ico i {
    font-size: 12px;
  }
}

.bk-btn--c1 { background: linear-gradient(145deg, #dbeafe 0%, #bfdbfe 45%, #93c5fd 100%); }
.bk-btn--c2 { background: linear-gradient(145deg, #fce7f3 0%, #fbcfe8 50%, #f9a8d4 100%); }
.bk-btn--c3 { background: linear-gradient(145deg, #d1fae5 0%, #a7f3d0 50%, #6ee7b7 100%); }
.bk-btn--c4 { background: linear-gradient(145deg, #fef3c7 0%, #fde68a 55%, #fcd34d 100%); }
.bk-btn--c5 { background: linear-gradient(145deg, #e0e7ff 0%, #c7d2fe 50%, #a5b4fc 100%); }
.bk-btn--c6 { background: linear-gradient(145deg, #ffedd5 0%, #fed7aa 50%, #fdba74 100%); }
.bk-btn--c7 { background: linear-gradient(145deg, #cffafe 0%, #a5f3fc 50%, #67e8f9 100%); }
.bk-btn--c8 { background: linear-gradient(145deg, #ede9fe 0%, #ddd6fe 50%, #c4b5fd 100%); }

/* Apteklər üzrə bonusla yolasalma — cədvəl şəkli düyməsi (tam enə yayılmasın) */
#bonusFarewellAptekPage .bf-aptek-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 10px;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

#bonusFarewellAptekPage .bf-aptek-shot-btn.bk-btn,
#bonusFarewellAptekPage .bf-aptek-diaqram-btn.bk-btn {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  gap: 8px;
  font-size: 11.5px;
}

#bonusFarewellAptekPage .bf-aptek-shot-btn .bk-btn__txt,
#bonusFarewellAptekPage .bf-aptek-diaqram-btn .bk-btn__txt {
  flex: 0 1 auto;
}

#bonusFarewellAptekPage .bf-aptek-shot-btn .bk-btn__ico,
#bonusFarewellAptekPage .bf-aptek-diaqram-btn .bk-btn__ico {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
}

/* Aptek diaqram modal — incə, zərif */
#bonusFarewellAptekPage .bf-aptek-chart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.38);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-sizing: border-box;
}

#bonusFarewellAptekPage .bf-aptek-chart-card {
  width: min(920px, 100%);
  max-height: min(92vh, 880px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #fcfdff 0%, #f5f7fb 42%, #f0f3f9 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 24px 56px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

#bonusFarewellAptekPage .bf-aptek-chart-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
}

#bonusFarewellAptekPage .bf-aptek-chart-hdr-main {
  min-width: 0;
  flex: 1 1 auto;
}

#bonusFarewellAptekPage .bf-aptek-chart-hdr-title {
  margin: 0 0 2px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.2;
}

#bonusFarewellAptekPage .bf-aptek-chart-sub {
  margin: 0;
  padding: 0;
  font-size: 10.5px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.35;
}

#bonusFarewellAptekPage .bf-aptek-chart-close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin: -2px -4px 0 0;
  border: none;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.65);
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

#bonusFarewellAptekPage .bf-aptek-chart-close:hover {
  background: #e8edf5;
  color: #0f172a;
}

#bonusFarewellAptekPage .bf-aptek-chart-panel {
  padding: 6px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#bonusFarewellAptekPage .bf-aptek-chart-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  align-items: stretch;
}

#bonusFarewellAptekPage .bf-aptek-chart-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  padding: 7px 8px 8px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 11px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

#bonusFarewellAptekPage .bf-aptek-chart-sect-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1;
}

#bonusFarewellAptekPage .bf-aptek-chart-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 6px;
}

#bonusFarewellAptekPage .bf-aptek-chart-pills--sym {
  justify-content: center;
  width: 100%;
}

#bonusFarewellAptekPage .bf-aptek-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, 0.75);
  background: rgba(255, 255, 255, 0.88);
  font-size: 10.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

#bonusFarewellAptekPage .bf-aptek-pill:hover {
  border-color: #c4b5fd;
  background: #fff;
  box-shadow: 0 1px 3px rgba(99, 102, 241, 0.08);
}

#bonusFarewellAptekPage .bf-aptek-pill input {
  margin: 0;
  accent-color: #6366f1;
}

#bonusFarewellAptekPage .bf-aptek-chart-row3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 10px;
  padding-top: 6px;
  margin-top: 2px;
  border-top: 1px solid rgba(235, 238, 245, 0.95);
}

#bonusFarewellAptekPage .bf-aptek-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  min-width: 0;
}

#bonusFarewellAptekPage .bf-aptek-field label {
  font-size: 9px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

#bonusFarewellAptekPage .bf-aptek-field select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 5px 7px;
  font-size: 11px;
  font-weight: 600;
  color: #1e293b;
  border: 1px solid rgba(226, 232, 240, 0.98);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  text-align-last: center;
}

#bonusFarewellAptekPage .bf-aptek-field select:focus {
  outline: none;
  border-color: #a5b4fc;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.14);
}

#bonusFarewellAptekPage .bf-aptek-chart-main {
  flex: 1 1 auto;
  min-height: 268px;
  height: 352px;
  margin: 2px 12px 6px;
  padding: 12px 14px 14px;
  background: linear-gradient(165deg, #ffffff 0%, #fafbfd 45%, #f4f6fa 100%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(15, 23, 42, 0.04);
}

#bonusFarewellAptekPage .bf-aptek-chart-mini-grid {
  display: none;
  padding: 2px 12px 8px;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-height: 48vh;
  overflow-y: auto;
}

#bonusFarewellAptekPage .bf-aptek-chart-mini-grid .bf-aptek-mini-canvas {
  height: 220px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  padding: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}


#bonusFarewellAptekPage .bf-aptek-chart-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 12px 11px;
  border-top: 1px solid rgba(235, 238, 245, 0.95);
  background: rgba(252, 252, 255, 0.75);
}

#bonusFarewellAptekPage .bf-aptek-chart-fbtn {
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

#bonusFarewellAptekPage .bf-aptek-chart-fbtn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

#bonusFarewellAptekPage .bf-aptek-chart-fbtn--pri {
  border-color: rgba(99, 102, 241, 0.35);
  background: linear-gradient(180deg, #eef2ff, #e0e7ff);
  color: #312e81;
}

#bonusFarewellAptekPage .bf-aptek-chart-fbtn--pri:hover {
  filter: brightness(1.03);
}

@media (max-width: 560px) {
  #bonusFarewellAptekPage .bf-aptek-chart-grid2 {
    grid-template-columns: 1fr;
  }

  #bonusFarewellAptekPage .bf-aptek-chart-row3 {
    grid-template-columns: 1fr;
  }

  #bonusFarewellAptekPage .bf-aptek-chart-main {
    height: 300px;
    min-height: 240px;
    margin-left: 10px;
    margin-right: 10px;
  }
}

.bk-back {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  margin-bottom: 6px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.bk-back:hover {
  background: linear-gradient(180deg, #fff, #f8fafc);
}
