/* ==========================================
   DESIGN SYSTEM â€” DeepSeek Style
   ========================================== */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Premium Dark Palette â€” like Stripe / Linear */
  --bg-primary: #0A0A10;
  --bg-white: #111119;
  --bg-card: #13131E;
  --bg-hover: #1A1A28;
  
  --brand-blue: #6C5CE7;
  --brand-blue-dark: #5A4BD1;
  --brand-blue-light: rgba(108, 92, 231, 0.12);
  
  --text-primary: #ECECF2;
  --text-secondary: #A8A8BD;
  --text-muted: #6C6C82;
  
  --border-light: #232332;
  --border-medium: #34344A;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  --transition-fast: all 0.18s ease;
  --transition-smooth: all 0.25s ease;
}

/* ==========================================
   BASE & RESET
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* No grid/noise â€” DeepSeek is clean */

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-text {
  color: var(--brand-blue);
}

.required {
  color: #E54D4D;
  margin-left: 2px;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  outline: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-blue-dark);
}
.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--text-muted);
}

.btn-icon svg {
  transition: var(--transition-fast);
}
.btn-icon:hover svg {
  transform: scale(1.08);
}

.detail-builder-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brand-blue);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.detail-builder-link:hover {
  color: var(--brand-blue-dark);
  text-decoration: underline;
}

/* ==========================================
   HEADER
   ========================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  min-width: 0;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  font-size: 1.6rem;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.logo-text span {
  color: var(--brand-blue);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  padding: 64px 24px 36px;
  text-align: center;
  position: relative;
}

.hero-container {
  max-width: 720px;
  margin: 0 auto;
}

.badge-container {
  margin-bottom: 16px;
}

.hero-badge {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  border: 1px solid rgba(77, 107, 254, 0.15);
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.18;
  margin-bottom: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  font-weight: 400;
}

/* ==========================================
   MAIN CONTENT & FILTER BAR
   ========================================== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  min-width: 0;
}

.filter-bar {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  box-shadow: var(--shadow-sm);
}

/* Search Box */
.search-box {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

#search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 14px 14px 14px 46px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: var(--transition-fast);
  outline: none;
}

#search-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
  background: var(--bg-hover);
}

#search-input::placeholder {
  color: var(--text-muted);
}

#search-input:focus + .search-icon {
  color: var(--brand-blue);
}

/* Tag Filters */
.tags-filter-container {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
}

.filter-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.88rem;
  white-space: nowrap;
  padding-top: 6px;
}

.filter-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.tag-pill {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: normal;
  text-align: left;
}

.tag-pill:hover {
  background: var(--brand-blue-light);
  border-color: rgba(77, 107, 254, 0.25);
  color: var(--brand-blue);
}

.tag-pill.active {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

/* Results Metadata Row */
.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding: 0 2px;
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.sort-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

#sort-select {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  font-size: 0.88rem;
}

#sort-select:focus {
  border-color: var(--brand-blue);
}

/* ==========================================
   PROJECT GRID & CARDS
   ========================================== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 24px;
  min-width: 0;
}

.project-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
  cursor: pointer;
  min-width: 0;
}

.project-card:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Preview Image Area */
.card-preview {
  height: 180px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.card-fallback-glow {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.card-fallback-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 10, 16, 0.5) 0%, transparent 100%);
}

.mock-ui-browser {
  width: 80%;
  height: 90px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 8px 8px 0 0;
  margin-top: auto;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transform: translateY(8px);
  transition: var(--transition-smooth);
}

.project-card:hover .mock-ui-browser {
  transform: translateY(0px) scale(1.02);
}

.mock-ui-dots {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  background: var(--bg-primary);
}

.mock-ui-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-medium);
}

.mock-ui-dots span:nth-child(1) { background: #E54D4D; }
.mock-ui-dots span:nth-child(2) { background: #F5A623; }
.mock-ui-dots span:nth-child(3) { background: #34C759; }

.mock-ui-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background: var(--bg-white);
}

.mock-ui-logo {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.mock-ui-wireframe {
  width: 50px;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  margin-top: 6px;
}

/* Card Body */
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  z-index: 1;
}

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

.card-author,
.card-builder-link {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.card-builder-link {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
}

.card-builder-link:hover {
  color: var(--brand-blue);
}

.card-author span,
.card-builder-link span {
  color: var(--brand-blue);
  font-weight: 600;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--text-primary);
}

.card-tagline {
  font-size: 0.86rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6rem;
}

.card-live-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(108, 92, 231, 0.3);
  background: rgba(108, 92, 231, 0.08);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-fast);
}

.card-live-link:hover {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #34C759;
  flex: 0 0 auto;
}

.card-live-link span:nth-child(2) {
  flex: 1;
}

.live-arrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.card-stack {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  max-width: 70%;
  min-width: 0;
}

.stack-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

/* Card Upvote Button */
.btn-vote {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-vote:hover {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  border-color: rgba(77, 107, 254, 0.3);
}

.btn-vote.voted {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

.btn-vote.voted .vote-arrow {
  color: #fff;
}

.btn-card-shortlist {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-card-shortlist:hover,
.btn-card-shortlist.shortlisted,
.btn.shortlisted {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  border-color: rgba(77, 107, 254, 0.3);
}

.owner-action {
  border-color: rgba(52, 199, 89, 0.3);
  color: #34C759;
}

.owner-action.danger {
  border-color: rgba(229, 77, 77, 0.3);
  color: #E54D4D;
}

.owner-action.danger:hover {
  background: rgba(229, 77, 77, 0.06);
}

.vote-arrow {
  font-size: 0.62rem;
  transition: var(--transition-fast);
}

.project-card:hover .finance-card-ui {
  transform: translateY(0) scale(1.02);
}

.finance-card-top,
.finance-card-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-primary);
}

.finance-card-top span,
.finance-card-metrics span {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.finance-card-top strong,
.finance-card-metrics strong {
  font-weight: 700;
  font-size: 0.8rem;
}

.finance-card-chart {
  height: 44px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  align-items: end;
}

.finance-card-chart span {
  display: block;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--brand-blue), rgba(77, 107, 254, 0.4));
}

.card-deck-preview {
  justify-content: center;
}

.deck-card-ui {
  width: min(84%, 260px);
  min-height: 126px;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  transform: translateY(8px);
  transition: var(--transition-smooth);
  z-index: 1;
}

.project-card:hover .deck-card-ui {
  transform: translateY(0) scale(1.02);
}

.deck-card-tabs {
  display: flex;
  gap: 6px;
}

.deck-card-tabs span {
  width: 28px;
  height: 5px;
  border-radius: 999px;
  background: var(--border-medium);
}

.deck-card-slides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.deck-card-slides span {
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
}

.deck-card-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-primary);
}

.deck-card-score strong {
  font-weight: 700;
  font-size: 0.82rem;
}

.deck-card-score em {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
}

.card-feas-preview {
  justify-content: center;
}

.feas-card-ui {
  width: min(84%, 260px);
  min-height: 128px;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  transform: translateY(8px);
  transition: var(--transition-smooth);
  z-index: 1;
}

.project-card:hover .feas-card-ui {
  transform: translateY(0) scale(1.02);
}

.feas-card-gauge {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, var(--bg-white) 0 48%, transparent 49%),
    conic-gradient(var(--brand-blue) 0 72%, var(--border-light) 72% 100%);
}

.feas-card-gauge span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: var(--bg-white);
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 700;
}

.feas-card-checks {
  display: grid;
  gap: 7px;
}

.feas-card-checks span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ==========================================
   MODALS
   ========================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1;
}

.modal-content {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 650px;
  min-width: 0;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.detail-modal-content {
  max-width: 750px;
  width: min(750px, calc(100vw - 28px));
}

.detail-header-image {
  height: 260px;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
}

.detail-header-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-white) 0%, rgba(17, 17, 25, 0.7) 50%, transparent 100%);
}

.detail-fallback-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-white) 0%, rgba(17, 17, 25, 0.5) 100%);
  z-index: 2;
  pointer-events: none;
}

.detail-visual-placeholder {
  position: absolute;
  inset: 24px 32px 48px;
  z-index: 1;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.detail-window-bar {
  height: 26px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  background: var(--bg-primary);
}

.detail-window-bar span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand-blue);
  opacity: 0.8;
}

.detail-window-bar span:nth-child(2) {
  background: #34C759;
}

.detail-window-bar span:nth-child(3) {
  background: #E54D4D;
}

.detail-visual-content {
  min-height: calc(100% - 26px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  background:
    linear-gradient(90deg, var(--border-light) 1px, transparent 1px),
    linear-gradient(var(--border-light) 1px, transparent 1px);
  background-size: 34px 34px;
}

.detail-visual-content strong {
  color: var(--text-primary);
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  line-height: 1.05;
  max-width: 76%;
}

.detail-visual-content p {
  color: var(--text-secondary);
  margin-top: 8px;
  max-width: 68%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-visual-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.detail-visual-tools span {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 4px 7px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 700;
}

.detail-body {
  padding: 36px;
}

.detail-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-author {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.detail-author span {
  color: var(--brand-blue);
  font-weight: 600;
}

.detail-stack-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.detail-title {
  font-size: 1.9rem;
  line-height: 1.2;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.detail-tagline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 26px;
}

.detail-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 26px;
}

.btn-vote-large {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-vote-large:hover {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  border-color: rgba(77, 107, 254, 0.3);
}

.btn-vote-large.voted {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

.btn-vote-large.voted .vote-arrow {
  color: #fff;
}

.detail-divider {
  border: 0;
  height: 1px;
  background: var(--border-light);
  margin-bottom: 26px;
}

.detail-story-section h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--brand-blue);
}

.story-paragraph {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre-line;
}

/* --- SUBMIT MODAL SPECIFICS --- */
.submit-modal-content {
  padding: 40px;
}

.submit-header {
  margin-bottom: 30px;
}

.submit-header h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.submit-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.submit-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 550px) {
  .modal {
    align-items: flex-start;
    padding: 10px;
  }

  .modal-content {
    width: 100%;
    max-width: none;
    max-height: calc(100vh - 20px);
    border-radius: 18px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
  }

  .detail-header-image {
    height: 150px;
    padding: 18px;
  }

  .detail-visual-placeholder {
    inset: 20px 18px 34px;
  }

  .detail-visual-content {
    padding: 16px;
  }

  .detail-visual-content strong,
  .detail-visual-content p {
    max-width: 100%;
  }

  .detail-visual-tools {
    display: none;
  }

  .detail-body,
  .submit-modal-content {
    padding: 20px 16px;
  }

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

  .detail-tagline {
    font-size: 0.98rem;
    margin-bottom: 20px;
  }

  .detail-actions {
    gap: 10px;
    align-items: stretch;
    flex-direction: column;
  }

  .detail-actions .btn,
  .btn-vote-large {
    width: 100%;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
  }

  .detail-tabs {
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .detail-tab {
    white-space: nowrap;
    flex: 0 0 auto;
  }

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

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

  .builder-info,
  .btn-hire {
    width: 100%;
  }

  .skills-list {
    min-width: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-blue);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(77, 107, 254, 0.08);
}

.help-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Stack Checkboxes Grid */
.stack-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  padding: 14px;
  border-radius: 10px;
}

.stack-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.stack-check-label input {
  cursor: pointer;
  accent-color: var(--brand-blue);
}

.stack-check-label span {
  transition: var(--transition-smooth);
}

.stack-check-label input:checked + span {
  color: var(--brand-blue);
  font-weight: 600;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

/* ==========================================
   FOOTER
   ========================================== */
.app-footer {
  border-top: 1px solid var(--border-light);
  padding: 30px 24px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--brand-blue);
}

@media (max-width: 600px) {
  .app-header {
    position: static;
  }

  .header-container {
    padding: 12px 14px;
    flex-wrap: wrap;
  }

  .logo-icon {
    font-size: 1.25rem;
  }

  .logo-text {
    font-size: 1.08rem;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .btn {
    padding: 9px 11px;
    font-size: 0.82rem;
    border-radius: 10px;
    gap: 6px;
    white-space: nowrap;
  }

  .header-actions .btn svg {
    width: 15px;
    height: 15px;
  }

  .hero-section {
    padding: 44px 14px 24px;
  }

  .hero-badge {
    display: inline-flex;
    max-width: 100%;
    font-size: 0.68rem;
    line-height: 1.35;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }

  .hero-title {
    font-size: 2.15rem;
    line-height: 1.08;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .main-content {
    padding: 14px 14px 56px;
  }

  .filter-bar {
    padding: 14px;
    border-radius: 16px;
    gap: 16px;
  }

  #search-input,
  .location-dropdown {
    height: auto;
    min-height: 50px;
    font-size: 0.9rem;
  }

  #search-input {
    padding: 13px 12px 13px 42px;
  }

  .search-icon {
    left: 14px;
    width: 17px;
    height: 17px;
  }

  .filter-label {
    width: 100%;
    font-size: 0.82rem;
  }

  .filter-tags {
    gap: 8px;
  }

  .tag-pill {
    padding: 7px 10px;
    font-size: 0.76rem;
  }

  .results-meta {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .sort-selector {
    width: 100%;
    justify-content: space-between;
  }

  #sort-select {
    max-width: 170px;
  }

  .project-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .card-preview {
    height: 150px;
  }

  .card-body {
    padding: 16px;
  }

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

  .card-status-badges {
    justify-content: flex-start;
  }

  .card-title {
    font-size: 1.14rem;
  }

  .card-tagline {
    height: auto;
    min-height: 0;
    -webkit-line-clamp: 3;
  }

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

  .card-stack {
    max-width: 100%;
  }

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

  .btn-card-shortlist,
  .btn-vote {
    min-height: 36px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 16px;
  }
}

/* ==========================================
   ANIMATIONS & KEYFRAMES
   ========================================== */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.3));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.7));
  }
}

/* ==========================================
   DETAIL MODAL TABS & ARTICLES
   ========================================== */
.detail-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.detail-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 4px 14px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
  outline: none;
}

.detail-tab:hover {
  color: var(--text-primary);
}

.detail-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-blue);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.detail-tab.active {
  color: var(--brand-blue);
}

.detail-tab.active::after {
  transform: scaleX(1);
}

.tab-count {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 4px;
  border: 1px solid rgba(77, 107, 254, 0.2);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

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

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

.detail-articles-header h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.detail-articles-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Write Article Form */
.write-article-form {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-light);
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lead-form {
  background: rgba(52, 199, 89, 0.06);
  border: 1px solid rgba(52, 199, 89, 0.2);
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lead-form-header h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.lead-form-header p,
.lead-form-status {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.lead-form-status {
  min-height: 1.3em;
  color: #34C759;
  font-weight: 600;
}

/* Article Feed list */
.detail-articles-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.article-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  transition: var(--transition-fast);
}

.article-item:hover {
  background: var(--bg-white);
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}

.article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.article-author-name {
  color: var(--brand-blue);
  font-weight: 600;
}

.article-type-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(52, 199, 89, 0.3);
  background: rgba(52, 199, 89, 0.08);
  color: #34C759;
  border-radius: 999px;
  padding: 2px 8px;
  margin-right: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.article-item-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.article-item-content {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
}

.empty-articles {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-primary);
  border: 1px dashed var(--border-medium);
  border-radius: 12px;
  color: var(--text-muted);
}

.empty-articles p {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 6px;
}

.empty-articles span:not(.empty-articles-icon) {
  display: block;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.55;
}

.empty-articles-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

/* ==========================================
   REPUTATION & VALIDATION WIDGETS
   ========================================== */

/* Project Card Badges */
.card-badges-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  width: 100%;
}

.card-validation-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #34C759;
  background: rgba(52, 199, 89, 0.08);
  border: 1px solid rgba(52, 199, 89, 0.2);
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.05);
}

.card-status-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.card-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.card-status-badge.hireable {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.card-status-badge.opportunity {
  background: rgba(6, 182, 212, 0.1);
  color: #34C759;
  border: 1px solid rgba(52, 199, 89, 0.2);
}

.card-status-badge.acquisition {
  background: rgba(77, 107, 254, 0.08);
  color: var(--brand-blue);
  border: 1px solid rgba(77, 107, 254, 0.2);
}

.card-status-badge.articles {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

/* Detail Modal Reputation Grid */
.detail-reputation-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 550px) {
  .detail-reputation-row {
    grid-template-columns: 1fr;
  }
}

.validation-score-box, .builder-status-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.score-label, .status-box-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.score-value-wrapper {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.score-number {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: #34C759;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.score-total {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.score-rating {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 4px;
}

.status-badges-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.reputation-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
}

.reputation-badge.hireable {
  background: rgba(34, 197, 94, 0.08);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.reputation-badge.acquisition {
  background: rgba(168, 85, 247, 0.08);
  color: var(--brand-blue);
  border: 1px solid rgba(77, 107, 254, 0.2);
}

.reputation-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.reputation-badge.hireable .reputation-badge-dot {
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.reputation-badge.acquisition .reputation-badge-dot {
  background-color: var(--brand-blue);
  box-shadow: 0 0 8px var(--brand-blue);
}

.opportunity-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.opportunity-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 13px 16px;
  min-width: 0;
}

.opportunity-item span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.opportunity-item strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

@media (max-width: 550px) {
  .opportunity-panel {
    grid-template-columns: 1fr;
  }
}

/* Builder Profile Card inside Modal */
.builder-profile-card {
  background: linear-gradient(135deg, rgba(77, 107, 254, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.01);
}

.builder-profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.builder-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-neon);
}

.builder-info {
  flex-grow: 1;
}

.builder-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.builder-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-hire {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%) !important;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.2) !important;
  font-weight: 700 !important;
}

.btn-hire:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.4) !important;
  filter: brightness(1.1);
}

.builder-bio {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.builder-skills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

.skills-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.skills-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.skills-list .stack-badge {
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
}

/* Search and Location Grid layout */
.search-location-row {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 16px;
  width: 100%;
}

@media (max-width: 650px) {
  .search-location-row {
    grid-template-columns: 1fr;
  }
}

.location-dropdown {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light);
  padding: 16px 16px;
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: var(--transition-smooth);
  outline: none;
  cursor: pointer;
  height: 56px;
}

.location-dropdown:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
  background: rgba(0, 0, 0, 0.5);
}

/* AI Copywriter Button Animation */
#btn-ai-assist {
  transition: var(--transition-smooth);
}

#btn-ai-assist:hover {
  transform: scale(1.05);
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

/* ==========================================
   BUILDER PROFILE PAGE
   ========================================== */
.builder-profile-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 24px 70px;
  position: relative;
  z-index: 1;
}

.builder-profile-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.builder-back-btn {
  align-self: flex-start;
}

.builder-profile-hero {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 22px;
  padding: 26px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(16, 185, 129, 0.06)), rgba(255, 255, 255, 0.025);
  box-shadow: var(--shadow-neon);
}

.builder-avatar {
  width: 108px;
  height: 108px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-blue);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 900;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.18);
}

.builder-profile-main {
  min-width: 0;
}

.builder-profile-kicker {
  display: inline-flex;
  margin-bottom: 6px;
  color: #34C759;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.builder-profile-main h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.builder-profile-main p {
  color: var(--text-secondary);
  max-width: 760px;
}

.builder-profile-status,
.builder-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.builder-status-chip,
.builder-opportunity-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(16, 185, 129, 0.24);
  background: rgba(16, 185, 129, 0.09);
  color: #34C759;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.builder-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.builder-stat-card,
.builder-profile-panel {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.builder-stat-card {
  padding: 16px;
}

.builder-stat-card span,
.builder-section-heading span,
.builder-app-card-top,
.builder-article-meta {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.builder-stat-card strong {
  display: block;
  color: var(--brand-blue);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  margin-top: 8px;
}

.builder-profile-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 16px;
}

.builder-profile-panel {
  padding: 18px;
}

.builder-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.builder-section-heading h3 {
  font-size: 1.2rem;
}

.builder-tools-list,
.builder-opportunity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.builder-apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.builder-app-card,
.builder-article-card {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  padding: 16px;
  transition: var(--transition-smooth);
}

.builder-app-card {
  cursor: pointer;
}

.builder-app-card:hover,
.builder-article-card:hover {
  border-color: rgba(245, 158, 11, 0.34);
  transform: translateY(-2px);
}

.builder-app-card-top,
.builder-app-meta,
.builder-article-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.builder-app-card h4,
.builder-article-card h4 {
  margin: 10px 0 7px;
  color: var(--text-primary);
  font-size: 1.08rem;
}

.builder-app-card p,
.builder-article-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.builder-app-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.builder-article-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.builder-app-meta {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.builder-app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.builder-live-link,
.builder-open-project,
.builder-edit-project,
.builder-delete-project {
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.builder-live-link {
  border: 1px solid rgba(245, 158, 11, 0.42);
  background: rgba(245, 158, 11, 0.16);
  color: #fef3c7;
}

.builder-open-project {
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.builder-edit-project {
  border: 1px solid rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.08);
  color: #34C759;
}

.builder-delete-project {
  border: 1px solid rgba(244, 63, 94, 0.32);
  background: rgba(244, 63, 94, 0.08);
  color: #fb7185;
}

.builder-articles-list {
  display: grid;
  gap: 12px;
}

.builder-article-card .builder-open-project {
  margin-top: 12px;
}

.builder-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================
   PAGINATION
   ========================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding: 0 24px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.page-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glass-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

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

.page-numbers {
  display: flex;
  gap: 6px;
}

.page-num {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.page-num:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glass-hover);
  color: var(--text-primary);
}

.page-num.active {
  background: var(--brand-blue);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-neon);
}

@media (max-width: 600px) {
  .builder-profile-page {
    padding: 28px 16px 54px;
  }

  .builder-profile-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .builder-avatar {
    width: 82px;
    height: 82px;
    font-size: 1.6rem;
  }

  .builder-stats-row,
  .builder-profile-grid,
  .builder-apps-grid {
    grid-template-columns: 1fr;
  }

  .builder-section-heading,
  .builder-app-card-top,
  .builder-app-meta,
  .builder-article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .pagination {
    gap: 6px;
    margin-top: 30px;
  }

  .page-btn {
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .page-num {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
  }
}

#btn-ai-assist:active {
  transform: scale(0.95);
}

/* ==========================================
   PROJECT DETAIL PAGE
   ========================================== */
.project-detail-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 24px 70px;
  position: relative;
  z-index: 1;
}

.project-detail-hero-wrapper {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  padding: 28px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(16, 185, 129, 0.05)), rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow-neon);
  margin-bottom: 22px;
}

.project-detail-image-box {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  background: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.15);
  overflow: hidden;
}

.project-detail-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-detail-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.project-detail-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 12px;
}

.project-detail-category {
  color: #34C759;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-detail-votes-action {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-detail-votes-action span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
}

.project-detail-main h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  margin-bottom: 8px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
}

.project-detail-main p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 18px;
  line-height: 1.45;
}

.project-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-detail-story-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.btn-vote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fef3c7;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-vote:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

.btn-vote.voted {
  background: var(--brand-blue);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-neon);
}

@media (max-width: 650px) {
  .project-detail-hero-wrapper {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 16px;
  }
  
  .project-detail-image-box {
    width: 100px;
    height: 100px;
    font-size: 2rem;
  }
  
  .project-detail-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ==========================================
   SCREENSHOTS GALLERY & LIGHTBOX
   ========================================== */
.project-detail-screenshots-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.project-detail-screenshot-item {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.project-detail-screenshot-item:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2), 0 0 10px rgba(16, 185, 129, 0.1);
}

.project-detail-screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-detail-screenshot-item:hover img {
  transform: scale(1.05);
}

/* Lightbox Modal styling */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 10, 15, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
}

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

.lightbox-content {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.1);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  transform: rotate(90deg);
}

@media (max-width: 480px) {
  .project-detail-screenshots-gallery {
    grid-template-columns: 1fr;
  }
}



/* ==========================================
   ENTERPRISE LANDING PAGE
   ========================================== */

.enterprise-body {
  --ent-bg: #0A0A0F;
  --ent-surface: #111118;
  --ent-surface-alt: #161620;
  --ent-border: #222230;
  --ent-text: #EEEEF4;
  --ent-text-soft: #AAAABC;
  --ent-text-muted: #6C6C80;
  --ent-accent: #6C5CE7;
  --ent-accent-glow: rgba(108, 92, 231, 0.2);
  background: var(--ent-bg);
  color: var(--ent-text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

.enterprise-body * { box-sizing: border-box; margin: 0; padding: 0; }

/* Header */
.ent-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,0.85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ent-border);
}
.ent-header-container {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.ent-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 800; color: var(--ent-text); text-decoration: none;
}
.ent-nav { display: flex; gap: 28px; }
.ent-nav a {
  font-size: 0.88rem; font-weight: 500; color: var(--ent-text-soft);
  text-decoration: none; transition: color 0.15s;
}
.ent-nav a:hover { color: var(--ent-text); }
.ent-header-actions { display: flex; align-items: center; gap: 14px; }
.ent-link {
  font-size: 0.86rem; font-weight: 500; color: var(--ent-text-soft); text-decoration: none;
}
.ent-link:hover { color: var(--ent-text); }

/* Buttons */
.ent-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 20px; border-radius: 8px;
  font: 600 0.88rem 'Inter', sans-serif; text-decoration: none;
  cursor: pointer; transition: all 0.18s; border: 1px solid transparent;
}
.ent-btn-primary {
  background: var(--ent-accent); color: #fff;
  box-shadow: 0 2px 12px var(--ent-accent-glow);
}
.ent-btn-primary:hover { background: #5A4BD1; box-shadow: 0 4px 20px var(--ent-accent-glow); }
.ent-btn-secondary {
  background: transparent; color: var(--ent-text-soft); border: 1px solid var(--ent-border);
}
.ent-btn-secondary:hover { background: var(--ent-surface-alt); color: var(--ent-text); }
.ent-btn-lg { padding: 13px 28px; font-size: 0.95rem; }
.ent-btn-full { width: 100%; }

/* Hero */
.ent-hero { padding: 72px 24px 60px; }
.ent-hero-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.ent-hero-text { max-width: 560px; }
.ent-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(108,92,231,0.1); color: var(--ent-accent);
  font-size: 0.78rem; font-weight: 600; margin-bottom: 22px;
}
.ent-badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ent-accent);
  animation: ent-pulse 2s infinite;
}
@keyframes ent-pulse {
  0%,100% { opacity: 1; } 50% { opacity: 0.5; }
}
.ent-hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900;
  line-height: 1.1; letter-spacing: -0.04em; margin-bottom: 18px; color: var(--ent-text);
}
.ent-gradient {
  background: linear-gradient(135deg, #6C5CE7 0%, #A78BFA 50%, #38BDF8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ent-hero-text p {
  font-size: 1.05rem; line-height: 1.65; color: var(--ent-text-soft); margin-bottom: 28px;
}
.ent-hero-actions { display: flex; gap: 14px; margin-bottom: 32px; }
.ent-hero-stats { display: flex; gap: 36px; }
.ent-stat { display: flex; flex-direction: column; gap: 2px; }
.ent-stat strong {
  font-size: 1.6rem; font-weight: 800; color: var(--ent-text); letter-spacing: -0.03em;
}
.ent-stat span { font-size: 0.8rem; color: var(--ent-text-muted); }

/* Hero Visual Cards */
.ent-hero-visual { position: relative; height: 340px; display: none; }
@media (min-width: 860px) { .ent-hero-visual { display: block; } }
.ent-hero-card {
  position: absolute; border-radius: 12px; background: var(--ent-surface);
  border: 1px solid var(--ent-border); padding: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.ent-hero-card-1 { top: 0; right: 10px; width: 220px; z-index: 3; }
.ent-hero-card-2 { top: 70px; left: 0; width: 180px; z-index: 2; }
.ent-hero-card-3 { top: 180px; right: 50px; width: 200px; z-index: 1; }
.ent-card-header { display: flex; gap: 5px; margin-bottom: 10px; }
.ent-card-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ent-border); }
.ent-card-chart {
  display: grid; grid-template-columns: repeat(5,1fr); gap: 6px;
  align-items: end; height: 60px; margin-bottom: 8px;
}
.ent-card-chart span {
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #6C5CE7, rgba(108,92,231,0.3));
}
.ent-card-label { font-size: 0.72rem; font-weight: 700; color: var(--ent-text-soft); }
.ent-swot-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px;
}
.ent-swot-grid span {
  display: grid; place-items: center; height: 38px; border-radius: 6px;
  background: rgba(108,92,231,0.12); color: #A78BFA; font-weight: 900; font-size: 0.9rem;
}
.ent-bmc-mini {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin-bottom: 8px;
}
.ent-bmc-mini span {
  height: 22px; border-radius: 4px; background: rgba(108,92,231,0.1);
}

/* Trust Bar */
.ent-trust { padding: 48px 24px; border-top: 1px solid var(--ent-border); border-bottom: 1px solid var(--ent-border); }
.ent-container { max-width: 1140px; margin: 0 auto; }
.ent-trust-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
@media (max-width: 800px) { .ent-trust-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .ent-trust-grid { grid-template-columns: 1fr; } }
.ent-trust-item { display: flex; flex-direction: column; gap: 6px; }
.ent-trust-icon { font-size: 1.6rem; margin-bottom: 4px; }
.ent-trust-item strong { font-size: 0.9rem; font-weight: 700; color: var(--ent-text); }
.ent-trust-item span { font-size: 0.8rem; color: var(--ent-text-muted); line-height: 1.5; }

/* Sections */
.ent-section { padding: 72px 24px; }
.ent-section-alt { background: var(--ent-surface); border-top: 1px solid var(--ent-border); border-bottom: 1px solid var(--ent-border); }
.ent-section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.ent-kicker {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ent-accent); margin-bottom: 10px; display: block;
}
.ent-section-head h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 10px; }
.ent-section-head p { font-size: 0.95rem; color: var(--ent-text-soft); line-height: 1.6; }

/* Tools Grid */
.ent-tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 28px; }
@media (max-width: 680px) { .ent-tools-grid { grid-template-columns: 1fr; } }
.ent-tool-category h3 {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ent-text-muted); margin-bottom: 12px;
  padding-left: 4px;
}
.ent-tool-list { display: flex; flex-direction: column; gap: 8px; }
.ent-tool-item {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; border-radius: 10px; background: var(--ent-surface);
  border: 1px solid var(--ent-border); text-decoration: none;
  transition: all 0.18s; position: relative;
}
.ent-tool-item:hover { border-color: var(--ent-accent); background: rgba(108,92,231,0.06); }
.ent-tool-item strong { font-size: 0.92rem; font-weight: 700; color: var(--ent-text); }
.ent-tool-item > span { font-size: 0.8rem; color: var(--ent-text-soft); line-height: 1.4; }
.ent-tool-tag {
  position: absolute; top: 12px; right: 14px;
  font-size: 0.66rem; font-weight: 700; padding: 2px 7px;
  border-radius: 999px;
}
.ent-tool-tag:contains("Free") { background: rgba(52,199,89,0.1); color: #34C759; }
.ent-tool-tag { background: rgba(108,92,231,0.1); color: var(--ent-accent); }

/* Packages */
.ent-packages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 16px; }
.ent-package-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 20px; border-radius: 12px; background: var(--ent-surface-alt);
  border: 1px solid var(--ent-border); text-decoration: none;
  transition: all 0.18s;
}
.ent-package-card:hover { border-color: var(--ent-accent); transform: translateY(-2px); }
.ent-package-icon { font-size: 1.8rem; }
.ent-package-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--ent-text); }
.ent-package-card p { font-size: 0.8rem; color: var(--ent-text-soft); line-height: 1.5; }
.ent-package-meta { font-size: 0.72rem; font-weight: 600; color: var(--ent-accent); margin-top: auto; }

/* Pricing */
.ent-pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: start; }
@media (max-width: 800px) { .ent-pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.ent-pricing-card {
  padding: 30px 26px; border-radius: 14px; background: var(--ent-surface);
  border: 1px solid var(--ent-border); display: flex; flex-direction: column; gap: 14px;
}
.ent-pricing-featured { border-color: var(--ent-accent); box-shadow: 0 8px 30px rgba(108,92,231,0.15); }
.ent-pricing-badge {
  display: inline-flex; align-self: flex-start;
  padding: 4px 10px; border-radius: 999px; background: rgba(108,92,231,0.12);
  color: var(--ent-accent); font-size: 0.7rem; font-weight: 700;
}
.ent-pricing-card h3 { font-size: 1.1rem; font-weight: 700; }
.ent-price { font-size: 2.4rem; font-weight: 900; letter-spacing: -0.04em; }
.ent-price span { font-size: 0.9rem; font-weight: 500; color: var(--ent-text-muted); }
.ent-pricing-card p { font-size: 0.84rem; color: var(--ent-text-soft); }
.ent-pricing-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ent-pricing-card ul li { font-size: 0.84rem; color: var(--ent-text-soft); padding-left: 18px; position: relative; }
.ent-pricing-card ul li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 10px; height: 10px; border-radius: 50%; background: rgba(108,92,231,0.3);
}
.ent-pricing-featured ul li::before { background: var(--ent-accent); }

/* CTA */
.ent-cta { padding: 80px 24px; text-align: center; background: var(--ent-surface); border-top: 1px solid var(--ent-border); }
.ent-cta h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.ent-cta p { font-size: 0.95rem; color: var(--ent-text-soft); margin-bottom: 24px; }

/* Footer */
.ent-footer { padding: 50px 24px 30px; border-top: 1px solid var(--ent-border); }
.ent-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
@media (max-width: 600px) { .ent-footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.ent-footer-brand { display: flex; flex-direction: column; gap: 10px; }
.ent-footer-brand p { font-size: 0.84rem; color: var(--ent-text-muted); line-height: 1.6; }
.ent-footer-links { display: flex; flex-direction: column; gap: 8px; }
.ent-footer-links strong { font-size: 0.8rem; font-weight: 700; color: var(--ent-text-soft); margin-bottom: 2px; }
.ent-footer-links a { font-size: 0.84rem; color: var(--ent-text-muted); text-decoration: none; }
.ent-footer-links a:hover { color: var(--ent-text); }
.ent-footer-bottom { padding-top: 18px; border-top: 1px solid var(--ent-border); text-align: center; }
.ent-footer-bottom span { font-size: 0.8rem; color: var(--ent-text-muted); }

/* -----------------------------------------------------------
   STORE — Microlearning Storefront (Amazon-style)
   ----------------------------------------------------------- */
.store-body {
  --s-bg: #0A0A0F; --s-surface: #111118; --s-border: #222230;
  --s-text: #EDEDF5; --s-soft: #B8B8CC; --s-muted: #8888A0;
  --s-accent: #6C5CE7; --s-green: #34D399; --s-amber: #FBBF24;
  background: var(--s-bg); color: var(--s-text);
  font-family: 'Inter', system-ui, sans-serif; margin: 0; -webkit-font-smoothing: antialiased;
}
.store-body * { box-sizing: border-box; margin: 0; padding: 0; }
.store-body a { color: inherit; text-decoration: none; }

/* -- Header -- */
.store-header { position: sticky; top: 0; z-index: 100; }
.store-header-top {
  background: #0D0D14; border-bottom: 1px solid var(--s-border); padding: 10px 0;
}
.store-container { max-width: 1260px; margin: 0 auto; padding: 0 20px; }
.store-header-top .store-container {
  display: flex; align-items: center; gap: 16px;
}
.store-logo {
  display: flex; align-items: center; gap: 8px; font-size: 1.15rem; font-weight: 800;
  color: var(--s-text); flex-shrink: 0;
}
.store-search {
  flex: 1; display: flex; max-width: 600px; min-width: 200px;
}
.store-search-cat {
  padding: 8px 10px; border: 1px solid var(--s-border); border-right: 0;
  border-radius: 8px 0 0 8px; background: var(--s-surface); color: var(--s-soft);
  font: 500 0.8rem 'Inter', sans-serif; outline: none; min-width: 110px;
}
.store-search input {
  flex: 1; padding: 8px 12px; border: 1px solid var(--s-border); border-left: 0; border-right: 0;
  background: var(--s-surface); color: var(--s-text); font: 500 0.88rem 'Inter', sans-serif;
  outline: none; min-width: 0;
}
.store-search input:focus { border-color: var(--s-accent); }
.store-search button {
  padding: 8px 14px; border: 1px solid var(--s-accent); border-radius: 0 8px 8px 0;
  background: var(--s-accent); color: #fff; cursor: pointer; font-size: 0.9rem;
}
.store-header-links { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.store-header-links select {
  padding: 6px 8px; border: 1px solid var(--s-border); border-radius: 6px;
  background: var(--s-surface); color: var(--s-soft); font: 500 0.78rem 'Inter', sans-serif; outline: none;
}
.store-link { font-size: 0.82rem; font-weight: 500; color: var(--s-soft); }
.store-link:hover { color: var(--s-text); }

/* -- Nav -- */
.store-nav { background: #0D0D14; border-bottom: 1px solid var(--s-border); }
.store-nav .store-container { display: flex; gap: 4px; padding: 6px 20px; overflow-x: auto; }
.store-nav-link {
  padding: 7px 14px; border-radius: 6px; font-size: 0.82rem; font-weight: 600;
  color: var(--s-soft); white-space: nowrap; transition: all 0.15s;
}
.store-nav-link:hover, .store-nav-link.active { background: var(--s-accent); color: #fff; }

/* -- Hero -- */
.store-hero {
  padding: 48px 20px 40px;
  background: linear-gradient(180deg, #0D0D18 0%, #0A0A0F 100%);
  text-align: center; border-bottom: 1px solid var(--s-border);
}
.store-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 10px; }
.hero-accent { color: var(--s-accent); }
.store-hero p { color: var(--s-soft); font-size: 0.95rem; max-width: 560px; margin: 0 auto 20px; }
.store-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* -- Buttons -- */
.store-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px;
  border-radius: 8px; font: 600 0.88rem 'Inter', sans-serif; cursor: pointer;
  border: 1px solid transparent; transition: all 0.15s;
}
.store-btn-primary { background: var(--s-accent); color: #fff; }
.store-btn-primary:hover { background: #5A4BD1; }
.store-btn-secondary { background: transparent; color: var(--s-soft); border: 1px solid var(--s-border); }
.store-btn-secondary:hover { background: var(--s-surface); color: var(--s-text); }
.store-btn-lg { padding: 13px 28px; font-size: 0.95rem; }

/* -- Trust Strip -- */
.store-trust-strip {
  padding: 16px 0; background: var(--s-surface);
  border-bottom: 1px solid var(--s-border);
}
.store-trust-grid {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--s-soft);
}
.store-trust-grid strong { color: var(--s-text); }

/* -- Main Content -- */
.store-main { padding: 28px 0 60px; }
.store-row { margin-bottom: 36px; }
.store-row-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.store-row-head h2 { font-size: 1.15rem; font-weight: 700; }
.store-see-all { font-size: 0.82rem; color: var(--s-accent); font-weight: 600; }
.store-see-all:hover { text-decoration: underline; }
.store-count { font-size: 0.8rem; color: var(--s-muted); }

/* -- Grid -- */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
@media (max-width: 500px) { .store-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* -- Card -- */
.store-card {
  display: flex; flex-direction: column; border: 1px solid var(--s-border);
  border-radius: 10px; background: var(--s-surface); overflow: hidden;
  transition: all 0.18s; cursor: pointer;
}
.store-card:hover { border-color: var(--s-accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,92,231,0.1); }
.store-card-img {
  height: 120px; display: grid; place-items: center; position: relative;
  background: linear-gradient(135deg, rgba(108,92,231,0.12), rgba(56,189,248,0.06));
}
.store-card-emoji { font-size: 2.4rem; }
.store-card-lang { position: absolute; top: 8px; right: 8px; font-size: 0.9rem; }
.store-card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.store-card-cat { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--s-accent); }
.store-card-body h3 { font-size: 0.92rem; font-weight: 700; line-height: 1.25; color: var(--s-text); }
.store-card-body p { font-size: 0.78rem; color: var(--s-muted); line-height: 1.4; flex: 1; }
.store-card-meta { display: flex; gap: 10px; font-size: 0.72rem; color: var(--s-soft); }
.store-card-price { font-size: 0.9rem; font-weight: 800; color: var(--s-green); margin-top: auto; }

/* -- Empty -- */
.store-empty { text-align: center; padding: 40px 20px; color: var(--s-muted); }
.store-empty strong { display: block; font-size: 1rem; margin-bottom: 4px; color: var(--s-soft); }

/* -- Footer -- */
.store-footer { background: var(--s-surface); border-top: 1px solid var(--s-border); padding: 40px 0 24px; }
.store-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 600px) { .store-footer-grid { grid-template-columns: repeat(2, 1fr); } }
.store-footer-grid strong { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 10px; color: var(--s-text); }
.store-footer-grid a { display: block; font-size: 0.8rem; color: var(--s-muted); padding: 3px 0; }
.store-footer-grid a:hover { color: var(--s-accent); }
