/* =========================================
   style.css – AI Tools Directory (DARK THEME)
   ========================================= */
   
   
   
   
   
   
   
   /* Section title icon (inline) */
.section-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-right: 0.5rem;
  vertical-align: middle;
  position: relative;
  top: -1px;        /* fine-tune vertical alignment */
}
   
.deal-card-horizontal {
  background: #1e1e2f;
  border: 1px solid #2a2a3d;
  color: #e0e0e0;
}
.deal-card-horizontal .card-title { color: #f0f0f0; }
.deal-card-horizontal .form-control[readonly] {
  background: #2a2a3d;
  border-color: #3a3a4d;
  color: #fff;
}
.deal-card-horizontal .btn-outline-success { border-color: #4da167; color: #4da167; }
.deal-card-horizontal .btn-outline-success:hover { background: #4da167; color: #fff; }

/* ---------- Deals Grid ---------- */
.deal-card {
  background: #1e1e2f;
  border: 1px solid #2a2a3d;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
  color: #e0e0e0;
}
.deal-card:hover {
  border-color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.deal-img {
  width: 100%;
  height: 160px;
  overflow: hidden;
}
.deal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.deal-body {
  padding: 1rem;
}
.deal-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #f0f0f0;
}
.deal-desc {
  color: #a0a0b0;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.deal-code {
  background: #2a2a3f;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: monospace;
  font-weight: 600;
  color: #f59e0b;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.deal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.deal-link {
  color: #f59e0b;
  font-weight: 600;
  text-decoration: none;
}
.deal-link:hover {
  text-decoration: underline;
}
.deal-expires {
  color: #8b8b9e;
}

.deal-form-card {
    background: #1a1a2e; border: 1px solid #2a2a4a; border-radius: 16px;
    padding: 32px; max-width: 600px; margin: 0 auto;
}
.deal-form-card h2 { color: #e4e8f0; font-weight: 700; margin-bottom: 24px; }
.deal-form-card label { color: #b0b8c4; font-size: 0.85rem; margin-bottom: 4px; }
.deal-form-card .form-control, .deal-form-card .form-select {
    background: #0f0f23; border: 1px solid #2a2a4a; color: #e4e8f0;
    border-radius: 10px; padding: 10px 14px; font-size: 0.9rem;
}
.deal-form-card .form-control:focus, .deal-form-card .form-select:focus {
    border-color: #f59e0b; box-shadow: none;
}
.deal-form-card .btn-submit {
    background: #f59e0b; color: #000; border: none; border-radius: 12px;
    padding: 12px; font-weight: 700; font-size: 0.95rem; width: 100%;
}
.deal-form-card .btn-submit:hover { background: #e5a00d; }
.alert { border-radius: 10px; }

/* ---------- Google Sign-In Button (dark variant) ---------- */
.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #131314;          /* Google’s official dark background */
  border: 1px solid #8e918f;    /* subtle border */
  border-radius: 24px;          /* pill shape */
  color: #e3e3e3;
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  transition: background 0.2s, box-shadow 0.2s;
  text-decoration: none;
  letter-spacing: 0.25px;
  white-space: nowrap;
  cursor: pointer;
}
.google-btn:hover {
  background: #1e1e1f;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.google-btn img {
  width: 18px;
  height: 18px;
  margin-right: 10px;
}

/* --- Two-column layout --- */
.deal-submit-wrapper {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.deal-form-col {
  flex: 1 1 500px;
  min-width: 300px;
}
.deal-preview-col {
  flex: 0 0 350px;
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

/* --- Form styles (keep existing dark look) --- */
.deal-form-card {
    background: #1a1a2e; border: 1px solid #2a2a4a; border-radius: 16px;
    padding: 32px;
}
.deal-form-card h2 { color: #e4e8f0; font-weight: 700; margin-bottom: 24px; }
.deal-form-card label { color: #b0b8c4; font-size: 0.85rem; margin-bottom: 4px; }
.deal-form-card .form-control, .deal-form-card .form-select {
    background: #0f0f23; border: 1px solid #2a2a4a; color: #e4e8f0;
    border-radius: 10px; padding: 10px 14px; font-size: 0.9rem;
}
.deal-form-card .form-control:focus, .deal-form-card .form-select:focus {
    border-color: #f59e0b; box-shadow: none;
}
.deal-form-card .btn-submit {
    background: #f59e0b; color: #000; border: none; border-radius: 12px;
    padding: 12px; font-weight: 700; font-size: 0.95rem; width: 100%;
}
.deal-form-card .btn-submit:hover { background: #e5a00d; }
.alert { border-radius: 10px; }

/* --- Preview card --- */
.deal-preview-card {
  background: #1e1e2f;
  border: 1px solid #2a2a3d;
  border-radius: 16px;
  padding: 24px;
  color: #e0e0e0;
}
.deal-preview-card h3 {
  color: #f0f0f0;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.deal-preview-card .preview-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: #2a2a3d;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.deal-preview-card .preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.deal-preview-card .preview-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.deal-preview-card .preview-description {
  color: #b0b0c0;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.deal-preview-card .preview-code {
  background: #2a2a3f;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: monospace;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.deal-preview-card .preview-expires {
  font-size: 0.85rem;
  color: #a0a0b0;
}
.deal-preview-card .preview-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #f59e0b;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Dark Auth Modal ---------- */
#authModal .modal-content {
  background: #1e1e2f;
  border: 1px solid #2a2a3d;
  border-radius: 16px;
  color: #e0e0e0;
}
#authModal .modal-header {
  border-bottom: 1px solid #2a2a3d;
  padding: 1rem 1.5rem;
}
#authModal .modal-header .btn-close {
  filter: invert(1);   /* make close icon visible on dark bg */
}
#authModal .nav-pills .nav-link {
  color: #a0a0b0;
  border-radius: 50px;
  padding: 0.4rem 1.2rem;
  font-weight: 600;
  transition: 0.2s;
}
#authModal .nav-pills .nav-link.active {
  background: #4da167;
  color: #fff;
}
#authModal .nav-pills .nav-link:hover:not(.active) {
  background: #2a2a3f;
  color: #e0e0e0;
}
#authModal .form-label {
  color: #c0c0d0;
  font-weight: 500;
}
#authModal .form-control {
  background: #2a2a3d;
  border: 1px solid #3a3a4d;
  color: #fff;
  border-radius: 8px;
  padding: 0.6rem 1rem;
}
#authModal .form-control:focus {
  background: #2e2e42;
  border-color: #4da167;
  box-shadow: 0 0 0 0.2rem rgba(77,161,103,0.25);
  color: #fff;
}
#authModal .btn-success {
  background: #4da167;
  border: none;
  font-weight: 600;
  padding: 0.65rem;
  border-radius: 50px;
  transition: 0.2s;
}
#authModal .btn-success:hover {
  background: #5cb875;
  transform: translateY(-1px);
}


#authModal .modal-header {
  padding: 1.5rem 2rem;
}
#authModal .modal-body {
  padding: 2rem;
}
#authModal .modal-dialog {
  max-width: 500px; /* default is 500px; increase to e.g. 550px */
}


    .child-category-card {
      background: #1e1e2f;
      border: 1px solid #2a2a3d;
      border-radius: 12px;
      transition: all 0.2s ease;
      text-decoration: none !important;
      color: #e0e0e0 !important;
      display: flex;
      flex-direction: row;
      align-items: center;
      padding: 0.9rem 1.2rem;
    }
    .child-category-card:hover {
      background: #2a2a3f;
      border-color: #4da167;
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    }
    .child-category-card .child-icon {
      width: 40px;
      height: 40px;
      object-fit: contain;
      margin-right: 1rem;
      flex-shrink: 0;
      border-radius: 8px;
      background: #2a2a3d;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
    }
    .child-category-card .child-text {
      display: flex;
      flex-direction: column;
    }
    .child-category-card .child-name {
      font-weight: 600;
      font-size: 0.95rem;
      line-height: 1.3;
    }
    .child-category-card .child-count {
      font-size: 0.8rem;
      color: #a0a0b0;
      margin-top: 0.15rem;
    }

/* ---------- Dark auth forms ---------- */
.auth-card {
  background: #1e1e2f;
  border: 1px solid #2a2a3d;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  color: #e0e0e0;
}
.auth-card .card-body {
  padding: 2rem;
}
.auth-card h3, .auth-card h2 {
  color: #f0f0f0;
}
.auth-card .form-label {
  color: #c0c0d0;
  font-weight: 500;
}
.auth-card .form-control {
  background: #2a2a3d;
  border: 1px solid #3a3a4d;
  color: #fff;
  border-radius: 8px;
  padding: 0.6rem 1rem;
}
.auth-card .form-control:focus {
  background: #2e2e42;
  border-color: #4da167;
  box-shadow: 0 0 0 0.2rem rgba(77,161,103,0.25);
  color: #fff;
}
.auth-card .btn-success {
  background: #4da167;
  border: none;
  font-weight: 600;
  padding: 0.65rem;
  border-radius: 50px;
  transition: 0.2s;
}
.auth-card .btn-success:hover {
  background: #5cb875;
  transform: translateY(-1px);
}
.auth-card a {
  color: #4da167;
}
.auth-card a:hover {
  color: #5cb875;
}


#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #2a2a3f;
  border: 1px solid #4da167;
  color: #4da167;
  font-size: 1.3rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
#back-to-top:hover {
  background: #4da167;
  color: #fff;
  transform: translateY(-2px);
}



.pricing-svg-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    opacity: 0.55;
    filter: grayscale(40%);
}
.pricing-svg-btn:hover {
    transform: scale(1.1);
    opacity: 0.8;
}
.pricing-svg-btn.active {
    opacity: 1;
    filter: none;
}
.pricing-svg-btn.active:hover {
    transform: scale(1.05);
}


.category-grid-card {
  background: #030509;
 border: 1px solid #2a2a3d;
  border-radius: 12px;
  transition: all 0.2s ease;
  text-decoration: none !important;
  color: #e0e0e0 !important;
  display: flex;
  flex-direction: row;          /* icon left, text right */
  align-items: center;
  padding: 1rem 1.2rem;
}
.category-grid-card:hover {
  background: #030509;
  border-color: #4da167;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.category-grid-card .cat-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-right: 1rem;
  flex-shrink: 0;
}
.category-grid-card .cat-text {
  display: flex;
  flex-direction: column;
}
.category-grid-card .cat-name {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
}
.category-grid-card .cat-count {
  font-size: 0.8rem;
  color: #a0a0b0;
  margin-top: 0.15rem;
}




.token-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(15, 18, 30, 0.95), rgba(20, 24, 40, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 28px;
    padding: 6px 18px 6px 4px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.08), inset 0 1px 0 rgba(255,255,255,0.03);
    max-height: 40px;
    cursor: pointer;
}
.token-pill:hover {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 28px rgba(212, 175, 55, 0.18), 0 4px 16px rgba(0,0,0,0.4);
    transform: translateY(-1px);
}
.token-pill:hover .token-coin-svg {
    transform: rotate(-10deg) scale(1.1);
}
.token-coin-svg {
    width: 28px; height: 28px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.4));
}
.token-info {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.token-amount {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    letter-spacing: -0.3px;
}
.token-label {
    font-size: 0.45rem;
    font-weight: 600;
    color: #8b94a3;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1px;
}


/* =========================================
   TOOL PAGE SIDEBAR STYLES
   ========================================= */

.tool-page-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    position: relative;
}

.tool-main-content {
    flex: 1;
    min-width: 0; /* Prevents overflow */
}

.tool-sidebar {
    width: 340px;
    flex-shrink: 0;
    position: sticky;
    top: 100px; /* Adjust based on your navbar height */
    align-self: flex-start;
}

/* Sidebar card */
.tool-sidebar-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.tool-sidebar-card h5 {
    color: #f0f6fc;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #30363d;
}

/* Similar tools in sidebar */
.sidebar-tool-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #21262d;
    transition: background 0.2s;
}

.sidebar-tool-item:last-child {
    border-bottom: none;
}

.sidebar-tool-item:hover {
    background: #1f2937;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 6px;
}

.sidebar-tool-favicon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
    background: #21262d;
    padding: 2px;
}

.sidebar-tool-info {
    flex: 1;
    min-width: 0;
}

.sidebar-tool-name {
    color: #f0f6fc;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-tool-name:hover {
    color: #58a6ff;
}

.sidebar-tool-meta {
    font-size: 0.75rem;
    color: #8b949e;
}

.sidebar-tool-pricing {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 50px;
    background: #238636;
    color: #f0f6fc;
    flex-shrink: 0;
}

.sidebar-tool-details-link {
    font-size: 0.75rem;
    color: #58a6ff;
    text-decoration: none;
    flex-shrink: 0;
}

.sidebar-tool-details-link:hover {
    color: #79c0ff;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .tool-page-wrapper {
        flex-direction: column;
    }
    
    .tool-sidebar {
        width: 100%;
        position: static;
        margin-top: 2rem;
    }
    
    .tool-sidebar-card {
        padding: 1rem;
    }
}

/* Sidebar for dark theme - override any light elements */
.tool-sidebar-card .text-muted {
    color: #8b949e !important;
}

.tool-sidebar-card .badge {
    font-weight: 600;
}







/* =========================================
   REVIEWS & COMMENTS DARK THEME
   ========================================= */

/* Reviews section container */
.reviews-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #30363d;
}

.reviews-section .section-title {
    color: #f0f6fc;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.reviews-section .section-title .badge {
    background: #1f2937;
    color: #8b949e;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

/* Review/comment cards */
.review-card,
.comment-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.25s ease;
}

.review-card:hover,
.comment-card:hover {
    border-color: #4da167;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.review-card-header,
.comment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #238636, #2ea043);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f0f6fc;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.review-avatar.alt {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.review-user-info .user-name {
    color: #f0f6fc;
    font-weight: 600;
    font-size: 1rem;
}

.review-user-info .user-meta {
    color: #8b949e;
    font-size: 0.8rem;
}

/* Star rating */
.stars {
    display: inline-flex;
    gap: 2px;
    color: #d29922;
    font-size: 1rem;
    letter-spacing: 1px;
}

.stars .empty {
    color: #30363d;
}

.review-date {
    color: #8b949e;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

.review-title {
    color: #f0f6fc;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0.5rem 0 0.25rem 0;
}

.review-text,
.comment-text {
    color: #c9d1d9;
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* Write review/comment form */
.review-form-card,
.comment-form-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.review-form-card .form-title,
.comment-form-card .form-title {
    color: #f0f6fc;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-form-card .form-title i,
.comment-form-card .form-title i {
    color: #4da167;
}

/* Star rating input */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
    margin: 0.5rem 0 1rem 0;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: #30363d;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #d29922;
    transform: scale(1.1);
}

.star-rating input:checked + label {
    color: #d29922;
}

.star-rating:hover label {
    color: #d29922;
}

/* Form inputs - dark */
.review-form-card .form-control,
.comment-form-card .form-control {
    background: #0d1117;
    border: 1px solid #30363d;
    color: #e6edf3;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s;
}

.review-form-card .form-control:focus,
.comment-form-card .form-control:focus {
    background: #0d1117;
    border-color: #4da167;
    box-shadow: 0 0 0 3px rgba(77, 161, 103, 0.15);
    color: #e6edf3;
}

.review-form-card .form-control::placeholder,
.comment-form-card .form-control::placeholder {
    color: #8b949e;
}

.review-form-card .form-label,
.comment-form-card .form-label {
    color: #c9d1d9;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Submit buttons */
.btn-submit-review,
.btn-submit-comment {
    background: linear-gradient(135deg, #238636, #2ea043);
    border: none;
    color: #f0f6fc;
    font-weight: 600;
    padding: 0.6rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(35, 134, 54, 0.3);
}

.btn-submit-review:hover,
.btn-submit-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 134, 54, 0.4);
    background: linear-gradient(135deg, #2ea043, #3fb950);
    color: #f0f6fc;
}

.btn-submit-comment {
    background: transparent;
    border: 2px solid #30363d;
    color: #c9d1d9;
    box-shadow: none;
}

.btn-submit-comment:hover {
    background: #1f2937;
    border-color: #4da167;
    color: #f0f6fc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Login alert */
.login-alert {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    color: #c9d1d9;
}

.login-alert a {
    color: #58a6ff;
    font-weight: 600;
    text-decoration: none;
}

.login-alert a:hover {
    color: #79c0ff;
    text-decoration: underline;
}

/* Alert messages */
.alert-danger {
    background: #1f2937;
    border: 1px solid #f85149;
    color: #f85149;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.alert-success {
    background: #1f2937;
    border: 1px solid #3fb950;
    color: #3fb950;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

/* Comment count badge */
.comment-count {
    color: #8b949e;
    font-size: 0.85rem;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
    .review-card-header,
    .comment-card-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .review-date {
        margin-left: 0;
        font-size: 0.75rem;
    }
    
    .review-card,
    .comment-card {
        padding: 1rem;
    }
    
    .review-form-card,
    .comment-form-card {
        padding: 1rem;
    }
    
    .star-rating label {
        font-size: 1.5rem;
    }
    
    .reviews-section .section-title {
        font-size: 1.25rem;
    }
}

/* Smooth animations */
.review-card,
.comment-card {
    animation: fadeInUp 0.4s ease;
}

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

/* Scrollable reviews if many */
.reviews-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.reviews-list::-webkit-scrollbar {
    width: 6px;
}

.reviews-list::-webkit-scrollbar-track {
    background: #0d1117;
    border-radius: 3px;
}

.reviews-list::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 3px;
}

.reviews-list::-webkit-scrollbar-thumb:hover {
    background: #4da167;
}

/* Divider between sections */
.section-divider {
    border: none;
    border-top: 2px solid #30363d;
    margin: 2.5rem 0;
}






/* =========================================
   REVIEWS & COMMENTS DARK THEME - COLLAPSIBLE
   ========================================= */

/* Reviews section container */
.reviews-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #30363d;
}

.reviews-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    user-select: none;
    background: transparent;
    border: 1px solid transparent;
}

.reviews-section .section-header:hover {
    background: #161b22;
    border-color: #30363d;
}

.reviews-section .section-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reviews-section .section-title {
    color: #f0f6fc;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reviews-section .section-title i {
    font-size: 1.3rem;
}

.reviews-section .section-title i.bi-star-fill {
    color: #d29922;
}

.reviews-section .section-title i.bi-chat-dots-fill {
    color: #58a6ff;
}

.reviews-section .badge-count {
    background: #1f2937;
    color: #8b949e;
    font-size: 0.75rem;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    font-weight: 600;
}

.section-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Toggle button */
.toggle-btn {
    background: transparent;
    border: 1px solid #30363d;
    color: #8b949e;
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.toggle-btn:hover {
    background: #1f2937;
    border-color: #4da167;
    color: #f0f6fc;
}

.toggle-btn .arrow {
    transition: transform 0.3s ease;
    display: inline-block;
    font-size: 0.7rem;
}

.toggle-btn .arrow.expanded {
    transform: rotate(180deg);
}

/* Content wrapper - collapsible */
.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-content.expanded {
    max-height: 5000px;
}

.section-content-inner {
    padding-top: 1.5rem;
}

/* Review/comment cards */
.review-card,
.comment-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.25s ease;
}

.review-card:hover,
.comment-card:hover {
    border-color: #4da167;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.review-card-header,
.comment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #238636, #2ea043);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f0f6fc;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.review-avatar.alt {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.review-user-info .user-name {
    color: #f0f6fc;
    font-weight: 600;
    font-size: 1rem;
}

.review-user-info .user-meta {
    color: #8b949e;
    font-size: 0.8rem;
}

/* Star rating */
.stars {
    display: inline-flex;
    gap: 2px;
    color: #d29922;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.stars .empty {
    color: #30363d;
}

.review-date {
    color: #8b949e;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

.review-title {
    color: #f0f6fc;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0.5rem 0 0.25rem 0;
}

.review-text,
.comment-text {
    color: #c9d1d9;
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* Write review/comment form */
.review-form-card,
.comment-form-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.review-form-card .form-title,
.comment-form-card .form-title {
    color: #f0f6fc;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-form-card .form-title i,
.comment-form-card .form-title i {
    color: #4da167;
}

/* Star rating input */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
    margin: 0.5rem 0 1rem 0;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: #30363d;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #d29922;
    transform: scale(1.1);
}

.star-rating input:checked + label {
    color: #d29922;
}

.star-rating:hover label {
    color: #d29922;
}

/* Form inputs - dark */
.review-form-card .form-control,
.comment-form-card .form-control {
    background: #0d1117;
    border: 1px solid #30363d;
    color: #e6edf3;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s;
}

.review-form-card .form-control:focus,
.comment-form-card .form-control:focus {
    background: #0d1117;
    border-color: #4da167;
    box-shadow: 0 0 0 3px rgba(77, 161, 103, 0.15);
    color: #e6edf3;
}

.review-form-card .form-control::placeholder,
.comment-form-card .form-control::placeholder {
    color: #8b949e;
}

.review-form-card .form-label,
.comment-form-card .form-label {
    color: #c9d1d9;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Submit buttons */
.btn-submit-review,
.btn-submit-comment {
    background: linear-gradient(135deg, #238636, #2ea043);
    border: none;
    color: #f0f6fc;
    font-weight: 600;
    padding: 0.6rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(35, 134, 54, 0.3);
}

.btn-submit-review:hover,
.btn-submit-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 134, 54, 0.4);
    background: linear-gradient(135deg, #2ea043, #3fb950);
    color: #f0f6fc;
}

.btn-submit-comment {
    background: transparent;
    border: 2px solid #30363d;
    color: #c9d1d9;
    box-shadow: none;
}

.btn-submit-comment:hover {
    background: #1f2937;
    border-color: #4da167;
    color: #f0f6fc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Login alert */
.login-alert {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    color: #c9d1d9;
}

.login-alert a {
    color: #58a6ff;
    font-weight: 600;
    text-decoration: none;
}

.login-alert a:hover {
    color: #79c0ff;
    text-decoration: underline;
}

/* Alert messages */
.alert-danger {
    background: #1f2937;
    border: 1px solid #f85149;
    color: #f85149;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.alert-success {
    background: #1f2937;
    border: 1px solid #3fb950;
    color: #3fb950;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

/* Empty state */
.empty-state {
    background: #161b22;
    border: 1px dashed #30363d;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: #8b949e;
}

.empty-state i {
    font-size: 2.5rem;
    color: #30363d;
    margin-bottom: 0.75rem;
}

.empty-state p {
    margin: 0.5rem 0;
    color: #8b949e;
}

/* Responsive */
@media (max-width: 768px) {
    .review-card-header,
    .comment-card-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .review-date {
        margin-left: 0;
        font-size: 0.75rem;
    }
    
    .review-card,
    .comment-card {
        padding: 1rem;
    }
    
    .review-form-card,
    .comment-form-card {
        padding: 1rem;
    }
    
    .star-rating label {
        font-size: 1.5rem;
    }
    
    .reviews-section .section-title {
        font-size: 1.1rem;
    }
    
    .section-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .section-header-right {
        margin-left: auto;
    }
    
    .toggle-btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
}

/* Smooth animations */
.review-card,
.comment-card {
    animation: fadeInUp 0.4s ease;
}

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

/* Scrollable reviews if many */
.reviews-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.reviews-list::-webkit-scrollbar {
    width: 6px;
}

.reviews-list::-webkit-scrollbar-track {
    background: #0d1117;
    border-radius: 3px;
}

.reviews-list::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 3px;
}

.reviews-list::-webkit-scrollbar-thumb:hover {
    background: #4da167;
}

/* Divider between sections */
.section-divider {
    border: none;
    border-top: 2px solid #30363d;
    margin: 2rem 0;
}






.featured-bottom-row .badge { font-size: 0.65rem; padding: 2px 8px; }
.featured-bottom-row .trend-arrow { font-size: 0.85rem; }

.text-muted {
    --bs-text-opacity: 1;
    color: #8b949e !important;
}


/* =========================================
   TOP 100 TABLE - DARK THEME (FIXED TD)
   ========================================= */

/* Table container */
#top-100-table {
    background: #161b22 !important;
    border: 1px solid #30363d !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

#top-100-table thead {
    background-color: #1a1a2e !important;
}

#top-100-table thead th {
    background-color: #1a1a2e !important;
    color: #f0f6fc !important;
    border-bottom: 2px solid #30363d !important;
    font-weight: 600 !important;
    padding: 12px 8px !important;
}

/* ===== FIXED: TD STYLES ===== */
#top-100-table tbody td {
    background-color: transparent !important;
    color: #c9d1d9 !important;
    padding: 12px 8px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #21262d !important;
}

/* Alternate row colors */
#top-100-table tbody tr:nth-child(even) td {
    background-color: #0b0e12 !important;
}

#top-100-table tbody tr:nth-child(odd) td {
    background-color: #161b22 !important;
}

/* Hover state - make sure all cells change together */
#top-100-table tbody tr:hover td {
    background-color: #1f2937 !important;
}

/* First column (rank number) */
#top-100-table tbody td:first-child {
    color: #8b949e !important;
    font-weight: 700 !important;
}

/* ===== TOOL NAME COLUMN ===== */
/* The container div inside the td */
#top-100-table tbody td .d-flex.align-items-center {
    background: transparent !important;
}

/* Tool name link */
#top-100-table tbody td a.text-dark {
    color: #f0f6fc !important;
    transition: color 0.2s !important;
    background: transparent !important;
}

#top-100-table tbody td a.text-dark:hover {
    color: #58a6ff !important;
}

/* External link icon */
#top-100-table tbody td .bi-box-arrow-up-right {
    color: #8b949e !important;
    transition: color 0.2s !important;
}

#top-100-table tbody td .bi-box-arrow-up-right:hover {
    color: #58a6ff !important;
}

/* ===== DETAILS BUTTON COLUMN ===== */
#top-100-table tbody td .btn-outline-success {
    color: #3fb950 !important;
    border-color: #238636 !important;
    background: transparent !important;
}

#top-100-table tbody td .btn-outline-success:hover {
    background: #238636 !important;
    color: #f0f6fc !important;
    border-color: #238636 !important;
}

/* ===== PRICING BADGE COLUMN ===== */
#top-100-table tbody td .badge.bg-success {
    background-color: #238636 !important;
    color: #f0f6fc !important;
    padding: 4px 10px !important;
    font-weight: 600 !important;
}

/* ===== PRICE COLUMN ===== */
#top-100-table tbody td .small.text-muted {
    color: #8b949e !important;
}

/* ===== CATEGORY BADGE COLUMN ===== */
#top-100-table tbody td .badge.bg-warning.text-dark {
    background-color: #d29922 !important;
    color: #0d1117 !important;
}

/* ===== IMPACT SCORE COLUMN ===== */
#top-100-table tbody td .fw-bold {
    color: #f0f6fc !important;
}

/* ===== TREND COLUMN ===== */
#top-100-table tbody td .trend-up.text-success {
    color: #3fb950 !important;
}

#top-100-table tbody td .trend-down.text-danger {
    color: #f85149 !important;
}

#top-100-table tbody td .trend-none.text-muted {
    color: #8b949e !important;
}

/* =========================================
   TABLE SCROLLBAR (Dark)
   ========================================= */

.table-responsive {
    border-radius: 8px !important;
    overflow: auto !important;
}

.table-responsive::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
}

.table-responsive::-webkit-scrollbar-track {
    background: #0d1117 !important;
    border-radius: 4px !important;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #30363d !important;
    border-radius: 4px !important;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #4da167 !important;
}

/* =========================================
   RESPONSIVE TABLE
   ========================================= */

@media (max-width: 768px) {
    #top-100-table {
        font-size: 0.8rem !important;
    }
    
    #top-100-table tbody td {
        padding: 6px 4px !important;
    }
    
    #top-100-table tbody td .btn-outline-success {
        font-size: 0.7rem !important;
        padding: 2px 6px !important;
    }
}

/* =========================================
   TABLE WRAPPER
   ========================================= */

.table-responsive {
    background: transparent !important;
}

/* Make sure the table header stays dark */
#top-100-table thead tr {
    background-color: #1a1a2e !important;
}

#top-100-table thead tr th {
    background-color: #1a1a2e !important;
    color: #f0f6fc !important;
    border-bottom: 2px solid #30363d !important;
}

/* Fix for any inline styles that might override */
#top-100-table tbody tr {
    background-color: transparent !important;
}

/* Ensure all text in table is readable */
#top-100-table tbody td,
#top-100-table tbody td * {
    color: #c9d1d9 !important;
}

/* Except for specific elements that need different colors */
#top-100-table tbody td .text-muted,
#top-100-table tbody td .small.text-muted {
    color: #8b949e !important;
}

#top-100-table tbody td .badge.bg-success {
    color: #f0f6fc !important;
}

#top-100-table tbody td .badge.bg-warning.text-dark {
    color: #0d1117 !important;
}

#top-100-table tbody td .trend-up.text-success {
    color: #3fb950 !important;
}

#top-100-table tbody td .trend-down.text-danger {
    color: #f85149 !important;
}

#top-100-table tbody td .fw-bold {
    color: #f0f6fc !important;
}

/* External link icon */
#top-100-table tbody td .bi-box-arrow-up-right {
    color: #8b949e !important;
}

#top-100-table tbody td .bi-box-arrow-up-right:hover {
    color: #58a6ff !important;
}


/* =========================================
   TOP 100 TABLE - DARK THEME
   ========================================= */

/* Table container */
#top-100-table {
    background: #161b22 !important;
    border: 1px solid #30363d !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

#top-100-table thead {
    background-color: #1a1a2e !important;
}

#top-100-table thead th {
    background-color: #1a1a2e !important;
    color: #f0f6fc !important;
    border-bottom: 2px solid #30363d !important;
    font-weight: 600 !important;
}

#top-100-table tbody tr {
    background-color: #0d1117 !important;
    border-bottom: 1px solid #21262d !important;
    transition: background 0.2s;
}

#top-100-table tbody tr:hover {
    background-color: #161b22 !important;
}

#top-100-table tbody td {
    color: #c9d1d9 !important;
    padding: 12px 8px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #21262d !important;
}

#top-100-table tbody td:first-child {
    color: #8b949e !important;
    font-weight: 700 !important;
}

/* Tool name links in table */
#top-100-table a.text-dark {
    color: #f0f6fc !important;
    transition: color 0.2s;
}

#top-100-table a.text-dark:hover {
    color: #58a6ff !important;
}

/* External link icon */
#top-100-table .bi-box-arrow-up-right {
    color: #8b949e !important;
    transition: color 0.2s;
}

#top-100-table .bi-box-arrow-up-right:hover {
    color: #58a6ff !important;
}

/* Badge styling in table */
#top-100-table .badge.bg-success {
    background-color: #238636 !important;
    color: #f0f6fc !important;
}

#top-100-table .badge.bg-warning {
    background-color: #d29922 !important;
    color: #0d1117 !important;
}

#top-100-table .badge.bg-warning.text-dark {
    background-color: #d29922 !important;
    color: #0d1117 !important;
}

/* Impact score text */
#top-100-table .fw-bold {
    color: #f0f6fc !important;
}

/* Trend icons in table */
#top-100-table .trend-up.text-success {
    color: #3fb950 !important;
}

#top-100-table .trend-down.text-danger {
    color: #f85149 !important;
}

#top-100-table .trend-none.text-muted {
    color: #8b949e !important;
}

/* Small text in table */
#top-100-table .small.text-muted {
    color: #8b949e !important;
}

/* Details button */
#top-100-table .btn-outline-success {
    color: #3fb950 !important;
    border-color: #238636 !important;
    background: transparent !important;
}

#top-100-table .btn-outline-success:hover {
    background: #238636 !important;
    color: #f0f6fc !important;
    border-color: #238636 !important;
}

/* =========================================
   TOOL CARDS (Featured & Top Voted) - DARK THEME
   ========================================= */

/* Tool card container */
.tool-card {
    background: #161b22 !important;
    border: 1px solid #30363d !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.tool-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
    border-color: #4da167 !important;
}

/* Tool card image placeholder */
.tool-card img {
    height: 160px !important;
    object-fit: cover !important;
    width: 100% !important;
    background: #1f2937 !important;
}

.tool-card > div[style*="height:160px"] {
    background: #1f2937 !important;
    color: #8b949e !important;
}

/* Tool card body */
.tool-card .card-body {
    padding: 1.2rem !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #161b22 !important;
}

/* Tool card title */
.tool-card .card-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.75rem !important;
    color: #f0f6fc !important;
}

.tool-card .card-title a {
    color: #f0f6fc !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.tool-card .card-title a:hover {
    color: #58a6ff !important;
}

/* Favicon in card title */
.tool-card .card-title .favicon {
    width: 20px !important;
    height: 20px !important;
    border-radius: 4px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    margin-right: 6px !important;
    background: #21262d !important;
    padding: 2px !important;
}

/* Card description */
.tool-card .card-text {
    font-size: 0.85rem !important;
    color: #8b949e !important;
    flex: 1 !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
}

.tool-card .card-text.text-muted {
    color: #8b949e !important;
}

/* Pricing badge in card */
.tool-card .badge.bg-success {
    background-color: #238636 !important;
    color: #f0f6fc !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
}

/* Votes text in card */
.tool-card .votes {
    font-size: 0.8rem !important;
    color: #8b949e !important;
}

/* Vote icons in card */
.tool-card .text-muted.small {
    color: #8b949e !important;
}

.tool-card .bi-hand-thumbs-up {
    color: #3fb950 !important;
}

.tool-card .bi-hand-thumbs-down {
    color: #f85149 !important;
}

/* Tool card columns */
.tool-card-col {
    min-width: 280px !important;
    max-width: 100% !important;
}

/* Section headings */
.container h2 {
    color: #f0f6fc !important;
    font-weight: 700 !important;
}

.container .mb-4 {
    color: #f0f6fc !important;
}

/* "View Top 1000" button */
.btn-outline-success.btn-sm.rounded-pill {
    color: #3fb950 !important;
    border-color: #238636 !important;
    background: transparent !important;
    transition: all 0.2s !important;
}

.btn-outline-success.btn-sm.rounded-pill:hover {
    background: #238636 !important;
    color: #f0f6fc !important;
    border-color: #238636 !important;
}

/* =========================================
   RESPONSIVE TABLE SCROLLING
   ========================================= */

.table-responsive {
    border-radius: 8px !important;
    overflow: auto !important;
}

.table-responsive::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
}

.table-responsive::-webkit-scrollbar-track {
    background: #0d1117 !important;
    border-radius: 4px !important;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #30363d !important;
    border-radius: 4px !important;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #4da167 !important;
}

/* =========================================
   TOP 100 - ALTERNATE ROW COLORS
   ========================================= */

#top-100-table tbody tr:nth-child(even) {
    background-color: #0d1117 !important;
}

#top-100-table tbody tr:nth-child(odd) {
    background-color: #161b22 !important;
}

#top-100-table tbody tr:hover {
    background-color: #1f2937 !important;
}

/* =========================================
   PRICING FILTER BADGES (if displayed)
   ========================================= */

.pricing-filter-wrapper .badge.bg-warning {
    background-color: #d29922 !important;
    color: #0d1117 !important;
}

.pricing-filter-wrapper .btn-outline-light {
    color: #f0f6fc !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.pricing-filter-wrapper .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

/* =========================================
   LOADING PLACEHOLDER
   ========================================= */

.tool-card > div[style*="background:#e9ecef"] {
    background: #1f2937 !important;
    color: #8b949e !important;
}

/* =========================================
   TABLE HEADER FIXES
   ========================================= */

#top-100-table thead tr th {
    background-color: #1a1a2e !important;
    color: #f0f6fc !important;
    border-bottom: 2px solid #30363d !important;
    font-weight: 600 !important;
    padding: 12px 8px !important;
}

#top-100-table thead tr th:first-child {
    background-color: #1a1a2e !important;
    color: #f0f6fc !important;
}

/* =========================================
   AD BANNER DARK MODE
   ========================================= */

.ad-banner {
    margin: 1.5rem 1rem !important;
    overflow: hidden !important;
}

.ad-banner-img.leaderboard {
    border-radius: 8px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
}

/* Text ad dark mode */
.ad-banner-text {
    background: #161b22 !important;
    border: 1px solid #30363d !important;
    border-radius: 8px !important;
    padding: 1.25rem !important;
    color: #c9d1d9 !important;
}

.ad-banner-text a {
    color: #58a6ff !important;
}

.ad-banner-text a:hover {
    color: #79c0ff !important;
}

/* =========================================
   MISCELLANEOUS DARK THEME FIXES
   ========================================= */

/* Text truncation in table */
.text-truncate {
    color: #f0f6fc !important;
}

/* Rank number color */
#top-100-table tbody td.fw-bold.text-muted {
    color: #8b949e !important;
}

/* Tool website link */
.text-decoration-none.text-dark.fw-semibold {
    color: #f0f6fc !important;
}

.text-decoration-none.text-dark.fw-semibold:hover {
    color: #58a6ff !important;
}

/* Flex-shrink external link */
.flex-shrink-0 .bi-box-arrow-up-right {
    color: #8b949e !important;
}

.flex-shrink-0 .bi-box-arrow-up-right:hover {
    color: #58a6ff !important;
}

/* Small text in table cells */
#top-100-table .small.text-muted {
    color: #8b949e !important;
}

/* Category badge in table */
#top-100-table .badge.bg-warning.text-dark {
    background-color: #d29922 !important;
    color: #0d1117 !important;
}

/* === PRICING FILTER ACTIVE STATES === */
.btn-outline-success.active {
    background: #238636 !important;
    color: #f0f6fc !important;
    border-color: #238636 !important;
}

.filters a.active {
    background: #238636 !important;
    color: #f0f6fc !important;
    border-color: #238636 !important;
}

/* Responsive adjustments for dark table */
@media (max-width: 768px) {
    #top-100-table {
        font-size: 0.85rem !important;
    }
    
    #top-100-table tbody td {
        padding: 8px 4px !important;
    }
    
    .tool-card-col {
        min-width: 250px !important;
    }
}



/* ----- global ----- */
body {
    background: #0d1117;
    color: #e6edf3;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ----- links ----- */
a {
    color: #58a6ff;
}
a:hover {
    color: #79c0ff;
}

/* ----- navbar ----- */
.navbar {
    background: #161b22 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    border-bottom: 1px solid #30363d;
}
.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #f0f6fc !important;
}

/* ----- search bar ----- */
.search-box {
    background: #0d1117;
    border-radius: 2rem;
    padding: 0.4rem 0.4rem 0.4rem 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 1px solid #30363d;
}
.search-box input {
    border: none;
    box-shadow: none;
    background: transparent !important;
    color: #e6edf3 !important;
}
.search-box input::placeholder {
    color: #8b949e !important;
}
.search-box input:focus {
    box-shadow: none;
}

/* ----- parent category cards (index) ----- */
.parent-card {
    background: #161b22;
    border-radius: 1.2rem;
    padding: 1.5rem 1.5rem 1.2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border: 1px solid #30363d;
    transition: transform 0.2s, box-shadow 0.2s;
}
.parent-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.parent-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f0f6fc;
}
.parent-title i {
    color: #4da167;
    font-size: 1.5rem;
}
.toggle-arrow {
    font-size: 1.2rem;
    color: #8b949e;
    transition: transform 0.3s ease;
    user-select: none;
    padding: 0 4px;
    flex-shrink: 0;
}
.toggle-arrow.open {
    transform: rotate(90deg);
}
.child-count-badge {
    background: #4da167;
    color: #0d1117;
    border-radius: 50px;
    padding: 0.15rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
}
.child-pills {
    display: none;
    margin-top: 0.75rem;
    flex-wrap: wrap;
    gap: 6px;
}
.child-pills.show {
    display: flex;
}
.child-pill {
    display: inline-block;
    background: #21262d;
    color: #c9d1d9;
    border-radius: 2rem;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #30363d;
}
.child-pill:hover {
    background: #4da167;
    color: #0d1117;
    border-color: #4da167;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77,161,103,0.25);
}
.empty-message {
    color: #8b949e;
    font-style: italic;
    font-size: 0.9rem;
}

/* ----- page header ----- */
.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #f0f6fc;
}
.page-header p {
    color: #8b949e;
}

/* ----- tool cards (browse, category, search) ----- */
.tool-card {
    background: #161b22;
    border-radius: 1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    transition: transform 0.2s;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #30363d;
}
.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.tool-card img {
    height: 160px;
    object-fit: cover;
    width: 100%;
}
.tool-card .card-body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.tool-card .card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #f0f6fc;
}
.tool-card .card-title a {
    color: #f0f6fc;
}
.tool-card .card-text {
    font-size: 0.85rem;
    color: #8b949e;
    flex: 1;
}
.pricing-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}
.votes {
    font-size: 0.8rem;
    color: #8b949e;
}

/* ----- filter / pricing buttons ----- */
.filters a.active,
.btn-outline-success.active {
    background: #4da167;
    color: #0d1117;
    border-color: #4da167;
}
.btn-outline-success {
    color: #4da167;
    border-color: #4da167;
}
.btn-outline-success:hover {
    background: #4da167;
    color: #0d1117;
}

/* ----- load more button ----- */
.load-more-btn {
    background: #4da167;
    border: none;
    border-radius: 50px;
    padding: 0.6rem 2rem;
    font-weight: 600;
    color: #0d1117;
}
.load-more-btn:hover {
    background: #3d7a52;
    color: #0d1117;
}

/* ----- responsive adjustments ----- */
@media (max-width: 768px) {
    .parent-title {
        font-size: 1.2rem;
    }
    .parent-card {
        padding: 1.2rem;
    }
    .page-header h1 {
        font-size: 2rem;
    }
}

/* =========================================
   Footer styles – add to style.css
   ========================================= */

.site-footer {
    background: #0d1117;
    color: #8b949e;
    padding: 60px 0 20px;
    font-size: 0.95rem;
    border-top: 1px solid #30363d;
}

.site-footer .footer-brand {
    display: flex;
    align-items: center;
}

.site-footer .footer-brand span {
    color: #f0f6fc;
}

.site-footer .footer-description {
    color: #8b949e;
    max-width: 320px;
    line-height: 1.6;
}

.site-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    color: #f0f6fc;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 1.1rem;
    transition: all 0.25s ease;
    text-decoration: none;
}

.site-footer .footer-social a:hover {
    background: #4da167;
    color: #0d1117;
    transform: translateY(-2px);
}

.site-footer .footer-heading {
    font-weight: 700;
    color: #f0f6fc;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.site-footer .footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: #4da167;
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-links li {
    margin-bottom: 0.5rem;
}

.site-footer .footer-links a {
    color: #8b949e;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
}

.site-footer .footer-links a:hover {
    color: #4da167;
    padding-left: 5px;
}

.site-footer .newsletter-form .form-control {
    border-radius: 0.5rem 0 0 0.5rem;
    border: none;
    background: #21262d;
    color: #f0f6fc;
}

.site-footer .newsletter-form .form-control::placeholder {
    color: #8b949e;
}

.site-footer .newsletter-form .btn-success {
    border-radius: 0 0.5rem 0.5rem 0;
    background: #4da167;
    border: none;
    color: #0d1117;
}

.site-footer .footer-bottom {
    font-size: 0.85rem;
    color: #8b949e;
}

/* ----- Avatar circle (logged-in user) ----- */
.avatar-circle {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f0f6fc;
    transition: background 0.2s;
}
.avatar-circle:hover {
    background: #4da167;
}
#userDropdown .avatar-circle {
    margin-right: 6px;
}

/* Make the logged-in user dropdown toggle look nicer */
#userDropdown {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    color: #f0f6fc;
}

.dropdown-menu {
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
    border-radius: 12px;
    padding: 8px 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.dropdown-item {
    color: #b0b8c4;
    font-size: 0.85rem;
    padding: 8px 20px;
    transition: all 0.15s;
}
.dropdown-item:hover {
    background: #2a2a4a;
    color: #e4e8f0;
}
.dropdown-item i {
    color: #8b94a3;
}
.dropdown-item:hover i {
    color: #c9d1d9;
}
.dropdown-divider {
    border-color: #2a2a4a;
    margin: 6px 0;
}



/* Search bar tweaks for smaller screens */
@media (max-width: 991.98px) {
    .navbar .search-box {
        margin-bottom: 1rem;
    }
}

/* Keyword tags under tool descriptions */
.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.keyword-tag {
    display: inline-block;
    background: #21262d;
    color: #8b949e;
    border-radius: 50px;
    padding: 0.15rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background 0.2s;
    border: 1px solid #30363d;
}

.keyword-tag:hover {
    background: #30363d;
    color: #f0f6fc;
}

/* --- Tool card title --- */
.tool-card .card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: #f0f6fc;
}

.tool-card .card-title a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #f0f6fc;
}

/* Favicon inside the title */
.tool-card .card-title .favicon {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    flex-shrink: 0;
    object-fit: contain;
}

/* Details link inside tool card title */
.details-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: #8b949e;
    text-decoration: none;
    margin-left: 0.4rem;
    margin-right: 0.3rem;
    transition: color 0.2s;
    white-space: nowrap;
}
.details-link:hover {
    color: #4da167;
}

.title-right-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* =========================================
   Compact Pill Breadcrumb
   ========================================= */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0.3rem 0;
    margin-bottom: 2.6rem;
    background: transparent;
    list-style: none;
}
.breadcrumb-item {
    display: flex;
    align-items: center;
}
.breadcrumb-arrow {
    color: #4b5563;
    font-size: 1.6rem;
    margin: 0 5px;
    user-select: none;
    line-height: 1;
    transform: translateY(-1px);
}

.breadcrumb-item a {
    display: inline-block;
    padding: 3px 14px;
    background: #1a1a2e;
    color: #8b94a3;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 500;
    border: 1px solid #2a2a4a;
    transition: all 0.2s;
}
.breadcrumb-item a:hover {
    background: #2a2a4a;
    color: #c9d1d9;
}
.breadcrumb-item.active {
    display: inline-block;
    padding: 3px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #4ade80;
    background: rgba(22, 163, 74, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(22, 163, 74, 0.3);
}
.breadcrumb-item a i,
.breadcrumb-item.active i {
    margin-right: 4px;
    font-size: 0.75rem;
}

/* ----- Additional dark theme overrides ----- */

/* Container fluid row */
.container-fluid > .row {
    align-items: flex-start !important;
}

.col-lg-5.d-none.d-lg-block {
    align-self: flex-start;
    position: sticky;
    top: 80px;
}

/* Use case checkboxes */
.use-case-checkboxes { 
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid #30363d;
    border-radius: 0 0 6px 6px;
    padding: 10px;
    background: #0d1117;
    resize: vertical;
    min-height: 80px;
}
.use-case-checkboxes label {
    display: block;
    padding: 2px 0;
    cursor: pointer;
    color: #c9d1d9;
    font-size: 0.85rem;
}
.use-case-checkboxes input[type="checkbox"] {
    margin-right: 6px;
}
.use-case-search { 
    margin-bottom: 0;
    border-radius: 6px 6px 0 0;
    border-bottom: none;
    background: #0d1117 !important;
    color: #e6edf3 !important;
    border: 1px solid #30363d !important;
}

/* AI Search Loader */
.ai-loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #1f2937;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: ai-spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes ai-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pulse animation for the AI text */
#aiSearchLoader p:first-of-type {
    animation: ai-pulse 1.5s ease-in-out infinite;
    color: #c9d1d9;
}

@keyframes ai-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.ai-tool-row {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.ai-tool-row-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ai-tool-row-desc {
    font-size: 0.9rem;
    color: #8b949e;
    margin: 0;
    line-height: 1.6;
}

.ai-inline-favicon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: contain;
}

.ai-inline-name {
    color: #58a6ff;
    font-weight: 700;
    text-decoration: none;
}

.ai-inline-name:hover {
    text-decoration: underline;
    color: #79c0ff;
}

.ai-inline-external {
    color: #8b949e;
    font-size: 0.85rem;
    text-decoration: none;
}

.ai-inline-external:hover {
    color: #58a6ff;
}

/* Inline AI tool links */
.ai-inline-favicon {
    width: 18px !important;
    height: 18px !important;
    border-radius: 3px !important;
    vertical-align: middle !important;
    margin-right: 4px !important;
    display: inline !important;
}

.ai-inline-name {
    color: #58a6ff !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.ai-inline-name:hover {
    text-decoration: underline !important;
    color: #79c0ff !important;
}

.ai-inline-external {
    color: #8b949e !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
    margin-left: 2px !important;
}

.ai-inline-external:hover {
    color: #58a6ff !important;
}

/* AI Tool Cards */
.ai-tool-card {
    background: #161b22 !important;
    border: 1px solid #30363d !important;
    border-radius: 12px !important;
    height: 100% !important;
    transition: all 0.25s ease !important;
    overflow: hidden !important;
}

.ai-tool-card:hover {
    border-color: #6366f1 !important;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15) !important;
    transform: translateY(-2px) !important;
}

.ai-tool-card-body {
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.ai-tool-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
}

.ai-tool-favicon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    background: #21262d !important;
    padding: 2px !important;
}

.ai-tool-title-group {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

.ai-tool-name-link {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #f0f6fc !important;
    text-decoration: none !important;
}

.ai-tool-name-link:hover {
    color: #58a6ff !important;
}

.ai-tool-external-icon {
    color: #8b949e !important;
    font-size: 0.85rem !important;
    display: inline-flex !important;
    align-items: center !important;
}

.ai-tool-external-icon:hover {
    color: #58a6ff !important;
}

.ai-tool-desc {
    font-size: 0.85rem !important;
    color: #8b949e !important;
    margin-bottom: 1rem !important;
    flex-grow: 1 !important;
    line-height: 1.5 !important;
}

.ai-tool-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: auto !important;
}

.ai-pricing-badge {
    background: #1f2937 !important;
    color: #4da167 !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
    border-radius: 50px !important;
}

.ai-visit-btn {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #58a6ff !important;
    text-decoration: none !important;
    padding: 5px 14px !important;
    border: 1px solid #58a6ff !important;
    border-radius: 50px !important;
    background: transparent !important;
}

.ai-visit-btn:hover {
    background: #6366f1 !important;
    color: #0d1117 !important;
    border-color: #6366f1 !important;
}

.ai-use-cases {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
}

.ai-use-case-tag {
    background: #21262d !important;
    color: #8b949e !important;
    font-size: 0.7rem !important;
    padding: 2px 8px !important;
    border-radius: 50px !important;
    border: 1px solid #30363d !important;
}

/* AI Analysis Content Styling */
.ai-analysis-body {
    color: #c9d1d9;
}

/* AI Toggle - larger size */
.ai-toggle-wrapper { display: flex; align-items: center; }
.ai-toggle { position: relative; display: inline-block; width: 72px; height: 40px; cursor: pointer; }
.ai-toggle input { opacity: 0; width: 0; height: 0; }
.ai-toggle-slider {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: #2a2a4a; border-radius: 40px; transition: 0.3s;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 8px; border: 2px solid #0f57b2;
}
.ai-toggle-slider::before {
    content: ""; position: absolute;
    height: 30px; width: 30px; left: 3px; bottom: 3px;
    background: #d2a1e552; border-radius: 50%; transition: 0.3s; z-index: 1;
}
.ai-toggle input:checked + .ai-toggle-slider { background: #202160; border-color: #6366f1; }
.ai-toggle input:checked + .ai-toggle-slider::before { transform: translateX(32px); }
.ai-toggle-text { font-size: 0.9rem; z-index: 0; }
.ai-toggle-on { opacity: 0.7; }
.ai-toggle input:checked + .ai-toggle-slider .ai-toggle-on { opacity: 1; }


.ai-analysis-body .ai-h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #58a6ff;
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1f2937;
}

.ai-analysis-body .ai-h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #58a6ff;
    margin: 1.2rem 0 0.5rem;
}

.ai-analysis-body .ai-h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #f0f6fc;
    margin: 1rem 0 0.4rem;
}

.ai-analysis-body .ai-text-lg {
    font-size: 1rem;
    font-weight: 500;
    color: #c9d1d9;
    margin: 0.5rem 0;
}

/* Tool name inline (in analysis text) */
.ai-analysis-body .ai-tool-name-inline {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #58a6ff;
    background: #1f2937;
    padding: 3px 12px;
    border-radius: 8px;
    margin: 2px 0;
}

.ai-analysis-body .ai-tool-num {
    color: #58a6ff;
    font-weight: 800;
}

.ai-analysis-body .ai-ul,
.ai-analysis-body .ai-ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    color: #c9d1d9;
}

.ai-analysis-body .ai-ul li,
.ai-analysis-body .ai-ol li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.ai-analysis-body .ai-code {
    background: #1f2937;
    color: #58a6ff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
}

.ai-analysis-body .ai-hr {
    border: none;
    border-top: 1px solid #1f2937;
    margin: 1.5rem 0;
}

.ai-analysis-body .ai-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
    border-radius: 8px;
    overflow: hidden;
}

.ai-analysis-body .ai-table th {
    background: #6366f1;
    color: #f0f6fc;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.ai-analysis-body .ai-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #1f2937;
    color: #c9d1d9;
}

.ai-analysis-body .ai-table tr:last-child td {
    border-bottom: none;
}

.ai-analysis-body .ai-table tr:hover td {
    background: #1f2937;
}

.ai-analysis-body strong {
    color: #58a6ff;
    font-weight: 700;
}

.ai-analysis-body em {
    color: #4da167;
    font-style: italic;
}

.ai-analysis-body p {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    color: #c9d1d9;
}

/* =========================================
   AI SEARCH RESULTS STYLING
   ========================================= */

/* AI Analysis Card */
.ai-analysis-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.ai-analysis-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.ai-analysis-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.ai-analysis-title {
    color: #f0f6fc;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.ai-analysis-body {
    padding: 24px;
    line-height: 1.8;
    font-size: 1rem;
    color: #c9d1d9;
}

.ai-analysis-body h1,
.ai-analysis-body h2,
.ai-analysis-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #58a6ff;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
}

.ai-analysis-body strong {
    color: #58a6ff;
}

.ai-analysis-body ul,
.ai-analysis-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: #c9d1d9;
}

.ai-analysis-body li {
    margin-bottom: 0.4rem;
}

.ai-analysis-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.ai-analysis-body th {
    background: #1f2937;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #30363d;
    color: #f0f6fc;
}

.ai-analysis-body td {
    padding: 10px 14px;
    border-bottom: 1px solid #1f2937;
    color: #c9d1d9;
}

.ai-analysis-body hr {
    border-color: #1f2937;
    margin: 1.5rem 0;
}

.ai-analysis-body code {
    background: #1f2937;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #58a6ff;
}

/* AI Tool Cards (duplicate but keeping for consistency) */
.ai-tool-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    height: 100%;
    transition: all 0.25s ease;
    overflow: hidden;
}

.ai-tool-card:hover {
    border-color: #6366f1;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.ai-tool-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ai-tool-favicon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
    background: #21262d;
    padding: 2px;
}

.ai-tool-name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.ai-tool-name a {
    color: #f0f6fc;
    transition: color 0.2s;
}

.ai-tool-name a:hover {
    color: #58a6ff;
}

.ai-tool-desc {
    font-size: 0.85rem;
    color: #8b949e;
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.5;
}

.ai-pricing-badge {
    display: inline-block;
    background: #1f2937;
    color: #4da167;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
}

.ai-visit-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #58a6ff;
    text-decoration: none;
    padding: 4px 12px;
    border: 1px solid #58a6ff;
    border-radius: 50px;
    transition: all 0.2s;
    background: transparent;
}

.ai-visit-btn:hover {
    background: #6366f1;
    color: #0d1117;
    border-color: #6366f1;
}

.ai-use-cases {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ai-use-case-tag {
    display: inline-block;
    background: #21262d;
    color: #8b949e;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 50px;
    white-space: nowrap;
    border: 1px solid #30363d;
}

/* Responsive */
@media (max-width: 768px) {
    .ai-analysis-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .ai-analysis-title {
        font-size: 1.1rem;
    }
    
    .ai-analysis-body {
        padding: 16px;
        font-size: 0.9rem;
    }
}



/* Glow effect when AI is active */
.ai-toggle input:checked + .ai-toggle-slider {
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

/* =========================================
   SEARCH BAR
   ========================================= */

/* Main search box container */
.search-box {
    position: relative;
    background: #161b22;
    border-radius: 50px;
    padding: 0.3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 1px solid #30363d;
}

/* Search input */
#mainSearchInput {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #e6edf3 !important;
    padding: 0.5rem 3rem 0.5rem 1.5rem !important;
    border-radius: 50px !important;
    font-size: 0.95rem;
}

#mainSearchInput::placeholder {
    color: #8b949e !important;
}

#mainSearchInput:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Search button - round, inside the input */
.search-box .btn-success {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    background: #4da167;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 2;
    color: #0d1117;
}

.search-box .btn-success:hover {
    background: #3d7a52;
}

/* Autocomplete dropdown */
#searchAutocomplete {
    position: absolute;
    top: calc(100% + 8px);
    left: 10px;
    right: 10px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1050;
    padding: 8px 0;
}

#searchAutocomplete .dropdown-item {
    padding: 10px 20px;
    cursor: pointer;
    color: #e6edf3;
    font-size: 0.9rem;
    border: none;
    transition: background 0.15s;
    background: transparent;
}

#searchAutocomplete .dropdown-item:hover {
    background: #1f2937;
    color: #58a6ff;
}

#searchAutocomplete .dropdown-item strong {
    color: #4da167;
    font-weight: 600;
}

#autocompleteNoResults,
#autocompleteLoading {
    padding: 12px 20px;
    color: #8b949e;
    font-size: 0.85rem;
}

/* Mobile tweaks */
@media (max-width: 991.98px) {
    .search-box {
        margin-bottom: 0.5rem;
    }
    
    #searchAutocomplete {
        left: 0;
        right: 0;
    }
}

/* ========== NAV ACTIONS WRAPPER ========== */
/* Force all nav actions into one line */
.nav-actions-wrapper {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: center;
    padding: 0px 0px 0px 19px;
}

.nav-actions-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 0px 19px 0px 0px;
}

.nav-pricing-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    padding: 0px 19px 0px 0px;
}

/* Push login to the right */
.nav-login-dropdown,
.nav-login-btn {
    margin-left: auto !important;
    flex-shrink: 0;
}

/* Only wrap when very narrow */
@media (max-width: 700px) {
    .nav-actions-wrapper {
        flex-wrap: wrap;
    }
    
    .nav-pricing-wrapper {
        order: 3;
        width: 100%;
    }
    
    .nav-login-dropdown,
    .nav-login-btn {
        margin-left: auto !important;
    }
}

/* Mobile menu fixes */
@media (max-width: 991.98px) {
    /* Main navbar collapse area */
    #navbarMain {
        padding: 1rem 0;
    }
    
    /* Search bar – full width */
    #navbarMain .search-box {
        width: 100% !important;
        margin-bottom: 1rem;
    }
    #navbarMain form[action*="search"] {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Action buttons row (Submit, Claim, Login) – centered in one line */
    #navbarMain .d-flex.align-items-center.me-2 {
        flex-direction: row !important;
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 0;
    }
    
    /* Pricing toggle pills – keep 2 rows but centered */
    #navbarMain .d-flex.flex-column {
        flex-direction: column !important;
        align-items: center !important;
        padding: 8px 20px;
    }
    #navbarMain .d-flex.flex-column .d-flex.gap-1 {
        justify-content: center;
    }
    
    /* Login/avatar button – centered */
    #navbarMain .navbar-nav {
        flex-direction: row !important;
        justify-content: center;
        padding: 8px 0 0 0;
    }
    #navbarMain .navbar-nav .nav-item {
        margin: 0;
    }
}





.pricing-toggle {
    font-size: 0.72rem !important;
    padding: 0px 8x !important;
    border-radius: 20px !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    letter-spacing: 0.2px !important;
}
.pricing-toggle.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.12) !important;
    background: transparent !important;
    color: #8b94a3 !important;
}
.pricing-toggle.btn-outline-light:hover {
    border-color: rgba(255,255,255,0.25) !important;
    color: #c9d1d9 !important;
}
.pricing-toggle.btn-success {
    background: rgba(22, 163, 74, 0.15) !important;
    border: 1px solid rgba(22, 163, 74, 0.4) !important;
    color: #4ade80 !important;
}
#clearAllPricing {
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #f87171 !important;
    background: transparent !important;
}
#clearAllPricing:hover {
    border-color: rgba(239, 68, 68, 0.6) !important;
    background: rgba(239, 68, 68, 0.1) !important;
}




/* Flashing LED dot for active pricing pills */
.pricing-toggle.btn-success {
    position: relative;
    overflow: visible;
}
.pricing-toggle.rounded-pill {
    border-radius: 0.2rem !important;
}

.pricing-toggle.btn-success::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 3px;
    height: 3px;
    background-color: #ffd14a;
    border-radius: 50%;
    animation: led-flash 1s infinite;
}
@keyframes led-flash {
    0%, 100% { opacity: 1; box-shadow: 0 0 4px #ff4757; }
    50% { opacity: 0.3; box-shadow: 0 0 8px #ff4757; }
}

.vote-buttons .up-count,
.vote-buttons .down-count {
    display: none;
}

/* ----- Sticky footer ----- */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.page-wrap {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
}

/* Nav filter pill dark */
.search-box .nav-filter-pill {
    background: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    border-radius: 50px;
}
.search-box .nav-filter-pill:hover {
    background: #30363d;
    border-color: #8b949e;
    color: #f0f6fc;
}
.search-box .nav-filter-pill.dropdown-toggle::after {
    border-top-color: #c9d1d9;
}
.search-box .nav-filter-pill {
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.filter-dropdown-menu .dropdown-item.active {
    background: #1f2937;
    color: #4da167;
    font-weight: 600;
}
.filter-option.selected {
    background: #1f2937;
    color: #4da167;
    font-weight: 600;
}

/* Auth tabs dark */
#authTabs .nav-link {
    border-radius: 50px;
    padding: 0.4rem 1.5rem;
    font-weight: 500;
    color: #8b949e;
    background: transparent;
}
#authTabs .nav-link.active {
    background: #4da167;
    color: #0d1117;
}

/* =========================================
   Beautiful header action buttons
   ========================================= */

/* Submit & Claim circles */
.nav-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    border: none !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #0d1117 !important;
    position: relative;
    overflow: hidden;
    font-size: 1.25rem;
}
/* --- Submit button (yellow) --- */
.nav-icon-btn.btn-warning {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    box-shadow: 0 4px 10px rgba(245,158,11,0.35);
}

/* --- Claim / Update button (cyan) --- */
.nav-icon-btn.btn-info {
    background: linear-gradient(135deg, #22d3ee, #06b6d4) !important;
    box-shadow: 0 4px 10px rgba(6,182,212,0.35);
}

/* --- Login / Avatar button (blue) – used by both logged?in avatar and logged?out login --- */
.nav-icon-btn.login-avatar-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    box-shadow: 0 4px 10px rgba(59,130,246,0.35);
}

/* Remove Bootstrap’s default outline for the outline?light class if any leftover */
.btn-outline-light {
    border: none !important;
    background-color: #1f2937;
}

/* Submit – green gradient */
.nav-icon-btn[href="pricing.php"] {
    background: linear-gradient(135deg, #4da167 0%, #3d7a52 100%) !important;
    color: #0d1117 !important;
    box-shadow: 0 4px 10px rgba(77,161,103,0.3);
}

/* Claim – soft purple/blue gradient */
.nav-icon-btn[href="claim-tool.php"] {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #0d1117 !important;
    box-shadow: 0 4px 10px rgba(99,102,241,0.3);
}

/* Hover lift effect */
.nav-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4) !important;
    filter: brightness(1.1);
    color: #0d1117 !important;
}

/* Login / Sign Up pill */
.nav-login-btn {
    background: linear-gradient(135deg, #4da167 0%, #3d7a52 100%) !important;
    border: none !important;
    color: #0d1117 !important;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(77,161,103,0.3);
    transition: all 0.3s ease;
}

.nav-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(77,161,103,0.45) !important;
    filter: brightness(1.05);
}

/* Icon alignment inside the circle */
.nav-icon-btn i {
    position: relative;
    z-index: 1;
}

/* Dark form card */
.dark-form {
    background: #161b22;
    color: #e6edf3;
    border: 1px solid #30363d;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.dark-form .form-label {
    color: #c9d1d9;
}

.dark-form .form-control,
.dark-form .form-select {
    background: #0d1117;
    color: #e6edf3;
    border: 1px solid #30363d;
}

.dark-form .form-control:focus,
.dark-form .form-select:focus {
    background: #0d1117;
    color: #e6edf3;
    border-color: #4da167;
    box-shadow: 0 0 0 0.2rem rgba(77,161,103,0.25);
}

.dark-form .form-text {
    color: #8b949e;
}

.dark-form .btn {
    /* keep existing button styles – they already work */
}

/* Extra space at the bottom of the page container */
.page-spacer {
    padding-bottom: 4rem;
}

.vote-btn.active {
    background-color: #4da167;
    color: #0d1117;
    border-color: #4da167;
}
.downvote.active {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Minimum card width */
.tool-card-col {
    min-width: 380px; 
    max-width: 100%;
}

/* Ensure the row allows wrapping */
#tools-container.row {
    display: flex;
    flex-wrap: wrap;
}

.featured-highlight {
    background-color: #1f2937;
    border-left: 4px solid #f59e0b;
}
.featured-badge {
    background-color: #f59e0b;
    color: #0d1117;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Ad banner container */
.ad-banner {
    margin: 1.5rem 1rem;
    overflow: hidden;
}

/* Leaderboard banner (728x90) – full width on large screens */
.ad-banner-img.leaderboard {
    display: block;
    width: 100%;
    max-width: 728px;
    height: auto;
    margin: 0 auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    object-fit: contain;
}

/* If you ever add a sidebar placement (300x250), use this class */
.ad-banner-img.rectangle {
    max-width: 300px;
}

/* Text-only ad */
.ad-banner-text {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.25rem;
    color: #c9d1d9;
}

.pricing-filter-wrapper .btn-outline-light {
    color: #f0f6fc;
    border-color: rgba(255,255,255,0.2);
}
.pricing-filter-wrapper .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
}
.pricing-filter-wrapper .badge.bg-warning {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}
.pricing-filter-wrapper .remove-pricing-badge:hover {
    opacity: 1 !important;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
}

.parent-title-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-decoration: none;
    width: 100%;
}
.parent-title-link:hover .parent-title {
    background-color: #1f2937;
    border-radius: 4px;
}

.trend-up {
    font-size: 1.4rem;
    font-weight: bold;
}
.trend-down {
    font-size: 1.4rem;
    font-weight: bold;
}
.trend-none {
    font-size: 1.2rem;
}

.badge.bg-light.text-dark {
    background-color: #1f2937 !important;
    color: #f59e0b !important;
    border: 1px solid #f59e0b;
}

.login-avatar-btn {
    background-color: #4da167;
    border: 2px solid #30363d;
    transition: all 0.2s;
}
.login-avatar-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(77, 161, 103, 0.4);
}

.parent-card-clickable {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.parent-card-clickable:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}