/* ==================================================
   VAULT HEADER
================================================== */

.vault-header {
  padding: 24px 0 12px;
}

.page-title {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 14px;
  color: #111827;
}

.page-subtitle {
  font-size: 1.2rem;
  color: #6B7280;
  margin-bottom: 30px;
}

/* ==================================================
   FILTER BAR
================================================== */

.filter-bar {
  margin-bottom: 50px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.search-input {
  flex: 1;
  height: 58px;
  border-radius: var(--radius-md);
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  padding: 0 24px;
  font-size: 16px;
  outline: none;
  transition: var(--transition);
  color: #111827;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.search-input::placeholder {
  color: #9CA3AF;
}

.search-input:focus {
  border-color: #EAB308;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.12);
}

.search-btn {
  height: 58px;
  padding: 0 26px;
  border: none;
  border-radius: var(--radius-sm);
  background: #111827;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  letter-spacing: 0.01em;
}

.search-btn:hover {
  background: #1F2937;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==================================================
   CATEGORY FILTERS
================================================== */

.category-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.category-filters::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex-shrink: 0;
  text-decoration: none;
  color: #4B5563;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.cat-pill:hover {
  background: #FEFCE8;
  border-color: #EAB308;
  color: #713F12;
}

.cat-pill.active {
  background: #111827;
  color: #FFFFFF;
  border-color: #111827;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ==================================================
   PROMPT GRID (MAIN SECTION)
================================================== */

.prompt-grid-section {
  padding-bottom: 80px;
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

/* ==================================================
   PROMPT CARD (ORIGINAL STYLE)
================================================== */

.prompt-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.prompt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  border-color: #D1D5DB;
}

.prompt-card h3,
.prompt-card h2 {
  font-size: 1.4rem;
  color: #111827;
}

.prompt-card p {
  color: #6B7280;
  line-height: 1.7;
}

/* ==================================================
   ADVANCED PROMPT CARD (PCARD)
================================================== */

.pcard {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow: hidden;
  transition: var(--transition);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09), 0 3px 10px rgba(0, 0, 0, 0.05);
  border-color: #D1D5DB;
}

.pcard-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at top right,
    rgba(234, 179, 8, 0.05),
    transparent 40%
  );
}

.pcard-border {
  display: none;
}

/* ==================================================
   CARD HEADER
================================================== */

.pcard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.pcat {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  color: #4B5563;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.pcat.primary {
  background: #FEFCE8;
  color: #713F12;
  border-color: #FEF08A;
}

/* ==================================================
   FAVORITE BUTTON
================================================== */

.pfav-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-sm);
  background: #F9FAFB;
  cursor: pointer;
  color: #9CA3AF;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pfav-btn:hover {
  background: #FEFCE8;
  color: #EAB308;
}

.pfav-btn.active {
  background: #FEFCE8;
  color: #EAB308;
}

.pfav-btn svg {
  width: 16px;
  height: 16px;
}

/* ==================================================
   CARD CONTENT
================================================== */

.pcard-link {
  text-decoration: none;
}

.pcard-title {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.pcard-preview {
  color: #6B7280;
  font-size: 14.5px;
  line-height: 1.75;
  margin-bottom: auto;
}

/* ==================================================
   CARD FOOTER
================================================== */

.pcard-footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid #F3F4F6;
}

.pcard-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #111827;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-name {
  font-weight: 600;
  font-size: 14px;
  color: #374151;
}

.author-date {
  font-size: 12px;
  color: #9CA3AF;
}

/* ==================================================
   CARD ACTIONS
================================================== */

.pcard-actions {
  display: flex;
  gap: 8px;
}

.paction {
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6B7280;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.paction:hover {
  background: #FEFCE8;
  border-color: #EAB308;
  color: #713F12;
}

/* ==================================================
   PAGINATION
================================================== */

.vault-pagination,
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 50px;
}

.page-btn,
.page-number {
  height: 40px;
  min-width: 40px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  color: #374151;
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.page-btn:hover,
.page-number:hover {
  border-color: #EAB308;
  background: #FEFCE8;
  color: #713F12;
}

.page-number.active {
  background: #111827;
  color: #FFFFFF;
  border-color: #111827;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  font-weight: 600;
}

.page-dots {
  padding: 0 4px;
  color: #9CA3AF;
}

/* ==================================================
   SEARCH RESULTS SECTION
================================================== */

.prompt-results {
  width: 100%;
}

.search-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 14px;
  color: #6B7280;
}

.search-count {
  font-weight: 700;
  color: #111827;
}

.prompts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

/* ==================================================
   EMPTY STATE
================================================== */

.empty-vault {
  text-align: center;
  padding: 80px 20px;
}

.empty-vault h3 {
  font-size: 1.7rem;
  margin-bottom: 10px;
  color: #111827;
}

.empty-vault p {
  color: #6B7280;
  margin-bottom: 28px;
}

/* ==================================================
   PROMPT DETAIL PAGE
================================================== */

.detail-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  padding: 48px 0 80px;
}

.detail-main {
  min-width: 0;
}

/* ==================================================
   DETAIL PAGE - HEADER
================================================== */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  margin-bottom: 28px;
  color: #9CA3AF;
}

.breadcrumb a {
  color: #9CA3AF;
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: #111827;
}

.detail-header {
  margin-bottom: 28px;
}

.detail-title {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -1.5px;
  font-weight: 800;
  color: #111827;
  margin: 18px 0;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  color: #6B7280;
}

.detail-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #111827;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-cat-lg {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: #FEFCE8;
  border: 1px solid #FEF08A;
  color: #713F12;
  font-size: 13px;
  font-weight: 600;
}

/* ==================================================
   DETAIL PAGE - CONTENT
================================================== */

.detail-content-box {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.detail-content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.detail-content-label {
  font-weight: 600;
  font-size: 14px;
  color: #374151;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.detail-prompt-text {
  margin: 0;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-md);
  padding: 24px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.85;
  font-size: 15px;
  color: #374151;
}

/* ==================================================
   DETAIL PAGE - ACTIONS
================================================== */

.btn-copy-lg,
.btn-like-lg,
.btn-fav-lg,
.btn-ghost,
.btn-danger {
  border: none;
  border-radius: var(--radius-md);
  height: 44px;
  padding: 0 20px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
}

.btn-copy-lg,
.btn-like-lg {
  background: #111827;
  color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.btn-copy-lg:hover,
.btn-like-lg:hover {
  background: #1F2937;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-fav-lg {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  color: #374151;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-fav-lg:hover {
  background: #FEFCE8;
  border-color: #EAB308;
  color: #713F12;
}

.btn-fav-lg.active {
  background: #FEFCE8;
  color: #713F12;
  border: 1px solid #FEF08A;
}

.btn-ghost {
  background: #F9FAFB;
  color: #374151;
  border: 1px solid #E5E7EB;
}

.btn-ghost:hover {
  background: #F3F4F6;
  border-color: #D1D5DB;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* ==================================================
   SIDEBAR
================================================== */

.detail-sidebar {
  position: sticky;
  top: 110px;
  height: fit-content;
}

.sidebar-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.sidebar-card h3 {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sidebar-info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #F3F4F6;
}

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

.sidebar-info-row span {
  color: #6B7280;
  font-size: 13.5px;
}

.sidebar-info-row a {
  color: #111827;
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  transition: var(--transition);
}

.sidebar-info-row a:hover {
  color: #EAB308;
}

/* ==================================================
   RESPONSIVE DESIGN
================================================== */

@media (max-width: 1100px) {
  .prompt-grid,
  .prompts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1000px) {
  .detail-page {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .search-form {
    flex-direction: column;
  }

  .search-input,
  .search-btn {
    width: 100%;
  }

  .prompt-grid,
  .prompts-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 2.2rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .detail-title {
    font-size: 2rem;
  }

  .detail-content-box {
    padding: 22px;
  }

  .detail-content-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .detail-actions {
    flex-direction: column;
  }

  .btn-copy-lg,
  .btn-like-lg,
  .btn-fav-lg,
  .btn-ghost,
  .btn-danger {
    width: 100%;
  }

  .pcard {
    padding: 22px;
  }

  .pcard-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .pcard-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .pcard-actions {
    width: 100%;
  }

  .paction {
    flex: 1;
  }

  .category-filters {
    gap: 6px;
  }

  .cat-pill {
    padding: 9px 14px;
    font-size: 13px;
  }
}

/* ========================================
   FAVORITES PAGE
======================================== */

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.page-header p {
    color: #6B7280;
    font-size: 1.05rem;
}

/* GRID */

.prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

/* CARD */

.prompt-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.prompt-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border-color: #D1D5DB;
}

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

.card-cat {
    background: #FEFCE8;
    color: #713F12;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    border: 1px solid #FEF08A;
    letter-spacing: 0.02em;
}

.btn-fav {
    background: transparent;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #9CA3AF;
    transition: var(--transition);
}

.btn-fav:hover {
    color: #EAB308;
}

.btn-fav.active {
    color: #ef4444;
}

.card-title-link {
    text-decoration: none;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
    line-height: 1.35;
    letter-spacing: -0.3px;
}

.card-preview {
    color: #6B7280;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* FOOTER */

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #F3F4F6;
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-author,
.card-date {
    font-size: 12.5px;
    color: #9CA3AF;
}

.card-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.like-badge {
    background: #F9FAFB;
    color: #6B7280;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid #E5E7EB;
}

.btn-copy {
    border: none;
    background: #111827;
    color: #FFFFFF;
    padding: 9px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13.5px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
}

.btn-copy:hover {
    background: #1F2937;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* EMPTY STATE */

.empty-state {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 64px 30px;
    text-align: center;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.7;
}

.empty-state h3 {
    margin-bottom: 8px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.5px;
}

.empty-state p {
    color: #6B7280;
    margin-bottom: 24px;
    font-size: 15px;
}

/* MOBILE */

@media (max-width: 768px) {

    .page-header h1 {
        font-size: 2rem;
    }

    .prompts-grid {
        grid-template-columns: 1fr;
    }

    .prompt-card {
        padding: 20px;
    }

    .card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-btns {
        width: 100%;
        justify-content: space-between;
    }

    .btn-copy {
        flex: 1;
    }
}

/* ========================================
   FEATURED COLLECTIONS
======================================== */

.featured-collections {
    margin: 60px 0;
}

.featured-collections h2 {
    font-size: 1.875rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.featured-collections p {
    color: #6B7280;
    margin-bottom: 28px;
    font-size: 15px;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.collection-card {
    display: block;
    text-decoration: none;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 26px;
    color: #111827;
    transition: all .2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.collection-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #EAB308;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.collection-card:hover::before {
    opacity: 1;
}

.collection-card:hover {
    transform: translateY(-4px);
    border-color: #D1D5DB;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09), 0 3px 10px rgba(0, 0, 0, 0.05);
}

.collection-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111827;
    letter-spacing: -0.3px;
}

.collection-card p {
    color: #6B7280;
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 14.5px;
}

.collection-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #F3F4F6;
}

.collection-count {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    background: #FEFCE8;
    color: #713F12;
    font-weight: 600;
    font-size: 12px;
    border: 1px solid #FEF08A;
}

.collection-arrow {
    color: #9CA3AF;
    font-size: 1rem;
    font-weight: 500;
    transition: transform 0.2s ease, color 0.2s ease;
}

.collection-card:hover .collection-arrow {
    transform: translateX(4px);
    color: #EAB308;
}
.featured-collections{
    margin:50px 0;
}



.collections-btn{
    text-decoration:none;
    background:#111827;
    color:white;
    padding:14px 22px;
    border-radius:12px;
    font-weight:700;
}

.collections-btn:hover{
    background:#EAB308;
    color:#111827;
}

.collection-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px;
}

@media (max-width:1000px){
    .collection-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width:768px){

    .section-header{
        flex-direction:column;
        align-items:flex-start;
    }

    .collection-grid{
        grid-template-columns:1fr;
    }
}
.section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:24px;
    margin-bottom:32px;
}

.section-header-content{
    flex:1;
}




.section-header h2{
    margin:0 0 8px;
}

.section-header p{
    margin:0;
    color:var(--text-light);
}

/* Floating Button */

#rohi-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: #fbbf24; /* Brand Yellow */
    color: #111827; /* Brand Black */
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    z-index: 1010;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rohi-pulse 2s infinite;
}

#rohi-toggle:hover {
    transform: scale(1.08) rotate(5deg);
}

#rohi-toggle.active {
    background: #111827;
    color: #fbbf24;
    border: 2px solid #fbbf24;
}

/* Chat Window */

#rohi-chat {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 360px;
    height: 520px;
    background: rgba(17, 24, 39, 0.95); /* Charcoal Glass */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1010;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

#rohi-chat.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
}

/* Header */

.rohi-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(251, 191, 36, 0.15);
    color: #fbbf24; /* Brand Yellow */
    padding: 16px 20px;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.3px;
}

/* Messages */

#rohi-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rohi-user {
    background: #fbbf24; /* Brand Yellow */
    color: #111827; /* Brand Black */
    padding: 10px 16px;
    border-radius: 14px 14px 2px 14px;
    align-self: flex-end;
    max-width: 80%;
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-word;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.15);
}

.rohi-ai {
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    padding: 10px 16px;
    border-radius: 14px 14px 14px 2px;
    align-self: flex-start;
    max-width: 80%;
    font-size: 0.95rem;
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.05);
    word-break: break-word;
}

/* Input */

.rohi-input-row {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(17, 24, 39, 0.98);
}

#rohi-input {
    flex: 1;
    border: none;
    padding: 16px 20px;
    outline: none;
    background: transparent;
    color: white;
    font-size: 0.95rem;
}

#rohi-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#rohi-send {
    background: #fbbf24; /* Brand Yellow */
    color: #111827; /* Brand Black */
    border: none;
    padding: 0 24px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

#rohi-send:hover {
    background: #f59e0b; /* Amber */
}

@keyframes rohi-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(251, 191, 36, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    }
}

@media(max-width:768px){

    #rohi-toggle{
        width: 52px;
        height: 52px;
        font-size: 20px;
        right: 16px;
        bottom: 16px;
    }

    #rohi-chat{
        width: calc(100% - 32px);
        height: 60vh;
        right: 16px;
        left: 16px;
        bottom: 84px;
    }

}
/* =========================
   ROHI LIMIT MODAL
========================= */

.rohi-limit-modal{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 20px;
}

.rohi-limit-card{
    width: 340px;
    max-width: 100%;
    background: #111111;
    border: 2px solid #facc15;
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 15px 50px rgba(0,0,0,.45);
}

.rohi-limit-icon{
    font-size: 30px;
    margin-bottom: 10px;
}

.rohi-limit-card h2{
    font-size: 20px;
    font-weight: 700;
    color: #facc15;
    margin-bottom: 10px;
}

.rohi-limit-card p{
    font-size: 14px;
    line-height: 1.6;
    color: #d1d5db;
    margin-bottom: 20px;
}

.rohi-limit-actions{
    display: flex;
    gap: 10px;
}

.rohi-signup-btn{
    flex: 1;
    background: #facc15;
    color: #111111;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: .2s;
}

.rohi-signup-btn:hover{
    transform: translateY(-2px);
}

.rohi-login-btn{
    flex: 1;
    border: 1px solid #facc15;
    color: #facc15;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: .2s;
}

.rohi-login-btn:hover{
    background: rgba(250,204,21,.08);
    transform: translateY(-2px);
}

/* Mobile */

@media (max-width: 768px){

    .rohi-limit-card{
        width: 300px;
        padding: 20px;
    }

    .rohi-limit-icon{
        font-size: 26px;
    }

    .rohi-limit-card h2{
        font-size: 18px;
    }

    .rohi-limit-card p{
        font-size: 13px;
    }

    .rohi-signup-btn,
    .rohi-login-btn{
        font-size: 13px;
        padding: 9px;
    }

}

/* ==================================================
   DARK THEME OVERRIDES FOR VAULT & COLLECTIONS
   ================================================== */

/* Headers */
.page-title {
  color: var(--text) !important;
}
.page-subtitle {
  color: var(--text-light) !important;
}

/* Search Bar */
.search-input {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  box-shadow: var(--shadow-sm) !important;
}
.search-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15) !important;
}
.search-btn {
  background: var(--primary) !important;
  color: #111827 !important;
}
.search-btn:hover {
  background: var(--primary-hover) !important;
  color: #111827 !important;
  box-shadow: var(--shadow-md) !important;
}

/* Category Filters */
.cat-pill {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-light) !important;
  box-shadow: var(--shadow-sm) !important;
}
.cat-pill:hover {
  background: var(--surface-hover) !important;
  border-color: var(--primary) !important;
  color: var(--text) !important;
}
.cat-pill.active {
  background: var(--primary) !important;
  color: #111827 !important;
  border-color: var(--primary) !important;
  box-shadow: var(--shadow-md) !important;
}

/* Prompt Card / pcard & Collections prompt-card */
.pcard, .prompt-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-sm) !important;
}
.pcard:hover, .prompt-card:hover {
  border-color: var(--primary) !important;
  box-shadow: var(--shadow-md) !important;
}
.pcard-title, .prompt-card h3 {
  color: var(--text) !important;
}
.pcard-preview, .prompt-card p {
  color: var(--text-light) !important;
}
.pcard-footer, .prompt-card-footer {
  border-top: 1px solid var(--border) !important;
}

/* Badges */
.pcat {
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-light) !important;
}
.pcat.primary {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  border-color: rgba(251, 191, 36, 0.25) !important;
}

/* Author Info */
.author-dot {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  border: 1px solid rgba(251, 191, 36, 0.25) !important;
}
.author-name {
  color: var(--text) !important;
}
.author-date {
  color: var(--text-muted) !important;
}

/* Favorite Button */
.pfav-btn {
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-light) !important;
}
.pfav-btn:hover, .pfav-btn.active {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  border-color: rgba(251, 191, 36, 0.25) !important;
}

/* Action Buttons inside Card */
.paction {
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-light) !important;
}
.paction:hover {
  background: var(--surface-hover) !important;
  color: var(--text) !important;
}
.paction.like-btn:hover, .paction.like-btn.liked {
  color: var(--danger) !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
  background: rgba(239, 68, 68, 0.05) !important;
}
.paction.copy-btn:hover, .paction.copy-btn.copied {
  color: var(--success) !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
  background: rgba(16, 185, 129, 0.05) !important;
}

/* Search count labels */
.search-label {
  color: var(--text-light) !important;
}
.search-count {
  color: var(--primary) !important;
}
.search-filter-note {
  color: var(--text-muted) !important;
}

/* Pagination */
.page-number {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-light) !important;
}
.page-number:hover {
  background: var(--surface-hover) !important;
  color: var(--text) !important;
  border-color: var(--primary) !important;
}
.page-number.active {
  background: var(--primary) !important;
  color: #111827 !important;
  border-color: var(--primary) !important;
}
.page-btn {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-light) !important;
}
.page-btn:hover {
  background: var(--surface-hover) !important;
  color: var(--text) !important;
  border-color: var(--primary) !important;
}

/* Prompt Detail Page Overrides */
.detail-title {
  color: var(--text) !important;
}
.breadcrumb, .detail-meta, .detail-date, .detail-likes {
  color: var(--text-light) !important;
}
.breadcrumb a {
  color: var(--primary) !important;
}
.breadcrumb a:hover {
  color: var(--primary-hover) !important;
}
.mini-avatar {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  border: 1px solid rgba(251, 191, 36, 0.25) !important;
}
.detail-content-box {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
}
.detail-content-header {
  border-bottom: 1px solid var(--border) !important;
  background: rgba(255, 255, 255, 0.01) !important;
}
.detail-content-label {
  color: var(--text) !important;
}
.detail-prompt-text {
  background: var(--bg) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}

/* Sidebar & Stats Card in Detail Page */
.detail-sidebar .sidebar-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
}
.detail-sidebar h3, .detail-sidebar h4 {
  color: var(--text) !important;
}
.detail-sidebar p {
  color: var(--text-light) !important;
}

/* Detail Buttons */
.btn-copy-lg, .btn-like-lg, .btn-fav-lg, .btn-ghost {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}
.btn-copy-lg:hover, .btn-like-lg:hover, .btn-fav-lg:hover, .btn-ghost:hover {
  background: var(--surface-hover) !important;
  border-color: var(--primary) !important;
}
.btn-copy-lg {
  background: var(--primary) !important;
  color: #111827 !important;
  border-color: var(--primary) !important;
}
.btn-copy-lg:hover {
  background: var(--primary-hover) !important;
  color: #111827 !important;
}
.btn-fav-lg.active {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  border-color: rgba(251, 191, 36, 0.25) !important;
}

/* Form Overrides */
.form-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-sm) !important;
}
.form-card-header h1 {
  color: var(--text) !important;
}
.form-card-header p {
  color: var(--text-light) !important;
}
.form-label {
  color: var(--text) !important;
}
.form-input, .form-select, .form-textarea {
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15) !important;
}
.form-hint {
  color: var(--text-muted) !important;
}
.form-tips {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
}
.form-tips h3 {
  color: var(--text) !important;
}
.form-tips li {
  color: var(--text-light) !important;
}