/* ═══════════════════════════════════════════════════════════════════
   Awaiso Suite — Ultra Modern AI Video Prompts Marketplace Theme
   Obsidian Dark + High-Energy Lime (#c8f233)
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Core Colors */
  --bg-dark: #090b0e;
  --bg-sidebar: #0e1117;
  --bg-card: #131720;
  --bg-card-hover: #171b26;
  --bg-card-inner: rgba(255, 255, 255, 0.03);
  --bg-input: #10141c;

  /* Lime Brand Accents (Exact match to screenshot) */
  --accent-lime: #c8f233;
  --accent-lime-hover: #d7fa4d;
  --accent-lime-glow: rgba(200, 242, 51, 0.25);
  --accent-lime-dark: #a8d420;
  --accent-text-dark: #0a0c0e;

  /* Secondary Accents */
  --accent-purple: #8b5cf6;
  --accent-gold: #f59e0b;
  --accent-blue: #38bdf8;
  --accent-green: #10b981;
  --accent-pink: #ec4899;

  /* Typography */
  --text-white: #ffffff;
  --text-light: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #7d8ba0;

  /* Borders */
  --border-color: rgba(255, 255, 255, 0.07);
  --border-focus: rgba(200, 242, 51, 0.4);
  --border-subtle: rgba(255, 255, 255, 0.04);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lime: 0 6px 20px rgba(200, 242, 51, 0.28);

  /* Theme-aware surfaces (overridden for light mode at the end of this file) */
  --surface-1: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --surface-3: rgba(255, 255, 255, 0.09);
  --modal-bg: #11151e;
  --nav-bg: rgba(9, 11, 14, 0.85);
  --promo-bg: linear-gradient(145deg, #151a24, #10141c);
  --code-bg: rgba(0, 0, 0, 0.45);
  --thumb-bg: #0d1017;
  --toast-bg: #151a24;
  --toast-fg: #ffffff;
  --overlay-bg: rgba(4, 6, 9, 0.85);
  --glow-card: 0 0 30px rgba(200, 242, 51, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ═══════════════════════════════════════════════════════════════════
   APP SHELL LAYOUT (Sidebar + Main Content)
   ═══════════════════════════════════════════════════════════════════ */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ─── SIDEBAR ─── */
.sidebar {
  width: 270px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 16px 32px 16px;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
  z-index: 100;
}

.sidebar::-webkit-scrollbar {
  width: 5px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Logo & Brand in Sidebar */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  margin-bottom: 24px;
}

.brand-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(200, 242, 51, 0.2), rgba(200, 242, 51, 0.05));
  border: 1px solid rgba(200, 242, 51, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

/* Sidebar Top Button (All Prompts) */
.sidebar-all-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(200, 242, 51, 0.08);
  border: 1px solid rgba(200, 242, 51, 0.2);
  color: var(--accent-lime);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 24px;
  transition: all 0.2s ease;
}

.sidebar-all-btn:hover {
  background: rgba(200, 242, 51, 0.14);
  transform: translateY(-1px);
}

.sidebar-all-btn.active {
  background: rgba(200, 242, 51, 0.16);
  border-color: var(--accent-lime);
}

.sidebar-count-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-lime);
  background: rgba(200, 242, 51, 0.15);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Sidebar Section Header */
.sidebar-section-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 10px;
  margin-bottom: 10px;
}

/* Category List */
.sidebar-cat-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 24px;
}

.sidebar-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.18s ease;
  width: 100%;
  text-align: left;
}

.sidebar-cat-item:hover {
  background: var(--surface-2);
  color: var(--text-white);
}

.sidebar-cat-item.active {
  background: var(--surface-3);
  color: var(--text-white);
  font-weight: 700;
}

.sidebar-cat-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-icon {
  font-size: 15px;
  line-height: 1;
}

.cat-dot-active {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-lime);
  box-shadow: 0 0 8px var(--accent-lime);
  flex-shrink: 0;
}

.sidebar-cat-count {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
  margin-left: 8px;
}

.sidebar-cat-item.active .sidebar-cat-count {
  color: var(--accent-lime);
  font-weight: 700;
}

/* Sidebar "Go Premium" Promo Card */
.sidebar-promo-card {
  background: var(--promo-bg);
  border: 1px solid rgba(200, 242, 51, 0.22);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.sidebar-promo-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(200, 242, 51, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.promo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--accent-lime);
  margin-bottom: 6px;
}

.promo-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
}

.btn-upgrade-lime {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background-color: var(--accent-lime);
  color: var(--accent-text-dark);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-lime);
}

.btn-upgrade-lime:hover {
  background-color: var(--accent-lime-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200, 242, 51, 0.4);
}

/* Library Nav List */
.sidebar-library-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.library-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.18s ease;
  width: 100%;
}

.library-item:hover {
  background: var(--surface-2);
  color: var(--text-white);
}

.library-item.active {
  background: var(--surface-3);
  color: var(--text-white);
  font-weight: 700;
}

.library-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ═══════════════════════════════════════════════════════════════════
   MAIN CONTENT AREA
   ═══════════════════════════════════════════════════════════════════ */
.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-dark);
}

/* ─── TOP NAVBAR ─── */
.top-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  border-bottom: 1px solid var(--border-color);
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 90;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-toggle-btn {
  display: none;
  font-size: 22px;
  color: var(--text-white);
  padding: 4px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-white);
}

.nav-link.active {
  color: var(--text-white);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-lime);
  border-radius: 2px;
}

.nav-admin-link {
  font-size: 13px;
  font-weight: 600;
  color: #ec4899;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-admin-link:hover {
  background: rgba(236, 72, 153, 0.2);
  border-color: #ec4899;
  transform: translateY(-1px);
}

.nav-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  transition: all 0.2s;
  cursor: pointer;
}

.nav-user-avatar:hover {
  border-color: var(--accent-lime);
  color: var(--accent-lime);
}

/* ─── HERO HEADER SECTION ─── */
.hero-section {
  padding: 48px 36px 28px 36px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.hero-main-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-white);
  margin-bottom: 12px;
  line-height: 1.15;
}

.lime-highlight {
  color: var(--accent-lime);
}

.hero-sub-text {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-weight: 400;
}

.hero-sub-text strong {
  color: var(--text-white);
}

/* ─── SEARCH & FILTER BAR ─── */
.search-filter-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 8px 10px 8px 18px;
  max-width: 760px;
  margin: 0 auto 26px auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s;
}

.search-filter-container:focus-within {
  border-color: var(--border-focus);
}

.search-icon-svg {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.search-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-white);
  font-size: 15px;
  font-family: inherit;
}

.search-input-field::placeholder {
  color: var(--text-dim);
}

.sort-dropdown {
  background: var(--surface-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-light);
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 14px;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

.sort-dropdown option {
  background-color: var(--bg-card);
  color: var(--text-white);
}

.btn-lime-search {
  background-color: var(--accent-lime);
  color: var(--accent-text-dark);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  transition: all 0.2s;
  flex-shrink: 0;
  box-shadow: var(--shadow-lime);
}

.btn-lime-search:hover {
  background-color: var(--accent-lime-hover);
  transform: translateY(-1px);
}

/* ─── TYPE TABS (All Prompts, Free, Premium) ─── */
.type-pills-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.nav-type-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.nav-type-tab:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-type-tab.active {
  background: var(--accent-lime);
  color: var(--accent-text-dark);
  border-color: var(--accent-lime);
  font-weight: 700;
  box-shadow: var(--shadow-lime);
}

/* ═══════════════════════════════════════════════════════════════════
   PROMPT CARDS GRID (4 Columns Matching Screenshot)
   ═══════════════════════════════════════════════════════════════════ */
.prompts-container {
  padding: 0 36px 64px 36px;
  flex: 1;
}

.prompts-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1440px) {
  .prompts-grid-4col {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1024px) {
  .prompts-grid-4col {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .prompts-grid-4col {
    grid-template-columns: 1fr;
  }
}

/* ─── CARD COMPONENT ─── */
.nav-prompt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.24s cubic-bezier(0.2, 0, 0, 1), border-color 0.24s, box-shadow 0.24s;
  position: relative;
  cursor: pointer;
}

.nav-prompt-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 242, 51, 0.35);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.65);
}

/* Card Thumbnail Box */
.card-thumbnail-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--thumb-bg);
  overflow: hidden;
}

.card-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.nav-prompt-card:hover .card-thumbnail-img {
  transform: scale(1.04);
}

/* Duration Overlay Badge */
.badge-duration {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-duration svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

/* Favorite Star on Card */
.btn-card-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-card-fav:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.1);
  color: var(--accent-lime);
}

.btn-card-fav.favorited {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}

/* Card Body */
.card-content-wrap {
  padding: 16px 16px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-cat-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-lime);
  margin-bottom: 6px;
}

.card-title-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.35;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

/* Tool Badges */
.card-tools-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tool-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Card Bottom Action Button */
.card-action-btn-lime {
  width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  background-color: var(--accent-lime);
  color: var(--accent-text-dark);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  margin-top: auto;
}

.card-action-btn-lime:hover {
  background-color: var(--accent-lime-hover);
  box-shadow: 0 4px 14px rgba(200, 242, 51, 0.35);
}

.card-action-btn-dark {
  width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  margin-top: auto;
}

.card-action-btn-dark:hover {
  background: var(--surface-3);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════════════ */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 0;
}

.page-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.page-nav-btn:hover:not(.disabled) {
  border-color: var(--accent-lime);
  color: var(--accent-lime);
}

.page-nav-btn.active {
  background: var(--accent-lime);
  color: var(--accent-text-dark);
  border-color: var(--accent-lime);
  font-weight: 700;
}

.page-nav-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════════
   MODALS (Prompt Detail & Checkout)
   ═══════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--modal-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85);
  position: relative;
  transform: translateY(16px);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-header-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  color: var(--accent-lime);
}

.modal-content-inner {
  padding: 24px;
}

.modal-prompt-box {
  background: var(--code-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-light);
  max-height: 280px;
  overflow-y: auto;
  margin: 16px 0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  background: var(--toast-bg);
  border: 1px solid rgba(200, 242, 51, 0.35);
  color: var(--toast-fg);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlide 0.28s ease;
  pointer-events: auto;
}

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

/* Responsive Mobile Navigation */
@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    transition: left 0.3s ease;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
  }
  .sidebar.mobile-open {
    left: 0;
  }
  .mobile-toggle-btn {
    display: block;
  }
  .top-navbar {
    padding: 16px 20px;
  }
  .hero-section {
  }
}

/* ─── AUTH MODAL & PROFILE STYLES ─── */
@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.auth-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 440px;
  width: 92%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(200, 242, 51, 0.08);
  animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.auth-tabs-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: var(--surface-1);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.auth-tab-btn {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.auth-tab-btn.active {
  background: var(--surface-3);
  color: var(--text-white);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.auth-form-group {
  margin-bottom: 14px;
}

.auth-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.auth-input-field {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-white);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input-field:focus {
  border-color: var(--accent-lime);
  box-shadow: 0 0 0 3px rgba(200, 242, 51, 0.12);
}

.auth-err-banner {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  margin-bottom: 14px;
  display: none;
}

.auth-btn-submit {
  width: 100%;
  padding: 12px;
  background: var(--accent-lime);
  color: var(--accent-text-dark);
  font-weight: 700;
  font-size: 14.5px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-lime);
  margin-top: 6px;
}

.auth-btn-submit:hover {
  background: var(--accent-lime-hover);
  transform: translateY(-1px);
}

.auth-demo-hint {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--surface-1);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.5;
  text-align: center;
}

.auth-demo-hint code {
  color: var(--accent-lime);
  background: rgba(200, 242, 51, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: monospace;
}

/* Logged In Profile Card */
.profile-card-box {
  background: var(--surface-1);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 18px;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.profile-avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-lime), #84cc16);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(200, 242, 51, 0.3);
}

.profile-avatar-circle.admin-avatar {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35);
}

.badge-role-admin {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-role-user {
  background: rgba(200, 242, 51, 0.15);
  color: var(--accent-lime);
  border: 1px solid rgba(200, 242, 51, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-stat-box {
  background: var(--surface-2);
  border-radius: 8px;
  padding: 8px 12px;
}

.profile-stat-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}

.profile-stat-value {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-white);
  margin-top: 2px;
}

.btn-open-admin-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(236, 72, 153, 0.45);
  border-radius: 10px;
  color: var(--text-white);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.btn-open-admin-box:hover {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.35), rgba(139, 92, 246, 0.35));
  border-color: #ec4899;
  transform: translateY(-1px);
}

.btn-signout {
  width: 100%;
  padding: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-signout:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}


/* ═══════════════════════════════════════════════════════════════════
   LOADING SKELETONS
   Shown while the prompt listing is in flight, so the grid area has
   shape instead of sitting blank.
   ═══════════════════════════════════════════════════════════════════ */
.prompt-card-skeleton {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

.skeleton-thumb {
  aspect-ratio: 400 / 260;
  background: var(--surface-2);
}

.skeleton-lines {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: var(--surface-2);
}

.skeleton-line.short { width: 35%; height: 9px; }
.skeleton-line.med   { width: 65%; }

.skeleton-thumb,
.skeleton-line {
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-sweep 1.4s ease-in-out infinite;
}

@keyframes skeleton-sweep {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-thumb,
  .skeleton-line { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   RESULT SUMMARY + EMPTY / ERROR STATES
   ═══════════════════════════════════════════════════════════════════ */
.result-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--text-muted);
  min-height: 20px;
}

.result-count strong { color: var(--text-white); font-weight: 800; }

.btn-clear-filters {
  background: rgba(200, 242, 51, 0.1);
  border: 1px solid rgba(200, 242, 51, 0.3);
  color: var(--accent-lime);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-clear-filters:hover {
  background: rgba(200, 242, 51, 0.2);
  border-color: var(--accent-lime);
}

.grid-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.grid-message-icon { font-size: 40px; margin-bottom: 12px; }

.grid-message-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
}

.grid-message-body {
  font-size: 13.5px;
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.55;
}

.modal-prompt-box.is-loading {
  color: var(--text-dim);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE SIDEBAR BACKDROP
   ═══════════════════════════════════════════════════════════════════ */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 901px) {
  .sidebar-backdrop { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   SITE FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.site-footer {
  margin-top: 56px;
  padding: 40px 32px 28px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-sidebar);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 300px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.footer-col a,
.footer-link-btn {
  display: block;
  padding: 0;
  margin-bottom: 9px;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}

.footer-col a:hover,
.footer-link-btn:hover { color: var(--accent-lime); }

.footer-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-bottom {
  max-width: 1400px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-dim);
}

.footer-hint kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--border-color);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface-2);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .site-footer { padding: 32px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   FOCUS VISIBILITY
   Keyboard users previously had no visible focus ring anywhere.
   ═══════════════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--accent-lime);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Cards keep a fixed thumbnail ratio so the grid does not jump as
   artwork decodes. */
.card-thumbnail-img {
  aspect-ratio: 400 / 260;
  background: var(--bg-card-inner);
}

/* ═══════════════════════════════════════════════════════════════════
   NARROW-SCREEN SEARCH BAR
   The bar was a nowrap flex row, so on a phone the sort dropdown and
   the Search button were pushed past the right edge of the viewport
   and the whole page scrolled sideways.
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .search-filter-container {
    flex-wrap: wrap;
    row-gap: 10px;
    padding: 12px;
  }

  /* Share the first row with the magnifier rather than wrapping under it. */
  .search-input-field {
    flex: 1 1 calc(100% - 30px);
    min-width: 0;
    order: 1;
  }

  .search-icon-svg { order: 0; flex: 0 0 auto; }

  .sort-dropdown {
    order: 2;
    flex: 1 1 0;
    min-width: 0;
  }

  .btn-lime-search {
    order: 3;
    flex: 1 1 0;
    min-width: 0;
  }

  .type-pills-wrap {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Nothing should ever push the document sideways on a phone. */
html, body { max-width: 100%; overflow-x: hidden; }

/* ═══════════════════════════════════════════════════════════════════
   CHECKOUT — BINANCE / JAZZCASH + PAYMENT PROOF
   ═══════════════════════════════════════════════════════════════════ */
.chk-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chk-input {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-white);
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.chk-input::placeholder { color: var(--text-dim); }

.chk-input:focus {
  outline: none;
  border-color: var(--accent-lime);
  box-shadow: 0 0 0 3px rgba(200, 242, 51, 0.15);
}

/* Account the buyer must send money to */
.pay-account-card {
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 14px;
  border: 1px solid var(--border-color);
  background: var(--surface-1);
}

.pay-account-card.pay-binance {
  background: rgba(240, 185, 11, 0.08);
  border-color: rgba(240, 185, 11, 0.32);
}

.pay-account-card.pay-jazzcash {
  background: rgba(185, 28, 60, 0.1);
  border-color: rgba(226, 74, 104, 0.34);
}

.pay-account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.pay-account-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-white);
}

.pay-copy-btn {
  flex-shrink: 0;
  background: var(--surface-3);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  padding: 3px 11px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s;
}

.pay-copy-btn:hover { background: var(--surface-3); border-color: var(--border-focus); }

.pay-account-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.pay-account-key {
  font-size: 11.5px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.pay-account-row code {
  color: var(--text-white);
  font-size: 13px;
  font-weight: 600;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  text-align: right;
  word-break: break-all;
}

/* Screenshot drop area */
.receipt-drop {
  display: block;
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  background: var(--surface-1);
  transition: border-color 0.18s, background 0.18s;
}

.receipt-drop:hover {
  border-color: rgba(200, 242, 51, 0.45);
  background: rgba(200, 242, 51, 0.05);
}

/* ═══════════════════════════════════════════════════════════════════
   COMMUNITY RESULTS
   Members post what a prompt produced; nothing shows until approved.
   ═══════════════════════════════════════════════════════════════════ */
.results-section {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

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

.results-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-white);
}

.btn-share-result {
  background: rgba(200, 242, 51, 0.1);
  border: 1px solid rgba(200, 242, 51, 0.32);
  color: var(--accent-lime);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.btn-share-result:hover {
  background: rgba(200, 242, 51, 0.2);
  border-color: var(--accent-lime);
}

.result-form {
  background: var(--surface-1);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
}

.result-auth-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.result-textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-white);
  font-size: 13.5px;
  font-family: inherit;
  line-height: 1.55;
  resize: vertical;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.result-textarea:focus {
  outline: none;
  border-color: var(--accent-lime);
  box-shadow: 0 0 0 3px rgba(200, 242, 51, 0.15);
}

.result-counter {
  text-align: right;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

.result-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.result-review-hint {
  font-size: 11.5px;
  color: var(--text-dim);
  flex: 1;
  min-width: 160px;
}

.results-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.results-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 22px;
  font-size: 13px;
  color: var(--text-dim);
  background: var(--surface-1);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
}

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s;
}

.result-card:hover {
  border-color: rgba(200, 242, 51, 0.3);
  transform: translateY(-2px);
}

.result-image-link { display: block; }

.result-image-link img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--bg-card-inner);
}

.result-body { padding: 11px 13px 13px; }

.result-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.result-author {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--accent-lime);
}

.result-date {
  font-size: 11px;
  color: var(--text-dim);
}

.result-comment {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ═══════════════════════════════════════════════════════════════════
   COMMUNITY — member posts, comments and threaded replies
   ═══════════════════════════════════════════════════════════════════ */
.community-view { padding: 30px 32px 40px; max-width: 1100px; margin: 0 auto; }

.community-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.community-title { font-size: 30px; font-weight: 800; color: var(--text-white); }

.community-sub { font-size: 14px; color: var(--text-muted); margin-top: 5px; }

.community-new-btn { width: auto; padding: 11px 22px; flex-shrink: 0; }

.community-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.community-filters { display: flex; gap: 8px; flex-wrap: wrap; }

.community-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

/* ─── Post card ─── */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s, transform 0.18s;
}

.post-card:hover { border-color: rgba(200, 242, 51, 0.32); transform: translateY(-2px); }

.post-card.is-pinned { border-color: rgba(200, 242, 51, 0.45); }

.post-card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--bg-card-inner);
}

.post-card-body { padding: 15px 17px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.post-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
}

.post-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(200, 242, 51, 0.15);
  border: 1px solid rgba(200, 242, 51, 0.35);
  color: var(--accent-lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

.post-avatar.sm { width: 22px; height: 22px; font-size: 10.5px; }

.post-author { font-weight: 700; color: var(--text-light); }
.post-time { color: var(--text-dim); font-size: 11.5px; }

.post-pin { font-size: 10.5px; font-weight: 700; color: var(--accent-lime); }

.post-kind {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.kind-prompt { background: rgba(200, 242, 51, 0.13); color: var(--accent-lime); border: 1px solid rgba(200, 242, 51, 0.3); }
.kind-text   { background: rgba(56, 189, 248, 0.12); color: var(--accent-blue); border: 1px solid rgba(56, 189, 248, 0.3); }

.post-title { font-size: 15.5px; font-weight: 800; color: var(--text-white); line-height: 1.35; }

.post-excerpt {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-length { font-size: 11px; font-weight: 700; color: var(--accent-lime); }

.post-card-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.post-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.18s;
}

.post-action:hover { color: var(--accent-lime); }
.post-action.liked { color: #f472b6; }
.post-action-icon { font-size: 14px; }

/* ─── Post detail ─── */
.post-modal-content { padding: 24px; }

.post-full-title { font-size: 21px; font-weight: 800; color: var(--text-white); margin: 10px 0 8px; line-height: 1.3; }

.post-full-media { display: block; margin: 12px 0; }

.post-full-media img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: block;
}

.post-full-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-light);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 10px;
}

.post-prompt-box {
  margin-top: 12px;
  padding: 14px;
  max-height: 340px;
  overflow-y: auto;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-light);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.post-delete {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
}

.post-delete:hover { color: #fca5a5; background: rgba(239, 68, 68, 0.12); }

/* ─── Thread ─── */
.thread { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border-color); }

.thread-title { font-size: 14px; font-weight: 800; color: var(--text-white); margin-bottom: 14px; }

.comment-box { margin-bottom: 18px; }

.comment-box-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.comment-attach {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  padding: 5px 11px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: border-color 0.18s, color 0.18s;
}

.comment-attach:hover { border-color: var(--accent-lime); color: var(--accent-lime); }

.comment-attach-name { font-size: 11.5px; color: var(--accent-lime); flex: 1; min-width: 0; }

.thread-list { display: flex; flex-direction: column; gap: 16px; }

.comment {
  background: var(--surface-1);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
}

.comment.is-reply {
  background: rgba(255, 255, 255, 0.015);
  border-left: 2px solid rgba(200, 242, 51, 0.3);
  margin-top: 10px;
}

.comment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }

.comment-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-light);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comment-media { display: block; margin-top: 9px; }

.comment-media img {
  max-width: 260px;
  width: 100%;
  border-radius: 9px;
  border: 1px solid var(--border-color);
  display: block;
}

.comment-replies { padding-left: 14px; }

.comment-box.is-reply-box { margin: 12px 0 0 14px; }

/* ─── Composer ─── */
.composer-head { padding: 22px 24px 0; }
.composer-head h3 { font-size: 19px; font-weight: 800; color: var(--text-white); margin-bottom: 14px; }
.composer-kind { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.composer-kind .nav-type-tab { justify-content: center; font-size: 12.5px; padding: 10px; }
.composer-body { padding: 18px 24px 24px; }

@media (max-width: 720px) {
  .community-view { padding: 22px 18px 34px; }
  .community-title { font-size: 24px; }
  .community-feed { grid-template-columns: 1fr; }
  .post-modal-content { padding: 18px; }
  .comment-replies, .comment-box.is-reply-box { padding-left: 8px; margin-left: 8px; }
}

/* The modal close button sits top-right; keep the post's own delete control
   clear of it instead of stacking the two. */
.post-full .post-card-top { padding-right: 38px; }

.post-full .post-kind { margin-left: auto; }
.post-full .post-delete { margin-left: 4px; }

/* Video Suite promo link in the top navbar */
.nav-suite-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.nav-suite-tag {
  background: var(--accent-lime);
  color: var(--accent-text-dark);
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

/* ═══════════════════════════════════════════════════════════════════
   CHECKOUT IDENTITY & ACCOUNT GATE
   Buying is tied to an account, so a signed-in buyer types nothing and
   a guest is asked to register first.
   ═══════════════════════════════════════════════════════════════════ */
.buyer-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(200, 242, 51, 0.06);
  border: 1px solid rgba(200, 242, 51, 0.25);
}

.buyer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(200, 242, 51, 0.16);
  border: 1px solid rgba(200, 242, 51, 0.4);
  color: var(--accent-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

.buyer-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buyer-email {
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buyer-tag {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-lime);
  background: rgba(200, 242, 51, 0.12);
  border: 1px solid rgba(200, 242, 51, 0.3);
  padding: 3px 9px;
  border-radius: 999px;
}

.buy-gate {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: 10px;
  padding: 26px 22px;
  border-radius: 14px;
  background: var(--surface-1);
  border: 1px dashed var(--border-color);
}

.buy-gate-icon { font-size: 30px; }

.buy-gate-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-white);
}

.buy-gate-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.btn-gate-secondary {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.btn-gate-secondary:hover {
  background: var(--surface-3);
  color: var(--text-white);
}

/* ═══════════════════════════════════════════════════════════════════
   PLAN PICKER
   Two things are on sale, so the checkout lets the buyer choose rather
   than guessing which one they meant.
   ═══════════════════════════════════════════════════════════════════ */
.plan-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  padding: 14px 15px;
  border-radius: 12px;
  background: var(--surface-1);
  border: 1px solid var(--border-color);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.plan-card:hover { border-color: rgba(200, 242, 51, 0.4); }

.plan-card.active {
  border-color: var(--accent-lime);
  background: rgba(200, 242, 51, 0.08);
}

.plan-flag {
  position: absolute;
  top: -8px;
  right: 10px;
  background: var(--accent-lime);
  color: var(--accent-text-dark);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-name {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-white);
}

.plan-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent-lime);
  line-height: 1.2;
  white-space: nowrap;
}

.plan-per {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
}

.plan-was {
  font-size: 11.5px;
  color: var(--text-dim);
  text-decoration: line-through;
}

.plan-desc {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-muted);
}

.plan-desc strong { color: var(--text-light); }

.btn-unlock-lifetime {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 10px;
  background: rgba(200, 242, 51, 0.12);
  border: 1px solid rgba(200, 242, 51, 0.4);
  color: var(--accent-lime);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s;
}

.btn-unlock-lifetime:hover { background: rgba(200, 242, 51, 0.22); }

@media (max-width: 520px) {
  .plan-picker { grid-template-columns: 1fr; }
  .plan-flag { top: -8px; right: 10px; }
}

/* ===== Light / dark theme (toggle) ===== */
html[data-theme="light"] {
  --bg-dark:#f4f6f9; --bg-sidebar:#eceff4; --bg-card:#ffffff; --bg-card-hover:#eef2f7;
  --bg-card-inner:rgba(2,6,23,.035); --bg-input:#eef1f5;
  --accent-lime:#4d7c0f; --accent-lime-hover:#3f6212; --accent-lime-glow:rgba(77,124,15,.18); --accent-lime-dark:#365314; --accent-text-dark:#ffffff;
  --text-white:#0b1220; --text-light:#1e293b; --text-muted:#4b5a70; --text-dim:#5c6b80;
  --border-color:rgba(2,6,23,.12); --border-subtle:rgba(2,6,23,.07); --border-focus:rgba(77,124,15,.5);
}
html[data-theme="light"] body { background:var(--bg-dark); color:var(--text-light); }

/* theme toggle button (shared) */
.theme-toggle { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; flex-shrink:0; border-radius:10px; border:1px solid var(--border-color); background:var(--bg-card-inner); color:var(--text-muted); cursor:pointer; font-size:16px; transition:color .15s,border-color .15s; }
.theme-toggle:hover { color:var(--accent-lime); border-color:var(--border-focus); }
html[data-theme="light"] .theme-toggle .moon { display:none; }
html:not([data-theme="light"]) .theme-toggle .sun { display:none; }

/* Light-mode values for the theme-aware surfaces declared in :root. */
html[data-theme="light"] {
  --surface-1: rgba(2, 6, 23, 0.035);
  --surface-2: rgba(2, 6, 23, 0.055);
  --surface-3: rgba(2, 6, 23, 0.09);
  --modal-bg: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.92);
  --promo-bg: linear-gradient(145deg, #f5fae0, #eaf3cc);
  --code-bg: rgba(2, 6, 23, 0.045);
  --thumb-bg: #e4e9f0;
  --toast-bg: #ffffff;
  --toast-fg: #0b1220;
  --overlay-bg: rgba(15, 23, 42, 0.5);
  --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.1);
  --shadow-lime: 0 6px 20px rgba(90, 146, 22, 0.25);
  --glow-card: 0 12px 40px rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .toast-item { box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18); border-color: rgba(90, 146, 22, 0.45); }
html[data-theme="light"] .modal-box { box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.35); }
html[data-theme="light"] .auth-modal-card { box-shadow: 0 20px 60px rgba(15, 23, 42, 0.28), var(--glow-card); }
html[data-theme="light"] .search-filter-container { box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08); }
html[data-theme="light"] .nav-prompt-card:hover { box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.22); }
html[data-theme="light"] .sidebar { box-shadow: none; }
html[data-theme="light"] .auth-err-banner { color: #b91c1c; background: rgba(239, 68, 68, 0.09); border-color: rgba(239, 68, 68, 0.35); }
html[data-theme="light"] .btn-signout:hover,
html[data-theme="light"] .post-delete:hover { color: #b91c1c; }
html[data-theme="light"] .badge-role-admin,
html[data-theme="light"] .nav-admin-link { color: #be185d; }
html[data-theme="light"] .btn-card-fav.favorited { color: #f59e0b; }
html[data-theme="light"] .sort-dropdown option { background-color: #fff; color: #0b1220; }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE LAYOUT, SHARED NAV, PAYWALL, ACCOUNT BOXES (mobile pass)
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Library top navbar: desktop row → dropdown menu → phone bar ─── */
.top-navbar { gap: 12px; }
.navbar-left { min-width: 0; flex-shrink: 0; }
.navbar-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: 16px; color: var(--text-white); white-space: nowrap; }
.navbar-right { display: flex; align-items: center; gap: 18px; margin-left: auto; min-width: 0; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nav-account-btn {
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--text-light);
  background: var(--surface-1); border: 1px solid var(--border-color); border-radius: 10px;
  padding: 8px 14px; min-height: 40px; max-width: 160px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; cursor: pointer; transition: border-color .2s, color .2s;
}
.nav-account-btn:hover { color: var(--accent-lime); border-color: var(--border-focus); }
.nav-menu-btn {
  display: none; width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px;
  border: 1px solid var(--border-color); background: var(--surface-1); color: var(--text-white);
  font-size: 20px; line-height: 1; align-items: center; justify-content: center; cursor: pointer;
}
.nav-menu-btn:hover { border-color: var(--border-focus); }
.nav-links .nav-menu-only { display: none; }
.nav-links .nav-link { white-space: nowrap; }
.nav-user-avatar { display: none; }
/* room is tight between the sidebar and the right edge: drop the promo tags until the screen is wide */
@media (min-width: 1381px) and (max-width: 1560px) {
  .nav-links .nav-suite-tag { display: none; }
}

@media (max-width: 1380px) {
  .nav-menu-btn { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; right: 12px; margin-top: 8px;
    width: min(340px, calc(100vw - 24px)); flex-direction: column; align-items: stretch; gap: 0; padding: 8px;
    background: var(--modal-bg); border: 1px solid var(--border-color); border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); overflow-y: auto;
  }
  .top-navbar.menu-open .nav-links { display: flex; }
  .nav-links .nav-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 12px 14px; border-radius: 10px; font-size: 15px; }
  .nav-links .nav-link:hover { background: var(--surface-2); }
  .nav-links .nav-link.active::after { display: none; }
  .nav-links .nav-link.active { color: var(--accent-lime); background: var(--surface-1); }
  .nav-links .nav-menu-only { display: flex; }
}

/* ─── Hero / content spacing scales with the screen instead of staying desktop-sized ─── */
.hero-section { padding: clamp(22px, 5vw, 48px) clamp(16px, 4vw, 36px) clamp(14px, 3vw, 28px); }
.hero-main-title { font-size: clamp(27px, 7.2vw, 42px); line-height: 1.12; margin-bottom: 10px; }
.hero-sub-text { font-size: clamp(14px, 3.7vw, 16px); margin-bottom: clamp(18px, 4vw, 32px); }
.prompts-container { padding: 0 clamp(14px, 4vw, 36px) clamp(28px, 6vw, 64px); }
.site-footer { margin-top: clamp(32px, 6vw, 56px); }

/* While the members-only gate is showing, nothing should stretch to fill the screen. */
body.lib-locked #sidebar,
body.lib-locked .mobile-toggle-btn,
body.lib-locked .search-filter-container,
body.lib-locked .type-pills-wrap { display: none !important; }
body.lib-locked .prompts-container { flex: 0 0 auto; padding-bottom: 8px; }
body.lib-locked .hero-section { padding-bottom: 4px; }
body.lib-locked .hero-sub-text { margin-bottom: 18px; }

/* ─── Members-only paywall card ─── */
.paywall-card {
  max-width: 560px; margin: 4px auto 0; text-align: center; background: var(--bg-card);
  border: 1px solid rgba(200, 242, 51, 0.3); border-radius: 20px; box-shadow: var(--shadow-card);
  padding: clamp(22px, 5vw, 40px) clamp(16px, 5vw, 28px);
}
.paywall-ico { font-size: clamp(34px, 9vw, 44px); line-height: 1; margin-bottom: 10px; }
.paywall-title { font-size: clamp(19px, 5.4vw, 24px); font-weight: 800; color: var(--text-white); line-height: 1.2; margin-bottom: 8px; }
.paywall-text { color: var(--text-muted); font-size: clamp(13.5px, 3.6vw, 14.5px); line-height: 1.55; margin-bottom: 16px; }
.paywall-perks { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 18px; }
.paywall-perks span { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-color); color: var(--text-light); }
.paywall-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.paywall-actions > * { min-height: 46px; padding: 12px 22px; border-radius: 12px; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; width: auto; font-family: inherit; }
.paywall-note { font-size: 12px; color: var(--text-dim); margin-top: 12px; line-height: 1.5; }
@media (max-width: 520px) {
  .paywall-actions { flex-direction: column; }
  .paywall-actions > * { width: 100%; }
}

/* ─── Auth modal must scroll on short screens ─── */
.auth-modal-card { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; padding-top: 46px; }
.modal-box { max-height: 90vh; max-height: 90dvh; }

/* ─── Account boxes (profile modal: WhatsApp, studio key, orders, Google) ─── */
.acct-box { margin-bottom: 12px; padding: 14px; border: 1px solid var(--border-color); border-radius: 14px; background: var(--surface-1); }
.acct-box.lime { border-color: rgba(200, 242, 51, 0.3); background: rgba(200, 242, 51, 0.06); }
.acct-title { font-size: 12.5px; font-weight: 800; color: var(--text-light); margin-bottom: 8px; }
.acct-box.lime .acct-title { color: var(--accent-lime); }
.acct-row { display: flex; gap: 8px; align-items: stretch; }
.acct-row .auth-input-field { flex: 1; min-width: 0; }
.acct-row .acct-btn { flex-shrink: 0; }
.acct-key { flex: 1; min-width: 0; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 14px; letter-spacing: .05em; color: var(--text-white); background: var(--code-bg); border: 1px solid var(--border-color); border-radius: 10px; padding: 10px 12px; word-break: break-all; }
.acct-hint { font-size: 11.5px; color: var(--text-dim); margin-top: 8px; line-height: 1.55; }
.acct-btn { background: var(--accent-lime); color: var(--accent-text-dark); font-family: inherit; font-weight: 800; font-size: 13px; border: none; border-radius: 10px; padding: 0 16px; min-height: 44px; cursor: pointer; white-space: nowrap; }
.acct-btn:hover { filter: brightness(1.06); }
.acct-btn:disabled { opacity: .6; cursor: default; }
.acct-btn.ghost { background: var(--surface-3); color: var(--text-white); border: 1px solid var(--border-color); }
.acct-order { display: flex; justify-content: space-between; gap: 10px; padding: 9px 11px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--surface-1); }
.acct-order .nm { font-size: 12.5px; font-weight: 700; color: var(--text-white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-order .meta { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.acct-order .amt { font-size: 12.5px; font-weight: 800; color: var(--text-white); text-align: right; white-space: nowrap; }
.acct-order .st { font-size: 11px; font-weight: 700; margin-top: 2px; text-align: right; }
.acct-order .st.ok { color: #34d399; } .acct-order .st.no { color: #f87171; } .acct-order .st.wait { color: #fbbf24; }
html[data-theme="light"] .acct-order .st.ok { color: #047857; }
html[data-theme="light"] .acct-order .st.no { color: #b91c1c; }
html[data-theme="light"] .acct-order .st.wait { color: #b45309; }
.acct-linked { margin-bottom: 12px; padding: 11px 14px; border: 1px solid rgba(200, 242, 51, 0.3); border-radius: 12px; background: rgba(200, 242, 51, 0.06); font-size: 12.5px; font-weight: 700; color: var(--accent-lime); }
.auth-help { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--surface-1); font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }
.auth-help a { color: var(--accent-lime); font-weight: 700; }
.auth-or { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--text-dim); font-size: 11.5px; font-weight: 800; letter-spacing: .05em; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--border-color); }
.auth-field-hint { font-size: 11.5px; color: var(--text-dim); margin-top: 5px; line-height: 1.5; }
.auth-field-opt { color: var(--text-dim); font-weight: 600; text-transform: none; letter-spacing: 0; }
.auth-forgot { text-align: center; margin-top: 10px; }
.auth-forgot a { font-size: 12.5px; color: var(--text-muted); text-decoration: none; padding: 8px 12px; display: inline-block; }
.auth-forgot a:hover { color: var(--accent-lime); }
.auth-link-btn { background: none; border: none; color: var(--accent-lime); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }
.profile-name-row { font-size: 17px; font-weight: 800; color: var(--text-white); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-email { font-size: 12.5px; color: var(--text-dim); margin-top: 3px; word-break: break-all; }
.profile-status-ok { color: #34d399; }
html[data-theme="light"] .profile-status-ok { color: #047857; }

/* Checkout modal pieces that used inline styles */
.chk-head { padding: 24px; border-bottom: 1px solid var(--border-color); background: linear-gradient(135deg, rgba(200, 242, 51, 0.14), var(--surface-1)); }
.chk-head-row { display: flex; align-items: center; gap: 12px; padding-right: 36px; }
.chk-head-ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: rgba(200, 242, 51, 0.2); border: 1px solid rgba(200, 242, 51, 0.4); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.chk-head h3 { font-size: 19px; font-weight: 800; color: var(--text-white); margin-bottom: 2px; line-height: 1.25; }
.chk-head .sub { font-size: 12.5px; color: var(--text-muted); }
.chk-body { padding: 24px; }
.chk-sec-label { font-size: 11px; font-weight: 800; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.chk-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 18px; }
.chk-methods .nav-type-tab { justify-content: center; font-size: 13px; padding: 11px; }
.chk-note { font-size: 11.5px; color: var(--text-dim); line-height: 1.5; }
.chk-drop-title { font-weight: 700; color: var(--text-white); font-size: 13px; }
.chk-qr { text-align: center; margin-bottom: 12px; }
.chk-qr img { width: 180px; max-width: 70%; height: auto; aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--border-color); background: #fff; padding: 6px; }
.chk-qr .cap { font-size: 11.5px; color: var(--text-dim); margin-top: 6px; }

/* ─── Shared site navigation (home, tool, Video Suite, Clipper) ─── */
.sn { position: sticky; top: 0; z-index: 60; background: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); }
.sn-in { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 14px; }
.sn-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; color: var(--text-white); white-space: nowrap; flex-shrink: 0; text-decoration: none; }
.sn-links { display: flex; align-items: center; gap: 2px; margin-left: auto; min-width: 0; }
.sn-links a { font-size: 13.5px; font-weight: 600; color: var(--text-muted); padding: 9px 11px; border-radius: 10px; white-space: nowrap; text-decoration: none; transition: color .15s, background .15s; }
.sn-links a:hover, .sn-links a.on { color: var(--accent-lime); background: var(--surface-1); }
.sn-links .sn-dl { display: none; }
.sn-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sn-account { font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--text-light); padding: 8px 14px; min-height: 40px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--surface-1); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; transition: border-color .15s, color .15s; }
.sn-account:hover { color: var(--accent-lime); border-color: var(--border-focus); }
.sn-cta { background: var(--accent-lime); color: var(--accent-text-dark); padding: 0 16px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 10px; font-weight: 800; font-size: 13.5px; white-space: nowrap; text-decoration: none; box-shadow: var(--shadow-lime); }
.sn-cta:hover { filter: brightness(1.06); color: var(--accent-text-dark); }
.sn-burger { display: none; width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--border-color); background: var(--surface-1); color: var(--text-white); font-size: 20px; line-height: 1; align-items: center; justify-content: center; cursor: pointer; }
.sn-burger:hover { border-color: var(--border-focus); }

@media (max-width: 1080px) {
  .sn-in { padding: 0 14px; height: 58px; gap: 8px; }
  .sn-brand { font-size: 16px; }
  .sn-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 14px 14px; background: var(--modal-bg); border-bottom: 1px solid var(--border-color); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
    max-height: calc(100vh - 58px); max-height: calc(100dvh - 58px); overflow-y: auto;
  }
  .sn.open .sn-links { display: flex; }
  .sn-links a { display: flex; align-items: center; min-height: 48px; padding: 12px 10px; font-size: 15px; border-radius: 0; border-bottom: 1px solid var(--border-subtle); }
  .sn-links .sn-dl { display: flex; justify-content: center; margin-top: 12px; border: none; border-radius: 12px; background: var(--accent-lime); color: var(--accent-text-dark); font-weight: 800; }
  .sn-links .sn-dl:hover { color: var(--accent-text-dark); background: var(--accent-lime); }
  .sn-actions { margin-left: auto; }
  .sn-actions .sn-cta { display: none; }
  .sn-burger { display: inline-flex; }
}
@media (max-width: 400px) {
  .sn-brand { font-size: 15px; gap: 7px; }
  .sn-account { padding: 8px 10px; max-width: 96px; }
}

/* Shared "need help" footer line */
.help-line { display: flex; align-items: center; justify-content: center; gap: 6px 10px; flex-wrap: wrap; text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-muted); }
.help-line a { color: var(--accent-lime); font-weight: 700; text-decoration: none; padding: 6px 4px; }
.help-line a:hover { text-decoration: underline; }

/* ─── Library footer: 4 columns incl. Help ─── */
.footer-col .footer-tools { margin-top: 2px; }

/* ═══ Tablet / phone adjustments ═══ */
/* Tap targets: 44px minimum on touch-sized screens */
@media (max-width: 1080px) {
  .sn-brand { min-height: 44px; }
}
@media (max-width: 900px) {
  .theme-toggle { width: 44px; height: 44px; }
  .sn-account, .nav-account-btn { min-height: 44px; }
  .navbar-brand { min-height: 44px; }
  .btn-upgrade-lime { min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .btn-share-result, .btn-clear-filters { min-height: 44px; display: inline-flex; align-items: center; }
  .auth-tab-btn { min-height: 44px; }
  .auth-forgot a { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-col a, .footer-link-btn { min-height: 44px; min-width: 44px; display: flex; align-items: center; margin-bottom: 0; }
  .help-line a, .tp-back { min-height: 44px; display: inline-flex; align-items: center; }
  .hm-footer a, .tp-foot a, .vs-footer a, .cl-footer a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; padding: 0; }
  .acct-btn, .pay-copy-btn { min-height: 44px; }
}

@media (max-width: 900px) {
  .top-navbar { padding: 8px 14px; min-height: 60px; }
  .sidebar { height: 100vh; height: 100dvh; width: min(300px, 86vw); left: calc(-1 * min(300px, 86vw) - 20px); }
  .sidebar.mobile-open { left: 0; }
  .mobile-toggle-btn { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border-color); background: var(--surface-1); font-size: 20px; padding: 0; }
  .navbar-right { gap: 8px; }
  .nav-actions { gap: 8px; }
  /* one account control at a time: text pill for guests, avatar for members */
  body.is-signed-in .nav-user-avatar { display: flex; width: 44px; height: 44px; flex-shrink: 0; }
  body.is-signed-in .nav-account-btn { display: none; }
  .nav-admin-link { display: none !important; }
  .nav-type-tab { min-height: 44px; }
  .page-nav-btn { width: 44px; height: 44px; }
  .sort-dropdown, .btn-lime-search { min-height: 44px; }
  .search-input-field { font-size: 16px; min-height: 40px; }
  .auth-input-field, .chk-input, .result-textarea { font-size: 16px; min-height: 46px; }
  .result-textarea { min-height: 0; }
  .auth-btn-submit { min-height: 48px; }
  .btn-signout, .btn-gate-secondary { min-height: 46px; }
  .library-item, .sidebar-cat-item { min-height: 44px; }
  .btn-card-fav { width: 40px; height: 40px; }
  .card-action-btn-lime, .card-action-btn-dark { min-height: 44px; }
  .pay-copy-btn { padding: 6px 14px; }
  .pagination-wrapper { flex-wrap: wrap; padding: 22px 0; }
}

@media (max-width: 560px) {
  .navbar-brand { font-size: 15px; gap: 7px; }
  .type-pills-wrap { gap: 8px; margin-bottom: 24px; }
  .nav-type-tab { padding: 8px 14px; }
  .modal-overlay { padding: 10px; }
  .modal-box { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 16px; }
  .modal-header-img { height: 170px; }
  .modal-content-inner { padding: 18px 16px; }
  .modal-close-btn { width: 44px; height: 44px; top: 8px; right: 8px; font-size: 17px; }
  .auth-modal-card { padding: 46px 16px 18px; width: 100%; border-radius: 16px; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  .chk-head { padding: 18px 16px; }
  .chk-body { padding: 18px 16px; }
  .chk-head h3 { font-size: 17px; }
  .composer-head { padding: 18px 16px 0; }
  .composer-body { padding: 14px 16px 18px; }
  .post-modal-content { padding: 16px; }
  .pay-account-row { flex-wrap: wrap; gap: 2px 12px; }
  .pay-account-row code { text-align: left; }
  .pay-account-head { align-items: flex-start; }
  .profile-card-box { padding: 16px; }
  .profile-row { gap: 12px; }
  .profile-avatar-circle { width: 46px; height: 46px; font-size: 19px; flex-shrink: 0; }
  .result-form-actions .btn-upgrade-lime { width: 100% !important; }
  .toast-container { left: 12px; right: 12px; bottom: 14px; }
  .toast-item { font-size: 13px; padding: 11px 14px; }
  .site-footer { padding: 28px 16px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-col-wide { grid-column: 1 / -1; }
  .footer-bottom { margin-top: 20px; padding-top: 16px; }
  .footer-hint { display: none; }
  .community-head { gap: 10px; }
  .community-new-btn { width: 100%; }
  .community-feed { grid-template-columns: 1fr; }
  .results-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .nav-account-btn { padding: 8px 10px; max-width: 96px; }
  .results-list { grid-template-columns: 1fr; }
}
@media (max-width: 345px) {
  .navbar-brand .brand-word { display: none; }
}
