
@import url(../css/color.css);
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
  }



body {
    padding: 10px 10px;
    background: var(--body-bg) !important;
    color: #ffffff;
    font-family: "Inter", sans-serif;
}

body , html 
{
  scrollbar-width: none;
  height: 100%;
  overflow: auto;
}
.head{
  display: flex;
  justify-content: space-between;


}
.logo img{
    height: 70px;
    border-radius: 6px;
}

.logo{

    align-items: center;
    display: flex;
    z-index: 1;
    
}
.logo img {
    margin: 0px 10px;
}
 .logo span {
    font-size: 24px;
    /* background: none; */
   color: #1b1b1b; 
    font-weight: 600;
}
.search-page{
    display: flex;
    justify-content: center;

}
.container {
    width: 820px;
    max-width: 96%;
    border-radius: 18px;
    position: relative;
    z-index: 10;
    border-radius: 20px;
}

.header {
    text-align: center;
   
}

 .header  h2 {
    color: #e6000a;
    font-size: 38px;
    margin: 8px 0 10px;
     font-weight: 600;
    letter-spacing: -0.6px
}

 .header  h2 span {
    background: var(--primary_one);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
 .logo_area {
    display: flex;
    align-items: center;
    gap: 4px;
 }
  .logo_area .footer-span{
    color: var(--white);
    margin-left:5px;
  }
  .logo_area img{
    height: 20px;
    border-radius: 3px;
}

.subtitle {
    color: var(--secondary_text);
    font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.active-div{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
}
 
.stats-badge {
    display: inline-block;
    color: var(  --temp-text);
    border-radius: 28px;
    font-weight: 700;
    margin-left: 5px;
}

/* Empty Search icon */
.search-box {
    position: relative;
    margin: 0px auto 10px;
    max-width: 760px;
    overflow: hidden;
     
    background: #fff;
    border-radius: 25px;
}

#searchInput {
    width: 100%;
    padding: 15px 0px 15px 18px;
    border-radius: 35px;
    border: none;
    outline: none;
    font-size: 16px;
    background: #fff;
    color: #333;
  
}

#searchInput::placeholder {
    color: #99989e;
    font-size: 16px;
}

.search-icon {
position: absolute;
    right: 0px;
    top: 0;
    bottom: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #272727;
    font-size: 18px;
    cursor: pointer;
    border: none;
    margin-top: 3px;
    position: absolute;
    overflow: hidden;
    background: #ffffff;
    z-index: 9;
 padding: 10px 20px;
}

.search-marquee {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    white-space: nowrap;

    color: var(--input-placeholder, #9ca3af);
    font-size: 14px;
    pointer-events: none;

    animation: search-cycle 9s linear infinite;
    z-index: 1;
}

@keyframes search-cycle {
    from { transform: translate(0%, -50%); }
    to   { transform: translate(100%, -50%); }
}

span.tip-badge{
  position: relative;
     background: linear-gradient(90deg, #ffa4d7, #deb9ff);
     color: #1a1a1a;

  &::after{
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
      background:var(--tip-bg);
       z-index: -1;
       border-radius: 20px;

    }
}
.tip-badge{
    
    border-radius: 20px;
    background: var(--tip-bg);
    padding: 6px 15px;
    border: none;
    color: var(--tip-text);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
     
}
.app-btn{
    background: #3b61d4;
    color: white;
}



/* Global process-style loader overlay */
.loader-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1300;
  color: #0f172a;
}



.loader-message [data-loader-dots] {
  display: inline-block;
  width: 1.5em;
  text-align: left;
}

.tips {
    text-align: center;
    color: rgba(53, 53, 53, 0.95);
      display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
        flex-wrap: wrap;
}

.tips code {
    display: inline-block;
    padding: 8px 10px;
    border-radius: 20px;
    color: #868686;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
  
}
/* category-card */
.categories{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.category-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(13, 15, 40, 0.06);
    text-align: center;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}
/* Popup and suggestions styling */
.popup {
    display: none;
    inset: 0;
    z-index: 1200;
}

.popup.active {
    display: flex;
}

.popup-content {
  width: 100%;

  border-radius: 16px;
  background: transparent;
}

.close-btn-div{
    display: flex;
    justify-content: flex-end;
}
.popup-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--common_border);
}
.close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  color:var(  --temp-text);
  border: none;
  font-size: 25px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.close-btn:hover {
  background: rgba(168, 77, 122, 0.15);
  transform: scale(1.05);
}

.popup-header h2 {
    font-size: 20px;
    color: #1f2a44;
    margin: 0
}

.result-count {
    color:var(  --temp-text);
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 8px;

}
.popup-cards {
     display: grid !important;

  /* 5 cards in a row on large screens */
  grid-template-columns: repeat(4, 1fr);

  gap: 20px;
  padding: 20px;

  max-height: 50vh;
  overflow-y: auto;

  scrollbar-width: none; 
}

.popup-cards::-webkit-scrollbar {
  display: none; /* Chrome, Edge, Safari */
}

 /* Neutralize Bootstrap col behavior */
.popup-cards > [class*="col-"] {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}


/* ===============================
   MODAL CARD BASE
================================ */
.suggestion-item {
    display: flex;
    flex-direction: column;

    cursor: pointer;
        /* Matches Lovable card height */
    background: var(--card-bg);
    border: 2px solid var(--card-bg);
    border-radius: 16px;

    padding: 16px;
    gap: 12px;
    height: 190px;
    box-sizing: border-box;
    position: relative;
}

.suggestion-item:hover {
    z-index: 20;
    border: 2px solid var(--hover-card-border);
    
}


/* ===============================
   DARK THEME AUTO SUPPORT
================================ */
body.dark-theme .suggestion-item {
  background: rgba(18, 18, 28, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f2f2f2;
}


/* ===============================
   APP NAME ROW
================================ */

.name-apps{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.app-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 5px;
  min-width: 0;
  i{
    font-size: 20px;
    color: #3679e3;
  }

}
 .app-name .app-title {
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  font-weight: 600;
  white-space: normal;
  word-break: break-all;


}
/* Icon */
.app-name svg {
  width: 20px;
  height: 20px;
}

/* ===============================
   MATCH BADGE
================================ */
.app-badge{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0px 0px auto auto;
}
.ai-badge {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 999px;
  color: #15803d;

}
.star-icon{
color: orange;
}
/* ===============================
   DETAILS SECTION
================================ */
.app-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* ===============================
   DETAIL ROW
================================ */
.detail-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  min-width: 0;
}

/* Label */
.detail-label {
  font-weight: 600;
  opacity: 0.85;
  display: flex;
  font-size: 14px;
  color: var(--white);
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  min-width: 0;
  i{
    /* color:var(--white); */
    font-size: 15px;
    display: flex;
  }
  span:not(.ellipsis-text){
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 260px;
  }
}
span.no-url {
    color: #dc3545;
    font-weight: bold;
    width: auto;
}
span.url-found {
    color: #31a94f;
    font-weight: bold;
    width: auto;
}

/* Value */
.detail-value {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  font-size: 14px;
  font-weight: 400;
  text-overflow: ellipsis;
}


/* Show tooltip on hover */
.url-display:hover .copy-tooltip {
  opacity: 1;
}

/* ===============================
   REMOVE DARK ICON FEEL
================================ */
.bi,
.fi {
  opacity: 0.9;
}


/* Wrapper that controls height */
.results-wrapper {          /* full viewport */
  display: flex;
  justify-content: center;
}

/* Empty state container */
.empty-state {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Card */
.no-results {
  background:var(--card-bg); /* light peach */
  border-radius: 16px;
  padding: 60px 100px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Icon */
.no-results-icon {
  width: 64px;
  height: 64px;
  margin: 0px auto 16px;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-results-icon i {
    font-size: 28px;
    color: #ff6285;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Text */
.no-results h3 {
  margin: 0;
  font-size: 20px;
  color:var(--white);
}

.no-results p {
  margin-top: 8px;
  font-size: 14px;
  color:var(--white);
}

      /* AI search status text in footer */
    .ai-status-text {
    margin-left: 6px;
    color: var(--white);
    opacity: 0.9;
    font-size: 15px;
    white-space: nowrap;
    font-weight: 600;
    position: relative;
    min-width: 8vw;
    left: 10px;
    bottom: 0px;
}

.tab-switch {
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 00; /* above offcanvas */
}

/* Common button style */
.tab-switch button {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: none;
    justify-content: center;
    align-items: center;
    display: flex;
    cursor: pointer;
    transition: all 0.2s ease;  
}

/* Icon sizing */
.tab-switch i {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--temp-text);
}
.footer-main{
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 0px;
    right: 0;
    left: 0;
    z-index: 1;
    padding: 0px 6px;
}
.footer-line{
  font-size: 14px;
}
 /* footer */
.powered-by {
    position: relative;
    padding: 3px 5px;
    background-color: #ffffff42;
    color: #000000;
    font-size: 12px;
    border-radius: 5px;
    font-family: sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 0;
    text-transform: none !important;
    font-feature-settings: normal !important;
    font-weight: 400 !important;
    }

   .powered-by .anchor {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--white);
    font-size: 11px;
    white-space: nowrap;
}

.powered-by span img{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 6px;
    height: 13px;
}
.footer-span{
    font-size: 10px;
    font-weight: 600;
    color: #ffffff;
}
    .footer-span span {
        background: linear-gradient(90deg, #ff008c, #8706ff);
        -webkit-background-clip: text;
        font-size: 13px;
        font-weight: 600;
        -webkit-text-fill-color: transparent;
    }

/* SECTION */
.section {
  margin-top: 26px;
}

.section h3 {
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 10px;
}

/* COLOR OPTIONS */
.colors {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.color-option {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}



/* THEME BUTTONS */
.mode-btn {
  padding: 12px 10px;
  min-width: 90px;
  margin-right: 8px;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid #1f2937;
  background: #020617;
  color: #e5e7eb;
  font-size: 13px;
}

.mode-btn.active {
  background: #0f172a;
  border-color: #60a5fa;
}

/* Toggle unpublished apps button */
.toggle-unpublished-btn {
    border-radius: 8px;
    background: none;
    color: #8114e0;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-top: 3px;
    font-size: 16px;
    transition: background 0.2s;
}

.toggle-unpublished-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 18px;
  font-weight: 500;
}

/* ===== MODAL BACKDROP ===== */
.modal-unpublished {
  position: fixed;
  inset: 0;
  padding: 12px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}

/* ===== MODAL CONTAINER ===== */
.modal-unpublished-content {
  width: 420px;
  max-height: 70vh;
  background: #2f2f2f;
  color: #eaeaea;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: "Inter", "Segoe UI", sans-serif;
}

/* ===== FIXED HEADER ===== */
.modal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 16px 20px 0px 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== HEADER TITLE ===== */
.not-published-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

/* ===== CLOSE BUTTON ===== */
.modal-unpublished-close {
  font-size: 22px;
  cursor: pointer;
  color: #ff4d8d;
  font-weight: 500;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.modal-unpublished-close:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

/* ===== SCROLLABLE LIST ===== */
.not-published-list {
  list-style: none;
  margin: 0;
  padding: 12px 20px 16px;
  overflow-y: auto;
  scrollbar-width: none;
}

/* Custom scrollbar */
.not-published-list::-webkit-scrollbar {
  width: 6px;
}
.not-published-list::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 6px;
}

/* ===== LIST ITEMS ===== */
.not-published-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: #dcdcdc;
}

/* ===== ICON ===== */
.not-published-list-icon {
  color: #ff9800;
  font-size: 16px;
  flex-shrink: 0;
}

/* ===== OPTIONAL: HOVER EFFECT ===== */
.not-published-list-item:hover {
  color: #ffffff;
}


.color-option.active {
  outline: 2px solid #ec4899;
  outline-offset: 3px;
}

.search-results-wrapper {
  width: 100%;
  margin-top: 24px;
  overflow-x: hidden;
}

/* =========================================================
   CARDS GRID (PRIMARY + MORE)
   ========================================================= */
.cards-container {
  display: flex;
  flex-wrap: wrap;        /* allows cards to move to next row */
  gap: 18px;              /* spacing between cards */
  width: 100%;
  align-items: stretch;
}

/* =========================================================
   SEE MORE SECTION
   ========================================================= */
.see-more-wrapper {
  width: 100%;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

/* =========================================================
   SEE MORE BUTTON
   ========================================================= */
#seeMoreToggle {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #ffffff;
  border: none;
  border-radius: 18px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

#seeMoreToggle:hover {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  transform: translateY(-1px)
}

/* =========================================================
   SEE MORE LIST (CRITICAL FIX)
   ========================================================= */
#seeMoreList {
  width: 100%;
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  overflow-x: hidden;
}

.app-card h5 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

/* =========================================================
   CARD META TEXT
   ========================================================= */
.app-card .meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* =========================================================
   MATCH BADGE
   ========================================================= */
.match-badge {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

/* =========================================================
   ANIMATION
   ========================================================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
 SKELETON LOADER STYLES
   ========================================================= */

   /* Wrapper */
.cards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0px;
}

/* Card */
.card {
  background: var(--skeleton-bg)!important;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 0.5rem 1.2rem rgba(0,0,0,0.08);
  position: relative;
}

/* Skeleton Base */
.skeleton-card {
   position: relative;
  overflow: hidden;
}

/* Shimmer animation */

.skeleton-card::after {
  content: "";
  position: absolute;
 content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
 background: var(--anime-skele-bg);
  animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
  to {
    transform: translateX(250%);
  }
}


/* Skeleton lines */
.skeleton-line {
  height: 0.9rem;
  border-radius: 0.4rem;
  background: rgba(255,255,255,0.6);
  margin-bottom: 0.75rem;
}

.skeleton-line.title {
  width: 60%;
  height: 1.1rem;
}

.skeleton-line.text {
  width: 85%;
}

.skeleton-line.short {
  width: 50%;
}

/* Badge skeleton */
.skeleton-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 4.5rem;
  height: 1.4rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.7);
}
/* =========================================================
   SEE MORE TOGGLE COUNT BUTTON
   ========================================================= */
#seeMoreToggleCount {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: var( --text-t);
  background:none;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}
#seeMoreToggleCount:hover{
  background-color: none;
}
.btn:hover{
background-color: none;
}


/* copy tooltip */
/* IMPORTANT: card container MUST allow overflow */
.card,
.card-body,
.url-display {
    overflow: visible;

}
.url-display{
  position: relative;
  width: 100%;
} 
.url-text {
    white-space: nowrap;
    font-weight: 600;
    font-size: 13px;
}

.url-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    min-width: 0;
}

.ellipsis-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
    width: 100%;
    font-weight: 400;
    max-width: 250px;
    &:hover{
      text-decoration: underline;
      cursor: pointer;
      color: #2664eb;
    }
}

.url-actions{
  display: flex;
  align-items: center;

}

/* Copy icon */
.copy-url {
    flex-shrink: 0;
    cursor: pointer;
    color: #555;
    padding: 5px 8px;
    border-radius: 8px;
    i{
      color:var(--white);
    }
}

.copy-url:hover {
    color: #000;
    background:rgba(255, 255, 255, 0.308);
}


/* tooltip */
.copy-tooltip {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #222;
    color: #fff;
    padding: 10px 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    word-break: break-all;
    white-space: normal;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.url-display:has(.copy-url:hover,.copy-url:focus){
  .copy-tooltip{
 opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
.action-icon .action-star .star-filled{
  color: orange;
  font-size: 16px;
}
/* =========================================================
   LARGE DESKTOPS (1440px and below)
   ========================================================= */
@media (max-width: 1440px) {
 .container {
    width: 860px;
  }

  .popup-cards {
        grid-template-columns: repeat(4, 1fr);
    }

  #seeMoreList {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}


@media (max-width: 1280px) {
  .container {
    width: 92%;
  }

  .categories {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

 .popup-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* =========================================================
   LAPTOPS (1024px and below)
   ========================================================= */
@media (max-width: 1024px) {
 

   .container {
    width: 100%;
  }

  .cards-container {
    gap: 16px;
  }

  #seeMoreList {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }


  .popup-cards{
    grid-template-columns: repeat(2,1fr);
  }
  .detail-label span{
    max-width: 285px;
  }
}


/* =========================================================
   TABLETS (768px and below)
   ========================================================= */
@media (max-width: 768px) {
  .container {
   
  }

  .header h2 {
    font-size: 28px;
  }

  .subtitle {
    font-size: 15px;
  }

  #searchInput {
    padding: 14px 16px;
    font-size: 15px;
  }

   .categories {
    grid-template-columns: repeat(2, 1fr);
  }
  .popup-cards {
        grid-template-columns: repeat(2, 1fr);
    }

  #seeMoreList {
    grid-template-columns: 1fr;
  }
  .detail-label span{
   max-width: 150px;
  }
}



@media (max-width: 480px) {
 .container {
   
  }

  .categories {
    grid-template-columns: 1fr;
  }

 .popup-cards {
        grid-template-columns: 1fr;
        padding: 14px;
        gap: 16px;
    }
.footer-line{
  display: none;
}
}


/* =========================================================
   MOBILE LARGE (425px and below)
   ========================================================= */
@media (max-width: 425px) {


  .header h2 {
    font-size: 24px;
    line-height: 1.25;
  }

  .subtitle {
    font-size: 14px;
  }

  .logo img {
    height: 48px;
    margin: 0;
  }

  .logo span {
    font-size: 16px;
    text-align: center;
  }
  
  #searchInput {
    font-size: 14px;
  }


  .categories {
    grid-template-columns: 1fr;
  }
  .popup-header {
    padding: 0.75rem 0rem;
  }

  .popup-content {
  
        padding: 0px 8px 8px 8px;
        overflow: auto;
        scrollbar-width: none;
  }

 
  .popup-cards {
    display: grid;
    grid-template-columns: 1fr;   /* single column */
    padding: 0.75rem;
    max-height: none;
    gap: 0.75rem;
    }

    .footer-line{
  display: none;
}
}

/* =========================================================
   MOBILE MEDIUM (375px and below)
   ========================================================= */
@media (max-width: 375px) {
  .header h2 {
    font-size: 22px;
  }

  .subtitle {
    font-size: 13px;
  }

  .tips {
        display: flex;
        flex-wrap: wrap;
      justify-content: center;
        gap: 4px;

}

  .logo img {
    height: 44px;
  }

  .logo span {
    font-size: 15px;
  }

  .active-div {
    display: flex;
    justify-content: center;
    flex-direction: column !important;
  }
  .search-box {
    position: relative;
    margin: 14px auto 10px;
  }

   .app-btn{
          margin: 0;
        }
  .popup-cards {
    gap: 12px;
    max-height: none;
  }

  .cards-container {
    gap: 14px;
  }
  .detail-label span{
    max-width: 130px;
  }

  .footer-line{
  display: none;
}
}


/* =========================================================
   MOBILE SMALL (320px and below)
   ========================================================= */
@media (max-width: 320px) {
  .header h2 {
    font-size: 20px;
  }

  .subtitle {
    font-size: 12px;
  }

  .logo img {
    height: 50px;
  }

  .logo span {
    font-size: 14px;
  }

  #searchInput {
    font-size: 13px;
    padding: 12px 14px;
  }

  
  .tips {
        display: flex;
        flex-wrap: wrap;
        padding-left: 0px;
        text-align: center;
        justify-content: center;
        .tip-badge{
          padding: 6px 10px;

        }
        .app-btn{
          margin: 0;
        }
}

  .container {
    width: 100%;
    
  }

  .popup-cards {
    padding: 10px;
    gap: 10px;
    max-height: none;
  }

  .detail-label span{
    max-width: 85px;
  }
  .footer-line{
  display: none;
}

}
/* ====================== */
.offcanvas-input {
  width: 100% !important;
  max-width: 500px !important;
}
.offcanvas{
    border-radius: 22px;
    position: fixed;
    margin-top: 7vh;
    margin-bottom: 1vh;
    margin-right: 1vh;
    --bs-offcanvas-transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
   width: 95% !important;
}
.offcanvas-body {
    height: 100%;
    scrollbar-width: none;
}
.offcanvas-header {
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  color: #fff;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
}


.offcanvas{
  max-width: 650px !important;
}

.info-card {
background: var(--card-bg);
  padding: 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  
}

.info-card.success { background: #ecfdf5; }

/* Offcanvas transition override: make open/close animate slowly and
   ensure this rule wins over any compiled `transition.scss` that
   disables transitions. Use caution: overriding `prefers-reduced-motion`
   can go against user accessibility preferences. */
.offcanvas-override, .offcanvas {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  will-change: transform;
}
.offcanvas-override.open, .offcanvas.open {
  transform: translateX(0) !important;
}

/* If some compiled stylesheet uses `@media (prefers-reduced-motion: reduce)`
   and sets transitions to `none`, the `!important` above will still
   override it. If you want to respect `prefers-reduced-motion`, remove
   or change these overrides and use a JS opt-in flag instead. */
.info-card.security { background: #ecfeff; }
.info-card.warning { background: #fff7ed; }

.step {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.step-circle {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.step-circle.blue { background: #2563eb; }
.step-circle.green { background: #22c55e; }

.link-box {
  background: #f8fafc;
  color: #272727;
  padding: 0.4rem 0.6rem;
  border-radius: 0.4rem;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.tip-box {
  background: #ecfdf5;
  padding: 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  color: #1a1a1a;
}
/* ===== Accordion Wrapper Spacing ===== */
.accordion {
  --bs-accordion-border-width: 0;
  --bs-accordion-bg: transparent;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  gap: 0.75rem; /* spacing between items */
}

/* ===== Accordion Item (Card Look) ===== */
.accordion-item {
  border: 1px solid #e5edff;
  border-radius: 8px !important;
  overflow: hidden;
  background: #fff;
}
.accordion-header{
   border-radius: 8px !important;
}
/* ===== Accordion Button ===== */
.accordion-button {
  padding: 1rem 1.25rem; /* SAME padding as image */
  font-weight: 500;
  font-size: 0.95rem;
  color: #0f172a;
  background: #fff;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #5050507d !important;
  border-radius: 8px !important;
}

/* Remove Bootstrap blue focus */
.accordion-button:focus {
  box-shadow: none;
}

/* ===== Icon Container (Left Circle) ===== */
.accordion-button span {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.6rem;
    display: flex;
    justify-content: center;
    background: #eef4ff;
    align-items: center;
     i {
        color: #2413ef;
        font-size: 20px;
    }
}

/* ===== Arrow Icon ===== */
.accordion-button::after {
  background-size: 1rem;
  transform: rotate(0deg);
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

/* ===== Active Item Highlight ===== */
.accordion-item:has(.accordion-button:not(.collapsed)) {
  border-color: #c7d7fe;
  background: none !important;
}

/* ===== Accordion Body ===== */
.accordion-body {
  padding: 1rem 1.25rem 1.25rem;
  font-size: 0.9rem;
  background-color: var(--card-bg);
}

/* ===== Remove Default Bootstrap Styles ===== */
.accordion-button:not(.collapsed) {
  background: transparent;
  color: #0f172a;
  box-shadow: none;
}
.accordion-button:not(.collapsed) {
    color: var(--bs-accordion-active-color);
    background-color: none !important;
  }

.step-div{
  display: flex;
  flex-direction: column;
}
.preview-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: #fff;
}

.preview-card img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  display: block;
}


/* Container */
.howto-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Step Row */
.how-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

/* Purple Step Circle */
.step-dot {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Text */
.how-step strong {
  font-size: 0.95rem;
}

.how-step p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  
}

/* Keyboard Key */
.key {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  font-family: monospace;
  color: #292929;
}

/* Chips */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.chip {
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  color: #334155;
}

.chip.primary {
  background: #eef2ff;
  color: #4338ca;
  font-weight: 500;
}

/* Accordion Icon */
.acc-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  background: #eef4ff;
  display: grid;
  place-items: center;
  margin-right: 0.5rem;
}

/* Feature list wrapper */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Feature card */
.feature-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: var(--card-bg);
}

/* Icon */
.feature-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  background: #caffe6;
  color: #16a34a;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

/* Text */
.feature-card strong {
  font-size: 0.9rem;
}

.feature-card p {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
 
}

/* Accordion icon */
.acc-icon.success {
  background: #ecfdf5;
  color: #16a34a;
}


/* Security box */
.security-box {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  border-radius: 0.75rem;
  padding: 1rem;
  font-size: 0.85rem;
  color: #14532d;
  line-height: 1.5;
}

/* Accordion header icon */
.acc-icon.security {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  background: #ecfdf3;
  color: #16a34a;
  display: grid;
  place-items: center;
  margin-right: 0.5rem;
}


/* Tips list */
.tips-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Tip card */
.tip-card {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 0.65rem;
  font-size: 0.85rem;
  color: #7c2d12;
  line-height: 1.4;
}

/* Tip icon */
.tip-icon {
  font-size: 0.9rem;
  color: #f97316;
  margin-top: 0.15rem;
}

/* Header icon */
.acc-icon.tips {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  background: #fff7ed;
  color: #f97316;
  display: grid;
  place-items: center;
  margin-right: 0.5rem;
}


/* help Footer */
.offcanvas-footer-help {
  margin-top: auto;
  padding-top: 1rem;
}

/* Help Card */
.help-card {
  display: flex;
  gap: 0.75rem;
  background: #f3f0ff;
  border: 1px solid #dcd7fe;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  color: green;
}

.help-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.6rem;
    background: #7c3aed;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.help-text strong {
  font-size: 0.95rem;
}

.help-text p {
  font-size: 0.85rem;
  margin: 0.25rem 0 0;
  color: #475569;
}

/* Footer Note */
.help-footer-note {
    font-size: 0.9rem;
    text-align: center;
    position: fixed;
    bottom: 25px;
    padding: 5px;
}

/* domains css */
#domainResults{

  ul{
    padding-left: 0 !important;
  
    li{
    list-style: none;
    border: 1px solid #d4d4d4;
    border-radius: 5px;
    margin: 6px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;

    a{
      
      width: 100%;
      text-decoration: none;
        font-size: 16px;
        font-weight: 600;
      color:var(--white);
      display: flex;
      justify-content: space-between;
    }
    i{
      cursor: pointer;
    }
    }
  }
}
.resolving-loader {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.domain-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Input should take remaining space */
#domainQuery {
  flex: 1;
  height: 44px;
  padding-right: 42px; /* space for ❌ */
  font-size: 14px;
}

/* Force ❌ inside input */
.domain-clear-btn {
  position: absolute;
  right: calc(10px + 230px); 
  /* ↑ adjusts based on buttons width */
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: #9ca3af;
  z-index: 5;
  &:focus {
    outline: none;
  }
}

.domain-clear-btn i {
  font-size: 18px;
}

.domain-clear-btn:hover {
  color: #111827;
}

/* Buttons */
.domain-input-wrapper >.btn:not(.domain-clear-btn) {
  height: 44px;
  white-space: nowrap;
}

.stack-icon{
color:rgb(217 118 11);
}

.computer-icon{
color:var( --computer-icon) ;
}

.link-icon{
color:#2d82ff ;
}

.globe-icon{
color:rgb(247 56 56) ;
}

/* Improve Prompt Button */
.improve-prompt-btn {
    position: absolute;
    right: 55px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.improve-prompt-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
}

.improve-prompt-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.improve-prompt-btn i {
    color: white;
    font-size: 16px;
}

.improve-prompt-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.improve-prompt-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hide button on mobile */
@media (max-width: 480px) {
    .improve-prompt-btn {
        display: none;
    }
}

