/* === PROMPT BIRD - COMPLETE STYLESHEET === */

:root {
    --primary: #00A878;
    --primary-hover: #008F66;
    --primary-light: #D1FAE5;
    --primary-dark: #065F46;
    --gradient-primary: linear-gradient(135deg, #00A878 0%, #34D399 100%);
    
    --action-copy: #F59E0B;
    --action-copy-hover: #D97706;
    
    --bg-main: #F8FAF9;
    --bg-card: #FFFFFF;
    --bg-surface: #F1F5F2;
    
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8E4;
    
    --shadow-sm: 0 2px 8px -2px rgba(0, 168, 120, 0.05);
    --shadow-md: 0 10px 40px -10px rgba(0, 168, 120, 0.08);
    --shadow-lg: 0 20px 50px -15px rgba(0, 168, 120, 0.12);

    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.02em; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-icon-m {
    background: var(--gradient-primary);
     display: flex; align-items: center; justify-content: center;
     font-weight: 800; font-size: 1.2rem;
     margin-left: 0px;
}
.logo-icon-m { font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; }

.logo-icon-m {
  font-family: sans-serif;
  font-weight: bold;
  background: linear-gradient(
    135deg, 
    rgba(152, 255, 152, 0.9) 0%,
    rgba(0, 163, 108, 0.4) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0px 1px 0px rgba(0, 50, 30, 0.6));
}

.logo-icon-m {
  background: linear-gradient(
    110deg, 
    rgba(152, 255, 152, 0.9) 10%,
    rgba(0, 163, 108, 0.6) 40%,
    rgba(255, 255, 255, 1) 50%,
    rgba(0, 163, 108, 0.6) 60%,
    rgba(152, 255, 152, 0.9) 90%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0px 1px 0px rgba(0, 50, 30, 0.6));
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.logo-icon-m { display: flex }

.main-nav { display: flex; gap: 2rem; }
.main-nav a { color: var(--text-muted); font-weight: 500; transition: color 0.2s; }
.main-nav a:hover { color: var(--primary); }

.header-actions { display: flex; gap: 0.5rem; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg-surface); color: var(--primary-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; transition: transform 0.2s;
}
.icon-btn:hover { transform: translateY(-2px); }

.hero { text-align: center; padding: 4rem 0 2rem; }
.hero-title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.5rem; }
.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}
.hero-desc { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }

.popular-tags { font-size: 0.9rem; color: var(--text-muted); display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.popular-tags a { color: var(--primary); font-weight: 600; }

.tabs { display: flex; justify-content: center; gap: 2rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.tab {
    background: none; padding: 1rem 0; color: var(--text-muted);
    font-weight: 600; font-size: 1rem; position: relative;
}
.tab.active { color: var(--text-dark); }
.tab.active::after {
    content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 3px;
    background: var(--primary); border-radius: 3px 3px 0 0;
}

.prompt-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 4rem; }

.browse-style { text-align: center; margin-bottom: 4rem; }
.browse-style h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.browse-style p { color: var(--text-muted); margin-bottom: 2rem; }

.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.style-card {
    background: var(--bg-card); padding: 1.25rem; border-radius: 16px;
    text-align: left; display: flex; align-items: center; gap: 1rem;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
    transition: transform 0.2s;
}
.style-card:hover { transform: translateY(-2px); }
.style-icon {
    width: 48px; height: 48px; background: var(--primary-light); color: var(--primary);
    border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.style-card h4 { font-size: 1rem; margin-bottom: 0.1rem; }
.style-card span { font-size: 0.8rem; color: var(--text-muted); }

/* ============================================
   VIEW ALL BUTTONS - three genuinely distinct styles, not variations
   of the same button, each using a different real animation technique.
   ============================================ */

/* 1. Libraries - continuously spinning gradient border ("tech ring") */
.btn-spin-border {
    position: relative;
    display: inline-block;
    padding: 3px;
    border-radius: 50px;
    text-decoration: none;
    isolation: isolate;
}
.btn-spin-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: conic-gradient(from 0deg, #00A878, #34D399, #A7F3D0, #34D399, #00A878, #065F46, #00A878);
    animation: btnSpinRing 3.5s linear infinite;
    z-index: -1;
}
@keyframes btnSpinRing {
    to { transform: rotate(360deg); }
}
.btn-spin-border-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #0F172A;
    color: #fff;
    padding: 0.8rem 1.75rem;
    border-radius: 48px;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-spin-border-inner svg {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-spin-border:hover .btn-spin-border-inner {
    background: #1E293B;
    transform: scale(1.04);
}
.btn-spin-border:hover .btn-spin-border-inner svg {
    transform: translateX(5px) rotate(-45deg);
}

/* 2. Templates - stacked text that slides up on hover to reveal a
   second line underneath, a well-known premium agency-site technique */
.btn-slide-reveal {
    display: inline-block;
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 10px 26px -8px rgba(239, 68, 68, 0.45);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.btn-slide-reveal:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 36px -8px rgba(239, 68, 68, 0.55);
    color: #fff;
}
.btn-slide-reveal-track {
    display: block;
    height: 1.3em;
    overflow: hidden;
}
.btn-slide-reveal-row {
    display: block;
    line-height: 1.3em;
    white-space: nowrap;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.btn-slide-reveal:hover .btn-slide-reveal-row {
    transform: translateY(-1.3em);
}

/* 3. AI Tools - shifting purple/pink gradient with a pulsing neon glow,
   a tech/AI-appropriate feel */
.btn-neon-glow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #6366F1 0%, #A855F7 50%, #EC4899 100%);
    background-size: 200% 200%;
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    animation: btnGlowShift 4s ease infinite;
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.5), 0 8px 24px -8px rgba(99, 102, 241, 0.4);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
@keyframes btnGlowShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.btn-neon-glow svg {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-neon-glow:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 34px rgba(168, 85, 247, 0.8), 0 0 60px rgba(99, 102, 241, 0.4), 0 10px 28px -8px rgba(236, 72, 153, 0.5);
    color: #fff;
}
.btn-neon-glow:hover svg {
    transform: translateX(5px);
}

@media (max-width: 600px) {
    .btn-spin-border-inner,
    .btn-slide-reveal,
    .btn-neon-glow {
        padding: 0.75rem 1.4rem;
        font-size: 0.92rem;
    }
}

.site-footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 4rem 0 2rem; margin-top: 1rem; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem; }
.footer-brand p { color: var(--text-muted); margin-top: 1rem; max-width: 300px; }
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links h4 { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { text-align: center; color: var(--text-muted); font-size: 0.9rem; border-top: 1px solid var(--border); padding-top: 2rem; }

.scroll-top {
    position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px;
    background: var(--primary); color: white; border-radius: 50%;
    display: none; align-items: center; justify-content: center;
}
.scroll-top.visible { display: flex; }

@media (max-width: 768px) {
    .main-nav { display: none; }
    .prompt-actions { grid-template-columns: 1fr; }
    .prompt-title { font-size: 1.75rem; }
    .prompt-action-buttons { grid-template-columns: 1fr; }
    .share-icons { justify-content: center; }
}

.premium-gallery-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.gallery-adaptive-frame {
    background-color: #f0f0f0;
    border-radius: 20px;
    padding: 10px;
    transition: background-color 0.5s ease;
}

.gallery-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #FFFFFF;
    width: 100%;
}

.gallery-main-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.2s;
}
.nav-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.nav-arrow.prev { left: 12px; }
.nav-arrow.next { right: 12px; }

.gallery-action-buttons {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
}
.action-btn {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.2s;
}
.action-btn:hover { background: #fff; transform: translateY(-2px); }

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.gallery-thumbnails::-webkit-scrollbar { display: none; }

.gallery-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    background: #fff;
}
.gallery-thumb.active { 
    border-color: var(--primary);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .premium-gallery-card { padding: 8px; border-radius: 20px; }
    .gallery-adaptive-frame { padding: 6px; border-radius: 16px; }
    .gallery-image-container { border-radius: 12px; }
    .nav-arrow { width: 32px; height: 32px; }
    .nav-arrow.prev { left: 8px; }
    .nav-arrow.next { right: 8px; }
    .action-btn { width: 36px; height: 36px; border-radius: 8px; }
    .gallery-thumb { width: 50px; height: 50px; border-radius: 10px; }
}

.prompt-header-section { text-align: left; margin-bottom: 2rem; }
.pill-badge {
    display: inline-block;
    background: var(--text-dark);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.prompt-main-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.prompt-meta { color: var(--text-muted); font-size: 1rem; }
.meta-author { color: var(--primary); font-weight: 600; }

.premium-prompt-box {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.ppb-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}
.ppb-header-left {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.ppb-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ppb-title-wrap { display: flex; flex-direction: column; }
.ppb-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.1rem;
    letter-spacing: 0.02em;
}
.ppb-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}
.ppb-btn-save {
    background: var(--bg-surface);
    color: var(--text-dark);
    border: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}
.ppb-btn-save:hover { background: var(--border); }
.ppb-btn-save.saved {
    background: #F0FDF4;
    color: var(--primary-dark);
    border-color: #BBF7D0;
}

.ppb-text-container {
    position: relative;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    height: 280px;
    overflow: hidden;
    background: #FAFAFA;
    margin-bottom: 1.5rem;
}
.ppb-text-content {
    height: 100%;
    overflow-y: auto;
    padding: 1.25rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.ppb-text-content::-webkit-scrollbar { display: none; }

.ppb-text-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(250, 250, 250, 0) 0%, rgba(250, 250, 250, 1) 100%);
    pointer-events: none;
}

.ppb-footer-actions {
    display: flex;
    gap: 1rem;
}
.ppb-btn {
    flex: 1;
    padding: 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.ppb-btn-copy {
    background: var(--gradient-primary);
    box-shadow: 0 8px 20px -6px rgba(0, 168, 120, 0.4);
}
.ppb-btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(0, 168, 120, 0.5);
}
.ppb-btn-copy.copied {
    background: #065F46;
}

.ppb-btn-like {
    background: #F43F5E;
    box-shadow: 0 8px 20px -6px rgba(244, 63, 94, 0.4);
}
.ppb-btn-like:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(244, 63, 94, 0.5);
}
.ppb-btn-like.liked {
    background: #FFE4E6;
    color: #F43F5E;
    box-shadow: none;
    border: 1px solid #FECDD3;
}

@media (max-width: 768px) {
    .premium-prompt-box { padding: 1.25rem; border-radius: 20px; }
    .ppb-header { flex-direction: column; gap: 1rem; }
    .ppb-btn-save { width: 100%; justify-content: center; }
    .ppb-text-container { height: 240px; }
    .ppb-footer-actions { flex-direction: row; }
    .ppb-btn { padding: 0.875rem; font-size: 1rem; }
}

.heart-bubble {
    position: absolute;
    font-size: 1.2rem;
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
    bottom: 100%;
    left: 50%;
}
@keyframes floatUp {
    0% { transform: translate(-50%, 0) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -60px) scale(1.5); opacity: 0; }
}

.share-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.card-title { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; font-size: 1.2rem; }
.share-icons-scroll { 
    display: flex; 
    gap: 1rem; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
}
.share-icons-scroll::-webkit-scrollbar { display: none; }
.share-circle-btn {
    width: 48px; height: 48px;
    min-width: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.share-circle-btn:hover { transform: translateY(-3px); }
.share-circle-btn.fb { background: #1877F2; }
.share-circle-btn.tw { background: #1DA1F2; }
.share-circle-btn.th { background: #000000; }
.share-circle-btn.pi { background: #E60023; }
.share-circle-btn.wa { background: #25D366; }
.share-circle-btn.cp { background: #64748B; }

.rating-card {
    background: #F8FAF9;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}
.rating-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.rating-icon-box {
    width: 48px; height: 48px;
    background: white;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #F59E0B;
    box-shadow: var(--shadow-sm);
}
.rating-stats { text-align: center; margin-bottom: 2rem; }
.rating-score { font-size: 3.5rem; font-weight: 800; color: var(--text-dark); line-height: 1; }
.rating-stars-display { display: flex; justify-content: center; gap: 0.25rem; margin: 0.5rem 0; color: #F59E0B; }
.rating-count-text { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.05em; }

.rating-bars { margin-bottom: 2rem; }
.rating-bar-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.bar-label { font-weight: 600; width: 12px; color: var(--text-muted); }
.bar-bg { flex: 1; height: 8px; background: #E2E8E4; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #00A878, #34D399); border-radius: 4px; }
.bar-count { font-weight: 600; width: 20px; text-align: right; color: var(--text-muted); }

.rating-empty { text-align: center; padding: 2rem; color: var(--text-muted); font-style: italic; }

.user-rating-action { text-align: center; border-top: 1px solid var(--border); padding-top: 2rem; }
.user-rating-action h4 { font-size: 0.9rem; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 1rem; }
.interactive-stars { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.star-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; transition: color 0.2s; }
.star-btn:hover { color: #F59E0B; }
.feedback-btn {
    width: 100%; padding: 1rem;
    background: white; border: 1.5px solid var(--border);
    border-radius: 12px; font-weight: 700; color: var(--text-dark);
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    cursor: pointer; transition: all 0.2s;
}
.feedback-btn:hover { border-color: var(--primary); color: var(--primary); }

.feedback-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.feedback-modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    position: relative;
}
.feedback-close {
    position: absolute;
    top: 1rem; right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}
.feedback-modal-content h3 { margin-bottom: 1rem; }
.feedback-modal-content textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
    resize: vertical;
}
.feedback-submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

.meta-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.meta-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.meta-icon-box {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; color: white;
}
.icon-lightning { background: #F97316; }
.icon-tag { background: #0EA5E9; }
.meta-header h3 { font-size: 1.1rem; }

.model-pill {
    display: inline-block;
    background: var(--bg-surface);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.tags-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tag-pill {
    background: #F0FDF4;
    color: #065F46;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #BBF7D0;
    transition: all 0.2s;
}
.tag-pill:hover { background: var(--primary); color: white; border-color: var(--primary); }

.diverse-section { margin: 4rem 0; }
.section-title-pill {
    display: inline-block;
    background: var(--text-dark);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2rem;
}
.diverse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}
.diverse-grid:not(.show-all) .diverse-card:nth-child(n+7) { display: none; }

.diverse-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: transform 0.2s;
}
.diverse-card:hover { transform: translateY(-4px); }

.diverse-img-wrap { position: relative; height: 280px; }
.diverse-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.diverse-cat-pill {
    position: absolute; top: 1rem; left: 1rem;
    background: white; color: var(--text-dark);
    padding: 0.5rem 1rem; border-radius: 50px;
    font-size: 0.8rem; font-weight: 700;
    box-shadow: var(--shadow-sm);
}
.diverse-like-pill {
    position: absolute; top: 1rem; right: 1rem;
    background: white; color: var(--text-dark);
    padding: 0.5rem 0.8rem; border-radius: 50px;
    font-size: 0.85rem; font-weight: 700;
    display: flex; align-items: center; gap: 0.3rem;
    box-shadow: var(--shadow-sm); border: none; cursor: pointer;
}
.diverse-like-pill.liked { background: rgba(244, 63, 94, 0.15); color: #F43F5E; }

.diverse-content { padding: 1.5rem; }
.diverse-content h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.diverse-content h3 a { color: var(--text-dark); }
.diverse-content p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }

.diverse-actions { display: flex; align-items: center; gap: 0.75rem; }
.diverse-copy-btn {
    background: #2563EB; color: white;
    padding: 0.7rem 1.2rem; border-radius: 50px;
    font-weight: 600; font-size: 0.9rem;
    display: flex; align-items: center; gap: 0.4rem; border: none; cursor: pointer;
}
.diverse-share-btn {
    background: var(--bg-surface); width: 40px; height: 40px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer;
}
.diverse-author { margin-left: auto; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

.explore-more-btn {
    display: block; margin: 2rem auto 0;
    background: var(--primary); color: white;
    padding: 1rem 2.5rem; border-radius: 50px;
    font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
}

.browse-style-section { text-align: center; margin-bottom: 4rem; }
.browse-style-section h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.browse-style-section p { color: var(--text-muted); margin-bottom: 2rem; }

.style-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.style-card-new {
    background: white;
    padding: 2rem 1rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform 0.2s;
}
.style-card-new:hover { transform: translateY(-4px); }
.style-icon-new {
    width: 64px; height: 64px;
    background: var(--primary); color: white;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 800;
    margin: 0 auto 1rem;
}
.style-card-new h4 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.style-card-new span { font-size: 0.9rem; color: var(--text-muted); }

.view-all-btn {
    display: inline-block;
    background: var(--primary); color: white;
    padding: 1rem 2.5rem; border-radius: 50px;
    font-weight: 700; font-size: 1rem;
}

.lightbox {
    display: none; position: fixed; z-index: 9999;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    align-items: center; justify-content: center;
    padding: 1rem;
}
.lightbox-content { 
    max-width: 100%; 
    max-height: 100%; 
    border-radius: 12px;
    object-fit: contain;
}
.lightbox-close {
    position: absolute; top: 20px; right: 30px;
    color: white; font-size: 40px; font-weight: bold; cursor: pointer;
    z-index: 10000;
}

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    .prompt-detail-container { padding: 1rem; }
    
    .header-inner { padding: 0 1rem; flex-wrap: wrap; height: auto; min-height: 64px; }
    .main-nav { display: none; }
    .logo img { max-height: 32px; }
    
    .hero { padding: 2rem 1rem 1.5rem; }
    .hero-title { font-size: 1.75rem; }
    .hero-subtitle { font-size: 1.25rem; }
    
    .prompt-feed { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .card-image { height: 160px; }
    .card-content { padding: 0.75rem; }
    .card-content h3 { font-size: 0.95rem; }
    
    .gallery-card { padding: 8px; border-radius: 16px; }
    .gallery-arrow { width: 36px; height: 36px; }
    .gallery-arrow.prev { left: 0.5rem; }
    .gallery-arrow.next { right: 0.5rem; }
    .gallery-thumb { width: 56px; height: 56px; }
    
    .prompt-main-title { font-size: 1.5rem; }
    .pill-badge { font-size: 0.7rem; padding: 0.35rem 1rem; }
    
    .glass-prompt-box { padding: 1.25rem; border-radius: 16px; }
    .glass-header { flex-direction: column; gap: 1rem; }
    .glass-btn-save { width: 100%; justify-content: center; }
    .glass-text-area { padding: 1rem; font-size: 0.9rem; max-height: 250px; }
    .glass-actions { flex-direction: column; gap: 0.75rem; }
    .glass-btn { padding: 0.875rem; font-size: 0.95rem; }
    
    .share-card { padding: 1.25rem; }
    .share-icons-scroll { gap: 0.75rem; }
    .share-circle-btn { width: 42px; height: 42px; min-width: 42px; }
    
    .rating-card { padding: 1.25rem; }
    .rating-score { font-size: 2.5rem; }
    .rating-stars-display svg { width: 20px; height: 20px; }
    .interactive-stars svg { width: 28px; height: 28px; }
    
    .meta-card { padding: 1.25rem; }
    .tag-pill { padding: 0.4rem 0.875rem; font-size: 0.85rem; }
    
    .diverse-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .diverse-img-wrap { height: 220px; }
    .diverse-content { padding: 1.25rem; }
    .diverse-content h3 { font-size: 1.1rem; }
    
    .style-grid-new { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .style-card-new { padding: 1.5rem 0.75rem; }
    .style-icon-new { width: 52px; height: 52px; font-size: 1.25rem; }
    .style-card-new h4 { font-size: 0.95rem; }
    
    .tabs { gap: 1rem; overflow-x: auto; justify-content: flex-start; padding: 0 1rem; }
    .tab { font-size: 0.9rem; white-space: nowrap; }
    
    .feedback-btn { width: 100%; }
    .feedback-modal-content { padding: 1.5rem; margin: 1rem; }
    
    html { overflow-x: hidden; max-width: 100%; }
    * { max-width: 100%; }
}

.load-more-btn {
    background: var(--primary);
    color: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(0, 168, 120, 0.3);
}
.load-more-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(0, 168, 120, 0.4);
}
.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .prompt-feed {
        grid-template-columns: 1fr !important;
    }
}

.card {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 2rem auto;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(20,30,60,0.10);
}

.mobile-menu-btn {
    background: var(--bg-surface); border: none; width: 40px; height: 40px;
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: var(--text-dark); cursor: pointer; transition: transform 0.2s;
}
.mobile-menu-btn:hover { transform: scale(1.05); }

@media (max-width: 768px) {
    .main-nav { display: none; }
}

.mobile-menu-overlay {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px); z-index: 998;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.mobile-menu-overlay.active { opacity: 1; pointer-events: auto; }

.mobile-menu-drawer {
    position: fixed; top: 0; right: -320px; width: 300px; height: 100vh;
    background: var(--bg-card); z-index: 999;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column; padding: 1.5rem;
}
.mobile-menu-drawer.active { right: 0; }

.drawer-header {
    display: flex; align-items: center; gap: 0.75rem; margin-bottom: 2rem;
    padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.close-menu-btn {
    margin-left: auto; background: var(--bg-surface); border: none;
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}

.drawer-nav { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; overflow-y: auto; }
.drawer-link {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem; border-radius: 12px; color: var(--text-dark);
    font-weight: 600; text-decoration: none; transition: background 0.2s;
}
.drawer-link:hover { background: var(--bg-surface); color: var(--primary); }
.drawer-link svg { color: var(--text-muted); }

.drawer-footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }

.search-box {
    display: flex;
    align-items: center;
    width: 100%;
    background: #fff;
    border: 2px solid var(--primary, #00A878);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 16px -4px rgba(0, 168, 120, 0.15);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border, #E2E8E4);
}

.premium-gallery-card,
.prompt-header-section,
.premium-prompt-box,
.share-card,
.rating-card,
.meta-card {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.prompt-sidebar {
    display: none;
}

@media (min-width: 900px) {
    .prompt-layout-grid {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 2rem;
        align-items: start;
        max-width: 1100px;
        margin: 0 auto;
    }
    .prompt-main-column {
        min-width: 0;
    }
    .prompt-sidebar {
        display: block;
        position: sticky;
        top: 100px;
        background: var(--bg-card, #fff);
        border: 1px solid var(--border, #E2E8E4);
        border-radius: 20px;
        padding: 1rem;
        box-shadow: var(--shadow-sm, 0 2px 8px -2px rgba(0,168,120,0.05));
    }
}

.sidebar-widget {
    padding: 1.25rem 0.25rem;
    border-top: 1px solid var(--border, #E2E8E4);
}
.prompt-sidebar > .sidebar-widget:first-of-type {
    border-top: none;
}
.sidebar-widget-title {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text-dark, #0F172A);
    margin-bottom: 0.85rem;
}
.sidebar-mini-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.4rem 0;
    text-decoration: none;
}
.sidebar-mini-row img,
.sidebar-mini-thumb-empty {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-surface, #F1F5F2);
}
.sidebar-mini-row span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark, #0F172A);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}
.sidebar-pill {
    background: var(--primary-light, #D1FAE5);
    color: var(--primary-dark, #065F46);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    text-decoration: none;
}
.sidebar-widget-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary, #00A878);
    text-decoration: none;
}
.sidebar-templates-cta p {
    font-size: 0.85rem;
    color: var(--text-muted, #64748B);
    line-height: 1.5;
    margin-bottom: 0.85rem;
}

.auth-page-wrap {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.25rem;
    background:
        radial-gradient(circle at 15% 10%, rgba(0, 168, 120, 0.10) 0%, transparent 45%),
        radial-gradient(circle at 85% 90%, rgba(62, 207, 142, 0.10) 0%, transparent 45%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card, #fff);
    border-radius: 28px;
    padding: 2.75rem 2.25rem;
    box-shadow: 0 20px 60px -15px rgba(0, 168, 120, 0.18), 0 4px 12px rgba(20, 30, 60, 0.06);
    border: 1px solid var(--border, #E2E8E4);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: var(--gradient-primary, linear-gradient(135deg, #00A878 0%, #34D399 100%));
}

.auth-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0.5rem auto 1.5rem;
    border-radius: 20px;
    background: var(--gradient-primary, linear-gradient(135deg, #00A878 0%, #34D399 100%));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px -6px rgba(0, 168, 120, 0.45);
    color: #fff;
}

.auth-title {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-weight: 800;
    font-size: 1.75rem;
    text-align: center;
    color: var(--text-dark, #0F172A);
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted, #64748B);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.auth-alert {
    padding: 0.9rem 1.1rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.auth-alert.error { background: #FEE2E2; color: #DC2626; }
.auth-alert.success { background: var(--primary-light, #D1FAE5); color: var(--primary-dark, #065F46); }

.auth-form-group {
    margin-bottom: 1.25rem;
    position: relative;
}
.auth-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark, #0F172A);
    margin-bottom: 0.5rem;
}
.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-input-wrap svg {
    position: absolute;
    left: 16px;
    color: var(--text-muted, #64748B);
    pointer-events: none;
    width: 18px;
    height: 18px;
}
.auth-input-wrap input {
    width: 100%;
    padding: 0.95rem 1rem 0.95rem 3rem;
    border: 1.5px solid var(--border, #E2E8E4);
    border-radius: 14px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg-surface, #F1F5F2);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.auth-input-wrap input:focus {
    outline: none;
    border-color: var(--primary, #00A878);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 168, 120, 0.12);
}

.auth-submit-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 0.5rem;
    border: none;
    border-radius: 50px;
    background: var(--gradient-primary, linear-gradient(135deg, #00A878 0%, #34D399 100%));
    color: #fff;
    font-weight: 700;
    font-size: 1.02rem;
    cursor: pointer;
    box-shadow: 0 10px 24px -8px rgba(0, 168, 120, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}
.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -8px rgba(0, 168, 120, 0.6);
}
.auth-submit-btn:active { transform: translateY(0); }

.auth-links {
    text-align: center;
    margin-top: 1.75rem;
    font-size: 0.9rem;
    color: var(--text-muted, #64748B);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.auth-links a {
    color: var(--primary, #00A878);
    font-weight: 600;
    text-decoration: none;
}
.auth-links a:hover { text-decoration: underline; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.25rem 0 0.5rem;
    color: var(--text-muted, #64748B);
    font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border, #E2E8E4);
}

@media (max-width: 480px) {
    .auth-card { padding: 2rem 1.5rem; border-radius: 22px; }
    .auth-title { font-size: 1.5rem; }
}

.stat-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.stat-card-link:hover { transform: translateY(-3px); }
.stat-card-link::after {
    content: "View →";
    position: absolute;
    bottom: 1rem; right: 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary, #00A878);
    opacity: 0;
    transition: opacity 0.2s;
}
.stat-card-link:hover::after { opacity: 1; }

.action-btn-group {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}
.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-pill-primary {
    background: var(--gradient-primary, linear-gradient(135deg, #00A878 0%, #34D399 100%));
    color: #fff;
    box-shadow: 0 8px 20px -6px rgba(0, 168, 120, 0.4);
}
.btn-pill-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -6px rgba(0, 168, 120, 0.5); }
.btn-pill-outline {
    background: var(--bg-card, #fff);
    color: var(--text-dark, #0F172A);
    border-color: var(--border, #E2E8E4);
}
.btn-pill-outline:hover { border-color: var(--primary, #00A878); color: var(--primary, #00A878); transform: translateY(-2px); }
.btn-pill-danger {
    background: #fff;
    color: #DC2626;
    border-color: #FECACA;
}
.btn-pill-danger:hover { background: #FEE2E2; transform: translateY(-2px); }

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.collection-card {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #E2E8E4);
    border-radius: 20px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm, 0 2px 8px -2px rgba(0,168,120,0.05));
}
.collection-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md, 0 10px 40px -10px rgba(0,168,120,0.08)); }
.collection-card-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--primary-light, #D1FAE5);
    color: var(--primary-dark, #065F46);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
.collection-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; color: var(--text-dark, #0F172A); }
.collection-card span { font-size: 0.85rem; color: var(--text-muted, #64748B); }

.new-collection-form {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.new-collection-form input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 0.85rem 1.1rem;
    border: 1.5px solid var(--border, #E2E8E4);
    border-radius: 14px;
    font-size: 0.95rem;
}
.new-collection-form input[type="text"]:focus {
    outline: none;
    border-color: var(--primary, #00A878);
    box-shadow: 0 0 0 4px rgba(0, 168, 120, 0.12);
}

.prompt-mini-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem;
    border: 1px solid var(--border, #E2E8E4);
    border-radius: 14px;
    margin-bottom: 0.75rem;
    background: var(--bg-card, #fff);
}
.prompt-mini-row img {
    width: 52px; height: 52px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.prompt-mini-row .pmr-info { flex: 1; min-width: 0; }
.prompt-mini-row .pmr-info a {
    font-weight: 700;
    color: var(--text-dark, #0F172A);
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.prompt-mini-row .pmr-info span { font-size: 0.8rem; color: var(--text-muted, #64748B); }

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-card, #fff);
    border: 2px dashed var(--border, #E2E8E4);
    border-radius: 20px;
    color: var(--text-muted, #64748B);
}

/* ============================================
   HOMEPAGE - Templates & Guides
   Same minimal thumbnail + title style already proven in the sidebar's
   "Latest Prompts" widget (.sidebar-mini-row) - small square image,
   title text, nothing else. Scaled up slightly for the homepage and
   arranged as a grid of rows rather than a single vertical list.
   ============================================ */
.th-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.5rem 1.5rem;
}
.th-mini-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.6rem 0.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.15s;
}
.th-mini-row:hover {
    background: var(--bg-surface, #F1F5F2);
}
.th-mini-row img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-surface, #F1F5F2);
}
.th-mini-row span {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-dark, #0F172A);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.th-mini-row:hover span {
    color: var(--primary, #00A878);
}
@media (max-width: 600px) {
    .th-mini-grid {
        grid-template-columns: 1fr;
        gap: 0.1rem;
    }
    .th-mini-row img {
        width: 48px;
        height: 48px;
    }
    .th-mini-row span {
        font-size: 0.85rem;
    }
}

/* ============================================
   Editor.js content rendering - public-facing styles for content
   saved through the new Editor.js editor (admin/tags.php's SEO
   Article field, and soon admin/articles.php too). Rendered via
   pb_editorjs_to_html() in includes/editorjs-render.php.
   ============================================ */
.editorjs-delimiter {
    border: none;
    border-top: 2px dotted var(--border, #E2E8E4);
    margin: 1.5rem auto;
    width: 60px;
}
.editorjs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    display: block;
    overflow-x: auto;
}
.editorjs-table td {
    border: 1px solid var(--border, #E2E8E4);
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}
.editorjs-checklist {
    list-style: none;
    padding-left: 0;
}
.editorjs-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}
.editorjs-checklist-box {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border, #E2E8E4);
    border-radius: 5px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-top: 0.1rem;
}
.editorjs-checklist li.is-checked .editorjs-checklist-box {
    background: var(--primary, #00A878);
    border-color: var(--primary, #00A878);
    color: #fff;
}
.editorjs-checklist li.is-checked {
    color: var(--text-muted, #64748B);
    text-decoration: line-through;
}
.editorjs-code-wrap {
    position: relative;
}
.editorjs-code-copy-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: rgba(255, 255, 255, 0.12);
    color: #E2E8E4;
    border: none;
    border-radius: 6px;
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}
.editorjs-code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}
.editorjs-code {
    background: #0F172A;
    color: #E2E8E4;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.6;
}
.editorjs-warning {
    background: #FEF3C7;
    border-left: 4px solid #D97706;
    color: #92400E;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin: 1rem 0;
}
.editorjs-warning strong {
    display: block;
    margin-bottom: 0.3rem;
}
.editorjs-image-figure {
    margin: 1.5rem 0;
}
.editorjs-image-figure img {
    width: 100%;
    border-radius: 12px;
}
.editorjs-image-figure.is-stretched {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.editorjs-image-figure.is-stretched img {
    border-radius: 0;
}
.editorjs-image-figure figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted, #64748B);
    margin-top: 0.5rem;
}

/* Defensive paragraph spacing specifically for Editor.js-rendered
   content (SEO articles on tag pages, Instagram Bio category pages,
   and blog articles) - ensures visible spacing between separate
   paragraph blocks regardless of what .template-article's own base
   styling does, since paragraphs from Editor.js should never visually
   run together. */
.template-article p,
.library-seo-article p {
    margin-bottom: 0.7rem;
    margin-top:0.7rem;
    line-height: 1.7;
    font-family:'Times New Roman', serif;
}
.template-article p:last-child,
.library-seo-article p:last-child {
    margin-bottom: 0;
}

/* Ad grid slot - renders as one item within a prompt-card grid
   (homepage, category pages, related-prompts section), not a
   separate full-width block. Relies on CSS Grid's default behavior:
   auto-fill sizes the width the same as any other grid item, and rows
   with no explicit height stretch every item in that row to match the
   tallest one automatically. */
.ad-grid-slot {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #E2E8E4);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}
.ad-grid-slot:empty {
    display: none;
}
