@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

.bcx-binary-converter {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  box-sizing: border-box;
  display: block;
  position: relative;
  overflow-x: clip;
  background: linear-gradient(135deg, #030164 0%, #1a1878 45%, #2D7495 100%);
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
}
.bcx-binary-converter *,
.bcx-binary-converter *::before,
.bcx-binary-converter *::after { box-sizing: border-box; }
.bcx-binary-converter .bcx-shell { width: 100%; max-width: 1200px; margin: 0 auto; padding: 46px 24px; }
.bcx-binary-converter .bcx-hero { text-align: center; margin: 0 auto 28px; }
.bcx-binary-converter .bcx-hero h1 { margin: 0; color: #ffffff; font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -1px; }
.bcx-binary-converter .bcx-hero p { margin: 12px auto 0; max-width: 650px; color: #e6e8f2; font-size: 16px; line-height: 1.55; }
.bcx-binary-converter .bcx-workspace { position: relative; overflow: hidden; border: 1px solid rgba(230,232,242,.2); border-radius: 18px; background: #080A38; box-shadow: 0 24px 60px rgba(0,0,30,.38), inset 0 1px 0 rgba(255,255,255,.05); }
.bcx-binary-converter .bcx-toolbar { min-height: 62px; display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: linear-gradient(90deg, #10134D, #363199); border-bottom: 1px solid rgba(230,232,242,.16); }
.bcx-binary-converter .bcx-toolbar-title { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; color: #ffffff; font-size: 14px; }
.bcx-binary-converter .bcx-live-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #2D7495; box-shadow: 0 0 0 4px rgba(45,116,149,.19); animation: bcxPulse 2s infinite; }
.bcx-binary-converter .bcx-mode-pill { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 8px; color: #dff8ff; border: 1px solid rgba(115,211,235,.32); border-radius: 999px; background: rgba(3,1,100,.42); font-size: 11px; }
.bcx-binary-converter .bcx-toolbar-actions, .bcx-binary-converter .bcx-action-row { display: flex; gap: 8px; flex-wrap: wrap; }
.bcx-binary-converter button { font: inherit; cursor: pointer; }
.bcx-binary-converter .bcx-button, .bcx-binary-converter .bcx-copy-btn, .bcx-binary-converter .bcx-mode-btn, .bcx-binary-converter .bcx-menu-btn { border: 1px solid transparent; border-radius: 8px; transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.bcx-binary-converter .bcx-button { min-height: 36px; padding: 8px 12px; color: #ffffff; font-size: 13px; font-weight: 700; }
.bcx-binary-converter .bcx-primary { border-color: rgba(145,231,255,.4); background: linear-gradient(135deg, #363199, #2D7495); box-shadow: 0 5px 16px rgba(45,116,149,.26); }
.bcx-binary-converter .bcx-secondary { border-color: rgba(230,232,242,.2); background: #10134D; color: #f4f6fb; }
.bcx-binary-converter button:hover { transform: translateY(-1px); }
.bcx-binary-converter .bcx-primary:hover { box-shadow: 0 8px 20px rgba(45,116,149,.4); }
.bcx-binary-converter .bcx-secondary:hover, .bcx-binary-converter .bcx-copy-btn:hover { background: #363199; border-color: rgba(230,232,242,.38); }
.bcx-binary-converter button:focus-visible, .bcx-binary-converter textarea:focus-visible { outline: 3px solid rgba(89,203,236,.7); outline-offset: 2px; }
.bcx-binary-converter .bcx-menu-btn { display: none; width: 38px; height: 38px; color: #ffffff; background: #10134D; border-color: rgba(230,232,242,.2); font-size: 19px; }
.bcx-binary-converter .bcx-popover { position: absolute; z-index: 5; top: 58px; right: 16px; width: min(320px, calc(100% - 32px)); padding: 14px; border: 1px solid rgba(230,232,242,.22); border-radius: 10px; background: #10134D; color: #f4f6fb; box-shadow: 0 14px 30px rgba(0,0,30,.42); font-size: 13px; line-height: 1.5; }
.bcx-binary-converter .bcx-popover p { margin: 7px 0 0; color: #e6e8f2; }
.bcx-binary-converter .bcx-popover code { color: #bceeff; }
.bcx-binary-converter .bcx-settings-popover { right: 16px; }
.bcx-binary-converter .bcx-help-popover { right: 94px; }
.bcx-binary-converter .bcx-popover label { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: #ffffff; }
.bcx-binary-converter .bcx-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); min-height: 480px; }
.bcx-binary-converter .bcx-sidebar { padding: 18px 14px; background: #10134D; border-right: 1px solid rgba(230,232,242,.14); }
.bcx-binary-converter .bcx-sidebar-section + .bcx-sidebar-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(230,232,242,.12); }
.bcx-binary-converter .bcx-sidebar h2 { margin: 0 0 10px; color: #d9e7ff; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.bcx-binary-converter .bcx-mode-list { display: grid; gap: 5px; }
.bcx-binary-converter .bcx-mode-btn { width: 100%; padding: 10px; text-align: left; color: #e6e8f2; background: transparent; font-size: 13px; }
.bcx-binary-converter .bcx-mode-btn:hover { background: rgba(54,49,153,.62); }
.bcx-binary-converter .bcx-mode-btn.is-active { color: #ffffff; border-color: rgba(100,220,248,.32); background: linear-gradient(90deg, #363199, rgba(45,116,149,.8)); box-shadow: inset 3px 0 #72e0ff; }
.bcx-binary-converter .bcx-radio { display: flex; align-items: center; gap: 8px; padding: 7px 2px; color: #f4f6fb; font-size: 13px; cursor: pointer; }
.bcx-binary-converter .bcx-radio input { accent-color: #2D7495; }
.bcx-binary-converter .bcx-select-display { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border: 1px solid rgba(230,232,242,.16); border-radius: 7px; color: #ffffff; background: #080A38; font-size: 13px; }
.bcx-binary-converter .bcx-select-display span { color: #8ddcf3; font-size: 10px; }
.bcx-binary-converter .bcx-main { min-width: 0; padding: 18px; }
.bcx-binary-converter .bcx-action-row { margin-bottom: 16px; }
.bcx-binary-converter .bcx-editors { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.bcx-binary-converter .bcx-editor-panel { min-width: 0; overflow: hidden; border: 1px solid rgba(230,232,242,.15); border-radius: 11px; background: #080A38; box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.bcx-binary-converter .bcx-panel-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 55px; padding: 10px 12px; border-bottom: 1px solid rgba(230,232,242,.12); background: #10134D; }
.bcx-binary-converter .bcx-panel-header h2 { margin: 0; color: #ffffff; font-size: 13px; }
.bcx-binary-converter .bcx-panel-header span { display: block; margin-top: 3px; color: #aeb8db; font-size: 11px; }
.bcx-binary-converter .bcx-copy-btn { padding: 6px 10px; color: #dff8ff; background: #080A38; border-color: rgba(230,232,242,.18); font-size: 12px; font-weight: 700; }
.bcx-binary-converter .bcx-copy-btn.is-copied { color: #ffffff; background: #2D7495; }
.bcx-binary-converter .bcx-editor-wrap { position: relative; display: flex; height: 315px; overflow: hidden; }
.bcx-binary-converter .bcx-gutter { width: 43px; flex: 0 0 43px; margin: 0; padding: 14px 9px 14px 0; overflow: hidden; color: #6675a4; border-right: 1px solid rgba(230,232,242,.1); background: #080A38; font: 13px/1.55 "SFMono-Regular", Consolas, "Liberation Mono", monospace; text-align: right; user-select: none; }
.bcx-binary-converter .bcx-editor { width: 100%; min-width: 0; height: 100%; resize: none; border: 0; padding: 14px; color: #f4f6fb; background: #080A38; caret-color: #72e0ff; font: 13px/1.55 "SFMono-Regular", Consolas, "Liberation Mono", monospace; white-space: pre; overflow: auto; }
.bcx-binary-converter .bcx-output-editor { color: #c8f4ff; }
.bcx-binary-converter .bcx-editor::placeholder { color: #7180aa; opacity: 1; }
.bcx-binary-converter .bcx-editor::-webkit-scrollbar { width: 10px; height: 10px; }
.bcx-binary-converter .bcx-editor::-webkit-scrollbar-track { background: #080A38; }
.bcx-binary-converter .bcx-editor::-webkit-scrollbar-thumb { border: 2px solid #080A38; border-radius: 10px; background: #363199; }
.bcx-binary-converter .bcx-statusbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-height: 43px; padding: 9px 16px; color: #c9d2ec; border-top: 1px solid rgba(230,232,242,.14); background: #10134D; font: 11px/1.4 "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.bcx-binary-converter .bcx-status-item { white-space: nowrap; }
.bcx-binary-converter .bcx-status-item i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #2D7495; }
.bcx-binary-converter .bcx-status-item b { color: #ffffff; font-weight: 700; }
.bcx-binary-converter .bcx-status-message { margin-left: auto; color: #aeeeff; }
.bcx-binary-converter .bcx-status-message.is-error { color: #ffbdc7; }
@keyframes bcxPulse { 50% { opacity: .5; box-shadow: 0 0 0 7px rgba(45,116,149,0); } }
@media (max-width: 1023px) {
  .bcx-binary-converter .bcx-shell { padding: 38px 18px; }
  .bcx-binary-converter .bcx-hero h1 { font-size: 34px; }
  .bcx-binary-converter .bcx-layout { grid-template-columns: 210px minmax(0,1fr); }
  .bcx-binary-converter .bcx-editors { grid-template-columns: 1fr; }
  .bcx-binary-converter .bcx-editor-wrap { height: 255px; }
}
@media (max-width: 767px) {
  .bcx-binary-converter .bcx-shell { padding: 28px 12px; }
  .bcx-binary-converter .bcx-hero { margin-bottom: 22px; }
  .bcx-binary-converter .bcx-hero h1 { font-size: 30px; }
  .bcx-binary-converter .bcx-hero p { font-size: 14px; }
  .bcx-binary-converter .bcx-toolbar { gap: 9px; padding: 10px; }
  .bcx-binary-converter .bcx-menu-btn { display: block; }
  .bcx-binary-converter .bcx-toolbar-title strong { display: none; }
  .bcx-binary-converter .bcx-toolbar-actions { margin-left: auto; }
  .bcx-binary-converter .bcx-button { padding: 8px 10px; font-size: 12px; }
  .bcx-binary-converter .bcx-layout { display: block; }
  .bcx-binary-converter .bcx-sidebar { display: none; border-right: 0; border-bottom: 1px solid rgba(230,232,242,.14); }
  .bcx-binary-converter .bcx-sidebar.is-open { display: block; }
  .bcx-binary-converter .bcx-main { padding: 12px; }
  .bcx-binary-converter .bcx-action-row { gap: 7px; }
  .bcx-binary-converter .bcx-download-btn { flex: 1 1 150px; }
  .bcx-binary-converter .bcx-editor-wrap { height: 220px; }
  .bcx-binary-converter .bcx-statusbar { gap: 8px 12px; padding: 9px 12px; }
  .bcx-binary-converter .bcx-status-message { width: 100%; margin-left: 0; }
  .bcx-binary-converter .bcx-help-popover { right: 73px; }
}
@media (prefers-reduced-motion: reduce) {
  .bcx-binary-converter *, .bcx-binary-converter *::before, .bcx-binary-converter *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}