/* ═══════════════════════════════════════════════════════════════
   VIRAL PROMPT — Design System v3
   Clean · Soft · Community-style (purple)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --primary: #7C5CFF;
  --primary-dark: #6847E8;
  --primary-light: #F1EDFF;
  --bg: #F7F7FA;
  --card: #FFFFFF;
  --text: #17151F;
  --muted: #6E6A7C;
  --border: #E9E7F0;
  --green: #16A34A;
  --green-light: #DCFCE7;
  --red: #DC2626;
  --amber: #D97706;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 3px rgba(23, 21, 31, 0.06);
  --shadow-md: 0 6px 20px rgba(23, 21, 31, 0.08);
  --shadow-hover: 0 10px 28px rgba(124, 92, 255, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse 90% 500px at 50% -80px, rgba(124, 92, 255, 0.16), transparent),
    linear-gradient(180deg, #ECE7FD 0%, #F4F2FB 420px, var(--bg) 850px);
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
a { color: var(--primary); text-decoration: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
::selection { background: var(--primary-light); }

/* ─── Header ─── */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 2px rgba(23, 21, 31, 0.02);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-icon-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(124, 92, 255, 0.45));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
  flex-shrink: 0;
}

.brand:hover .brand-icon-img,
.brand:hover img {
  transform: scale(1.08) rotate(-3deg);
  filter: drop-shadow(0 5px 16px rgba(124, 92, 255, 0.7));
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7C5CFF 0%, #6847E8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(124, 92, 255, 0.3);
}

.brand b { color: var(--primary); font-weight: 800; }
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(124, 92, 255, 0.45));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color .15s ease;
  white-space: nowrap;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--text);
}

.main-nav .nav-btn {
  background: var(--primary);
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, transform .15s ease;
  box-shadow: 0 2px 8px rgba(124, 92, 255, 0.25);
}

.main-nav .nav-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Mobile Toggle */
.nav-toggle-cb { display: none; }
.nav-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text);
  user-select: none;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .15s;
  line-height: 1.4;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(124, 92, 255, 0.25);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.32);
}

.btn-outline {
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #12813B; color: #fff; transform: translateY(-1px); }
.btn-lg { padding: 14px 34px; font-size: 16px; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-danger { background: var(--red); color: #fff; }
.btn-block { display: block; width: 100%; }

/* ─── Cover Slider & Marquee ─── */
.cover-slider {
  position: relative;
  width: 100%;
  height: min(280px, 36vw);
  overflow: hidden;
  background: linear-gradient(115deg, #6847E8, #A78BFA);
}

.cover-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.cover-slide.active { opacity: 1; }

/* ─── Cover Prompts Marquee (Moving to Right) ─── */
.cover-marquee-wrap {
  position: relative;
  width: 100%;
  height: min(260px, 38vw);
  min-height: 200px;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 120% at 50% 50%, #1c182b 0%, #0d0b14 100%);
  display: flex;
  align-items: center;
  box-shadow: inset 0 -6px 20px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

/* Edge gradient fades for seamless appearance */
.cover-marquee-wrap::before,
.cover-marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 5;
  pointer-events: none;
}
.cover-marquee-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #0d0b14 0%, transparent 100%);
}
.cover-marquee-wrap::after {
  right: 0;
  background: linear-gradient(270deg, #0d0b14 0%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: marqueeMoveRight 36s linear infinite;
  will-change: transform;
}

.cover-marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeMoveRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

.marquee-card {
  position: relative;
  width: min(340px, 46vw);
  height: min(190px, 26vw);
  min-width: 260px;
  min-height: 145px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #171523;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  user-select: none;
}

.marquee-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #7C5CFF;
  box-shadow: 0 10px 28px rgba(124, 92, 255, 0.35);
  z-index: 10;
}

.marquee-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.marquee-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(18, 16, 28, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.marquee-badge.is-free {
  background: rgba(22, 163, 74, 0.88);
  border-color: rgba(34, 197, 94, 0.3);
}

@media (max-width: 768px) {
  .cover-marquee-wrap {
    height: 190px;
    min-height: 170px;
  }
  .marquee-card {
    width: 250px;
    height: 140px;
    min-width: 240px;
    min-height: 135px;
    border-radius: 12px;
  }
}

/* ─── Profile Strip ─── */
.profile-strip { padding: 0 0 10px; }
.avatar-wrap {
  position: relative;
  display: inline-block;
  margin-top: -64px;
}
.profile-avatar {
  width: 128px;
  height: 128px;
  border-radius: 32px;
  border: 4px solid #fff;
  box-shadow: var(--shadow-md);
  display: block;
  object-fit: cover;
  background: #7c5cff;
}
.verified-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 32px;
  height: 32px;
  background: #1D9BF0;
  border-radius: 50%;
  border: 3px solid #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.profile-name {
  font-size: 27px;
  font-weight: 800;
  margin: 10px 0 2px;
}
.profile-name b { color: var(--primary); font-weight: 800; }
.byline { margin: 0; font-size: 15.5px; color: var(--muted); }
.byline strong { color: var(--text); }

/* ─── Prompts List (.plist & .prow) — Exact soniprompts.com dimensions ─── */
.plist {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 20px 44px;
}

.plist-head {
  font-size: 22px;
  font-weight: 800;
  margin: 34px 0 16px;
  color: var(--text);
}

.prow {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  padding: 16px;
  margin-bottom: 18px;
  text-decoration: none;
  color: var(--text);
  transition: all .18s;
}

.prow:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #D8CFFF;
}

.prow-thumb {
  width: 330px;
  min-width: 330px;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #eae8f5;
  flex-shrink: 0;
}

.prow-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prow-file-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  background: #fff;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #EC4899;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.prow-file-badge.is-locked {
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 13px;
}

.prow-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 0;
}

.prow-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text);
  line-height: 1.35;
}

.prow-cat {
  display: block;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 7px;
}

.prow-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  display: block;
}
.prow-price.is-free {
  color: var(--green);
}
.prow-price.is-premium {
  color: var(--primary);
}

.prow-btn {
  display: inline-block;
  background: var(--text);
  color: #fff !important;
  padding: 11px 26px !important;
  border-radius: 999px !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  white-space: nowrap;
  transition: all .15s;
  margin-top: 16px;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.prow:hover .prow-btn {
  background: var(--primary) !important;
  color: #fff !important;
}

.prow-btn-free {
  background: var(--text) !important;
}
.prow:hover .prow-btn-free {
  background: var(--green) !important;
  color: #fff !important;
}

.prow-btn-view {
  display: inline-block;
  background: var(--text) !important;
  color: #fff !important;
  padding: 11px 26px !important;
  border-radius: 999px !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  white-space: nowrap;
  transition: all .15s;
  margin-top: 16px;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.prow:hover .prow-btn-view,
.prow-btn-view:hover {
  background: var(--primary) !important;
  color: #fff !important;
}

@media (max-width: 680px) {
  .prow {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .prow-thumb {
    width: 100%;
    min-width: 0;
  }
  .prow-body {
    padding: 0 4px 6px;
  }
}

/* ─── All Prompts Grid & Filters ─── */
.section-title { font-size: clamp(24px, 4vw, 32px); font-weight: 800; text-align: center; margin-bottom: 6px; }
.section-sub { font-size: 15px; color: var(--muted); text-align: center; margin-bottom: 24px; font-weight: 500; }

.filters { max-width: 1040px; margin: 0 auto 28px; }
.search-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto 18px;
  align-items: center;
}
.search-form input {
  flex: 1;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fff;
}
.search-form input:focus { border-color: var(--primary); }
.search-form select {
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}
.search-form .btn {
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background .15s ease;
}
.search-form .btn:hover {
  background: var(--primary-dark);
}

.cat-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 10px;
}
.pill {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1.5px solid var(--border);
  text-decoration: none;
  cursor: pointer;
  transition: all .12s ease;
  display: inline-flex;
  align-items: center;
}
.pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.pill.active {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

/* ─── CTA Banner ─── */
.cta-banner {
  background: linear-gradient(135deg, #7C5CFF 0%, #6847E8 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.25);
}

.cta-banner span {
  font-size: 14.5px;
  font-weight: 500;
  color: #ffffff;
}

.cta-banner .btn {
  background: #ffffff !important;
  color: #7C5CFF !important;
  border-radius: 999px;
  padding: 8px 22px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform .15s ease, background .15s ease;
  border: none;
}

.cta-banner .btn:hover {
  background: #f8f6ff !important;
  transform: translateY(-1px);
}

/* ─── Grid & Cards for Browse ─── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

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

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .cta-banner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .cta-banner .btn {
    width: 100%;
  }
}

.pcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: var(--shadow-sm);
}

.pcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #D8CFFF;
}

.pcard-thumb {
  aspect-ratio: 16/9;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #171524;
  cursor: pointer;
  flex-shrink: 0;
}

.pcard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.pcard:hover .pcard-thumb img {
  transform: scale(1.02);
}

.lock-badge, .free-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.lock-badge {
  background: rgba(23, 21, 31, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
}

.free-badge {
  background: var(--green);
  color: #fff;
}

.pcard-body {
  padding: 15px 16px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pcard-cat {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 9px;
}

.pcard-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px 0;
  color: var(--text);
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
  transition: color .15s ease;
}

.pcard-title a {
  color: var(--text);
  text-decoration: none;
}

.pcard-title a:hover {
  color: var(--primary);
}

.pcard-ex {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.pcard-foot {
  padding: 10px 16px 16px;
}

.pcard-foot .btn {
  width: 100%;
  display: block;
  text-align: center;
  padding: 10px 0;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
}

.pcard-foot .btn-outline {
  border: 1.5px solid #E5E7EB;
  background: #ffffff;
  color: #17151F;
}

.pcard-foot .btn-outline:hover {
  border-color: #7C5CFF;
  color: #7C5CFF;
  background: #FAF9FF;
}

.pcard-foot .btn-green {
  background: #16A34A !important;
  color: #ffffff !important;
  border: 1.5px solid #16A34A !important;
}

.pcard-foot .btn-green:hover {
  background: #15803D !important;
  border-color: #15803D !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.pcard-foot .btn-primary {
  background: var(--primary) !important;
  color: #ffffff !important;
  border: 1.5px solid var(--primary) !important;
}

.pcard-foot .btn-primary:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* ─── Pagination ─── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.page-link {
  padding: 8px 15px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  background: #fff;
  cursor: pointer;
  transition: all .12s ease;
}

.page-link.active, .page-link:hover {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

/* ─── WhatsApp Float ─── */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff !important;
  text-decoration: none;
  padding: 13px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  font-weight: 700;
  font-size: 14.5px;
  transition: all .18s ease;
}

.wa-float:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
  color: #fff !important;
}

.wa-float-label { line-height: 1; }

@media (max-width: 520px) {
  .wa-float { padding: 13px; bottom: 16px; right: 16px; }
  .wa-float-label { display: none; }
}

/* ─── Pricing ─── */
.pricing-wrap { max-width: 440px; margin: 0 auto 36px; }
.price-card {
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 36px 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
}
.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.price-num { font-size: 48px; font-weight: 800; color: var(--text); }
.price-per { font-size: 16px; color: var(--muted); font-weight: 600; }
.features { list-style: none; margin: 24px 0 30px; text-align: left; }
.features li { padding: 8px 0; font-size: 14.5px; border-bottom: 1px solid var(--border); }
.features li::before { content: "✔"; color: var(--green); font-weight: bold; margin-right: 8px; }

.trust-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 30px auto 40px;
  flex-wrap: wrap;
}
.trust { font-size: 14px; text-align: center; }
.trust b { display: block; font-size: 15px; color: var(--text); }
.trust span { color: var(--muted); font-size: 13px; }

/* ─── Community Feed & Composer (Exact SoniPrompts Match) ─── */
.community-wrap { max-width: 680px; margin: 0 auto; padding: 0 20px 44px; }

.composer {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  margin-bottom: 24px;
}

.composer textarea {
  width: 100%;
  min-height: 90px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: 12px 15px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  resize: vertical;
  box-sizing: border-box;
}

.composer textarea:focus { outline: none; border-color: var(--primary); background: #fff; }

.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 12px;
}

.composer-attach {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 16px;
  border: 1.5px dashed var(--border);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s ease;
}

.composer-attach:hover { border-color: var(--primary); color: var(--primary); }
.attach-name { color: var(--green); font-size: 12.5px; margin-left: 8px; font-weight: 600; }

.mem-banner {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.mem-banner span {
  font-size: 14.5px;
  color: var(--muted);
  font-weight: 500;
}

.cpost {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  margin-bottom: 18px;
}

.cpost-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cpost-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cpost-admin-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  margin-left: 4px;
}

.cpost-time { font-size: 12.5px; color: var(--muted); }

.cpost-text {
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 12px;
  word-wrap: break-word;
  white-space: pre-wrap;
  color: var(--text);
}

.cpost-media { margin-bottom: 12px; }

.cpost-media img,
.cpost-media video {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #0F0E13;
}

.cpost-actions {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.cact {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 999px;
  transition: all .12s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cact:hover { background: var(--bg); color: var(--text); }
.cact.liked { color: var(--red); }

.cpost-comments {
  border-top: 1px solid var(--border);
  margin-top: 10px;
  padding-top: 12px;
}

.ccomment {
  font-size: 13.5px;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 12px;
  margin-bottom: 8px;
}

.ccomment strong {
  display: block;
  font-size: 12.5px;
  color: var(--primary);
  margin-bottom: 2px;
}

/* ─── Prompt Single / Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(23, 21, 31, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.prompt-modal-box {
  background: #fff;
  border-radius: var(--radius);
  max-width: 740px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
.close-modal {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #f1edf9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
}

.prompt-code-container {
  background: #17151f;
  border-radius: 12px;
  padding: 18px;
  color: #f1f5f9;
  font-family: monospace;
  font-size: 13.5px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
  margin: 18px 0;
  position: relative;
}

/* ─── Admin Dashboard Styles ─── */
.admin-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.admin-grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-box {
  background: #f8f8fc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}
.stat-box .num { font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-box .label { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ─── Admin Navigation Tabs ─── */
.admin-tabs {
  display: flex;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 8px 10px;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  flex-wrap: wrap;
  align-items: center;
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid #e2e8f0;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  font-family: inherit;
  outline: none;
  line-height: 1.3;
}

.admin-tab:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.admin-tab.active {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%) !important;
  color: #ffffff !important;
  border-color: #111827 !important;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.28) !important;
  transform: translateY(-1px);
}

.admin-tab .tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #e2e8f0;
  color: #334155;
  transition: all 0.18s;
  margin-left: 2px;
}

.admin-tab.active .tab-badge {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

.admin-tab:hover .tab-badge {
  background: #cbd5e1;
  color: #0f172a;
}

/* ─── Admin Action Buttons ─── */
.btn-action-grant {
  background: #059669;
  color: #ffffff !important;
  border: 1px solid #047857;
  padding: 6px 13px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.2);
}
.btn-action-grant:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(5, 150, 105, 0.35);
}

.btn-action-extend {
  background: #ffffff;
  color: #4f46e5 !important;
  border: 1.5px solid #c7d2fe;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.btn-action-extend:hover {
  background: #eef2ff;
  border-color: #6366f1;
  transform: translateY(-1px);
}

.btn-action-revoke {
  background: #fffbeb;
  color: #b45309 !important;
  border: 1.5px solid #fde68a;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.btn-action-revoke:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  transform: translateY(-1px);
}

.btn-action-delete {
  background: #ffffff;
  color: #dc2626 !important;
  border: 1.5px solid #fecaca;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.btn-action-delete:hover {
  background: #fee2e2;
  border-color: #ef4444;
  transform: translateY(-1px);
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
}
.form-control:focus { border-color: var(--primary); }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th, .admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.admin-table th { background: #f8f8fc; color: var(--muted); font-weight: 700; }

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 20px;
  margin-top: 50px;
  background: #ffffff;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.f-left { text-align: left; }
.f-center { flex: 1; display: flex; justify-content: center; }
.f-right { text-align: center; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 3px;
  color: var(--text);
  text-decoration: none;
}
.footer-brand b { color: var(--primary); }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; }

.footer-tag {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color .15s ease;
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-dot {
  color: #C9C5D6;
  font-weight: 700;
  user-select: none;
}

.follow-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-ic {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all .15s ease;
  text-decoration: none;
}

.social-ic:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-copy {
  font-size: 12px;
  color: #A5A1B2;
  text-align: center;
  margin-top: 20px;
}

.prompt-single {
  max-width: 840px;
  margin: 40px auto;
  padding: 0 20px;
}

.back-link {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 20px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  transition: all .12s;
}
.back-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.prompt-head h1 {
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 12px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.prompt-meta {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 26px;
  font-weight: 500;
  flex-wrap: wrap;
  align-items: center;
}

.prompt-meta span {
  background: #fff;
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 999px;
}

.prompt-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.prompt-gallery img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all .15s;
}
.prompt-gallery img:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.copy-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.prompt-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  font-size: 15px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
}

.locked-box {
  position: relative;
  text-align: center;
  padding: 36px 22px 16px;
}

.teaser {
  color: var(--muted);
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  max-height: 110px;
  overflow: hidden;
  margin-bottom: -46px;
  line-height: 1.8;
  font-size: 15px;
}

.lock-panel {
  position: relative;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 35%);
  padding-top: 56px;
}

.lock-panel .ico {
  font-size: 44px;
  margin-bottom: 12px;
}

.lock-panel h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.lock-panel p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 22px;
}

.lock-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 330px;
  margin: 0 auto;
}

.lock-buttons .btn {
  width: 100%;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  display: block;
  text-align: center;
  cursor: pointer;
  transition: all .15s ease;
}

.lock-buttons .btn-primary {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(124, 92, 255, 0.25);
  border: none !important;
}

.lock-buttons .btn-primary:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
}

.lock-buttons .btn-outline {
  background: #fff !important;
  color: var(--text) !important;
  border: 1.5px solid var(--border) !important;
}

.lock-buttons .btn-outline:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background: #FAF9FF !important;
  transform: translateY(-1px);
}

/* ─── Account Page ─── */
.account-wrap {
  max-width: 660px;
  margin: 46px auto;
  padding: 0 20px;
}

.account-wrap h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
}

.acc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  margin-bottom: 18px;
}

.acc-card h3 {
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.acc-card p {
  font-size: 14.5px;
  margin-bottom: 8px;
  color: var(--text);
}

.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 10px;
}

.badge-active {
  background: var(--green-light);
  color: #14532D;
}

.badge-inactive {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 10px;
  background: #FEE2E2;
  color: #7F1D1D;
}

/* ─── Subscription Time Remaining Widget (My Account) ─── */
.time-remaining-box {
  background: linear-gradient(135deg, #FAF8FF 0%, #F5F3FF 100%);
  border: 1.5px solid #DDD6FE;
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0 20px;
  box-shadow: 0 4px 14px rgba(109, 91, 251, 0.06);
}

.time-rem-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.time-rem-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #4C1D95;
}

.time-rem-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 16px;
  width: 100%;
}

.countdown-card {
  background: #FFFFFF;
  border: 1.5px solid #E9D5FF;
  border-radius: 12px;
  padding: 10px 6px;
  flex: 1;
  min-width: 0;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.countdown-card-num {
  font-size: clamp(17px, 3.5vw, 24px);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  display: block;
}

.countdown-card-lbl {
  font-size: clamp(9px, 2vw, 11px);
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 4px;
  display: block;
}

.countdown-colon {
  font-size: clamp(14px, 3vw, 18px);
  font-weight: 800;
  color: #8B5CF6;
  padding: 0 1px 12px;
  flex-shrink: 0;
}

.sub-progress-wrap {
  width: 100%;
  height: 8px;
  background: #E9D5FF;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.sub-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #8B5CF6 0%, #6D5BFB 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.sub-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6B7280;
  font-weight: 600;
}

@media (max-width: 520px) {
  .account-wrap {
    padding: 0 12px;
    margin: 24px auto;
  }
  .acc-card {
    padding: 18px 12px;
  }
  .time-remaining-box {
    padding: 14px 8px;
  }
  .countdown-grid {
    gap: 2px;
  }
  .countdown-card {
    padding: 8px 2px;
    min-width: 0 !important;
  }
  .countdown-card-num {
    font-size: 18px;
  }
  .countdown-colon {
    padding: 0 1px 10px;
  }
}

/* ─── Responsive ─── */
@media (max-width: 820px) {
  .prow { flex-direction: column; align-items: flex-start; }
  .prow-thumb { width: 100%; height: 160px; }
  .prow-btn { align-self: flex-end; }
  .footer-grid { flex-direction: column; gap: 20px; text-align: center; }
  .f-left { text-align: center; }
  .footer-brand { justify-content: center; }

  .nav-toggle {
    display: block;
    font-size: 26px;
    cursor: pointer;
    color: var(--text);
    user-select: none;
    line-height: 1;
    margin-left: auto;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 12px;
  }

  .nav-toggle-cb:checked ~ .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 13px 4px;
    border-top: 1px solid var(--border);
    font-size: 15px;
  }

  .main-nav .nav-btn {
    background: var(--primary);
    color: #fff !important;
    border-radius: 999px;
    text-align: center;
    margin-top: 10px;
    padding: 11px 20px;
  }
}
