.tools-page-body .breadcrumb-section {
  margin-top: 0;
  padding: 90px 0 10px !important;
  border-bottom: 1px solid #e4e9f1;
  background: #f4f7fb !important;
}

.tools-page-body .breadcrumb-section .banner-wrapper,
.tools-page-body .breadcrumb-section .banner-content {
  padding: 0;
}

.tools-page-body .breadcrumb-section .banner-content .row > div {
  text-align: left !important;
}

.tools-page-body .breadcrumb-section .banner-wrapper .banner-content .breadcrumb-list {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.tools-page-body .breadcrumb-section .banner-wrapper .banner-content .breadcrumb-list li {
  margin-left: 10px;
  padding-left: 16px;
  color: #0036c7;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.tools-page-body .breadcrumb-section .banner-wrapper .banner-content .breadcrumb-list li:first-child {
  margin-left: 0;
  padding-left: 0;
}

.tools-page-body .breadcrumb-section .banner-wrapper .banner-content .breadcrumb-list li a {
  color: #667085;
}

.tools-page-body .breadcrumb-section .banner-wrapper .banner-content .breadcrumb-list li::before {
  content: "›";
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #8792a5;
  font-size: 16px;
  line-height: 1;
}

.tools-page-body .breadcrumb-section h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tools-page-body .breadcrumb-section p {
  display: none;
}

.tools-page-body .contact-section { display: none; }

.tools-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: 1320px;
  margin: 20px auto 36px;
  padding: 0 16px;
}

.tools-shell * { box-sizing: border-box; }

.tools-switcher {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tools-switcher a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid #dce2ec;
  border-radius: 6px;
  background: #fff;
  color: #263247;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.tools-switcher a:hover,
.tools-switcher a.is-active {
  border-color: #0036c7;
  background: #0036c7;
  color: #fff;
}

.tools-container {
  width: 100%;
  margin: 0;
  padding: 18px;
  border: 1px solid #dce2ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 34, 56, 0.08);
}

.tools-card-heading {
  margin-bottom: 14px;
}

.tools-card-heading h2 {
  margin: 0;
  color: #172033;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.tools-directory {
  min-height: 300px;
}

.tools-directory-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.tools-directory-heading h2 {
  margin: 0;
  color: #172033;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.tools-directory-heading p {
  margin: 5px 0 0;
  color: #667085;
  font-size: 14px;
}

.tools-count {
  flex: 0 0 auto;
  color: #667085;
  font-size: 13px;
  font-weight: 600;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tool-card {
  display: flex;
  min-height: 190px;
  padding: 16px;
  border: 1px solid #dce2ec;
  border-radius: 8px;
  background: #fff;
  color: #263247;
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(22, 34, 56, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.tool-card:hover {
  border-color: #9bb2ee;
  color: #263247;
  box-shadow: 0 10px 24px rgba(22, 34, 56, 0.1);
  transform: translateY(-2px);
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.tool-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #edf2ff;
  color: #0036c7;
  font-size: 18px;
}

.tool-card-category {
  color: #718096;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.tool-card h3 {
  margin: 0 0 6px;
  color: #172033;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.tool-card p {
  margin: 0 0 14px;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.tool-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: #0036c7;
  font-size: 13px;
  font-weight: 700;
}

.case-converter-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(0, 1.65fr);
  gap: 18px;
}

.case-options-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 14px;
  padding-right: 18px;
  border-right: 1px solid #e1e6ee;
}

.case-option-group h3 {
  margin: 0 0 8px;
  color: #263247;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.case-option-list {
  display: grid;
  gap: 7px;
}

.case-option-list .tools-btn {
  width: 100%;
  justify-content: flex-start;
  min-height: 36px;
  padding: 6px 10px;
  text-align: left;
}

.case-text-panel {
  min-width: 0;
}

.case-text-panel .tools-textarea {
  min-height: 240px;
}

.tools-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.tools-label {
  margin: 0;
  color: #172033;
  font-size: 14px;
  font-weight: 700;
}

.tools-field-control {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #596579;
  font-size: 13px;
  white-space: nowrap;
}

.tools-select {
  min-height: 34px;
  padding: 4px 28px 4px 9px;
  border: 1px solid #cfd7e5;
  border-radius: 5px;
  background: #fff;
  color: #172033;
}

.tools-textarea,
.tools-textarea-formatter {
  display: block;
  width: 100%;
  min-height: 250px;
  padding: 13px 14px;
  border: 1px solid #cfd7e5;
  border-radius: 6px;
  outline: none;
  background: #f8fafc;
  color: #182033;
  font: 15px/1.55 'Inter', sans-serif;
  resize: vertical;
}

.tools-textarea-formatter {
  min-height: 240px;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 14px;
  tab-size: 4;
}

.tools-textarea:focus,
.tools-textarea-formatter:focus,
.tools-select:focus {
  border-color: #0036c7;
  box-shadow: 0 0 0 3px rgba(0, 54, 199, 0.1);
}

.tools-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0;
}

.tools-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.tools-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.tools-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid #cfd7e5;
  border-radius: 6px;
  background: #fff;
  color: #263247;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  min-width: 0;
  overflow-wrap: anywhere;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.tools-btn:hover {
  border-color: #0036c7;
  background: #edf2ff;
  color: #0036c7;
}

.tools-btn.tools-primary {
  border-color: #0036c7;
  background: #0036c7;
  color: #fff;
}

.tools-btn.tools-primary:hover {
  border-color: #002da8;
  background: #002da8;
  color: #fff;
}

.tools-btn.tools-danger:hover {
  border-color: #c73737;
  background: #fff2f2;
  color: #a82525;
}

.tools-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: #657086;
  font-size: 12px;
  white-space: nowrap;
}

.tools-stats strong { color: #263247; }

.tools-status {
  min-height: 18px;
  margin: 8px 0 0;
  color: #16723b;
  font-size: 12px;
  text-align: right;
}

.qr-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.qr-card-heading p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 13px;
}

.qr-privacy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #16723b;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.qr-generator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.65fr);
  gap: 20px;
}

.qr-settings-panel {
  min-width: 0;
  padding-right: 20px;
  border-right: 1px solid #e1e6ee;
}

.qr-content-panels { margin-top: 12px; }
.qr-content-panels [hidden] { display: none !important; }

.qr-form-grid,
.qr-style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.qr-style-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.qr-grid-full { grid-column: 1 / -1; }

.qr-form-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.qr-form-field label,
.qr-logo-row strong {
  margin: 0;
  color: #263247;
  font-size: 12px;
  font-weight: 700;
}

.qr-form-field label span {
  color: #8792a5;
  font-weight: 500;
}

.qr-form-field .tools-select,
.qr-input {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #cfd7e5;
  border-radius: 6px;
  outline: none;
  background: #fff;
  color: #172033;
  font-size: 13px;
}

.qr-textarea,
textarea.qr-input {
  min-height: 74px;
  line-height: 1.45;
  resize: vertical;
}

.qr-input:focus {
  border-color: #0036c7;
  box-shadow: 0 0 0 3px rgba(0, 54, 199, 0.1);
}

.qr-checkbox {
  display: flex;
  align-items: center;
  align-self: end;
  gap: 8px;
  min-height: 38px;
  margin: 0;
  color: #263247;
  font-size: 13px;
  font-weight: 600;
}

.qr-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: #0036c7;
}

.qr-style-section {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #e1e6ee;
}

.qr-style-section h3 {
  margin: 0 0 9px;
  color: #263247;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.qr-color-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  margin: 0;
  padding: 5px 7px 5px 10px;
  border: 1px solid #cfd7e5;
  border-radius: 6px;
  color: #263247;
  font-size: 12px;
  font-weight: 700;
}

.qr-color-field input {
  width: 38px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.qr-logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid #dce2ec;
  border-radius: 6px;
  background: #f8fafc;
}

.qr-logo-row > div:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.qr-logo-row span {
  max-width: 360px;
  overflow: hidden;
  color: #718096;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-preview-panel {
  display: flex;
  min-width: 0;
  padding: 14px;
  border: 1px solid #dce2ec;
  border-radius: 8px;
  background: #f8fafc;
  flex-direction: column;
  align-items: center;
}

.qr-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  margin-bottom: 10px;
}

.qr-preview-heading h3 {
  margin: 0;
  color: #263247;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.qr-preview-heading span {
  padding: 3px 7px;
  border-radius: 5px;
  background: #e8f7ee;
  color: #16723b;
  font-size: 10px;
  font-weight: 700;
}

.qr-preview-heading span.is-error {
  background: #fff0f0;
  color: #a82525;
}

.qr-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 270px);
  aspect-ratio: 1;
  padding: 10px;
  border: 1px solid #e1e6ee;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.qr-preview svg,
.qr-preview canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
}

.qr-generator-status {
  min-height: 18px;
  margin: 8px 0;
  color: #16723b;
  font-size: 11px;
  text-align: center;
}

.qr-generator-status.is-error { color: #a82525; }

.qr-download-actions {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 7px;
  flex-wrap: wrap;
}

.qr-download-actions .tools-btn { flex: 1 1 auto; }

.qr-download-actions .tools-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.qr-scan-note {
  margin: 10px 0 0;
  color: #718096;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 767px) {
  .tools-page-body .breadcrumb-section { padding-top: 99px !important; }
  .tools-shell { margin-top: 14px; padding: 0 12px; }
  .tools-container { padding: 12px; }
  .tools-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-footer-row { align-items: flex-start; flex-direction: column; }
  .tools-stats { order: -1; }
  .tools-btn { min-height: 40px; }
  .qr-style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qr-generator-layout { grid-template-columns: 1fr; }
  .qr-settings-panel {
    padding: 0 0 16px;
    border-right: 0;
    border-bottom: 1px solid #e1e6ee;
  }
  .qr-preview-panel { max-width: 420px; width: 100%; margin: 0 auto; }
  .case-converter-grid { grid-template-columns: 1fr; }
  .case-options-panel {
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid #e1e6ee;
  }
}

@media (max-width: 420px) {
  .tools-heading-row { align-items: flex-start; flex-direction: column; }
  .tools-options { grid-template-columns: 1fr; }
  .tools-controls { width: 100%; }
  .tools-controls .tools-btn { flex: 1 1 auto; }
  .tools-directory-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .tools-grid { grid-template-columns: 1fr; }
  .qr-card-heading { flex-direction: column; gap: 7px; }
  .qr-form-grid { grid-template-columns: 1fr; }
  .qr-logo-row { align-items: flex-start; flex-direction: column; }
}
