/* ==========================================================================
   GPKUMAR - FREEFRONTEND-BEATING COLLECTION SHOWCASE STYLES
   Curated UI Components, Live Code Playgrounds & Interactive Demos
   ========================================================================== */

/* --- 1. Collection Layout & Hero Section --- */
.collection-page {
  padding-bottom: 5rem;
}

.collection-hero {
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.collection-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--grad-badge, rgba(83, 56, 255, 0.1));
  border: 1px solid rgba(83, 56, 255, 0.25);
  border-radius: var(--radius-full, 9999px);
  color: var(--color-primary, #5338ff);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.collection-hero-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--text-main, #181829);
}

.collection-hero-title .gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.collection-hero-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted, #5e6278);
  max-width: 820px;
  margin-bottom: 1.75rem;
}

.collection-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-dim, #8f95b2);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle, #e5e8f5);
}

.collection-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- 2. Related Taxonomy / Subcategory Pill Bar --- */
.collection-tax-nav-wrap {
  position: sticky;
  top: var(--header-height, 76px);
  z-index: 40;
  background: var(--bg-body, #0d0f17);
  padding: 1rem 0;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle, #e5e8f5);
  margin-bottom: 2rem;
}

.collection-tax-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.collection-tax-pills::-webkit-scrollbar {
  display: none;
}

.collection-tax-pill {
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-full, 9999px);
  background: var(--bg-surface, #ffffff);
  color: var(--text-muted, #5e6278);
  border: 1px solid var(--border-subtle, #e5e8f5);
  text-decoration: none;
  transition: all 0.2s ease;
}

.collection-tax-pill:hover,
.collection-tax-pill.active {
  background: var(--color-primary, #5338ff);
  color: #ffffff;
  border-color: var(--color-primary, #5338ff);
  box-shadow: 0 4px 12px rgba(83, 56, 255, 0.25);
}

/* --- 3. Interactive Search & Tag Filter Bar --- */
.collection-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-card, #e1e4f0);
  border-radius: var(--radius-lg, 18px);
  padding: 1rem 1.25rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.collection-search-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.collection-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim, #8f95b2);
  pointer-events: none;
}

.collection-search-input {
  width: 100%;
  padding: 10px 14px 10px 42px;
  background: var(--bg-surface-secondary, #f0f2fa);
  border: 1px solid transparent;
  border-radius: var(--radius-md, 14px);
  color: var(--text-main, #181829);
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.collection-search-input:focus {
  outline: none;
  border-color: var(--color-primary, #5338ff);
  background: var(--bg-surface, #ffffff);
  box-shadow: 0 0 0 3px rgba(83, 56, 255, 0.15);
}

.collection-tag-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-btn {
  background: var(--bg-surface-secondary, #f0f2fa);
  border: 1px solid transparent;
  color: var(--text-muted, #5e6278);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full, 9999px);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: rgba(83, 56, 255, 0.1);
  color: var(--color-primary, #5338ff);
}

.filter-btn.active {
  background: var(--color-primary, #5338ff);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(83, 56, 255, 0.3);
}

.filter-btn .badge-count {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.25);
}

.filter-btn:not(.active) .badge-count {
  background: rgba(0, 0, 0, 0.08);
}

/* --- 4. Showcase Cards Feed --- */
.collection-grid {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.snippet-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-card, #e1e4f0);
  border-radius: var(--radius-xl, 24px);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.snippet-card:hover {
  border-color: rgba(83, 56, 255, 0.35);
  box-shadow: var(--shadow-lg);
}

/* Card Header */
.snippet-card-header {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle, #e5e8f5);
  background: var(--bg-surface-elevated, #ffffff);
}

.snippet-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.snippet-index-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--grad-badge, rgba(83, 56, 255, 0.12));
  color: var(--color-primary, #5338ff);
  font-size: 0.95rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.snippet-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main, #181829);
  margin: 0;
}

.snippet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.snippet-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-surface-secondary, #f0f2fa);
  color: var(--text-dim, #8f95b2);
}

.snippet-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.snippet-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-sm, 10px);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-surface-secondary, #f0f2fa);
  border: 1px solid var(--border-subtle, #e5e8f5);
  color: var(--text-muted, #5e6278);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.snippet-action-btn:hover {
  background: var(--color-primary, #5338ff);
  color: #ffffff;
  border-color: var(--color-primary, #5338ff);
}

.snippet-action-btn.btn-primary {
  background: var(--color-primary, #5338ff);
  color: #ffffff;
  border-color: var(--color-primary, #5338ff);
}

/* Card Interactive Preview Viewport */
.snippet-preview-container {
  background: radial-gradient(circle at 50% 50%, rgba(83, 56, 255, 0.04) 0%, transparent 70%), var(--bg-surface-secondary, #f0f2fa);
  padding: 3rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.snippet-preview-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface, #ffffff);
  padding: 4px 8px;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid var(--border-subtle, #e5e8f5);
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.preview-state-btn {
  background: transparent;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim, #8f95b2);
  padding: 4px 8px;
  border-radius: var(--radius-full, 9999px);
  cursor: pointer;
  transition: all 0.15s ease;
}

.preview-state-btn:hover,
.preview-state-btn.active {
  background: var(--color-primary, #5338ff);
  color: #ffffff;
}

/* CodePen Embed Mode Switcher & Viewport */
.snippet-preview-mode-switch {
  display: flex;
  background: var(--bg-surface-secondary, #f0f2fa);
  padding: 3px;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid var(--border-subtle, #e5e8f5);
}

.preview-mode-btn {
  background: transparent;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim, #8f95b2);
  padding: 5px 12px;
  border-radius: var(--radius-full, 9999px);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.preview-mode-btn.active {
  background: var(--color-primary, #5338ff);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(83, 56, 255, 0.3);
}

.codepen-embed-viewport {
  display: none;
  width: 100%;
  height: 500px;
  position: relative;
  background: #111422;
  border-bottom: 1px solid var(--border-subtle, #e5e8f5);
}

.codepen-embed-viewport.active {
  display: block;
}

.codepen-embed-viewport iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Website Showcase Mockup Frame (To beat Colorlib's static listicle format) */
.showcase-browser-frame {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-card, #e1e4f0);
  background: var(--bg-surface-secondary, #f0f2fa);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.showcase-browser-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(83, 56, 255, 0.12);
}

.browser-header-bar {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-surface, #ffffff);
  border-bottom: 1px solid var(--border-subtle, #e5e8f5);
  gap: 12px;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.browser-dot.red { background: #ff5f56; }
.browser-dot.yellow { background: #ffbd2e; }
.browser-dot.green { background: #27c93f; }

.browser-address-bar {
  flex: 1;
  background: var(--bg-surface-secondary, #f0f2fa);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.78rem;
  color: var(--text-dim, #8f95b2);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showcase-screenshot-wrap {
  position: relative;
  overflow: hidden;
  background: #0d0f17;
  max-height: 520px;
}

.showcase-screenshot-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.showcase-screenshot-wrap:hover img {
  transform: scale(1.02);
}

.stands-out-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(83, 56, 255, 0.06);
  border-left: 3px solid var(--color-primary, #5338ff);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 1.25rem 0 0.75rem;
  font-size: 0.92rem;
  color: var(--text-main, #181829);
  line-height: 1.6;
}

.stands-out-callout strong {
  color: var(--color-primary, #5338ff);
}



/* Card Code Drawer & Tabs */
.snippet-code-section {
  border-top: 1px solid var(--border-subtle, #e5e8f5);
  background: var(--code-bg, #0b0f19);
}

.snippet-code-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  background: var(--code-header-bg, #080b12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-tab-list {
  display: flex;
  gap: 4px;
}

.code-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #8f95b2;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-tab-btn:hover {
  color: #ffffff;
}

.code-tab-btn.active {
  color: #ffffff;
  border-bottom-color: var(--color-primary, #5338ff);
}

.copy-snippet-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-sm, 10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.copy-snippet-btn:hover {
  background: var(--color-primary, #5338ff);
  border-color: var(--color-primary, #5338ff);
}

.snippet-code-panel {
  display: none;
  padding: 1.25rem;
  margin: 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.6;
  color: #e2e8f0;
  max-height: 380px;
}

.snippet-code-panel.active {
  display: block;
}

/* Card Explainer / Technical Breakdown */
.snippet-breakdown {
  padding: 1.5rem 1.75rem;
  background: var(--bg-surface, #ffffff);
  border-top: 1px solid var(--border-subtle, #e5e8f5);
}

.snippet-breakdown h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary, #5338ff);
  margin-bottom: 0.75rem;
}

.snippet-breakdown p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted, #5e6278);
  margin-bottom: 0.75rem;
}

.snippet-tech-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 1rem;
}

.spec-item {
  background: var(--bg-surface-secondary, #f0f2fa);
  padding: 10px 14px;
  border-radius: var(--radius-sm, 10px);
  font-size: 0.8rem;
}

.spec-label {
  font-weight: 700;
  color: var(--text-dim, #8f95b2);
  display: block;
  margin-bottom: 2px;
}

.spec-value {
  color: var(--text-main, #181829);
  font-weight: 600;
}

/* ==========================================================================
   PRODUCTION DEMO FORMS (RENDERED INSIDE THE PREVIEW VIEWPORT)
   ========================================================================== */

/* --- FORM 1: GLASSMORPHISM 2.0 AUTHENTICATION CARD --- */
.g-glass-form-wrap {
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.dark-canvas .g-glass-form-wrap {
  background: rgba(18, 22, 34, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.g-glass-header {
  text-align: center;
  margin-bottom: 2rem;
}

.g-glass-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.g-glass-header p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.g-floating-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.g-glass-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.25s ease;
}

.g-glass-input:focus {
  outline: none;
  border-color: #5338ff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 16px rgba(83, 56, 255, 0.4);
}

.g-floating-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  pointer-events: none;
  transition: all 0.2s ease;
}

.g-glass-input:focus ~ .g-floating-label,
.g-glass-input:not(:placeholder-shown) ~ .g-floating-label {
  top: -9px;
  left: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #5338ff;
  padding: 1px 8px;
  border-radius: 4px;
  color: #ffffff;
}

.g-glass-btn {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #5338ff 0%, #a855f7 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(83, 56, 255, 0.35);
  transition: all 0.25s ease;
}

.g-glass-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(83, 56, 255, 0.5);
}

/* --- FORM 2: 3D DUAL-PANEL FLIP CARD --- */
.flip-card-viewport {
  perspective: 1000px;
  width: 100%;
  max-width: 390px;
  min-height: 440px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card-viewport.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-card, #e1e4f0);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flip-card-back {
  transform: rotateY(180deg);
}

.flip-switch-btn {
  background: transparent;
  border: none;
  color: var(--color-primary, #5338ff);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 1rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --- FORM 3: NEO-BRUTALISM POP-ART FORM --- */
.neo-brutal-form {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border: 3.5px solid #000;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 7px 7px 0px #000;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.neo-brutal-form:hover {
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0px #000;
}

.neo-title {
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #000;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.neo-input {
  width: 100%;
  padding: 12px 14px;
  border: 2.5px solid #000;
  border-radius: 8px;
  background: #fdfae7;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.neo-input:focus {
  outline: none;
  background: #ffffff;
  box-shadow: 3px 3px 0px #000;
}

.neo-btn {
  width: 100%;
  padding: 12px;
  background: #ffbc49;
  border: 3px solid #000;
  border-radius: 8px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 4px 4px 0px #000;
  transition: all 0.1s ease;
}

.neo-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000;
}

/* --- FORM 4: BENTO GRID SPLIT AUTHENTICATION SCREEN --- */
.bento-auth-card {
  width: 100%;
  max-width: 650px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
  background: #111422;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
  .bento-auth-card {
    grid-template-columns: 1fr;
  }
}

.bento-feature-side {
  background: linear-gradient(145deg, #1f1b4d 0%, #3e1b78 100%);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.bento-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
}

.bento-quote {
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500;
  margin: 1.5rem 0 0.5rem;
}

.bento-form-side {
  padding: 2.25rem 2rem;
  background: #0f121d;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- 5. Rich SEO FAQ Accordion Section --- */
.collection-faq-section {
  margin-top: 5rem;
  padding: 3.5rem 0;
  border-top: 1px solid var(--border-subtle, #e5e8f5);
}

.faq-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text-main, #181829);
}

.faq-subtitle {
  color: var(--text-muted, #5e6278);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
}

.faq-card {
  background: var(--bg-surface, #ffffff);
  border: 1px solid var(--border-card, #e1e4f0);
  border-radius: var(--radius-md, 14px);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-card[open] {
  border-color: var(--color-primary, #5338ff);
  box-shadow: 0 4px 16px rgba(83, 56, 255, 0.08);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main, #181829);
  cursor: pointer;
  list-style: none;
}
.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  transition: transform 0.25s ease;
  color: var(--color-primary, #5338ff);
}

.faq-card[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted, #5e6278);
}

.faq-content code {
  background: var(--bg-surface-secondary, #f0f2fa);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--color-primary, #5338ff);
}

/* Toast Copy Notification */
.gpkumar-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111422;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md, 14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(83, 56, 255, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 99999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.gpkumar-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ========================================================================
   FAQ — editorial accordion refresh
   ======================================================================== */
.collection-faq-section {
  position: relative;
  max-width: 1080px;
  margin: 6rem auto 1rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--border-card, rgba(255, 255, 255, .1));
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(112, 87, 255, .14), transparent 28rem),
    var(--bg-surface, #fff);
  overflow: hidden;
}

.collection-faq-section::before {
  content: 'HELP CENTER';
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  margin-bottom: 1rem;
  border: 1px solid rgba(112, 87, 255, .38);
  border-radius: 999px;
  color: var(--color-primary, #7057ff);
  background: rgba(112, 87, 255, .09);
  font-family: var(--font-mono, monospace);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.faq-title {
  max-width: 650px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.055em;
  margin-bottom: .8rem;
}

.faq-subtitle {
  max-width: 620px;
  margin-bottom: 2.25rem;
  font-size: 1rem;
  line-height: 1.65;
}

.faq-accordion-group {
  max-width: 100%;
  gap: .75rem;
}

.faq-card {
  border: 1px solid var(--border-card, #e1e4f0);
  border-radius: 15px;
  background: color-mix(in srgb, var(--bg-surface-elevated, #f8f7fc) 68%, transparent);
  box-shadow: none;
  transition: border-color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease;
}

.faq-card:hover {
  border-color: rgba(112, 87, 255, .5);
  transform: translateX(3px);
}

.faq-card[open] {
  border-color: rgba(112, 87, 255, .7);
  background: var(--bg-surface, #fff);
  box-shadow: 0 14px 32px rgba(10, 8, 26, .13);
}

.faq-summary {
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  font-size: 1rem;
  line-height: 1.45;
  outline: none;
}

.faq-summary::before {
  content: '+';
  display: inline-grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(112, 87, 255, .28);
  border-radius: 9px;
  color: var(--color-primary, #7057ff);
  background: rgba(112, 87, 255, .08);
  font-family: var(--font-mono, monospace);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  transition: transform .22s ease, color .22s ease, background .22s ease;
}

.faq-summary > span { flex: 1; }
.faq-summary:focus-visible { box-shadow: inset 0 0 0 2px var(--color-primary, #7057ff); border-radius: 14px; }
.faq-chevron { flex: 0 0 auto; width: 17px; height: 17px; color: var(--text-muted, #5e6278); }
.faq-card[open] .faq-summary::before { content: '−'; color: #fff; background: var(--color-primary, #7057ff); border-color: var(--color-primary, #7057ff); }
.faq-card[open] .faq-chevron { color: var(--color-primary, #7057ff); }

.faq-content {
  margin: 0 1.25rem 1.25rem 4.35rem;
  padding: .9rem 0 0;
  border-top: 1px solid var(--border-subtle, #e5e8f5);
  font-size: .95rem;
  line-height: 1.8;
}

.faq-content code {
  border: 1px solid var(--border-subtle, #e5e8f5);
  border-radius: 6px;
  background: var(--bg-surface-subtle, #f1eff8);
}

@media (max-width: 640px) {
  .collection-faq-section { margin-top: 4rem; padding: 1.5rem 1rem; border-radius: 20px; }
  .faq-title { font-size: 2rem; }
  .faq-summary { padding: 1rem; font-size: .93rem; gap: .7rem; }
  .faq-summary::before { flex-basis: 27px; width: 27px; height: 27px; border-radius: 8px; }
  .faq-content { margin: 0 1rem 1rem 3.7rem; font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-card, .faq-summary::before, .faq-chevron { transition: none; }
  .faq-card:hover { transform: none; }
}
