/* dashboard css */

.site-card {
  background: white;
  border: 1px solid #e0e6ed;
  border-radius: 6px;
  padding: 12px 15px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.brand-section img {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
}

.brand-name {
  color: #3498db;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}

.brand-url {
  color: #8e959c;
  font-size: 0.8rem;
  text-decoration: none;
}

.section-divider {
  border: 0;
  border-top: 1px solid #dddedf;
  margin: 0 -15px 12px -15px;
  opacity: 1;
}

.stats-table {
  width: 100%;
  table-layout: fixed;
}

.stats-table td {
  vertical-align: top;
  padding: 0 5px;
}

.label-text {
  color: #000;
  font-weight: 600;
  font-size: 0.65rem;
  margin-bottom: 4px;
  display: block;
}

.value-main {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.1;
}

.url-text {
  color: #3498db;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  word-break: break-all;
}

.text-blue {
  color: #3498db;
}

.trend {
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}

.time-info {
  color: #6c757d;
  font-size: 0.7rem;
  font-weight: 400;
}

.gauge-container {
  position: relative;
  width: 30px;
  height: 15px;
  overflow: hidden;
  display: inline-block;
  margin-left: 2px;
}

.gauge-arch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: conic-gradient(
    from 270deg,
    #fd7e14 0deg,
    #fd7e14 70deg,
    #dee2e6 70deg,
    #dee2e6 180deg
  );
  mask: radial-gradient(farthest-side, transparent 65%, white 66%);
  -webkit-mask: radial-gradient(farthest-side, transparent 65%, white 66%);
}

.btn-setup {
  background-color: #0d6efd;
  color: white;
  border: none;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-size: 0.85rem;
  border-radius: 8px;
}

.dropdown-item {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown-item i {
  font-size: 1rem;
}

.text-delete {
  color: #dc3545;
}

/* MOBILE RESPONSIVE CSS */

@media (max-width: 768px) {
  .stats-table,
  .stats-table tbody,
  .stats-table tr,
  .stats-table td {
    display: block;
    width: 100% !important;
  }
  .stats-table td {
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
  }
  .stats-table td:last-child {
    border-bottom: none;
  }
  .label-text {
    margin-bottom: 2px;
  }
  .site-card {
    padding: 15px;
  }
  .col-lg-8 {
    padding: 10px !important;
  }
}

/* dashboard css end */

.empty-audit-state {
  border: 2px dashed #ff6b35;
  border-radius: 10px;
  background-color: #fafafa;
  padding: 50px 20px;
  margin-top: 2rem;
}

/* Custom Button Styling */

.btn-audit-start {
  background-color: #ff6b35;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-audit-start:hover {
  background-color: #e85a2a;
  color: white;
  transform: scale(1.05);
}

/* Responsive Fixes */

@media (max-width: 768px) {
  .empty-audit-state {
    padding: 50px 15px;
    margin: 15px;
    border-width: 1.5px;
  }
  .btn-audit-start {
    font-size: 0.85rem;
    padding: 10px 15px !important;
    max-width: 280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .btn-audit-start i {
    font-size: 1rem;
  }
}

.custom-nav {
  border-bottom: 1px solid #b4b4b4;
  margin-left: 12px !important;
}

.nav-link {
  color: #000;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 1rem !important;
  transition: 0.3s;
  cursor: pointer !important;
}

.nav-link:hover {
  color: #f25c27;
}

.nav-link.active {
  color: #f25c27;
  border-bottom: 3px solid #f25c27;
}

.nav-item {
  margin-bottom: -1px;
}

.seo-card {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  padding: 25px;
}

.progress {
  background-color: #f0f2f5;
  overflow: visible;
}

.progress-bar-custom {
  height: 8px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.progress-bar {
  border-radius: 10px;
}

.bg-Errors {
  background-color: #ff4954;
}

.bg-Warning {
  background-color: #ff8c44;
}

.bg-Notices {
  background-color: #2cb3ff;
}

.bg-Passed {
  background-color: #50e3a4;
}

.score-circle {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, #ffffff 60%, #fffcf0 100%);
  border: 10px solid #f8f9fa;
  border-top-color: #ff8c44;
  border-right-color: #ff8c44;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.beta-tag {
  background: linear-gradient(135deg, #fff0e0 0%, #ffe0c0 100%);
  color: #fd7e14;
  padding: 4px 12px;
  font-size: 10px;
  letter-spacing: 1px;
  border: 1px solid rgba(253, 126, 20, 0.2);
}

/* AI Partial Circle Styling */

.ai-circle-container {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
}

.ai-circle-svg {
  transform: rotate(135deg);
}

.ai-circle-bg {
  fill: none;
  stroke: #f1f1f1;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 306, 408;
}

.ai-circle-progress {
  fill: none;
  stroke: #50e3a4;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 306, 408;
  transition: stroke-dashoffset 1s ease-in-out;
}

.ai-circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.custom-issue-text {
  color: #3498db !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  text-align: center !important;
  vertical-align: middle;
}

/* =======================
MOBILE RESPONSIVE FIXES
======================= */

@media (max-width: 991px) {
  /* Navbar */
  .nav {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav-link {
    padding: 0.7rem 1rem !important;
    font-size: 0.7rem;
  }
  .seo-card {
    padding: 20px;
    border-radius: 16px;
  }
  .score-circle {
    width: 130px;
    height: 130px;
    border-width: 8px;
  }
  .score-circle h1 {
    font-size: 1.8rem;
  }
  /* AI Circle */
  .ai-circle-container {
    width: 130px;
    height: 130px;
  }
  .ai-circle-svg {
    width: 130px;
    height: 130px;
  }
  .ai-circle-text h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 767.97px) {
  .custom-nav {
    margin-left: 8px !important;
  }
  .seo-card {
    padding: 16px;
    border-radius: 10px;
  }
  .seo-card h5 {
    font-size: 1rem;
  }
  .seo-card button {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  .progress-bar-custom {
    height: 6px;
    margin-bottom: 14px;
  }
  .seo-card .text-muted {
    font-size: 0.85rem;
  }
  .seo-card a.btn-link {
    font-size: 0.85rem;
  }
}

/* table css */

.issues-table-card {
  border-radius: 10px;
  border: none;
  background: #ffffff;
  overflow: hidden;
}

.table thead th {
  background-color: #f8f9fa;
  border-bottom: 1px solid #eee;
  color: #6c757d;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 15px;
}

.table tbody td {
  padding: 10px 15px;
  vertical-align: middle;
  border-bottom: 2px solid #f1f1f1;
}

.table tbody tr:hover td {
  background-color: #f1f0f5 !important;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.table tbody tr:hover span.fw-medium {
  color: #000 !important;
}

.ai-badge {
  background-color: #eef2ff;
  color: #f25c27;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold;
  margin-left: 8px;
}

.how-to-fix {
  color: #6c757d;
  text-decoration: none;
  font-size: 0.9rem;
}

.how-to-fix:hover {
  color: #f25c27;
  border-bottom-color: #f25c27;
}

.issue-icon {
  width: 24px;
  text-align: center;
  margin-right: 10px;
}

/* Mobile Optimization */

@media (max-width: 576px) {
  .table tbody td {
    display: block;
    width: 100%;
    text-align: left !important;
    padding: 10px 20px;
    border-bottom: none;
  }
  .table tbody tr {
    display: block;
    /* border-bottom: 10px solid #f8f9fa;
    padding: 10px 0; */
  }
  .issue-icon {
    margin-right: 5px;
  }
  .mobile-issues-count {
    font-size: 0.85rem;
    background: #e7f1ff;
    padding: 2px 8px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 5px;
  }
}

/* Success Theme for Overview Empty State */

.success-icon-circle-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  background-color: #e8f5e9;
  margin-bottom: 12px;
}

.success-icon-circle-small i {
  font-size: 1.5rem;
  color: #28a745;
}

.success-msg-title {
  font-weight: 600;
  color: #000;
}

/* Overview Footer Styling */

.view-all-footer {
  cursor: pointer;
  background-color: #e2e6ea;
  border-top: 1px solid #ced4da;
  padding: 12px;
  text-align: center;
}

.view-all-footer .footer-link {
  text-decoration: none;
  color: #000;
  font-size: 0.85rem;
  font-weight: 700;
}

/* table css end */

/* issue css */

.success-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  background-color: #e8f5e9;
  margin-bottom: 1rem;
}

/* Icon Styling */

.success-icon-circle i {
  font-size: 2rem;
  color: #28a745;
}

.success-msg-title {
  font-weight: 600;
  color: #212529;
  font-size: 14px;
  margin-bottom: 0.25rem;
}

.success-msg-subtitle {
  color: #000;
  font-size: 0.95rem;
  font-size: 12px;
}

.issue-filter-nav {
  display: inline-flex;
  border: 1px solid #6c6f72;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 25px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.issue-filter-nav::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  border-right: 1px solid #8c949b;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-btn:last-child {
  border-right: none;
}

.filter-btn.active {
  background-color: #fff1ed !important;
  color: #000 !important;
  position: relative;
  z-index: 1;
}

.filter-btn.active span {
  color: #000;
}

.filter-btn:hover:not(.active) {
  background-color: #f8f9fa;
  color: #f25c27;
}

/* Mobile specific adjustments */

@media (max-width: 576px) {
  .issue-filter-nav {
    display: flex;
    margin-bottom: 15px;
  }
  .filter-btn {
    padding: 10px 14px;
    font-size: 0.7rem;
  }
}

.issue-item-card {
  border-left: 5px solid #dee2e6;
  transition: transform 0.2s;
  cursor: pointer;
}

.issue-item-card:hover {
  transform: scale(1.01);
}

.border-error {
  border-left-color: #dc3545 !important;
}

.border-warning {
  border-left-color: #ffc107 !important;
}

.border-notice {
  border-left-color: #0dcaf0 !important;
}

/* Main container for groups */

.audit-group-container {
  background: #fff;
  overflow: hidden;
  margin-bottom: 30px;
}

.group-header {
  padding: 15px 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
}

/* Success border color */

.border-top-success {
  border-top: 4px solid #28a745 !important;
}

.text-success {
  color: #28a745 !important;
}

/* Top borders based on type */

.border-top-error {
  border-top: 4px solid #ff3c3c !important;
}

.border-top-warning {
  border-top: 4px solid #dda036 !important;
}

.border-top-notice {
  border-top: 4px solid #2296d2 !important;
}

.border-top-success {
  border-top: 4px solid #7fc84e !important;
}

.audit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #f1f1f1;
  transition: background 0.2s;
}

.audit-row:last-child {
  border-bottom: none;
}

.audit-row:hover {
  background: #f1f0f5;
}

.issue-text {
  font-size: 0.95rem;
  color: #333;
}

.issue-text a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}

.fix-link {
  color: #888 !important;
  font-size: 0.85rem;
  margin-left: 10px;
  text-decoration: underline !important;
}

.new-issues-count {
  font-size: 0.85rem;
  color: #3498db;
  font-weight: 500;
}

.info-icon {
  font-size: 12px;
  color: #ccc;
  cursor: help;
}

/* Mobile Responsive Adjustments */

@media (max-width: 768px) {
  .audit-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 15px;
  }
  .issue-text {
    line-height: 1.4;
  }
  .fix-link {
    display: block;
    margin-left: 0;
    margin-top: 5px;
  }
  .new-issues-count {
    align-self: flex-end;
    font-size: 0.8rem;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
  }
  .filter-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* issue end */

/* crawled section */

.success-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  background-color: #e8f5e9;
  margin-bottom: 1.2rem;
}

.success-icon-circle i {
  font-size: 2rem;
  color: #28a745;
}

.success-msg-title {
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.25rem;
}

.success-msg-subtitle {
  color: #000;
  font-size: 12px;
}

.btn-orange {
  background-color: #f25c27;
  color: white;
  border: none;
  transition: 0.3s;
}

.btn-orange:hover {
  background-color: #d44b1d;
  color: white;
  transform: translateY(-1px);
}

#empty-crawl {
  background: #ffffff;
  border: 2px dashed #e0e0e0;
  border-radius: 12px;
  margin: 10px 0;
}

#empty-crawl-state {
  background: #ffffff;
  border: 2px dashed #e0e0e0;
  border-radius: 12px;
  margin: 20px 0;
}

.btn-orange {
  background-color: #f05a28;
  color: white;
  border: none;
}

.btn-orange:hover {
  background-color: #d84a1d;
  color: white;
}

/* Table Wrapper for Horizontal Scroll */

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #f1f1f1;
  /* border-radius: 8px; */
  /* margin-bottom: 1rem; */
}

.custom-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
}

.custom-table th,
.custom-table td {
  white-space: nowrap;
  padding: 12px 15px;
}

.url-link {
  display: inline-block;
  max-width: 500px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  color: #3498db;
  text-decoration: none;
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #dee2e6;
  border-radius: 10px;
}

.custom-table thead {
  background-color: #f8f9fa;
}

.custom-table th {
  font-size: 0.85rem;
  color: #000;
  font-weight: 600;
  border-bottom: 2px solid #e0e1e3;
  padding: 12px;
}

.custom-table td {
  font-size: 0.9rem;
  vertical-align: middle;
  padding: 12px 8px;
  color: #333;
}

.dataTables_wrapper .dataTables_filter {
  display: none;
}

table.dataTable.no-footer {
  border-bottom: none !important;
}

.status-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
}

.bg-success-subtle {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.url-link:hover {
  text-decoration: underline;
}

.external-icon {
  font-size: 12px;
  margin-left: 5px;
  color: #adb5bd;
}

.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
}

.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}

.search-input:focus {
  border-color: #f25c27;
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
}

@media (max-width: 576px) {
  .table-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .search-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  #myCrawlTable thead {
    display: none !important;
  }
  .custom-table {
    min-width: 100% !important;
  }
  .custom-table td {
    white-space: normal !important;
    display: block;
    width: 100% !important;
    border-bottom: 1px solid #eee;
  }
  .url-link {
    max-width: 100% !important;
    word-break: break-all;
  }
  .table-responsive {
    overflow-x: hidden !important;
  }
}

/* crawled end */

/* passed section */

.danger-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  background-color: #fceaea;
  margin-bottom: 1rem;
}

.danger-icon-circle i {
  font-size: 2rem;
  color: #dc3545;
}

.danger-msg-title {
  font-weight: 600;
  color: #212529;
  font-size: 14px;
  margin-bottom: 0.25rem;
}

.danger-msg-subtitle {
  color: #000;
  font-size: 12px;
}

/* passes end */

/* ai issue css */

.ai-search-badge-small {
  background-color: #63b3ed;
  color: #ffffff;
  padding: 2px 12px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
  border: none;
  vertical-align: middle;
}

/* Fix link styling if needed */

.fix-link {
  color: #000;
  border-bottom: 1px dashed #ccc;
}

/* ai issue end */

/* Desktop default */

.popover {
  max-width: 400px !important;
  border-radius: 10px;
}

/* Mobile Devices Fix */

@media (max-width: 576px) {
  .custom-popover {
    max-width: 280px !important;
    margin-left: 10px;
    margin-right: 30px !important;
  }
  .popover {
    max-width: 90vw !important;
    border-radius: 10px;
  }
  .popover .popover-arrow {
    display: block !important;
  }
  .popover-body {
    font-size: 0.75rem;
    padding: 10px;
    word-wrap: break-word;
  }
  h1.fs-3 {
    font-size: 1.3rem !important;
  }
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.fix-tooltip {
  position: absolute;
  width: 380px;
  max-width: 95vw;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  padding: 15px;
  z-index: 9999;
  display: none;
}

.tooltip-columns {
  display: flex;
  gap: 10px;
}

.tooltip-columns div {
  width: 50%;
}

.tooltip-columns .green {
  background: #eaf6ef;
  padding: 8px;
  border-radius: 6px;
}

.fix-tooltip h6 {
  font-size: 13px;
  font-weight: 700;
}

.fix-tooltip p {
  font-size: 12px;
  line-height: 1.5;
}

/* MOBILE BEHAVIOR */

@media (max-width: 768px) {
  .fix-tooltip {
    position: fixed;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%);
    width: 95%;
    max-height: 80vh;
    overflow-y: auto;
  }
}
.text-orange {
  color: #f25c27 !important;
}
.bg-footer {
  background-color: #f25c27 !important;
}
.bg-light-custom {
  background-color: #f4f5f9;
}
.custom-navbar {
  background-color: #f25c27;
  border-bottom: 1px solid #b4b4b4;
  padding: 14px 0;
}
.navbar-brand img {
  height: 24px;
  width: auto;
}
.btn-back-modern {
  --color: #1a1a1a;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 12em;
  height: 2.8em;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.5s;
  z-index: 1;
  font-size: 15px;
  border-radius: 50px;
  font-weight: 500;
  color: var(--color);
  background: #fff;
  text-decoration: none;
}
.btn-back-modern:before {
  content: "";
  position: absolute;
  z-index: -1;
  background: var(--color);
  height: 250px;
  width: 300px;
  border-radius: 50%;
  top: 100%;
  left: 100%;
  transition: all 0.7s;
}
.btn-back-modern:hover {
  color: #fff !important;
}
.btn-back-modern:hover:before {
  top: -50px;
  left: -50px;
}
.btn-back-modern:active:before {
  background: #000;
  transition: background 0s;
}
.btn-back-modern i {
  font-size: 18px;
  transition: transform 0.3s ease;
}
.btn-back-modern:hover i {
  transform: translateX(-3px);
}
/* ── Navbar auth link (logout/login) ─────────────────────── */
.navbar-auth-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.navbar-auth-link:hover {
  opacity: 1;
}
.navbar-auth-icon {
  font-size: 15px;
}

/* ── Offcanvas auth button ───────────────────────────────── */
.offcanvas-auth-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  text-decoration: none;
  transition: background 0.15s;
}
.offcanvas-logout {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.offcanvas-logout:hover {
  background: #fee2e2;
  color: #dc2626;
}
.offcanvas-login {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}
.offcanvas-login:hover {
  background: #dcfce7;
  color: #16a34a;
}

@media (max-width: 767.97px) {
  .custom-navbar {
    padding: 14px 0;
  }
  .navbar-brand img {
    height: 18px;
    padding-bottom: 3px;
  }
  .btn-back-modern {
    width: auto;
    padding: 0 12px;
    height: 2.2em;
    font-size: 13px;
  }
  .btn-back-modern i {
    font-size: 16px;
  }
  .btn-back-modern:before {
    height: 150px;
    width: 200px;
  }
  /* hide text, show icon only on small screens */
  .navbar-auth-text {
    display: none;
  }
  .navbar-auth-icon {
    font-size: 17px;
  }
}
@media (max-width: 400px) {
  .btn-back-modern span {
    display: none;
  }
  .btn-back-modern:after {
    content: "Back";
  }
}
/* ── Desktop Sidebar ─────────────────────────────────────────── */
.uber-sidebar {
  height: calc(100vh - 60px);
  border-right: 1px solid #f0f0f0;
  padding: 10px 0 28px;
  overflow-y: auto;
  position: sticky;
  top: 60px;
  background: #fff;
}
.uber-sidebar::-webkit-scrollbar {
  width: 4px;
}
.uber-sidebar::-webkit-scrollbar-thumb {
  background: #ebebeb;
  border-radius: 10px;
}

/* Section group headings */
.sidebar-heading {
  padding: 18px 14px 5px;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #b0b8c1;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid #f5f5f5;
  margin-top: 6px;
}
.sidebar-heading .bi {
  font-size: 0.7rem;
}
.sidebar-heading:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 6px;
}

/* Menu list */
.sidebar-menu-list {
  list-style: none;
  padding: 3px 8px;
  margin: 0;
}

/* Menu link */
.menu-item-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  color: #4a5568;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 8px;
  transition:
    background 0.15s,
    color 0.15s;
  border-left: none;
}
.menu-item-link .sb-icon {
  font-size: 0.88rem;
  color: #c8ced6;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  transition: color 0.15s;
}
.menu-item-link:hover {
  background: #fff4f0;
  color: #f25c27;
}
.menu-item-link:hover .sb-icon {
  color: #f25c27;
}
.menu-item-link.active {
  background: #fff1ec;
  color: #f25c27;
  font-weight: 600;
}
.menu-item-link.active .sb-icon {
  color: #f25c27;
}

/* Badge */
.badge-new {
  background-color: #f25c27;
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── Mobile Offcanvas Sidebar ────────────────────────────────── */
.offcanvas-custom {
  width: 272px !important;
}
.offcanvas-custom .offcanvas-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 100%);
  padding: 18px 20px;
  border-bottom: none;
}
.offcanvas-custom .offcanvas-title {
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.offcanvas-custom .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.7;
}
.offcanvas-custom .offcanvas-body {
  padding: 0;
}
.mobile-sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
#mobileToolsMenu .offcanvas-body::-webkit-scrollbar {
  width: 4px;
}
#mobileToolsMenu .offcanvas-body::-webkit-scrollbar-thumb {
  background: #ebebeb;
  border-radius: 10px;
}
#mobileToolsMenu .offcanvas-body {
  height: calc(100vh - 64px);
  overflow-y: auto;
  padding-bottom: 40px;
  -webkit-overflow-scrolling: touch;
}

/* Mobile section headings */
.mobile-sidebar-heading {
  padding: 16px 16px 5px;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #b0b8c1;
  background: #fff;
  border-top: 1px solid #f5f5f5;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.mobile-sidebar-heading .bi {
  font-size: 0.7rem;
}
.mobile-sidebar-heading:first-child {
  border-top: none;
  margin-top: 0;
}

/* Mobile link */
.mobile-menu-item-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: #4a5568;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition:
    background 0.15s,
    color 0.15s;
  border-left: none;
}
.mobile-menu-item-link .sb-icon {
  font-size: 0.9rem;
  color: #c8ced6;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  transition: color 0.15s;
}
.mobile-menu-item-link:hover {
  background: #fff4f0;
  color: #f25c27;
}
.mobile-menu-item-link:hover .sb-icon {
  color: #f25c27;
}
.mobile-menu-item-link.active {
  background: #fff1ec;
  color: #f25c27;
  font-weight: 600;
}
.mobile-menu-item-link.active .sb-icon {
  color: #f25c27;
}
.mobile-menu-item-link i {
  font-size: inherit;
  margin: 0;
}
@media (max-width: 991.98px) {
  .uber-sidebar {
    display: none;
  }
}
@media (max-width: 400px) {
  .btn-back-modern span {
    display: none;
  }
  .btn-back-modern:after {
    content: "Back";
  }
  .navbar-brand img {
    height: 20px;
  }
}
.btn-orange {
  background-color: #f25c27 !important;
  color: #fff !important;
  transition: all 0.3s ease;
}
.btn-orange:hover {
  background-color: #ff8051 !important;
  color: #fff !important;
}

/* ============================================================
   SITE AUDIT — SHARED COMPONENT STYLES
   (extracted from inline <style> blocks)
============================================================ */

/* ── Spin animation (common-scripts) ───────────────────────── */
.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ── Audit Header ───────────────────────────────────────────── */
.ah-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.ah-body {
  padding: 12px 16px;
}
.ah-flex-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
}
.ah-left-cluster {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.ah-info-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.ah-group-top {
  gap: 12px;
}
.ah-group-bottom {
  gap: 8px;
}
.ah-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #212529;
  margin: 0;
  line-height: 1;
}
.ah-url {
  font-size: 0.8rem;
  color: #6c757d;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.18s;
}
.ah-url:hover {
  color: #f25c27;
}
.ah-url .bi {
  font-size: 0.68rem;
}
.ah-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 20px;
  padding: 2px 9px;
  border: 1px solid transparent;
}
.ah-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ah-st-done {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}
.ah-st-done .ah-status-dot {
  background: #34d399;
}
.ah-st-live {
  background: #fff7ed;
  color: #ea580c;
  border-color: #fed7aa;
}
.ah-st-live .ah-status-dot {
  background: #f25c27;
  animation: ah-dot-pulse 1.4s ease-in-out infinite;
}
.ah-st-idle {
  background: #f9fafb;
  color: #6b7280;
  border-color: #e5e7eb;
}
.ah-st-idle .ah-status-dot {
  background: #9ca3af;
}
.ah-st-fail {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}
.ah-st-fail .ah-status-dot {
  background: #f87171;
}
@keyframes ah-dot-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(242, 92, 39, 0.5);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(242, 92, 39, 0);
  }
}
.ah-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  color: #6c757d;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}
.ah-chip .bi {
  font-size: 0.7rem;
  color: #adb5bd;
}
.rerun-audit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
  padding: 6px 14px;
  border: 1.5px solid #fdd5c5;
  background: #fff7f4;
  color: #f25c27;
  cursor: pointer;
  transition:
    background 0.18s,
    border-color 0.18s,
    color 0.18s;
  white-space: nowrap;
  flex-shrink: 0;
}
.rerun-audit:hover:not([disabled]) {
  background: #f25c27;
  border-color: #f25c27;
  color: #fff;
}
.rerun-audit[disabled] {
  background: #fff7f4;
  border-color: #fdd5c5;
  color: #f25c27;
  opacity: 0.85;
  cursor: default;
  pointer-events: none;
}

/* ── Audit Progress Card ────────────────────────────────────── */
.ap-card {
  background: #fff;
  border: 1px solid #e9ecef;
  padding: 14px 18px 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
.ap-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.ap-spinner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f25c27;
  flex-shrink: 0;
  animation: ap-pulse 1.4s ease-in-out infinite;
}
@keyframes ap-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(242, 92, 39, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(242, 92, 39, 0);
  }
}
.ap-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: #212529;
}
.ap-pages-badge {
  margin-left: auto;
  font-size: 0.75rem;
  color: #6c757d;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
}
.ap-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 12px;
}
.ap-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.ap-step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #dee2e6;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #adb5bd;
  transition: all 0.3s ease;
}
.ap-step.ap-done .ap-step-dot {
  border-color: #34d399;
  background: #34d399;
  color: #fff;
}
.ap-step.ap-active .ap-step-dot {
  border-color: #f25c27;
  background: #fff3ef;
  color: #f25c27;
  animation: ap-step-pulse 1.6s ease-in-out infinite;
}
@keyframes ap-step-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(242, 92, 39, 0.35);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(242, 92, 39, 0);
  }
}
.ap-step-label {
  font-size: 0.68rem;
  color: #adb5bd;
  white-space: nowrap;
  transition: color 0.3s;
}
.ap-step.ap-done .ap-step-label {
  color: #34d399;
}
.ap-step.ap-active .ap-step-label {
  color: #f25c27;
  font-weight: 600;
}
.ap-line {
  flex: 1;
  height: 2px;
  background: #dee2e6;
  margin-bottom: 14px;
  border-radius: 2px;
  transition: background 0.4s;
  min-width: 8px;
}
.ap-line.ap-done {
  background: #34d399;
}
.ap-bar-section {
  margin-top: 2px;
}
.ap-bar-track {
  height: 5px;
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
}
.ap-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f25c27, #ff8c5a);
  border-radius: 8px;
  transition: width 0.6s ease;
  min-width: 4px;
}
.ap-bar-indeterminate .ap-bar-fill {
  width: 40% !important;
  animation: ap-indeterminate 1.6s ease-in-out infinite;
}
@keyframes ap-indeterminate {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(260%);
  }
}
.ap-bar-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.ap-bar-text {
  font-size: 0.7rem;
  color: #6c757d;
}
.ap-bar-pct {
  font-size: 0.7rem;
  color: #f25c27;
  font-weight: 600;
}

/* ── Audit Nav ──────────────────────────────────────────────── */
.sa-nav-wrap {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  padding: 5px;
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.sa-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #6c757d;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.15s,
    background 0.15s;
}
.sa-nav-link .bi {
  font-size: 0.78rem;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.sa-nav-link:hover {
  color: #f25c27;
  background: rgba(242, 92, 39, 0.07);
}
.sa-nav-link:hover .bi {
  opacity: 1;
}
.sa-nav-link.sa-active {
  background: #fff;
  color: #f25c27;
  font-weight: 600;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.09);
}
.sa-nav-link.sa-active .bi {
  opacity: 1;
}

/* ── Overview page ──────────────────────────────────────────── */
.sa-btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff3ef;
  color: #f25c27;
  border: 1px solid #fdd5c5;
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.sa-btn-soft .bi-arrow-right {
  transition: transform 0.2s ease;
}
.sa-btn-soft:hover {
  background: linear-gradient(90deg, #f25c27, #f47248);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(242, 92, 39, 0.2);
}
.sa-btn-soft:hover .bi-arrow-right {
  transform: translateX(3px);
}
.ov-score-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  height: 100%;
}
.ov-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ov-sc-body {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ov-sc-donut {
  flex-shrink: 0;
}
.ov-sc-stats {
  flex: 1;
  min-width: 0;
}
.ov-stat-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  border-bottom: 1px solid #f8f8f8;
  font-size: 0.8rem;
}
.ov-stat-row:last-child {
  border-bottom: none;
}
.ov-stat-label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6c757d;
  min-width: 0;
}
.ov-stat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ov-stat-val {
  min-width: 28px;
  text-align: right;
  font-weight: 700;
  color: #212529;
  white-space: nowrap;
}
.ov-stat-unit {
  font-size: 0.68rem;
  font-weight: 400;
  color: #9ca3af;
  margin-left: 2px;
}
.ov-bar {
  height: 5px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  background: #f0f0f0;
  margin-top: 12px;
}
.ov-bar-seg {
  height: 100%;
  transition: width 0.6s ease;
}
.ov-ai-insight {
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.ov-issues-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-top: 24px;
}
.ov-issues-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #f2f2f2;
}
.ov-issues-header h6 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #212529;
}
.ov-issues-header a {
  font-size: 0.75rem;
  color: #f25c27;
  text-decoration: none;
  font-weight: 600;
}
.ov-issues-header a:hover {
  text-decoration: underline;
}
.ov-issue-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid #f8f8f8;
  transition: background 0.15s;
}
.ov-issue-row:last-child {
  border-bottom: none;
}
.ov-issue-row:hover {
  background: #fafafa;
}
.ov-sev-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.ov-sev-error {
  background: #fef2f2;
  color: #dc2626;
}
.ov-sev-warning {
  background: #fffbeb;
  color: #b45309;
}
.ov-sev-notice {
  background: #eff6ff;
  color: #2563eb;
}
.ov-issue-name {
  font-size: 0.83rem;
  font-weight: 500;
  color: #212529;
  text-decoration: none;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ov-issue-name:hover {
  color: #f25c27;
}
.ov-issue-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ov-count {
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 9px;
  text-decoration: none;
  white-space: nowrap;
}
.ov-count-error {
  background: #fef2f2;
  color: #dc2626;
}
.ov-count-warning {
  background: #fffbeb;
  color: #b45309;
}
.ov-count-notice {
  background: #eff6ff;
  color: #2563eb;
}
.ov-count:hover {
  opacity: 0.8;
}
.ov-fix-btn {
  font-size: 0.72rem;
  color: #f25c27;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  padding: 2px 8px;
  border: 1px solid #fdd5c5;
  border-radius: 6px;
  background: #fff7f4;
  transition: background 0.15s;
}
.ov-fix-btn:hover {
  background: #fff3ef;
  color: #f25c27;
}
.ov-empty {
  text-align: center;
  padding: 40px 20px;
}
.ov-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ecfdf5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #059669;
  margin-bottom: 12px;
}
.ov-empty h5 {
  font-weight: 700;
  color: #212529;
  margin-bottom: 4px;
}
.ov-empty p {
  font-size: 0.85rem;
  color: #6c757d;
  margin: 0;
}

/* ── Crawled Pages (pages.php) ──────────────────────────────── */
.pg-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.pg-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid #e9ecef;
  border-radius: 50px;
  padding: 7px 14px;
  flex: 1;
  max-width: 380px;
  transition: border-color 0.15s;
}
.pg-search:focus-within {
  border-color: #f25c27;
}
.pg-search i {
  color: #adb5bd;
  font-size: 0.82rem;
  flex-shrink: 0;
}
.pg-search input {
  border: none;
  outline: none;
  font-size: 0.83rem;
  color: #212529;
  background: transparent;
  width: 100%;
}
.pg-search input::placeholder {
  color: #adb5bd;
}
.pg-export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid #e9ecef;
  background: #fff;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.pg-export:hover {
  border-color: #adb5bd;
  color: #343a40;
}
.pg-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}
#myCrawlTable {
  width: 100% !important;
  margin: 0 !important;
  border-collapse: collapse;
}
#myCrawlTable thead th {
  background: #f8f9fa;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9ca3af;
  border-bottom: 1px solid #e9ecef;
  border-top: none;
  padding: 11px 16px;
  white-space: nowrap;
}
#myCrawlTable thead th.sorting,
#myCrawlTable thead th.sorting_asc,
#myCrawlTable thead th.sorting_desc {
  cursor: pointer;
}
#myCrawlTable thead th.sorting::after,
#myCrawlTable thead th.sorting_asc::after,
#myCrawlTable thead th.sorting_desc::after {
  content: "";
  display: inline-block;
  margin-left: 4px;
  opacity: 0.4;
}
#myCrawlTable thead th.sorting_asc::after {
  content: "↑";
  opacity: 0.8;
}
#myCrawlTable thead th.sorting_desc::after {
  content: "↓";
  opacity: 0.8;
}
#myCrawlTable tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid #f4f4f4;
  vertical-align: middle;
  font-size: 0.83rem;
  color: #212529;
}
#myCrawlTable tbody tr:last-child td {
  border-bottom: none;
}
#myCrawlTable tbody tr:hover td {
  background: #fafafa;
}
.pg-url-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.pg-url-link {
  color: #343a40;
  text-decoration: none;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  transition: color 0.15s;
}
.pg-url-link:hover {
  color: #f25c27;
}
.pg-ext {
  color: #ced4da;
  font-size: 0.68rem;
  flex-shrink: 0;
  text-decoration: none;
  transition: color 0.15s;
}
.pg-ext:hover {
  color: #f25c27;
}
.pg-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 9px;
}
.pg-ok {
  background: #ecfdf5;
  color: #059669;
}
.pg-err {
  background: #fef2f2;
  color: #dc2626;
}
.pg-ct {
  font-size: 0.74rem;
  color: #adb5bd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
  display: block;
}
.pg-issues-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 9px;
  background: #fef2f2;
  color: #dc2626;
  text-decoration: none;
  white-space: nowrap;
}
.pg-issues-badge:hover {
  opacity: 0.8;
}
/* ── Crawled pages: Discovered From column ────────────────── */
.pg-found-on {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  color: #6c757d;
  text-decoration: none;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pg-found-on:hover {
  color: #f25c27;
  text-decoration: underline;
}
.pg-found-on .bi {
  font-size: 0.65rem;
  flex-shrink: 0;
}
.pg-found-none {
  font-size: 0.74rem;
  color: #ced4da;
}

.pg-healthy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #059669;
}
.dataTables_wrapper .dataTables_paginate {
  padding: 12px 16px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: flex-end;
}
.dataTables_filter,
.dataTables_length,
.dataTables_info {
  display: none;
}
.pagination .page-item.active .page-link {
  background: #f25c27 !important;
  border-color: #f25c27 !important;
  color: #fff !important;
}
.pagination .page-link {
  color: #6c757d;
  border-color: #e9ecef;
  border-radius: 8px !important;
  margin: 0 2px;
  font-size: 0.8rem;
  padding: 5px 10px;
}
.pagination .page-link:hover {
  background: #fff7f4;
  border-color: #fdd5c5;
  color: #f25c27;
}
.pagination .page-link:focus {
  box-shadow: 0 0 0 3px rgba(242, 92, 39, 0.15);
}
.pagination .page-item.disabled .page-link {
  border-color: #e9ecef;
  color: #ced4da;
}
.pg-empty {
  text-align: center;
  padding: 60px 20px;
}
.pg-empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f8f9fa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #ced4da;
  margin-bottom: 14px;
}
.pg-empty h5 {
  font-weight: 700;
  color: #343a40;
  margin-bottom: 4px;
}
.pg-empty p {
  font-size: 0.85rem;
  color: #9ca3af;
  margin: 0;
}

/* ── Issues List (issues.php) ───────────────────────────────── */
.iss-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.iss-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid #e9ecef;
  background: #fff;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.iss-filter:hover {
  border-color: #adb5bd;
  color: #343a40;
}
.iss-filter.active {
  border-color: #343a40;
  background: #343a40;
  color: #fff;
}
.iss-filter.iss-f-error {
  color: #dc2626;
  border-color: #fecaca;
  background: #fef2f2;
}
.iss-filter.iss-f-error:hover {
  border-color: #dc2626;
}
.iss-filter.iss-f-error.active {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}
.iss-filter.iss-f-warning {
  color: #b45309;
  border-color: #fde68a;
  background: #fffbeb;
}
.iss-filter.iss-f-warning:hover {
  border-color: #f59e0b;
}
.iss-filter.iss-f-warning.active {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #fff;
}
.iss-filter.iss-f-notice {
  color: #2563eb;
  border-color: #bfdbfe;
  background: #eff6ff;
}
.iss-filter.iss-f-notice:hover {
  border-color: #3b82f6;
}
.iss-filter.iss-f-notice.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}
.iss-filter-count {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 0 6px;
  line-height: 1.6;
}
.iss-filter.active .iss-filter-count {
  background: rgba(255, 255, 255, 0.25);
}
.iss-filter-spacer {
  flex: 1;
}
.iss-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6c757d;
  cursor: pointer;
  user-select: none;
}
.iss-toggle-wrap input {
  display: none;
}
.iss-toggle-track {
  width: 34px;
  height: 18px;
  border-radius: 20px;
  background: #dee2e6;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.iss-toggle-wrap input:checked ~ .iss-toggle-track {
  background: #f25c27;
}
.iss-toggle-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.iss-toggle-wrap input:checked ~ .iss-toggle-track::after {
  transform: translateX(16px);
}
.iss-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}
.iss-group-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid transparent;
}
.iss-gh-error {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
  border-left: 3px solid #f87171;
}
.iss-gh-warning {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
  border-left: 3px solid #fbbf24;
}
.iss-gh-notice {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
  border-left: 3px solid #60a5fa;
}
.iss-gh-count {
  margin-left: auto;
  font-weight: 700;
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  padding: 1px 7px;
}
.iss-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid #f8f8f8;
  transition: background 0.12s;
}
.iss-row:last-child {
  border-bottom: none;
}
.iss-row:hover {
  background: #fafafa;
}
.iss-sev {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  flex-shrink: 0;
}
.iss-sev-error {
  background: #fef2f2;
  color: #dc2626;
}
.iss-sev-warning {
  background: #fffbeb;
  color: #b45309;
}
.iss-sev-notice {
  background: #eff6ff;
  color: #2563eb;
}
.iss-sev-pass {
  background: #ecfdf5;
  color: #059669;
}
.iss-name {
  flex: 1;
  min-width: 0;
  font-size: 0.83rem;
  font-weight: 500;
  color: #212529;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.iss-name:hover {
  color: #f25c27;
}
.iss-row.no-issue .iss-name {
  color: #adb5bd;
}
.iss-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.iss-count {
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 9px;
  text-decoration: none;
  white-space: nowrap;
}
.iss-count-error {
  background: #fef2f2;
  color: #dc2626;
}
.iss-count-warning {
  background: #fffbeb;
  color: #b45309;
}
.iss-count-notice {
  background: #eff6ff;
  color: #2563eb;
}
.iss-count:hover {
  opacity: 0.8;
}
.iss-fix {
  font-size: 0.72rem;
  color: #f25c27;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  padding: 2px 8px;
  border: 1px solid #fdd5c5;
  border-radius: 6px;
  background: #fff7f4;
  transition: background 0.15s;
}
.iss-fix:hover {
  background: #fff3ef;
  color: #f25c27;
}

/* ── Issue Detail (issue.php) ───────────────────────────────── */
.iss-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6c757d;
  text-decoration: none;
  padding: 6px 12px 6px 8px;
  border: 1.5px solid #e9ecef;
  border-radius: 50px;
  background: #fff;
  transition: all 0.15s;
  margin-bottom: 18px;
}
.iss-back:hover {
  border-color: #adb5bd;
  color: #343a40;
}
.iss-hero {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.iss-hero-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.iss-hero-icon.error {
  background: #fef2f2;
  color: #dc2626;
}
.iss-hero-icon.warning {
  background: #fffbeb;
  color: #b45309;
}
.iss-hero-icon.notice {
  background: #eff6ff;
  color: #2563eb;
}
.iss-hero-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #212529;
  line-height: 1.3;
}
.iss-hero-type {
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 9px;
  display: inline-block;
  margin-top: 4px;
}
.iss-hero-type.error {
  background: #fef2f2;
  color: #dc2626;
}
.iss-hero-type.warning {
  background: #fffbeb;
  color: #b45309;
}
.iss-hero-type.notice {
  background: #eff6ff;
  color: #2563eb;
}
.iss-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.iss-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid #e9ecef;
  border-radius: 50px;
  padding: 7px 14px;
  flex: 1;
  max-width: 360px;
  transition: border-color 0.15s;
}
.iss-search:focus-within {
  border-color: #f25c27;
}
.iss-search i {
  color: #adb5bd;
  font-size: 0.82rem;
  flex-shrink: 0;
}
.iss-search input {
  border: none;
  outline: none;
  font-size: 0.83rem;
  color: #212529;
  background: transparent;
  width: 100%;
}
.iss-search input::placeholder {
  color: #adb5bd;
}
.iss-export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid #e9ecef;
  background: #fff;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.iss-export:hover {
  border-color: #adb5bd;
  color: #343a40;
}
.iss-table-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}
.iss-url-wrap {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.iss-url-link {
  color: #343a40;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
  flex: 1;
  min-width: 0;
}
.iss-url-link:hover {
  color: #f25c27;
}
.iss-url-ext {
  color: #ced4da;
  font-size: 0.7rem;
  flex-shrink: 0;
  text-decoration: none;
  margin-top: 2px;
  transition: color 0.15s;
}
.iss-url-ext:hover {
  color: #f25c27;
}
.iss-msg-cell {
  color: #6c757d;
  font-size: 0.8rem;
}
.iss-fix-panel {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}
.iss-fix-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}
.iss-fix-hdr-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fff7f4;
  color: #f25c27;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.iss-fix-hdr-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #212529;
}
.iss-fix-hdr-sub {
  font-size: 0.76rem;
  color: #9ca3af;
  margin-top: 1px;
}
.iss-fix-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (max-width: 640px) {
  .iss-fix-body {
    grid-template-columns: 1fr;
  }
}
.iss-fix-col {
  padding: 18px 20px;
}
.iss-fix-col:first-child {
  border-right: 1px solid #f0f0f0;
}
.iss-fix-col-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9ca3af;
  margin-bottom: 8px;
}
.iss-fix-col-label i {
  font-size: 0.78rem;
}
.iss-fix-text {
  font-size: 0.83rem;
  color: #495057;
  line-height: 1.6;
}
.iss-sitewide {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  margin-bottom: 20px;
}
.iss-sitewide-icon {
  color: #b45309;
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.iss-sitewide-text {
  font-size: 0.83rem;
  color: #92400e;
  font-weight: 500;
}
.iss-empty {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
}
.iss-empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ecfdf5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #059669;
  margin-bottom: 14px;
}
.iss-empty h5 {
  font-weight: 700;
  color: #343a40;
  margin-bottom: 4px;
}
.iss-empty p {
  font-size: 0.85rem;
  color: #9ca3af;
  margin: 0;
}
.iss-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9ca3af;
  margin-bottom: 10px;
}

/* ── Page Detail (page.php) ─────────────────────────────────── */
.pd-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #6c757d;
  text-decoration: none;
  padding: 6px 12px 6px 8px;
  border: 1.5px solid #e9ecef;
  border-radius: 50px;
  background: #fff;
  transition: all 0.15s;
  margin-bottom: 18px;
}
.pd-back:hover {
  border-color: #adb5bd;
  color: #343a40;
}
.pd-hero {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.pd-hero-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #adb5bd;
  flex-shrink: 0;
  margin-top: 2px;
}
.pd-hero-url {
  font-size: 0.9rem;
  font-weight: 600;
  color: #212529;
  text-decoration: none;
  word-break: break-all;
  line-height: 1.4;
  transition: color 0.15s;
}
.pd-hero-url:hover {
  color: #f25c27;
}
.pd-hero-url i {
  font-size: 0.75rem;
  vertical-align: middle;
  margin-left: 4px;
  color: #ced4da;
}
.pd-hero-title {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 3px;
}
/* ── Page detail: Discovered From ────────────────────────── */
.pd-found-on {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 6px;
}
.pd-found-on i {
  flex-shrink: 0;
}
.pd-found-on a {
  color: #6c757d;
  text-decoration: none;
  word-break: break-all;
}
.pd-found-on a:hover {
  color: #f25c27;
  text-decoration: underline;
}

/* issue.php — discovered-from within message cell */
.iss-found-on {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  font-size: 0.72rem;
  color: #6c757d;
  flex-wrap: wrap;
}
.iss-found-on i {
  flex-shrink: 0;
}
.iss-found-on a {
  color: #6c757d;
  text-decoration: none;
  word-break: break-all;
}
.iss-found-on a:hover {
  color: #f25c27;
  text-decoration: underline;
}
.iss-found-on .bi-box-arrow-up-right {
  font-size: 0.62rem;
}

.pd-stat-tile {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.pd-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9ca3af;
  margin-bottom: 6px;
}
.pd-stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #212529;
  line-height: 1;
}
.pd-stat-value.ok {
  color: #059669;
}
.pd-stat-value.err {
  color: #dc2626;
}
.pd-stat-value.warn {
  color: #b45309;
}
.pd-checks-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}
.pd-checks-hdr {
  padding: 11px 18px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 7px;
}
.pd-hdr-error {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
  border-left: 3px solid #f87171;
}
.pd-hdr-warning {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
  border-left: 3px solid #fbbf24;
}
.pd-hdr-notice {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
  border-left: 3px solid #60a5fa;
}
.pd-check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid #f8f8f8;
  transition: background 0.12s;
}
.pd-check-row:last-child {
  border-bottom: none;
}
.pd-check-row:hover {
  background: #fafafa;
}
.pd-check-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.pd-icon-error {
  background: #fef2f2;
  color: #dc2626;
}
.pd-icon-warning {
  background: #fffbeb;
  color: #b45309;
}
.pd-icon-notice {
  background: #eff6ff;
  color: #2563eb;
}
.pd-icon-pass {
  background: #ecfdf5;
  color: #059669;
}
.pd-check-body {
  flex: 1;
  min-width: 0;
}
.pd-check-name {
  font-size: 0.83rem;
  font-weight: 500;
  color: #212529;
  line-height: 1.35;
}
.pd-check-name.passed {
  color: #adb5bd;
}
.pd-check-cat {
  font-size: 0.73rem;
  color: #bec3c9;
  margin-top: 1px;
}
.pd-check-msg {
  font-size: 0.78rem;
  color: #6c757d;
  margin-top: 4px;
  line-height: 1.4;
}
.pd-badge {
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 9px;
  flex-shrink: 0;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 3px;
}
.pd-badge-error {
  background: #fef2f2;
  color: #dc2626;
}
.pd-badge-warning {
  background: #fffbeb;
  color: #b45309;
}
.pd-badge-notice {
  background: #eff6ff;
  color: #2563eb;
}
.pd-badge-pass {
  background: #ecfdf5;
  color: #059669;
}
.pd-badge-pending {
  background: #f8f9fa;
  color: #9ca3af;
}
.pd-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9ca3af;
  margin-bottom: 10px;
}
/* ── Project Cards ─────────────────────────────────────── */
.sa-project-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  overflow: hidden;
}
.sa-project-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Header Section */
.sa-project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  flex-wrap: wrap;
  gap: 15px;
}
.sa-project-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.sa-project-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #212529;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sa-project-title:hover {
  color: #f25c27;
}
.sa-project-url {
  font-size: 0.85rem;
  color: #6c757d;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sa-project-url:hover {
  color: #f25c27;
}

/* Status Badges */
.sa-badge-live {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sa-badge-done {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Actions */
.sa-project-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sa-btn-delete {
  background: #fff0f0;
  color: #dc3545;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}
.sa-btn-delete:hover {
  background: #dc3545;
  color: #fff;
}

/* Divider */
.sa-project-sep {
  margin: 0;
  border-top: 1px solid #f2f2f2;
}

/* Metrics Grid */
.sa-project-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 15px;
  padding: 16px 24px 20px;
  background: #fafbfc;
}
.sa-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sa-metric-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #adb5bd;
  font-weight: 700;
}
.sa-metric-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: #212529;
  text-decoration: none;
}
a.sa-metric-val:hover {
  color: #f25c27;
}

/* Score Colours */
.sa-val-good {
  color: #059669 !important;
}
.sa-val-mid {
  color: #b45309 !important;
}
.sa-val-bad {
  color: #dc2626 !important;
}
/* ── Mobile Specific Adjustments ── */
@media (max-width: 767.98px) {
  .ah-left-cluster {
    width: 100%; /* Only force 100% width on mobile */
  }
  .ah-flex-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .ah-name {
    font-size: 1.25rem; /* Scales down title slightly to fit better with URL */
    line-height: 1.2;
    margin-bottom: 0;
  }

  .ah-group-top {
    gap: 8px; /* Tighter spacing on mobile */
  }

  /* Make the chips smaller and tighter on mobile so they fit on one line */
  .ah-chip,
  .ah-status {
    font-size: 0.75rem;
    padding: 4px 10px;
    margin: 0;
  }

  .rerun-audit {
    width: auto;
    padding: 4px 8px;
    font-size: 0.75rem;
    align-self: flex-start;
  }
}
.sa-nav-wrap {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-top: 0 !important;
  border-bottom-right-radius: 12px;
  border-bottom-left-radius: 12px;
  padding: 5px;
  display: flex;
  gap: 4px;
  margin-bottom: 24px;

  /* Mobile-friendly horizontal scroll */
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* Smooth momentum scrolling on iOS */
  scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.sa-nav-wrap::-webkit-scrollbar {
  display: none;
}

.sa-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px; /* Slightly larger tap target */
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6c757d;
  text-decoration: none;
  white-space: nowrap; /* Prevent text from wrapping inside the pill */
  flex-shrink: 0; /* Prevent the buttons from shrinking when scrolling */
  transition:
    color 0.15s,
    background 0.15s;
}

.sa-nav-link .bi {
  font-size: 0.85rem;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.sa-nav-link:hover {
  color: #f25c27;
  background: rgba(242, 92, 39, 0.07);
}

.sa-active {
  background: #fff;
  color: #212529;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.sa-active .bi {
  color: #f25c27;
  opacity: 1;
}

/* ============================================================
   PASSED CHECKS  (.pc-*)
   passed.php
   ============================================================ */

/* Summary bar */
.pc-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 16px;
}
.pc-summary-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.pc-summary-count {
  font-size: 1.6rem;
  font-weight: 700;
  color: #15803d;
  line-height: 1;
}
.pc-summary-label {
  font-size: 0.8rem;
  color: #16a34a;
  margin-top: 3px;
}

/* Main card */
.pc-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

/* Category group header */
.pc-cat-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f0fdf4;
  color: #15803d;
  border-bottom: 1px solid #bbf7d0;
  border-left: 3px solid #4ade80;
}
.pc-cat-count {
  margin-left: auto;
  font-weight: 700;
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  padding: 1px 7px;
}

/* Individual check row */
.pc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid #f8f8f8;
  transition: background 0.12s;
}
.pc-row:last-child {
  border-bottom: none;
}
.pc-row:hover {
  background: #fafafa;
}

/* Green check icon box */
.pc-check-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  background: #dcfce7;
  color: #16a34a;
}

/* Check name */
.pc-name {
  font-size: 0.88rem;
  color: #1e293b;
  font-weight: 500;
  flex: 1;
}

/* Pages passed badge */
.pc-pages-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #16a34a;
  background: #dcfce7;
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Empty state */
.pc-empty {
  text-align: center;
  padding: 52px 24px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
}
.pc-empty-icon {
  font-size: 2.8rem;
  color: #cbd5e1;
  margin-bottom: 14px;
}
.pc-empty h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
.pc-empty p {
  font-size: 0.85rem;
  color: #94a3b8;
  max-width: 360px;
  margin: 0 auto;
}

@media (max-width: 576px) {
  .pc-summary {
    padding: 12px 14px;
    gap: 10px;
  }
  .pc-summary-count {
    font-size: 1.3rem;
  }
  .pc-pages-badge {
    display: none;
  }
}

/* ============================================================
   INDEX HERO + FORM  (.idx-*)
   index.php — hero banner, URL input row, form card, usage strip
   ============================================================ */

/* Hero banner */
.idx-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 55%, #3b1f5e 100%);
  border-radius: 16px;
  padding: 38px 36px 32px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.idx-hero::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(242, 92, 39, 0.28) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.idx-hero::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 30%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 179, 71, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.idx-hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #f25c27;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.idx-hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.idx-hero-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 22px;
  max-width: 820px;
  line-height: 1.65;
}
.idx-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.idx-features span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 4px 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.idx-features span .bi {
  color: #f25c27;
  font-size: 0.82rem;
}

/* Form card */
.idx-form-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 24px;
}
.idx-form-body {
  padding: 24px 28px 20px;
}

/* URL row — big search-bar style */
.idx-url-row {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 4px 4px 4px 14px;
  margin-bottom: 18px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.idx-url-row:focus-within {
  border-color: #f25c27;
  box-shadow: 0 0 0 4px rgba(242, 92, 39, 0.11);
  background: #fff;
}
.idx-url-icon {
  color: #adb5bd;
  font-size: 1.1rem;
  margin-right: 8px;
  flex-shrink: 0;
}
.idx-url-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.98rem;
  color: #212529;
  padding: 9px 0;
  outline: none;
  min-width: 0;
}
.idx-url-input::placeholder {
  color: #adb5bd;
}
.idx-run-btn {
  background: linear-gradient(90deg, #f25c27, #f47248);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition:
    box-shadow 0.2s,
    transform 0.15s;
}
.idx-run-btn:hover:not(:disabled) {
  box-shadow: 0 4px 14px rgba(242, 92, 39, 0.35);
  transform: translateY(-1px);
  color: #fff;
}
.idx-run-btn:disabled {
  background: #fdd5c5;
  cursor: not-allowed;
  color: #fff;
}

/* Secondary input fields */
.idx-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 6px;
  display: block;
}
.idx-input {
  width: 100%;
  border: 1.5px solid #e9ecef;
  border-radius: 9px;
  padding: 9px 13px;
  font-size: 0.9rem;
  color: #212529;
  background: #fdfdfd;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  outline: none;
}
.idx-input:focus {
  border-color: #f25c27;
  box-shadow: 0 0 0 3px rgba(242, 92, 39, 0.12);
  background: #fff;
}

/* Limit / upgrade notice */
.idx-limit-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 28px 18px;
  padding: 12px 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #92400e;
}
.idx-limit-notice a {
  color: #78350f;
  text-decoration: underline;
}

/* Usage strip at card bottom */
.idx-usage-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 11px 28px;
  background: #fafbfc;
  border-top: 1px solid #f0f0f0;
  font-size: 0.8rem;
  color: #6c757d;
}
.idx-usage-strip span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.idx-usage-strip .bi {
  color: #adb5bd;
}
.idx-usage-strip strong {
  color: #343a40;
}

/* Mobile */
@media (max-width: 575px) {
  .idx-hero {
    padding: 26px 20px 22px;
    border-radius: 12px;
  }
  .idx-hero-title {
    font-size: 1.5rem;
  }
  .idx-hero-sub {
    font-size: 0.88rem;
  }
  .idx-url-row {
    flex-wrap: wrap;
    padding: 10px;
    gap: 8px;
  }
  .idx-url-icon {
    display: none;
  }
  .idx-url-input {
    width: 100%;
    order: 1;
    padding: 6px 0;
  }
  .idx-run-btn {
    width: 100%;
    justify-content: center;
    order: 2;
  }
  .idx-form-body {
    padding: 18px 16px 14px;
  }
  .idx-limit-notice {
    margin: 0 16px 14px;
  }
  .idx-usage-strip {
    padding: 10px 16px;
    gap: 10px;
  }
}

/* ============================================================
   INDEX / DASHBOARD  (.sa-dash-*, .sa-form-*, .sa-btn-primary, etc.)
   index.php
   ============================================================ */

.sa-dash-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-bottom: 24px;
}
.sa-accent-line {
  height: 4px;
  background: linear-gradient(90deg, #f25c27 0%, #ffb347 100%);
}

/* Page heading */
.sa-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #212529;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.sa-title-icon {
  color: #f25c27;
}
.sa-subtitle {
  font-size: 1.05rem;
  color: #6c757d;
  margin-bottom: 0;
}

/* Usage chips row */
.sa-usage-wrap {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.sa-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #495057;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  padding: 6px 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}
.sa-chip strong {
  color: #212529;
}
.sa-chip .bi {
  color: #adb5bd;
  font-size: 0.95rem;
}

/* Form card */
.sa-form-body {
  padding: 24px 30px;
}
.sa-form-label {
  font-weight: 600;
  color: #343a40;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.sa-form-control {
  border-radius: 10px;
  border: 1.5px solid #dee2e6;
  padding: 12px 16px;
  font-size: 1rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  background: #fdfdfd;
}
.sa-form-control:focus {
  border-color: #f25c27;
  box-shadow: 0 0 0 4px rgba(242, 92, 39, 0.15);
  outline: none;
  background: #fff;
}

/* Submit button */
.sa-btn-primary {
  background: linear-gradient(90deg, #f25c27, #f47248);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.sa-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(242, 92, 39, 0.25);
  color: #fff;
}
.sa-btn-primary:disabled {
  background: #fdd5c5;
  color: #fff;
  cursor: not-allowed;
  box-shadow: none;
}

/* Empty state */
.sa-empty-state {
  padding: 60px 20px;
  text-align: center;
  background: #fff;
  border: 2px dashed #e9ecef;
  border-radius: 14px;
  margin-top: 24px;
}
.sa-empty-icon {
  width: 80px;
  height: 80px;
  background: #fff3ef;
  color: #f25c27;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 20px;
}
.sa-empty-title {
  font-weight: 700;
  color: #212529;
  margin-bottom: 8px;
}
.sa-empty-text {
  color: #6c757d;
}

/* Project card left-border health indicator */
.sa-card-running {
  border-left: 4px solid #f25c27;
}
.sa-card-good {
  border-left: 4px solid #059669;
}
.sa-card-mid {
  border-left: 4px solid #b45309;
}
.sa-card-bad {
  border-left: 4px solid #dc2626;
}

/* "View Results" / "View Progress" button */
.sa-btn-view {
  background: #fff7ed;
  color: #f25c27;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  white-space: nowrap;
}
.sa-btn-view:hover {
  background: #f25c27;
  color: #fff;
  border-color: #f25c27;
}

@media (max-width: 576px) {
  .sa-form-body {
    padding: 18px 16px;
  }
  .sa-title {
    font-size: 1.35rem;
  }
  .sa-btn-view span {
    display: none;
  }
}

/* ============================================================
   CRAWL COMPARISON — deltas, trend badges, "New" tags
   overview.php · issues.php · projects-list.php
   ============================================================ */

/* ── Overview: score header delta badge ─────────────────────── */
.ov-delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 6px;
  vertical-align: middle;
}
.ov-delta-up {
  background: #dcfce7;
  color: #15803d;
}
.ov-delta-down {
  background: #fef2f2;
  color: #dc2626;
}
.ov-delta-same {
  background: #f3f4f6;
  color: #6b7280;
}
.ov-delta .bi {
  font-size: 0.65rem;
}

/* ── Overview: stat row delta ───────────────────────────────── */
.ov-stat-delta {
  min-width: 36px;
  text-align: right;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}
.ov-stat-delta-good {
  color: #16a34a;
}
.ov-stat-delta-bad {
  color: #dc2626;
}

/* "vs previous crawl" micro label */
.ov-prev-label {
  font-size: 0.68rem;
  color: #cbd5e1;
  text-align: right;
  margin-top: 4px;
  font-style: italic;
}

/* ── Overview: previous-results notice banner ───────────────── */
.ov-prev-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #92400e;
  margin-bottom: 16px;
}
.ov-prev-notice .bi {
  font-size: 1rem;
  color: #f59e0b;
  flex-shrink: 0;
}


/* ============================================================
   REVIEWS — shared across all tools
   ============================================================ */
.review-buttons-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.review-action-btn {
  padding: 10px 20px;
  border-radius: 15px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.review-action-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}
.review-action-btn:hover::before {
  width: 300px;
  height: 300px;
}
.review-action-btn span {
  position: relative;
  z-index: 1;
}
.review-action-btn i {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
}
.view-reviews-btn {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 0, 0, 0.15);
  color: #0a2540;
  transition: all 0.3s ease;
}
.view-reviews-btn:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.write-review-btn {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border: none;
  box-shadow: 0 10px 30px rgba(245, 87, 108, 0.4);
}
.write-review-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(245, 87, 108, 0.6);
}
.review-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.review-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  z-index: 10000;
}
.modal-header-custom {
  background: linear-gradient(135deg, #c4421b 0%, #f25c27 100%);
  padding: 20px 50px;
  position: relative;
  overflow: hidden;
}
.modal-header-custom::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.modal-header-custom h2 {
  font-family: "Playfair Display", serif;
  color: white;
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 15px;
}
.modal-header-custom h2 i {
  font-size: 2rem;
  color: #fff;
}
.close-modal-btn {
  position: absolute;
  top: 15px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.close-modal-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg) scale(1.1);
}
.modal-body-custom {
  padding: 20px 50px;
  max-height: 60vh;
  overflow-y: auto;
  background: linear-gradient(to bottom, #fff 0%, #f8fafc 100%);
}
.modal-body-custom::-webkit-scrollbar {
  width: 10px;
}
.modal-body-custom::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}
.modal-body-custom::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #c4421b 0%, #f25c27 100%);
  border-radius: 10px;
}
.star-rating-section {
  text-align: center;
  margin-bottom: 20px;
  padding-top: 10px;
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(252, 182, 159, 0.3);
}
.star-rating-label {
  font-weight: 700;
  font-size: 1.3rem;
  color: #8b4513;
  display: block;
}
.star-rating-container {
  display: flex;
  justify-content: start;
  gap: 5px;
  flex-direction: row-reverse;
}
.star-input {
  display: none;
}
.star-label {
  cursor: pointer;
  font-size: 2rem;
  color: #a3a3a3;
  transition: all 0.2s ease;
  position: relative;
}
.star-label:hover,
.star-label:hover ~ .star-label {
  color: #fbbf24;
  transform: scale(1.15) rotate(-5deg);
  filter: drop-shadow(0 5px 15px rgba(251, 191, 36, 0.5));
}
.star-input:checked ~ .star-label {
  color: #fbbf24;
  animation: starPulse 0.5s ease;
}
@keyframes starPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}
.form-group-custom {
  margin-bottom: 10px;
}
.form-label-custom {
  display: block;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-label-custom i {
  color: #f25c27;
  font-size: 1.1rem;
}
.form-input-custom,
.form-textarea-custom {
  width: 100%;
  padding: 8px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  background: white;
  font-family: "Inter", sans-serif;
}
.form-input-custom:focus,
.form-textarea-custom:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}
.form-textarea-custom {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}
.submit-review-btn {
  width: 100%;
  padding: 8px;
  background: linear-gradient(135deg, #c4421b 0%, #f25c27 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}
.submit-review-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}
.submit-review-btn i {
  font-size: 1.3rem;
}
.review-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 5px solid transparent;
  position: relative;
  overflow: hidden;
}
.review-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #d94b1f 0%, #f25c27 50%, #ff9b6a 100%);
}
.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}
.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}
.review-author-section {
  flex: 1;
}
.review-author-name {
  font-weight: 700;
  font-size: 1.3rem;
  color: #1e293b;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.verified-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.review-date {
  color: #94a3b8;
  font-size: 0.9rem;
}
.review-stars-display {
  display: flex;
  gap: 5px;
  font-size: 1.4rem;
}
.star-filled {
  color: #fbbf24;
  filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}
.star-empty {
  color: #e5e7eb;
}
.review-text-content {
  color: #475569;
  line-height: 1.8;
  font-size: 1.05rem;
  margin-top: 15px;
}
.no-reviews-state {
  text-align: center;
  padding: 80px 40px;
}
.no-reviews-icon {
  font-size: 5rem;
  color: #cbd5e1;
  margin-bottom: 20px;
  opacity: 0.5;
}
.no-reviews-state h3 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: #64748b;
  margin-bottom: 10px;
}
.no-reviews-state p {
  color: #94a3b8;
  font-size: 1.1rem;
}
@media (max-width: 768px) {
  .demo-container {
    padding: 30px 20px;
  }
  .demo-title {
    font-size: 2.5rem;
  }
  .qr-generator-section {
    padding: 30px 20px;
  }
  .review-buttons-container {
    grid-template-columns: 1fr;
  }
  .modal-header-custom {
    padding: 30px 25px;
  }
  .modal-header-custom h2 {
    font-size: 1rem;
  }
  .modal-body-custom {
    padding: 30px 25px;
  }
  .star-label {
    font-size: 2.5rem;
  }
  .review-card {
    padding: 20px;
  }
}
.show {
  display: block !important;
}
.hide {
  display: none !important;
}
.review-form-message {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}
.review-form-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.review-form-message.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.review-form-message.info {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}

.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  padding-top: 3px;
}
.fs-34 {
  font-size: 34px;
}

/* =================================================
   Tool Pages — Shared Design Components (v3.5)
   ================================================= */

/* ── Page header ── replaces Bootstrap .alert.bg-white */
.tool-page-header {
  background: #fff;
  border-radius: 12px;
  padding: 26px 30px 24px;
  margin-bottom: 24px;
  border: 1px solid #e8eaf0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}
.tool-page-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f25c27 0%, #ff8a57 100%);
  border-radius: 12px 12px 0 0;
}
.tool-page-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}
.tool-page-header p {
  color: #6b7280;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.65;
}

/* ── Tool card ── replaces Bootstrap .card.bg-white */
.tool-card {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 24px;
}
.tool-card-body {
  padding: 28px 30px;
}

/* ── Responsive ── */
@media (max-width: 767.97px) {
  .tool-page-header {
    padding: 20px 18px 18px;
    border-radius: 10px;
  }
  .tool-page-header h1 {
    font-size: 1.3rem;
  }
  .tool-card-body {
    padding: 18px 18px;
  }
}

/* =================================================
   Dashboard — Tool Cards & Section Headings (v3.5)
   ================================================= */

/* Section heading */
.dash-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid #eaecf0;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.dash-section-icon {
  width: 30px;
  height: 30px;
  background: #fff1ed;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f25c27;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Tool card */
.dash-tool-card {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 12px;
  padding: 20px 20px 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  color: inherit;
}
.dash-tool-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f25c27 0%, #ff8a57 100%);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.dash-tool-card:hover {
  box-shadow: 0 8px 24px rgba(242, 92, 39, 0.13);
  transform: translateY(-3px);
  color: inherit;
}
.dash-tool-card:hover::before {
  opacity: 1;
}

/* Featured card (Site Audit) */
.dash-tool-card--featured {
  border-color: #fcd9cc;
  background: linear-gradient(135deg, #fff 80%, #fff6f3 100%);
}
.dash-tool-card--featured .dash-tool-icon {
  background: #f25c27;
  color: #fff;
}

/* Tool icon bubble */
.dash-tool-icon {
  width: 42px;
  height: 42px;
  background: #fff1ed;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #f25c27;
  margin-bottom: 14px;
  flex-shrink: 0;
}

/* Tool name */
.dash-tool-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  line-height: 1.3;
}

/* Tool description */
.dash-tool-desc {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

/* CTA link */
.dash-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f25c27;
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s ease;
  margin-top: auto;
}
.dash-tool-card:hover .dash-tool-btn {
  gap: 9px;
}

@media (max-width: 767.97px) {
  .dash-tool-card {
    padding: 16px 16px 14px;
  }
  .dash-section-heading {
    font-size: 0.88rem;
  }
}
