.page-content { min-height: 100vh; padding: 100px 24px 60px; }
.qh-wrap { max-width: 860px; margin: 0 auto; }

/* ── PAGE HEADER ── */
.qh-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; flex-wrap: wrap; gap: 16px; }
.qh-header-left h1 { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; margin-bottom: 6px; }
.qh-header-left h1 em { font-style: italic; color: var(--gold); }
.qh-header-left p { font-size: 13.5px; color: var(--muted); }

/* ── STATS ROW ── */
.qh-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 32px; }
@media (max-width: 640px) { .qh-stats { grid-template-columns: repeat(2,1fr); } }
.qh-stat { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; position: relative; overflow: hidden; }
.qh-stat::before { content:''; position:absolute; top:0; left:0; right:0; height:1px; background: linear-gradient(90deg, transparent, rgba(212,175,55,0.2), transparent); }
.qh-stat-num { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 600; color: var(--gold); line-height: 1; margin-bottom: 5px; }
.qh-stat-lbl { font-size: 12px; color: var(--muted); }

/* ── FILTER BAR ── */
.qh-filters { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.qh-filter-btn { padding: 7px 16px; border-radius: 7px; font-size: 12.5px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); color: var(--muted); cursor: pointer; font-family: 'Inter', sans-serif; transition: all 0.18s; }
.qh-filter-btn:hover { border-color: rgba(212,175,55,0.3); color: var(--text); }
.qh-filter-btn.active { background: rgba(212,175,55,0.08); border-color: rgba(212,175,55,0.3); color: #C9A227; font-weight: 500; }

/* ── QUIZ CARD ── */
.qh-list { display: flex; flex-direction: column; gap: 14px; }
.qh-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; position: relative; transition: border-color 0.2s, transform 0.2s; cursor: pointer; }
.qh-card::before { content:''; position:absolute; top:0; left:0; right:0; height:1px; background: linear-gradient(90deg, transparent, rgba(212,175,55,0.15), transparent); }
.qh-card:hover { border-color: var(--border-g); transform: translateY(-2px); }
.qh-card-main { display: flex; align-items: center; gap: 18px; padding: 20px 24px; }
.qh-card-icon { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; font-size: 20px; }
.qh-card-icon.gold  { background: rgba(212,175,55,0.1);  border: 1px solid rgba(212,175,55,0.2); }
.qh-card-icon.blue  { background: rgba(59,91,219,0.1);   border: 1px solid rgba(59,91,219,0.2); }
.qh-card-icon.green { background: rgba(46,107,62,0.1);   border: 1px solid rgba(46,107,62,0.2); }
.qh-card-info { flex: 1; min-width: 0; }
.qh-card-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; letter-spacing: -0.01em; }
.qh-card-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.qh-card-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.qh-tag { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); color: var(--muted); }
.qh-tag.gold  { background: rgba(212,175,55,0.08);  border-color: rgba(212,175,55,0.18);  color: #C9A227; }
.qh-tag.green { background: rgba(46,107,62,0.1);    border-color: rgba(46,107,62,0.2);    color: #4CAF70; }
.qh-card-score { text-align: right; flex-shrink: 0; }
.qh-score-num { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 600; color: var(--gold); line-height: 1; }
.qh-score-lbl { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── PROGRESS BAR ── */
.qh-card-progress { padding: 0 24px 18px; }
.qh-prog-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.qh-prog-bg { height: 4px; background: rgba(255,255,255,0.06); border-radius:100px; overflow:hidden; }
.qh-prog-fill { height:100%; border-radius:100px; background: linear-gradient(90deg,#8B6914,var(--gold)); }

/* ── MATCHES ── */
.qh-card-matches { padding: 0 24px 20px; }
.qh-matches-title { font-size: 11.5px; color: var(--subtle); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.qh-match-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.qh-match-row:last-child { border-bottom: none; }
.qh-match-icon { font-size: 14px; flex-shrink: 0; }
.qh-match-name { flex: 1; font-size: 12.5px; color: var(--text); }
.qh-match-bar-bg { width: 80px; height: 3px; background: rgba(255,255,255,0.06); border-radius:100px; overflow:hidden; }
.qh-match-bar-fill { height:100%; border-radius:100px; background: linear-gradient(90deg,#8B6914,var(--gold)); }
.qh-match-pct { font-size: 12px; font-weight:600; color: var(--gold); min-width: 36px; text-align:right; }

/* ── CARD FOOTER ── */
.qh-card-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; border-top: 1px solid rgba(255,255,255,0.04); background: rgba(255,255,255,0.01); }
.qh-footer-time { font-size: 12px; color: var(--subtle); }
.qh-footer-actions { display: flex; gap: 8px; }
.qh-action-btn { padding: 6px 14px; border-radius: 6px; font-size: 12px; font-family: 'Inter', sans-serif; cursor: pointer; transition: all 0.18s; }
.qh-action-btn.outline { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); color: var(--muted); }
.qh-action-btn.outline:hover { border-color: rgba(212,175,55,0.3); color: var(--text); }
.qh-action-btn.gold { background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.2); color: #C9A227; font-weight: 500; }
.qh-action-btn.gold:hover { background: rgba(212,175,55,0.18); }

/* ── EMPTY STATE ── */
.qh-empty { text-align: center; padding: 80px 24px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; }
.qh-empty-icon { font-size: 48px; margin-bottom: 20px; }
.qh-empty-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.qh-empty-sub { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

/* ── EXPAND TOGGLE ── */
.qh-card-details { display: none; }
.qh-card.expanded .qh-card-details { display: block; }
.qh-expand-btn { background: none; border: none; color: var(--subtle); cursor: pointer; font-size: 18px; padding: 4px 8px; transition: color 0.2s, transform 0.2s; }
.qh-card.expanded .qh-expand-btn { transform: rotate(180deg); color: var(--gold); }

@media (max-width: 600px) {
  .qh-card-main { flex-wrap: wrap; gap: 10px; }
  .qh-card-score { margin-left: auto; }
  .qh-footer-actions { flex-wrap: wrap; width: 100%; }
  .qh-footer-actions .qh-action-btn { flex: 1; text-align: center; }
  .qh-stats { grid-template-columns: 1fr 1fr; }
  .qh-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .qh-header .btn-primary { width: 100%; justify-content: center; }
}