.bkf-app,
.bkf-app * {
  box-sizing: border-box;
}

.bkf-app {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 32px;
  background: #f8f6f6;
  color: #111827;
  font-family: inherit;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.08);
}

.bkf-app__header {
  max-width: 820px;
  margin: 0 auto 26px;
  text-align: center;
}

.bkf-app__eyebrow,
.bkf-panel__label {
  margin: 0 0 8px;
  color: #6d28d9;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.075em;
}

.bkf-app__title {
  margin: 0;
  color: #111827;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 950;
}

.bkf-app__intro {
  margin: 14px 0 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.7;
}

.bkf-app__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.bkf-panel {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
}

.bkf-panel--converter {
  margin-top: 18px;
}

.bkf-panel__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.bkf-panel__title {
  margin: 0;
  color: #111827;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 950;
}

.bkf-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.bkf-status--purple {
  background: #f5f3ff;
  color: #6d28d9;
}

.bkf-tap-button {
  width: 100%;
  min-height: 132px;
  border: 0;
  border-radius: 28px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(124, 58, 237, 0.28);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.bkf-tap-button:hover,
.bkf-tap-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(124, 58, 237, 0.34);
}

.bkf-tap-button:active {
  transform: translateY(0) scale(0.99);
}

.bkf-tap-button span {
  display: block;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.bkf-tap-button small {
  display: block;
  margin-top: 10px;
  color: #ede9fe;
  font-size: 14px;
  font-weight: 800;
}

.bkf-help {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

.bkf-result-grid,
.bkf-summary-grid {
  display: grid;
  gap: 12px;
}

.bkf-result-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.bkf-result-grid--key {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bkf-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px 0;
}

.bkf-result-card,
.bkf-summary-card {
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.bkf-result-card--primary {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.bkf-result-card small,
.bkf-summary-card small,
.bkf-key-main small {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bkf-result-card--primary small,
.bkf-result-card--primary span {
  color: #cbd5e1;
}

.bkf-result-card strong,
.bkf-summary-card strong {
  display: block;
  color: #111827;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.bkf-result-card--primary strong {
  color: #ffffff;
  font-size: 34px;
}

.bkf-result-card span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.4;
}

.bkf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.bkf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 15px;
  border: 0;
  border-radius: 13px;
  background: #7c3aed;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease, background 0.14s ease;
}

.bkf-button:hover,
.bkf-button:focus {
  background: #6d28d9;
  transform: translateY(-1px);
}

.bkf-button--secondary {
  background: #ede9fe;
  color: #5b21b6;
}

.bkf-button--secondary:hover,
.bkf-button--secondary:focus {
  background: #ddd6fe;
  color: #4c1d95;
}

.bkf-field-row,
.bkf-converter-grid {
  display: grid;
  gap: 12px;
}

.bkf-field-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bkf-converter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bkf-field span {
  display: block;
  margin-bottom: 7px;
  color: #374151;
  font-size: 13px;
  font-weight: 900;
}

.bkf-field select,
.bkf-field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  font-size: 15px;
}

.bkf-field select:focus,
.bkf-field input:focus,
.bkf-button:focus-visible,
.bkf-tap-button:focus-visible,
.bkf-key-btn:focus-visible,
.bkf-related a:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.24);
  outline-offset: 2px;
}

.bkf-key-buttons {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.bkf-key-btn {
  min-height: 40px;
  border: 1px solid #ddd6fe;
  border-radius: 12px;
  background: #f5f3ff;
  color: #5b21b6;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}

.bkf-key-btn.is-active {
  background: #7c3aed;
  color: #ffffff;
  border-color: #7c3aed;
}

.bkf-key-output {
  margin-top: 16px;
}

.bkf-key-main {
  padding: 20px;
  border-radius: 22px;
  background: #111827;
  color: #ffffff;
}

.bkf-key-main small,
.bkf-key-main span {
  color: #cbd5e1;
}

.bkf-key-main strong {
  display: block;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.bkf-key-main span {
  display: block;
  margin-top: 9px;
  font-size: 14px;
  line-height: 1.45;
}

.bkf-compatible {
  margin-top: 16px;
  padding: 16px;
  border-radius: 20px;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
}

.bkf-compatible__title {
  margin: 0 0 10px;
  color: #4c1d95;
  font-size: 14px;
  font-weight: 950;
}

.bkf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bkf-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #4c1d95;
  border: 1px solid rgba(124, 58, 237, 0.15);
  font-size: 13px;
  font-weight: 900;
}

.bkf-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 20px;
  background: #ffffff;
}

.bkf-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.bkf-table th,
.bkf-table td {
  padding: 13px 15px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
  line-height: 1.45;
}

.bkf-table th {
  background: #f5f3ff;
  color: #4c1d95;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bkf-table tr:last-child td {
  border-bottom: 0;
}

.bkf-footer-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff7ed;
  border: 1px solid rgba(249, 115, 22, 0.16);
  color: #7c2d12;
  font-size: 14px;
  line-height: 1.6;
}

.bkf-footer-note strong {
  color: #431407;
  font-weight: 950;
}

.bkf-related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.bkf-related a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #5b21b6;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.bkf-related a:hover,
.bkf-related a:focus {
  background: #f5f3ff;
  color: #4c1d95;
  text-decoration: none;
}

@media (max-width: 980px) {
  .bkf-app__grid,
  .bkf-converter-grid {
    grid-template-columns: 1fr;
  }

  .bkf-result-grid,
  .bkf-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .bkf-app {
    padding: 18px;
    border-radius: 24px;
  }

  .bkf-app__header {
    text-align: left;
  }

  .bkf-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .bkf-panel__top,
  .bkf-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .bkf-result-grid,
  .bkf-summary-grid,
  .bkf-field-row,
  .bkf-result-grid--key {
    grid-template-columns: 1fr;
  }

  .bkf-key-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bkf-button {
    width: 100%;
  }
}
