.bh-hidden {
  display: none !important;
}

.bh-auth-box,
.bh-panel-card {
  background: #ffffff;
  border: 1px solid #d7e4f2;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(11, 39, 70, 0.06);
}

.bh-auth-main .bh-auth-box {
  margin: 0;
  max-width: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.bh-auth-box h2,
.bh-panel-card h2 {
  margin: 0 0 12px;
  color: #0a2e57;
  font-size: 20px;
  line-height: 1.2;
}

.bh-panel-card h2 {
  font-size: 18px;
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e3ecf7;
}

.bh-form {
  display: grid;
  gap: 9px;
}

.bh-form label {
  font-weight: 600;
  font-size: 12px;
  color: #24415f;
}

.bh-form input,
.bh-form select,
.bh-form textarea {
  width: 100%;
  border: 1px solid #c7d6e9;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 13px;
  line-height: 1.5;
  background: #fff;
  color: #11263f;
}

.bh-form input[type='checkbox'] {
  width: 16px;
  height: 16px;
  padding: 0;
  border-radius: 4px;
  background: transparent;
  accent-color: #002852;
}

.bh-form input[type='checkbox']:focus {
  box-shadow: 0 0 0 3px rgba(11, 90, 166, 0.12);
}

.bh-password-field {
  position: relative;
}

.bh-password-field input[type='password'],
.bh-password-field input[type='text'] {
  padding-right: 44px;
}

.bh-pass-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 6px;
  border-radius: 10px;
  cursor: pointer;
  color: #16324f;
}

.bh-pass-toggle:hover {
  background: rgba(10, 46, 87, 0.08);
}

.bh-pass-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 90, 166, 0.18);
}

.bh-pass-toggle svg {
  display: block;
}

.bh-pass-toggle .bh-eye-off {
  display: none;
}

.bh-pass-toggle.is-on .bh-eye {
  display: none;
}

.bh-pass-toggle.is-on .bh-eye-off {
  display: block;
}

.bh-form input:focus,
.bh-form select:focus,
.bh-form textarea:focus {
  outline: none;
  border-color: #0b5aa6;
  box-shadow: 0 0 0 3px rgba(11, 90, 166, 0.12);
}

.bh-form textarea {
  resize: vertical;
}

/* Fieldsets & Form Grid */
.bh-fieldset {
  border: 1px solid #dde7f3;
  border-radius: 12px;
  padding: 14px 14px 10px;
  margin: 0;
  background: #fafcff;
}

.bh-fieldset legend {
  font-weight: 700;
  font-size: 13px;
  color: #0a2e57;
  padding: 0 6px;
  margin-left: -2px;
}

.bh-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

@media (max-width: 640px) {
  .bh-form-grid {
    grid-template-columns: 1fr;
  }
}

.bh-form-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bh-form-group label small {
  font-weight: 400;
  color: #6a7f98;
}

.bh-checkbox {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-top: 6px;
  text-align: left;
}

.bh-checkbox input {
  margin-top: 0;
  flex: 0 0 auto;
}

.bh-checkbox span {
  color: #4d6481;
  font-size: 12px;
  line-height: 1.35;
  flex: 1 1 auto;
  margin: 0;
}

.bh-kvkk-open {
  color: #0b5aa6;
  font-weight: 700;
  text-decoration: underline;
}

.bh-kvkk-note {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #6a7f98;
}

.bh-checkbox input:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.bh-checkbox:has(input:disabled) span {
  opacity: 0.55;
  cursor: not-allowed;
}

.bh-checkbox:has(input:not(:disabled)) span {
  opacity: 1;
  color: #1f334d;
}

.bh-btn {
  border: 0;
  border-radius: 999px;
  background: #002852;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  padding: 12px 17px;
  cursor: pointer;
  margin-top: 6px;
}

.bh-btn:hover {
  background: #00407d;
}

.bh-btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(15, 92, 168, 0.2);
}

.bh-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.bh-btn-ghost {
  background: #eef4fb;
  color: #0b2a50;
}

.bh-btn-ghost:hover {
  background: #dde9f7;
}

.bh-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.bh-modal.is-open {
  display: block;
}

.bh-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 45, 0.55);
}

.bh-modal__dialog {
  position: relative;
  width: min(720px, calc(100vw - 28px));
  margin: 6vh auto 0;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #d7e4f2;
  box-shadow: 0 18px 60px rgba(0, 12, 30, 0.28);
  overflow: hidden;
}

.bh-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid #e4edf8;
}

.bh-modal__title {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  color: #0a2e57;
}

.bh-modal__close {
  border: 0;
  background: transparent;
  color: #0a2e57;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 10px;
}

.bh-modal__close:hover {
  background: rgba(10, 46, 87, 0.08);
}

.bh-modal__body {
  padding: 14px 16px 6px;
}

.bh-modal__hint {
  margin: 0 0 8px;
  font-size: 12px;
  color: #34597f;
  display: flex;
  align-items: center;
  background: #f0f6ff;
  border: 1px solid #d0e1f7;
  border-radius: 8px;
  padding: 8px 10px;
  gap: 4px;
}

/* Progress bar for scroll tracking */
.bh-modal__progress {
  height: 4px;
  background: #e4edf8;
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
}

.bh-modal__progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0b5aa6, #1a73c7);
  border-radius: 4px;
  transition: width 0.15s ease-out;
}

.bh-modal__scroll {
  max-height: 52vh;
  overflow: auto;
  padding: 14px;
  border: 1px solid #dbe7f5;
  border-radius: 12px;
  background: #ffffff;
  overscroll-behavior: contain;
}

.bh-modal__scroll p {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.55;
  color: #16324f;
}

.bh-modal__scroll h2 {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.3;
  color: #0a2e57;
  font-weight: 700;
}

.bh-modal__scroll h3 {
  margin: 16px 0 8px;
  font-size: 13px;
  line-height: 1.3;
  color: #0a2e57;
  font-weight: 700;
}

.bh-modal__scroll ul,
.bh-modal__scroll ol {
  margin: 0 0 10px;
  padding-left: 20px;
  font-size: 12px;
  line-height: 1.55;
  color: #16324f;
}

.bh-modal__scroll li {
  margin-bottom: 4px;
}

.bh-modal__scroll a {
  color: #0b5aa6;
  text-decoration: underline;
}

/* KVKK Tables */
.bh-kvkk-table,
.bh-modal__scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  line-height: 1.4;
  margin: 10px 0 14px;
  border: 1px solid #d0dff0;
  border-radius: 8px;
  overflow: hidden;
}

.bh-kvkk-table thead,
.bh-modal__scroll table thead {
  background: #e8f0fc;
}

.bh-kvkk-table th,
.bh-modal__scroll table th {
  padding: 8px 10px;
  font-weight: 700;
  color: #0a2e57;
  text-align: left;
  border-bottom: 2px solid #c5d6ec;
  border-right: 1px solid #d0dff0;
}

.bh-kvkk-table th:last-child,
.bh-modal__scroll table th:last-child {
  border-right: 0;
}

.bh-kvkk-table td,
.bh-modal__scroll table td {
  padding: 7px 10px;
  color: #1c3450;
  border-bottom: 1px solid #e4edf8;
  border-right: 1px solid #e4edf8;
  vertical-align: top;
}

.bh-kvkk-table td:last-child,
.bh-modal__scroll table td:last-child {
  border-right: 0;
}

.bh-kvkk-table tbody tr:last-child td,
.bh-modal__scroll table tbody tr:last-child td {
  border-bottom: 0;
}

.bh-kvkk-table tbody tr:nth-child(even),
.bh-modal__scroll table tbody tr:nth-child(even) {
  background: #f8fbff;
}

/* KVKK page standalone */
.bh-kvkk h2 {
  margin: 0 0 16px;
  font-size: 20px;
  color: #0a2e57;
  font-weight: 700;
}

.bh-kvkk h3 {
  margin: 20px 0 10px;
  font-size: 16px;
  color: #0a2e57;
  font-weight: 700;
}

.bh-kvkk p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #1c3450;
}

.bh-kvkk ul,
.bh-kvkk ol {
  margin: 0 0 12px;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: #1c3450;
}

.bh-kvkk li {
  margin-bottom: 4px;
}

.bh-kvkk a {
  color: #0b5aa6;
}

/* Accept button styling */
.bh-btn-accept {
  background: #006d2e;
  color: #fff;
}

.bh-btn-accept:hover {
  background: #00862f;
}

.bh-btn-accept[disabled] {
  background: #9cb3a8;
  opacity: 0.7;
}

.bh-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px 16px;
}

.bh-modal__foot .bh-btn {
  margin-top: 0;
}

html.bh-modal-open,
html.bh-modal-open body {
  overflow: hidden !important;
}

.bh-message {
  border-radius: 10px;
  margin: 0 0 11px;
  padding: 10px 12px;
  font-size: 12px;
}

.bh-message-info {
  background: #eef5ff;
  color: #1e4978;
  border: 1px solid #c9def9;
}

.bh-message-error {
  background: #fff1f0;
  color: #7d231e;
  border: 1px solid #f6cdc9;
}

.bh-message-success {
  background: #edf9f0;
  color: #1c5a2a;
  border: 1px solid #bfe7ca;
}

.bh-panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.bh-panel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #d6e1ef;
  background: #f4f7fb;
}

.bh-panel-tab {
  color: #0c2e56;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.bh-panel-tab:hover {
  text-decoration: underline;
}

.bh-panel-tab.is-active {
  text-decoration: none;
  background: #0c2e56;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(12, 46, 86, 0.25);
}

.bh-panel-list {
  display: grid;
  gap: 12px;
}

.bh-panel-item {
  border: 1px solid #e0eaf6;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 12px;
}

.bh-panel-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bh-panel-item h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  color: #0f2743;
}

.bh-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 9px;
}

.bh-status-pill.is-active {
  background: #e5f6eb;
  color: #216438;
}

.bh-status-pill.is-passive {
  background: #f4f5f8;
  color: #59697f;
}

.bh-panel-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.bh-panel-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.bh-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid #c8d8eb;
  padding: 7px 11px;
  font-weight: 600;
  font-size: 12px;
  color: #083a72;
  background: #f8fbff;
}

.bh-action-link:hover {
  text-decoration: none;
  background: #edf5ff;
}

.bh-action-delete {
  color: #8a1f1f;
  border-color: #efc8c8;
  background: #fff7f7;
}

.bh-action-delete:hover {
  background: #ffecec;
}

.bh-public-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.bh-public-toolbar h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: #0c2e56;
}

.bh-public-toolbar p {
  margin: 2px 0 0;
  font-size: 13px;
  color: #5f7086;
}

.bh-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bh-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cddced;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  color: #234366;
  background: #f8fbff;
}

.bh-filter-chip:hover {
  text-decoration: none;
  background: #edf5ff;
}

.bh-filter-chip.is-active {
  color: #fff;
  background: #083b71;
  border-color: #083b71;
}

.bh-public-list {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  max-width: 920px;
  margin: 0 auto;
}

.bh-public-list.is-loading {
  opacity: 0.55;
  pointer-events: none;
  filter: blur(0.2px);
}

.bh-ilan-card {
  border: 1px solid #e1e9f3;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(7, 33, 61, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  display: grid;
  gap: 10px;
}

.bh-ilan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(7, 33, 61, 0.12);
  border-color: #cddbed;
}

.bh-ilan-card {
  animation: bhCardFade 0.22s ease;
}

@keyframes bhCardFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bh-ilan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bh-ilan-card h3 {
  margin: 0;
  color: #0f2642;
  font-size: 18px;
  line-height: 1.25;
}

.bh-ilan-expiry {
  font-size: 11px;
  font-weight: 600;
  color: #0f2642;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  white-space: nowrap;
}

.bh-ilan-author {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #000;
  margin-bottom: 10px;
  line-height: 1.3;
}

.bh-toggle-group {
  margin-top: 8px;
  padding: 10px 12px;
  background: #f5f9ff;
  border: 1px solid #dde7f3;
  border-radius: 10px;
}

.bh-read-more {
  margin-left: 6px;
  font-weight: 700;
  color: #0b5aa6;
  text-decoration: underline;
  white-space: nowrap;
}

.bh-read-more:hover {
  text-decoration-thickness: 2px;
}

.bh-ilan-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bh-ilan-meta-bottom {
  border-top: 1px solid #e8eef6;
  margin-top: 6px;
  padding-top: 8px;
}

.bh-ilan-meta-item {
  font-size: 11px;
  color: #5a6d83;
}

.bh-ilan-meta-label {
  font-weight: 600;
  color: #2b3f57;
  margin-right: 6px;
}

.bh-muted {
  color: #53667e;
  font-size: 12px;
}

.bh-content {
  margin-top: 9px;
}

.bh-content p {
  margin: 0;
  color: #2a405d;
  font-size: 13px;
}

.bh-content p + p {
  margin-top: 8px;
}

@media (min-width: 980px) {
  .bh-panel-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .bh-auth-box,
  .bh-panel-card,
  .bh-ilan-card {
    padding: 12px;
  }

  .bh-auth-box h2,
  .bh-panel-card h2,
  .bh-public-toolbar h3 {
    font-size: 18px;
  }

  .bh-panel-item-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .bh-ilan-top {
    align-items: flex-start;
    flex-direction: column;
  }
}
