* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; background: #0f1115; color: #eaeaea; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: inherit; text-decoration: none; }

.lib-header { position: sticky; top: 0; background: rgba(15,17,21,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid #222; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
.logo { font-size: 20px; font-weight: 700; }
.logo span { color: #f5a623; }
.lib-header nav { display: flex; gap: 24px; align-items: center; }
.lib-header nav a { color: #9aa0a6; transition: color .2s; }
.lib-header nav a:hover, .lib-header nav a.active { color: #f5a623; }
.btn-primary { background: #f5a623; color: #0f1115 !important; padding: 10px 20px; border-radius: 6px; font-weight: 600; }

.lib-hero { padding: 60px 0 40px; text-align: center; }
.lib-hero h1 { font-size: 42px; margin-bottom: 12px; }
.lib-hero > .container > p { color: #9aa0a6; font-size: 18px; margin-bottom: 32px; }
.lib-stats { display: flex; justify-content: center; gap: 60px; }
.lib-stats div { display: flex; flex-direction: column; }
.lib-stats b { font-size: 32px; color: #f5a623; }
.lib-stats span { color: #9aa0a6; font-size: 14px; }

.lib-filters-section { padding: 20px 0; border-top: 1px solid #222; border-bottom: 1px solid #222; }
.lib-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-btn { padding: 8px 18px; background: #1a1d24; border: 1px solid #333; color: #b8bdc4; border-radius: 20px; cursor: pointer; font-size: 14px; transition: all .2s; }
.filter-btn:hover { border-color: #f5a623; }
.filter-btn.active { background: #f5a623; color: #0f1115; border-color: #f5a623; font-weight: 600; }
.lib-search input { width: 100%; max-width: 500px; padding: 12px 16px; background: #1a1d24; border: 1px solid #333; color: #eaeaea; border-radius: 6px; font-size: 15px; outline: none; }
.lib-search input:focus { border-color: #f5a623; }

.lib-grid-section { padding: 40px 0; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.lib-loading { grid-column: 1 / -1; text-align: center; padding: 60px; color: #9aa0a6; }

.prompt-card { background: #1a1d24; border: 1px solid #222; border-radius: 10px; padding: 20px; transition: border-color .2s; cursor: pointer; }
.prompt-card:hover { border-color: #f5a623; }
.prompt-id { font-size: 12px; color: #f5a623; font-family: monospace; font-weight: 600; margin-bottom: 8px; }
.prompt-cat { display: inline-block; padding: 2px 8px; background: #2a2d35; color: #b8bdc4; font-size: 11px; border-radius: 4px; margin-left: 8px; text-transform: uppercase; }
.prompt-formulation { color: #eaeaea; margin: 12px 0; font-size: 15px; line-height: 1.5; }
.prompt-attack { font-size: 12px; color: #e77; margin-top: 12px; }
.prompt-expand { font-size: 12px; color: #f5a623; margin-top: 8px; }
.prompt-details { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid #222; font-size: 13px; }
.prompt-card.expanded .prompt-details { display: block; }
.prompt-details p { margin-bottom: 8px; color: #b8bdc4; }
.prompt-details strong { color: #f5a623; }

.lib-cta { padding: 60px 0; background: linear-gradient(135deg, #1a1d24 0%, #12151a 100%); text-align: center; }
.lib-cta h2 { font-size: 28px; margin-bottom: 12px; }
.lib-cta p { color: #9aa0a6; margin-bottom: 24px; }

.lib-footer { padding: 30px 0; background: #0a0c0f; border-top: 1px solid #222; color: #666; font-size: 13px; text-align: center; }
.lib-footer a { color: #f5a623; }

@media (max-width: 640px) {
  .lib-hero h1 { font-size: 28px; }
  .lib-stats { gap: 30px; }
  .lib-header nav a:not(.btn-primary):not(.active) { display: none; }
}
