/* Prompt card enhancements */
.prompt-card-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.prompt-card-actions { display:flex; gap:6px; align-items:center; }
.prompt-copy-btn { font-size:16px; cursor:pointer; opacity:0.7; transition:opacity .2s; }
.prompt-copy-btn:hover { opacity:1; }
.prompt-cat-tag { font-size:11px; color:var(--muted); background:var(--surface-2); border-radius:6px; padding:2px 8px; display:inline-block; margin-bottom:8px; }

/* ============================================================
   DIGITAL SAMAAJ — PREMIUM ADDITIONS
   ============================================================ */

/* ---- LEARN TABS ---- */
.learn-tabs-bar {
  display: flex;
  gap: 4px;
  padding: 12px 16px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 56px;
  z-index: 10;
}
.learn-tab {
  flex: 1;
  padding: 9px 4px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.learn-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.learn-panel {
  display: none;
  padding: 16px;
  min-height: 50vh;
}
.learn-panel.active {
  display: block;
}

/* ---- MEMBERSHIP CARDS (full width) ---- */
.membership-card-full {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 18px 16px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.membership-card-full:hover, .membership-card-full:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(91,76,255,.13);
}
.membership-card-full.shuruaat { border-color: #10B981; background: linear-gradient(135deg,#f0fdf4,#dcfce7); }
.membership-card-full.srishti  { border-color: #9AA3B2; background: linear-gradient(135deg,#f8fafc,#f1f5f9); }
.membership-card-full.sampatti { border-color: #F59E0B; background: linear-gradient(135deg,#fffbeb,#fef3c7); }
.membership-card-full.samriddhi{ border-color: #5B4CFF; background: linear-gradient(135deg,#eef2ff,#e0e7ff); }
.dark-theme .membership-card-full.shuruaat  { background: linear-gradient(135deg,#022c22,#064e3b); }
.dark-theme .membership-card-full.srishti   { background: linear-gradient(135deg,#1e293b,#334155); }
.dark-theme .membership-card-full.sampatti  { background: linear-gradient(135deg,#292524,#3d2700); }
.dark-theme .membership-card-full.samriddhi { background: linear-gradient(135deg,#1e1b4b,#312e81); }

.mcf-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}
.mcf-badge.free     { background: #d1fae5; color: #065f46; }
.mcf-badge.silver   { background: #f1f5f9; color: #475569; }
.mcf-badge.gold     { background: #fef3c7; color: #92400e; }
.mcf-badge.diamond  { background: #ede9fe; color: #3730a3; }

.mcf-icon { font-size: 36px; flex-shrink: 0; }
.mcf-content { flex: 1; min-width: 0; }
.mcf-name { font-size: 17px; font-weight: 800; font-family: var(--font-display); margin-bottom: 2px; }
.mcf-tagline { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.mcf-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.mcf-meta span { font-size: 11px; background: rgba(255,255,255,.6); padding: 2px 7px; border-radius: 10px; font-weight: 600; }
.dark-theme .mcf-meta span { background: rgba(255,255,255,.1); }
.mcf-price { font-size: 18px; font-weight: 900; font-family: var(--font-display); color: var(--primary); flex-shrink: 0; }
.mcf-price.free-price { color: #10B981; }

/* ---- ECOSYSTEM STRIP ---- */
.ecosystem-strip {
  margin: 0 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
}
.eco-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.eco-steps { display: flex; align-items: center; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.eco-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 10px 8px;
  border-radius: 14px;
  cursor: pointer;
  flex-shrink: 0;
  border: 1.5px solid transparent;
  transition: all .2s;
}
.eco-step.free     { background: #f0fdf4; border-color: #10B981; }
.eco-step.silver   { background: #f8fafc; border-color: #9AA3B2; }
.eco-step.gold     { background: #fffbeb; border-color: #F59E0B; }
.eco-step.diamond  { background: #eef2ff; border-color: #5B4CFF; }
.dark-theme .eco-step.free     { background: #064e3b22; }
.dark-theme .eco-step.silver   { background: #33415522; }
.dark-theme .eco-step.gold     { background: #3d270022; }
.dark-theme .eco-step.diamond  { background: #312e8122; }
.eco-icon { font-size: 22px; }
.eco-name { font-size: 10px; font-weight: 700; text-align: center; line-height: 1.3; }
.eco-tag  { font-size: 9px; font-weight: 700; color: var(--muted); }
.eco-arrow { font-size: 14px; color: var(--muted); flex-shrink: 0; }

/* ---- CONTINUE LEARNING CARD ---- */
.continue-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  transition: box-shadow .2s;
}
.continue-card:hover { box-shadow: 0 4px 20px rgba(91,76,255,.12); }
.continue-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.continue-info { flex: 1; min-width: 0; }
.continue-title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.continue-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---- MEMBERSHIP MODAL FEATURE LIST ---- */
.mem-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.mem-feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.mem-feature-list li:last-child { border-bottom: none; }

/* ---- ECOSYSTEM INTRO ---- */
.ecosystem-intro {
  padding: 8px 0 12px;
  text-align: center;
}
.eco-tagline {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}

/* ---- TOOL CATEGORY TABS ---- */
.cat-tab {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  margin-right: 6px;
  margin-bottom: 4px;
  transition: all .2s;
}
.cat-tab.active, .cat-tab:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---- TOOL CARDS GRID ---- */
.tools-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 12px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.tool-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(91,76,255,.12); }
.tool-card-icon { font-size: 26px; margin-bottom: 6px; }
.tool-card-name { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.tool-card-desc { font-size: 11px; color: var(--muted); line-height: 1.4; }

/* ---- TOOLS PAGE CHIP ---- */
.tool-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
  white-space: nowrap;
}
.tool-chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.tool-chip-icon { font-size: 16px; }

/* ---- PROFILE STATS GRID ---- */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.profile-stat-card {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
}
.profile-stat-num { font-size: 22px; font-weight: 900; font-family: var(--font-display); color: var(--primary); }
.profile-stat-label { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---- ACHIEVEMENT BADGES ---- */
.achievements-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 8px;
}
.achievement-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--surface-2);
  border-radius: 14px;
  padding: 10px 14px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
}
.achievement-chip .ach-icon { font-size: 24px; }
