/* ═══════════════════════════════════════════
   MindsQuery — Main Stylesheet
   Modern Q&A — Clean, mobile-first
   ═══════════════════════════════════════════ */

/* ─── Theme Variables (defaults) ───────────── */
:root {
  --primary: #6366f1; --primary-hover: #4f46e5; --primary-light: #eef2ff;
  --accent: #8b5cf6; --accent-light: #f5f3ff;
  --link: #6366f1;
  --header-bg: #ffffff; --footer-bg: #1e293b;
  --hero-from: #6366f1; --hero-to: #8b5cf6;
  --body-bg: #f8fafc; --card-bg: #ffffff; --card-border: #e2e8f0;
  --text: #334155; --text-muted: #64748b; --text-heading: #1e293b;
  --input-bg: #ffffff; --input-border: #e2e8f0;
}

/* ─── Reset & Base ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--body-bg); color: var(--text);
  line-height: 1.6; min-height: 100vh;
  display: flex; flex-direction: column;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; }
ul, ol { list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ─── Container ─────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ─── Buttons ───────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 8px; font-weight: 600; font-size: 14px;
  border: none; cursor: pointer; transition: all .15s; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-ghost  { background: transparent; color: #6366f1; border: 1px solid #e2e8f0; }
.btn-ghost:hover { background: #f1f5f9; }
.btn-danger  { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-warning { background: #f59e0b; color: #fff; }
.btn-warning:hover { background: #d97706; color: #fff; }
.btn-success { background: #10b981; color: #fff; }
.btn-success:hover { background: #059669; color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 6px; }
.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ─── Forms ─────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px; font-weight: 500; font-size: 14px; color: #475569;
}
.form-group label.checkbox-label {
  justify-content: flex-start;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 8px;
  background: #fff; color: #1e293b; transition: border-color .15s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-between { justify-content: space-between; display: flex; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.form-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.input-icon { position: relative; }
.input-icon input { padding-right: 42px; }
.input-icon .toggle-password {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #94a3b8;
}
.checkbox-label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: #475569; }
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: #6366f1; }
.required { color: #ef4444; }
.label-link { font-weight: 400; font-size: 13px; color: #6366f1; }
.input-hint { display: block; font-size: 12px; color: #94a3b8; margin-top: 4px; }
.hint { font-size: 12px; color: #94a3b8; font-weight: 400; margin-left: 6px; }
.char-counter { display: block; text-align: right; font-size: 12px; color: #94a3b8; margin-top: 2px; }
.password-strength { font-size: 13px; margin-top: 4px; font-weight: 600; }

/* ─── Toggle switch ─────────────────────── */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: #475569; border-radius: 24px;
  cursor: pointer; transition: .2s;
}
.toggle-slider::before {
  content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%; transition: .2s;
}
.toggle-switch input:checked + .toggle-slider { background: #6366f1; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ─── Alerts ────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.alert a { font-weight: 600; text-decoration: underline; }

/* ─── Header ────────────────────────────── */
.site-header {
  background: var(--header-bg); border-bottom: 1px solid var(--card-border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.logo-icon {
  width: 34px; height: 34px; background: var(--primary); color: #fff;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.logo-text { font-weight: 700; font-size: 18px; color: #1e293b; }

.header-search {
  flex: 1; max-width: 480px; position: relative;
}
.header-search input {
  width: 100%; padding: 8px 40px 8px 14px;
  border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc;
  font-size: 14px; color: #334155; outline: none;
}
.header-search input:focus { border-color: #6366f1; background: #fff; }
.header-search button {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #94a3b8;
}

.header-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* User dropdown */
.user-menu { position: relative; }
.user-menu-toggle {
  display: flex; align-items: center; gap: 6px; background: none;
  border: none; cursor: pointer; padding: 4px 8px; border-radius: 6px; color: #334155;
}
.user-menu-toggle:hover { background: #f1f5f9; }
.avatar-sm {
  width: 28px; height: 28px; background: #6366f1; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.avatar-xs { width: 22px; height: 22px; font-size: 10px; }
.user-dropdown {
  display: none; position: absolute; right: 0; top: 100%; margin-top: 8px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,.1); min-width: 180px; z-index: 200;
  overflow: hidden;
}
.user-dropdown.open { display: block; }
.user-dropdown a {
  display: block; padding: 10px 16px; color: #334155; font-size: 14px;
  transition: .1s;
}
.user-dropdown a:hover { background: #f1f5f9; }
.user-dropdown .logout-link { color: #dc2626; border-top: 1px solid #f1f5f9; }
/* ─── Notifications ─────────────────────── */
.notif-menu { position: relative; }
.notif-bell {
  position: relative; background: none; border: none; cursor: pointer;
  color: #64748b; padding: 6px; border-radius: 6px; transition: .15s;
}
.notif-bell:hover { background: #f1f5f9; color: #334155; }
.notif-count {
  position: absolute; top: 0; right: 0;
  background: #ef4444; color: #fff; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1;
}
.notif-dropdown {
  display: none; position: absolute; right: 0; top: 100%; margin-top: 8px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,.12); width: 340px; z-index: 200;
  overflow: hidden;
}
.notif-dropdown.open { display: block; }
.notif-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid #f1f5f9; font-size: 14px;
}
.notif-mark-all { font-size: 12px; color: #6366f1; }
.notif-empty { padding: 24px; text-align: center; color: #94a3b8; font-size: 14px; }
.notif-item {
  display: block; padding: 10px 16px; border-bottom: 1px solid #f8fafc;
  text-decoration: none; transition: .1s;
}
.notif-item:hover { background: #f8fafc; }
.notif-item.unread { background: #eff6ff; border-left: 3px solid #6366f1; }
.notif-text { display: block; font-size: 13px; color: #334155; line-height: 1.4; }
.notif-time { display: block; font-size: 11px; color: #94a3b8; margin-top: 2px; }
.notif-viewall {
  display: block; text-align: center; padding: 10px; font-size: 13px;
  font-weight: 600; color: #6366f1; border-top: 1px solid #f1f5f9;
}
.notif-list { display: flex; flex-direction: column; gap: 2px; }
.notif-list-item {
  display: block; padding: 14px 18px; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none;
  transition: .1s;
}
.notif-list-item:hover { background: #f8fafc; }
.notif-list-item.unread { background: #eff6ff; border-left: 3px solid #6366f1; }
.notif-list-item .notif-text { font-size: 14px; color: #334155; }
.notif-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; }

/* Mobil nav bildirim sayacı */
.notif-count-inline { font-size: 12px; color: #ef4444; font-weight: 700; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: #334155; transition: .2s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav */
.mobile-nav {
  display: none; background: #fff; border-bottom: 1px solid #e2e8f0;
  flex-direction: column; padding: 8px 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 16px; color: #334155; font-size: 15px; }
.mobile-nav a:hover { background: #f1f5f9; }

/* ─── Main ──────────────────────────────── */
.site-main { flex: 1; padding: 24px 0; }

/* ─── Hero ──────────────────────────────── */
.hero-banner {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #fff; border-radius: 16px; padding: 40px; margin-bottom: 28px;
  text-align: center;
}
.hero-banner h1 { font-size: 28px; margin-bottom: 8px; }
.hero-banner p { font-size: 16px; opacity: .9; margin-bottom: 20px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; }
.hero-actions .btn-primary { background: #fff; color: #6366f1; }
.hero-actions .btn-primary:hover { background: #eef2ff; }
.hero-actions .btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }

/* ─── Home layout (2 col) ──────────────── */
.home-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; }
.home-sidebar { display: flex; flex-direction: column; gap: 20px; }

/* ─── Section header ───────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 18px; color: #1e293b; margin-bottom: 16px;
}

/* ─── Tab pills ─────────────────────────── */
.tab-pills { display: flex; gap: 4px; }
.tab-pill {
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  color: #64748b; transition: .15s;
}
.tab-pill:hover { background: #f1f5f9; color: #334155; }
.tab-pill.active { background: #6366f1; color: #fff; }

/* ─── Question Card ─────────────────────── */
.question-list { display: flex; flex-direction: column; gap: 2px; }
.question-card {
  display: flex; gap: 16px; background: var(--card-bg);
  border: 1px solid var(--card-border); border-radius: 10px;
  padding: 16px 20px; transition: box-shadow .15s;
}
.question-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.question-card.pinned { border-left: 3px solid #f59e0b; }

.qcard-votes, .qcard-answers {
  display: flex; flex-direction: column; align-items: center;
  min-width: 52px; padding: 4px; border-radius: 8px;
}
.qcard-votes { background: #f8fafc; }
.qcard-answers { background: #f0fdf4; }
.qcard-answers.has-accepted { background: #ecfdf5; border: 1px solid #a7f3d0; }
.vote-count, .answer-count { font-size: 18px; font-weight: 700; color: #1e293b; }
.vote-label, .answer-label { font-size: 11px; color: #94a3b8; }

.qcard-body { flex: 1; min-width: 0; }
.qcard-title { font-size: 16px; line-height: 1.4; margin-bottom: 4px; }
.qcard-title a { color: #1e293b; }
.qcard-title a:hover { color: #6366f1; }
.badge-pin { font-size: 14px; margin-right: 4px; }
.qcard-excerpt { font-size: 14px; color: #64748b; margin-bottom: 8px; }

.qcard-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: #94a3b8;
}
.qcard-meta svg { vertical-align: -2px; }
.meta-item { display: flex; align-items: center; gap: 4px; }
.meta-link { color: #6366f1; font-weight: 500; }
.anon-badge { color: #f59e0b; font-weight: 600; font-size: 12px; }

/* ─── Tags ──────────────────────────────── */
.tag-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 500;
  background: #eef2ff; color: #6366f1; transition: .15s;
}
.tag-link:hover { background: #c7d2fe; color: #4338ca; }
.tag-count { font-size: 11px; opacity: .7; }
.cat-link { background: color-mix(in srgb, var(--cat-color, #6366f1) 12%, transparent); color: var(--cat-color, #6366f1); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.weighted-cloud {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  line-height: 1.8; padding: 4px 0;
}
.cloud-tag {
  color: var(--primary); font-weight: 500; transition: all .15s;
  text-decoration: none; white-space: nowrap;
}
.cloud-tag:hover { color: var(--primary-hover); transform: scale(1.08); }
.qd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

/* ─── Widget ────────────────────────────── */
.widget {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 20px;
}
.widget-title {
  font-size: 14px; font-weight: 700; color: #1e293b; text-transform: uppercase;
  letter-spacing: .04em; margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}
.category-list { display: flex; flex-direction: column; }
.category-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 6px;
  color: #334155; font-size: 14px; border-radius: 6px; transition: .15s;
}
.category-item:hover, .category-item.active { background: #f1f5f9; }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cat-name { flex: 1; }
.cat-count { font-size: 12px; color: #94a3b8; }
.widget-viewall {
  display: block; text-align: center; padding: 10px 0 0;
  margin-top: 10px; border-top: 1px solid #f1f5f9;
  font-size: 13px; font-weight: 600; color: #6366f1;
}
.widget-viewall:hover { color: #4f46e5; }

.stat-row {
  display: flex; justify-content: space-between; padding: 8px 0;
  font-size: 14px; border-bottom: 1px solid #f8fafc;
}
.stat-row span { color: #64748b; }
.stat-row strong { color: #1e293b; }

/* ─── Question Detail ───────────────────── */
.question-layout { display: grid; grid-template-columns: 1fr 280px; gap: 28px; }
.question-detail { display: flex; gap: 16px; margin-bottom: 24px; }
.qd-sidebar { display: flex; flex-direction: column; align-items: center; }

.vote-box { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.vote-btn {
  background: none; border: 1px solid #e2e8f0; border-radius: 6px;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #94a3b8; transition: .15s;
}
.vote-btn:hover:not(:disabled) { background: #f1f5f9; color: #334155; }
.vote-btn.active.upvote   { background: #ecfdf5; border-color: #10b981; color: #10b981; }
.vote-btn.active.downvote { background: #fef2f2; border-color: #ef4444; color: #ef4444; }
.vote-btn:disabled { opacity: .4; cursor: not-allowed; }
.vote-score { font-size: 20px; font-weight: 700; color: #1e293b; }

.qd-body { flex: 1; min-width: 0; }
.qd-title { font-size: 22px; color: #1e293b; line-height: 1.3; margin-bottom: 16px; }
.qd-content { font-size: 15px; color: #475569; line-height: 1.7; margin-bottom: 16px; }
.qd-content code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 13px; }

.qd-meta {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid #f1f5f9; padding-top: 14px; margin-top: 14px;
}
.meta-author { display: flex; align-items: center; gap: 8px; }
.meta-author-link { display: flex; align-items: center; gap: 6px; font-weight: 500; color: #334155; }
.meta-time { font-size: 13px; color: #94a3b8; }
.meta-stats { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #94a3b8; }
.share-btn {
  background: none; border: 1px solid #e2e8f0; padding: 4px 10px;
  border-radius: 6px; cursor: pointer; color: #6366f1; font-size: 13px;
}

.mod-actions {
  display: flex; gap: 6px; margin-top: 16px; padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

/* ─── Answers ───────────────────────────── */
.answers-section { margin-top: 24px; }
.answer-card {
  display: flex; gap: 16px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 10px; padding: 20px; margin-bottom: 12px;
  position: relative;
}
.answer-card.accepted { border-color: #a7f3d0; background: #f0fdf4; }
.accepted-banner {
  position: absolute; top: -1px; right: -1px;
  background: #10b981; color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 0 10px 0 8px;
  display: flex; align-items: center; gap: 4px;
}
.answer-vote { flex-shrink: 0; }
.answer-body { flex: 1; min-width: 0; }
.answer-content { font-size: 15px; color: #475569; line-height: 1.7; margin-bottom: 12px; }
.answer-meta {
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: #94a3b8;
  flex-wrap: wrap;
}

/* ─── Comments ──────────────────────────── */
.answer-comments { border-top: 1px solid #f1f5f9; padding-top: 12px; margin-top: 12px; }
.comment {
  font-size: 13px; color: #64748b; padding: 6px 0;
  border-bottom: 1px dashed #f1f5f9;
}
.comment-author a { font-weight: 600; color: #334155; }
.comment-time { font-size: 11px; color: #94a3b8; margin-left: 8px; }
.comment-form {
  display: flex; gap: 8px; margin-top: 8px;
}
.comment-form input {
  flex: 1; padding: 6px 12px; border: 1px solid #e2e8f0;
  border-radius: 6px; font-size: 13px; outline: none;
}
.comment-form input:focus { border-color: #6366f1; }

/* ─── Answer form ───────────────────────── */
.answer-form-section {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 24px; margin-top: 28px;
}
.answer-form textarea {
  width: 100%; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 15px; min-height: 120px; resize: vertical; outline: none;
}
.answer-form textarea:focus { border-color: #6366f1; }
.login-cta { text-align: center; padding: 20px; }
.verify-hint { font-size: 13px; color: #f59e0b; margin-top: 8px; }

/* ─── Sort options ──────────────────────── */
.sort-options { display: flex; gap: 4px; font-size: 13px; }
.sort-options a { color: #94a3b8; padding: 4px 10px; border-radius: 4px; }
.sort-options a.active { color: #6366f1; background: #eef2ff; font-weight: 600; }

/* ─── Related questions ─────────────────── */
.related-q {
  display: block; padding: 10px 0; border-bottom: 1px solid #f1f5f9;
  font-size: 14px; color: #334155; line-height: 1.4;
}
.related-q:hover { color: #6366f1; }
.related-ans { display: block; font-size: 11px; color: #94a3b8; margin-top: 2px; }

/* ─── Breadcrumb ────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 6px; font-size: 13px;
  color: #94a3b8; margin-bottom: 16px; flex-wrap: wrap;
}
.breadcrumb a { color: #6366f1; }
.breadcrumb span { color: #cbd5e1; }

/* ─── Auth pages ────────────────────────── */
.auth-page {
  display: flex; justify-content: center; align-items: center;
  min-height: 400px; padding: 20px;
}
.auth-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 32px; width: 100%; max-width: 420px;
}
.auth-logo { text-align: center; margin-bottom: 16px; }
.auth-logo .logo-icon { width: 48px; height: 48px; font-size: 24px; margin: 0 auto; }
.auth-title { text-align: center; font-size: 22px; color: #1e293b; margin-bottom: 24px; }
.auth-form .form-group { margin-bottom: 16px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: #64748b; }
.auth-terms { text-align: center; margin-top: 16px; font-size: 12px; color: #94a3b8; }
.verify-icon { font-size: 48px; margin-bottom: 16px; }

/* ─── Ask page ──────────────────────────── */
.form-page { display: grid; grid-template-columns: 1fr 300px; gap: 28px; }
.form-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 28px;
}
.form-title { font-size: 22px; color: #1e293b; margin-bottom: 4px; }
.form-subtitle { font-size: 14px; color: #64748b; margin-bottom: 24px; }
.ask-tips { display: flex; flex-direction: column; gap: 16px; }
.ask-tips ul { padding-left: 18px; }
.ask-tips li { font-size: 14px; color: #64748b; padding: 4px 0; list-style: disc; }

/* ─── Categories page ───────────────────── */
.categories-page { max-width: 900px; }
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 24px; color: #1e293b; }
.page-header p  { font-size: 15px; color: #64748b; margin-top: 4px; }
.categories-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px;
}
.cat-card {
  display: block; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  overflow: hidden; transition: box-shadow .15s, transform .15s; text-decoration: none;
}
.cat-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.07); transform: translateY(-2px); }
.cat-card-bar { height: 4px; background: var(--cat-color, #6366f1); }
.cat-card-body { padding: 18px 20px; }
.cat-card-name { font-size: 16px; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.cat-card-desc { font-size: 13px; color: #64748b; line-height: 1.5; margin-bottom: 12px; }
.cat-card-stat { display: flex; align-items: baseline; gap: 4px; }
.cat-card-count { font-size: 22px; font-weight: 700; color: var(--cat-color, #6366f1); }
.cat-card-label { font-size: 13px; color: #94a3b8; }

/* ─── Category header ───────────────────── */
.category-header {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 24px; margin-bottom: 20px;
}
.category-header h1 { font-size: 22px; color: #1e293b; }
.category-header p { font-size: 14px; color: #64748b; margin-top: 4px; }
.category-meta { font-size: 13px; color: #94a3b8; margin-top: 8px; }

/* ─── Search ────────────────────────────── */
.search-page { max-width: 800px; }
.search-header { margin-bottom: 20px; }
.big-search { display: flex; gap: 10px; }
.big-search input {
  flex: 1; padding: 14px 20px; border: 2px solid #e2e8f0; border-radius: 12px;
  font-size: 16px; outline: none;
}
.big-search input:focus { border-color: #6366f1; }
.search-summary { font-size: 14px; color: #64748b; margin-top: 12px; }
.search-filters {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px;
}
.search-filters a {
  padding: 6px 14px; border-radius: 20px; font-size: 13px;
  color: #64748b; background: #f1f5f9;
}
.search-filters a.active { background: #6366f1; color: #fff; }
.search-suggestions { margin-top: 20px; }
.search-suggestions h2 { font-size: 16px; margin-bottom: 12px; color: #1e293b; }

/* ─── Profile ───────────────────────────── */
.profile-page { max-width: 800px; margin: 0 auto; }
.profile-header {
  display: flex; gap: 20px; align-items: flex-start;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 24px; margin-bottom: 20px;
}
.profile-avatar {
  width: 72px; height: 72px; background: #6366f1; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; flex-shrink: 0;
}
.profile-info { flex: 1; }
.profile-info h1 { font-size: 22px; color: #1e293b; }
.profile-badges { display: flex; gap: 6px; margin-top: 6px; }
.profile-bio { font-size: 14px; color: #64748b; margin-top: 8px; }
.profile-meta { font-size: 13px; color: #94a3b8; margin-top: 8px; display: flex; gap: 16px; }
.profile-actions { margin-left: auto; }

.profile-edit-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 24px; margin-bottom: 20px;
}
.profile-edit-card h2 { font-size: 16px; margin-bottom: 16px; color: #1e293b; }

.profile-stats {
  display: flex; gap: 12px; margin-bottom: 20px;
}
.stat-block {
  flex: 1; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 16px; text-align: center;
}
.stat-num { font-size: 24px; font-weight: 700; color: #1e293b; display: block; }
.stat-lbl { font-size: 12px; color: #94a3b8; }

.profile-tabs { display: flex; gap: 2px; margin-bottom: 16px; }
.profile-tab {
  padding: 10px 20px; font-weight: 600; font-size: 14px; color: #64748b;
  border-bottom: 2px solid transparent;
}
.profile-tab.active { color: #6366f1; border-bottom-color: #6366f1; }

.answer-item {
  display: flex; gap: 12px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 8px; padding: 14px; margin-bottom: 8px;
}
.answer-item-score {
  min-width: 40px; text-align: center; font-size: 16px; font-weight: 700;
  color: #1e293b;
}
.answer-item-score.accepted { color: #10b981; }
.answer-item-body a { color: #1e293b; font-weight: 500; }
.answer-excerpt { font-size: 13px; color: #64748b; margin-top: 4px; }

/* ─── Pagination ────────────────────────── */
.pagination {
  display: flex; gap: 4px; justify-content: center; margin-top: 24px;
}
.page-link {
  padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: #64748b; background: #fff; border: 1px solid #e2e8f0;
}
.page-link:hover { background: #f1f5f9; }
.page-link.active { background: #6366f1; color: #fff; border-color: #6366f1; }

/* ─── Empty state ───────────────────────── */
.empty-state { text-align: center; padding: 48px 20px; color: #94a3b8; }
.empty-icon { font-size: 48px; margin-bottom: 12px; }

/* ─── Ad zone ───────────────────────────── */
.ad-zone { margin: 16px 0; text-align: center; }

/* ─── Toast ─────────────────────────────── */
.toast {
  position: fixed; bottom: 20px; right: 20px; padding: 12px 20px;
  border-radius: 8px; font-size: 14px; font-weight: 500; color: #fff;
  background: #1e293b; z-index: 9999; opacity: 0; transform: translateY(10px);
  transition: all .3s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: #059669; }
.toast-error   { background: #dc2626; }

/* ─── Tag Autocomplete ──────────────────── */
.tag-suggestions {
  position: absolute; z-index: 50; top: 100%; left: 0; right: 0;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08); max-height: 220px; overflow-y: auto;
  margin-top: 4px;
}
.tag-ac-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; cursor: pointer; font-size: 14px; color: #334155;
  transition: background .1s;
}
.tag-ac-item:hover { background: #f1f5f9; }
.tag-ac-item:first-child { border-radius: 8px 8px 0 0; }
.tag-ac-item:last-child  { border-radius: 0 0 8px 8px; }
.tag-ac-name { font-weight: 500; }
.tag-ac-count {
  font-size: 11px; color: #94a3b8; background: #f1f5f9;
  padding: 2px 8px; border-radius: 10px;
}

/* ─── Static Pages ──────────────────────── */
.static-page { max-width: 800px; }
.static-page-main { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; }
.page-hero {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: #fff;
  padding: 40px 36px; text-align: center;
}
.page-hero h1 { font-size: 28px; margin-bottom: 8px; }
.hero-sub { font-size: 16px; opacity: .9; }
.page-section { padding: 28px 36px; border-bottom: 1px solid #f1f5f9; }
.page-section:last-child { border-bottom: none; }
.page-section h2 { font-size: 18px; color: #1e293b; margin-bottom: 14px; }
.page-section h3 { font-size: 15px; color: #334155; margin: 16px 0 8px; }
.page-body { font-size: 15px; color: #475569; line-height: 1.75; }
.page-intro { padding: 28px 36px 0; font-size: 15px; color: #475569; line-height: 1.75; }
.page-list {
  list-style: none; padding: 0; margin: 8px 0 0;
}
.page-list li {
  position: relative; padding: 6px 0 6px 28px; font-size: 14px; color: #475569; line-height: 1.6;
}
.page-list.check li::before { content: '✓'; position: absolute; left: 4px; color: #10b981; font-weight: 700; }
.page-list.cross li::before { content: '✗'; position: absolute; left: 4px; color: #ef4444; font-weight: 700; }
.page-list.bullet li::before { content: '•'; position: absolute; left: 6px; color: #6366f1; font-weight: 700; font-size: 16px; }
.page-cta { text-align: center; background: #f8fafc; }
.page-cta p { margin-bottom: 16px; color: #64748b; }
.page-note { font-size: 13px; color: #94a3b8; font-style: italic; margin-top: 12px; }
.legal-header { padding: 32px 36px 0; }
.legal-header h1 { font-size: 24px; color: #1e293b; }
.legal-date { font-size: 13px; color: #94a3b8; margin-top: 4px; }
.legal-section h2 { font-size: 17px; }
.legal-subsection { margin: 12px 0 12px 8px; padding-left: 16px; border-left: 3px solid #e2e8f0; }
.legal-subsection h3 { font-size: 14px; font-weight: 600; margin-top: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; padding: 28px 36px; }
.contact-card {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 20px;
}
.contact-card h3 { font-size: 15px; color: #1e293b; margin-bottom: 6px; }
.contact-card p { font-size: 13px; color: #64748b; margin-bottom: 10px; }
.contact-email { font-size: 14px; font-weight: 600; color: #6366f1; }

@media (max-width: 768px) {
  .page-hero { padding: 28px 20px; }
  .page-hero h1 { font-size: 22px; }
  .page-section, .page-intro, .legal-header, .contact-grid { padding-left: 20px; padding-right: 20px; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ─── Error Pages ───────────────────────── */
.err-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: 50vh; padding: 20px;
}
.err-card {
  text-align: center; max-width: 420px; width: 100%;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 20px; padding: 40px 32px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,.04);
}
.err-visual {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  margin-bottom: 20px;
}
.err-num {
  font-size: 72px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--accent, #a855f7));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.err-globe {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent, #a855f7));
  display: flex; align-items: center; justify-content: center;
  color: #fff; animation: err-spin 8s linear infinite;
}
@keyframes err-spin { to { transform: rotate(360deg); } }
.err-card h1 {
  font-size: 18px; font-weight: 700; color: var(--text-heading); margin: 0 0 6px;
}
.err-card p {
  font-size: 13px; color: var(--text-muted); margin: 0 0 20px; line-height: 1.5;
}
.err-search {
  display: flex; gap: 0; max-width: 320px; margin: 0 auto 18px;
  border: 1.5px solid var(--card-border); border-radius: 10px;
  overflow: hidden; transition: border-color .15s;
}
.err-search:focus-within { border-color: var(--primary); }
.err-search input {
  flex: 1; padding: 10px 14px; border: none; outline: none;
  font-size: 13px; background: transparent; color: var(--text);
}
.err-search button {
  padding: 10px 14px; border: none; background: var(--primary);
  color: #fff; cursor: pointer; display: flex; align-items: center;
}
.err-search button:hover { filter: brightness(.9); }
.err-links {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: wrap;
}
.err-links a {
  font-size: 13px; font-weight: 600; color: var(--primary);
  text-decoration: none; transition: .15s;
}
.err-links a:hover { text-decoration: underline; }
.err-dot { color: var(--card-border); font-size: 14px; }
/* 500 page (themed version) */
.error-page-wrap {
  text-align: center; padding: 40px 20px 60px; max-width: 420px; margin: 0 auto;
}
.error-code-big {
  font-size: 100px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #ef4444, #f97316);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.error-page-wrap h1 { font-size: 20px; font-weight: 700; color: var(--text-heading); margin-bottom: 6px; }
.error-page-wrap p { color: var(--text-muted); font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
.error-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ─── Rewards Page ──────────────────────── */
.rewards-page { max-width: 900px; }
.rewards-hero {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #fff; border-radius: 16px; padding: 40px; text-align: center; margin-bottom: 28px;
}
.rewards-hero h1 { font-size: 28px; margin-bottom: 8px; }
.rewards-hero p { opacity: .9; }
.rewards-balance { display: flex; gap: 24px; justify-content: center; margin-top: 20px; }
.balance-item { text-align: center; }
.balance-value { font-size: 32px; font-weight: 800; display: block; }
.balance-label { font-size: 13px; opacity: .8; }
.rewards-section { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px; padding: 28px; margin-bottom: 20px; }
.rewards-section h2 { font-size: 20px; color: var(--text-heading); margin-bottom: 16px; }
.clean-table { width: 100%; border-collapse: collapse; }
.clean-table th { text-align: left; padding: 10px 12px; font-size: 13px; color: var(--text-muted); border-bottom: 2px solid var(--card-border); }
.clean-table td { padding: 10px 12px; border-bottom: 1px solid var(--card-border); font-size: 14px; color: var(--text); }
.xp-badge { background: #dbeafe; color: #1e40af; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.credit-badge { background: #fef3c7; color: #92400e; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; }

/* Badge grid */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.badge-card { text-align: center; padding: 20px 12px; border: 1px solid var(--card-border); border-radius: 12px; background: var(--card-bg); transition: .15s; }
.badge-card.locked { opacity: .4; filter: grayscale(1); }
.badge-icon { width: 40px; height: 40px; margin: 0 auto 8px; }
.badge-icon svg { width: 100%; height: 100%; }
.badge-card h3 { font-size: 14px; color: var(--text-heading); margin-bottom: 4px; }
.badge-card p { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.badge-xp { display: block; font-size: 11px; color: var(--text-muted); margin-top: 6px; }
.badge-earned { display: block; font-size: 11px; color: #10b981; font-weight: 600; margin-top: 4px; }

/* Progress bar */
.badge-progress { background: var(--primary-light); border-radius: 10px; padding: 14px 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.progress-bar { flex: 1; height: 8px; background: var(--card-border); border-radius: 4px; overflow: hidden; min-width: 100px; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 4px; transition: width .3s; }
.progress-text { font-size: 12px; color: var(--text-muted); }

/* Theme grid */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.theme-card { border: 1px solid var(--card-border); border-radius: 12px; padding: 16px; text-align: center; background: var(--card-bg); }
.theme-card.active-theme { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }
.theme-preview { margin-bottom: 10px; }
.theme-swatch { height: 48px; border-radius: 8px; }
.theme-card h3 { font-size: 14px; color: var(--text-heading); margin-bottom: 4px; }
.theme-desc { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.theme-price { display: inline-block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
.theme-price.free { color: #10b981; }

/* Reward tiers */
.rewards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.reward-tier-card { border: 1px solid var(--card-border); border-radius: 12px; padding: 20px; text-align: center; background: var(--card-bg); }
.reward-tier-card.claimable { border-color: #10b981; }
.tier-discount { font-size: 36px; font-weight: 800; color: var(--primary); }
.tier-xp { font-size: 12px; color: var(--text-muted); display: block; margin-top: 6px; }
.shops-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.shop-card { display: block; padding: 16px; border: 1px solid var(--card-border); border-radius: 10px; text-decoration: none; color: var(--text); transition: .15s; }
.shop-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.shop-card p { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.rewards-cta { text-align: center; padding: 40px; background: var(--primary-light); border-radius: 12px; margin-top: 20px; }
.rewards-cta h2 { margin-bottom: 16px; color: var(--text-heading); }

/* Nav rewards link */
.nav-rewards { color: var(--text-muted); padding: 6px; border-radius: 6px; }
.nav-rewards:hover { background: var(--primary-light); color: var(--primary); }

/* ─── Footer ────────────────────────────── */
.site-footer { background: var(--footer-bg); color: #94a3b8; margin-top: auto; }
.footer-inner {
  display: grid; grid-template-columns: 1fr 2fr; gap: 40px;
  padding: 40px 0;
}
.footer-brand .logo-text { color: #f1f5f9; }
.footer-brand p { font-size: 14px; margin-top: 8px; }
.footer-links { display: flex; gap: 40px; flex: 1; }
.footer-col h4 { font-size: 13px; color: #f1f5f9; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 14px; color: #94a3b8; padding: 4px 0; }
.footer-col a:hover { color: #e2e8f0; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid #334155; padding: 16px 0; font-size: 13px;
}
.footer-bottom-links a { color: #6366f1; margin-left: 12px; }

/* ─── Badges ────────────────────────────── */
.badge { display: inline-block; padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-admin     { background: #7c3aed; color: #fff; }
.badge-moderator { background: #0284c7; color: #fff; }
.badge-verified  { background: #059669; color: #fff; }
.badge-trusted   { background: #d97706; color: #fff; }
.badge-member    { background: #64748b; color: #fff; }
.badge-banned    { background: #dc2626; color: #fff; }
.badge-approved  { background: #dcfce7; color: #166534; }
.badge-pending   { background: #fef3c7; color: #92400e; }
.badge-rejected  { background: #fecaca; color: #991b1b; }
.badge-closed    { background: #e2e8f0; color: #475569; }

/* ─── Responsive ────────────────────────── */
@media (max-width: 768px) {
  .home-layout      { grid-template-columns: 1fr; }
  .question-layout  { grid-template-columns: 1fr; }
  .form-page        { grid-template-columns: 1fr; }
  .form-row         { grid-template-columns: 1fr; }
  .footer-inner     { grid-template-columns: 1fr; gap: 20px; }
  .footer-links     { gap: 24px; }

  .header-search { display: none; }
  .hamburger     { display: flex; }
  .header-nav .btn { display: none; }
  .header-nav .nav-store, .header-nav .nav-rewards { display: none; }

  .notif-dropdown { width: calc(100vw - 32px); right: -60px; }

  .hero-banner    { padding: 24px; }
  .hero-banner h1 { font-size: 22px; }
  .hero-actions   { flex-direction: column; }

  .question-card  { flex-wrap: wrap; }
  .qcard-votes, .qcard-answers { flex-direction: row; gap: 4px; min-width: auto; }

  .profile-header { flex-direction: column; align-items: center; text-align: center; }
  .profile-meta   { justify-content: center; }
  .profile-stats  { flex-direction: column; }

  .question-detail { flex-direction: column; }
  .qd-sidebar      { flex-direction: row; justify-content: flex-start; }
  .vote-box         { flex-direction: row; }

  .answer-card    { flex-direction: column; }

  .question-sidebar { display: none; }
  .home-sidebar     { order: 2; }

  /* Admin responsive */
  .admin-sidebar { display: none; }
  .admin-content { padding: 12px; }
  .stat-cards    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr; }
  .search-filters { overflow-x: auto; flex-wrap: nowrap; }
  .big-search { flex-direction: column; }
  .notif-dropdown { width: calc(100vw - 16px); right: -70px; }
}

/* ─── 375px — Küçük mobil ────────────────── */
@media (max-width: 375px) {
  .container { padding: 0 10px; }
  .site-main { padding: 16px 0; }
  .hero-banner { padding: 18px 12px; }
  .hero-banner h1 { font-size: 18px; }
  .btn { padding: 8px 14px; font-size: 13px; }
  .btn-sm { padding: 6px 10px; font-size: 12px; }
  .profile-header { padding: 16px; }
  .notif-dropdown { width: calc(100vw - 8px); right: -80px; }
}

/* ═══════════════════════════════════════════
   Store — Digital Product Marketplace
   ═══════════════════════════════════════════ */

/* ─── Store Hero ──────────────────────────── */
.store-hero {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #fff; text-align: center;
  padding: 48px 20px 40px; border-radius: 16px;
  margin-bottom: 32px;
}
.store-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.store-hero p { opacity: .85; font-size: .95rem; margin-bottom: 20px; }
.store-search-box {
  max-width: 480px; margin: 0 auto; position: relative;
}
.store-search-box input {
  width: 100%; padding: 12px 44px 12px 16px;
  border: none; border-radius: 10px; font-size: .95rem;
  background: rgba(255,255,255,.2); color: #fff;
  backdrop-filter: blur(8px);
}
.store-search-box input::placeholder { color: rgba(255,255,255,.6); }
.store-search-box input:focus { outline: none; background: rgba(255,255,255,.3); }
.store-search-box button {
  position: absolute; right: 4px; top: 4px; bottom: 4px;
  background: #fff; color: var(--primary); border: none;
  border-radius: 8px; padding: 0 16px; font-weight: 600;
  cursor: pointer; font-size: .85rem;
}

/* ─── Category Pills ──────────────────────── */
.store-cats {
  display: flex; gap: 8px; overflow-x: auto;
  padding-bottom: 4px; margin-bottom: 24px;
  scrollbar-width: none;
}
.store-cats::-webkit-scrollbar { display: none; }
.store-cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 20px; font-size: .8rem;
  font-weight: 600; white-space: nowrap; text-decoration: none;
  background: var(--card-bg); border: 1px solid var(--card-border);
  color: var(--text); transition: all .2s;
}
.store-cat-pill:hover, .store-cat-pill.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.store-cat-pill .cat-count {
  background: rgba(0,0,0,.1); border-radius: 10px;
  padding: 1px 8px; font-size: .7rem;
}

/* ─── Store Grid ──────────────────────────── */
.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-bottom: 32px;
}

/* ─── Product Card ────────────────────────── */
.store-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 14px; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
}
.store-card-img {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background: var(--primary-light);
}
.store-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.store-card:hover .store-card-img img { transform: scale(1.05); }
.store-card-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--primary); color: #fff;
  padding: 3px 10px; border-radius: 6px;
  font-size: .7rem; font-weight: 700;
}
.store-card-featured {
  position: absolute; top: 10px; right: 10px;
  background: #f59e0b; color: #fff;
  padding: 3px 8px; border-radius: 6px;
  font-size: .65rem; font-weight: 700;
}
.store-card-wishlist {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,.4); color: #fff;
  border: none; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all .2s;
}
.store-card-wishlist:hover, .store-card-wishlist.active {
  background: #ef4444; color: #fff;
}
.store-card-body { padding: 14px 16px 16px; }
.store-card-body h3 {
  font-size: .9rem; font-weight: 700; color: var(--text-heading);
  margin-bottom: 6px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.store-card-body h3 a { color: inherit; }
.store-card-body h3 a:hover { color: var(--primary); }
.store-card-desc {
  font-size: .78rem; color: var(--text-muted);
  margin-bottom: 10px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.store-card-pricing {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 10px;
}
.store-price {
  font-size: 1.1rem; font-weight: 800; color: var(--primary);
}
.store-price-free { color: #10b981; }
.store-credits {
  font-size: .75rem; color: var(--text-muted); font-weight: 500;
}
.store-card-footer {
  display: flex; justify-content: space-between;
  align-items: center; font-size: .75rem; color: var(--text-muted);
}
.store-rating { display: flex; align-items: center; gap: 4px; }
.store-stars { color: #f59e0b; letter-spacing: -1px; }

/* ─── Store Sort Bar ──────────────────────── */
.store-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
}
.store-toolbar .result-count { font-size: .85rem; color: var(--text-muted); }
.store-sort select {
  padding: 8px 12px; border-radius: 8px; font-size: .8rem;
  border: 1px solid var(--card-border); background: var(--card-bg);
  color: var(--text); cursor: pointer;
}

/* ─── Product Detail ──────────────────────── */
.product-layout {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 32px; align-items: start;
}
.product-gallery {
  border-radius: 14px; overflow: hidden;
  background: var(--primary-light); aspect-ratio: 16/10;
}
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs {
  display: flex; gap: 8px; margin-top: 10px;
}
.product-thumbs img {
  width: 64px; height: 44px; object-fit: cover;
  border-radius: 8px; cursor: pointer; opacity: .6;
  border: 2px solid transparent; transition: all .2s;
}
.product-thumbs img:hover, .product-thumbs img.active {
  opacity: 1; border-color: var(--primary);
}
.product-sidebar {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 24px; position: sticky; top: 20px;
}
.product-sidebar .price-big {
  font-size: 1.8rem; font-weight: 800; color: var(--primary);
  margin-bottom: 4px;
}
.product-sidebar .price-credits {
  font-size: .85rem; color: var(--text-muted); margin-bottom: 20px;
}
.product-sidebar .btn-buy {
  display: block; width: 100%; padding: 14px;
  border: none; border-radius: 10px; font-size: .95rem;
  font-weight: 700; cursor: pointer; text-align: center;
  margin-bottom: 10px; text-decoration: none; transition: all .2s;
}
.btn-buy-credits {
  background: var(--primary); color: #fff;
}
.btn-buy-credits:hover { background: var(--primary-hover); color: #fff; }
.btn-buy-money {
  background: var(--card-bg); color: var(--text);
  border: 2px solid var(--card-border) !important;
}
.btn-buy-money:hover { border-color: var(--primary) !important; color: var(--primary); }
.btn-download {
  background: #10b981; color: #fff;
}
.btn-download:hover { background: #059669; color: #fff; }
.btn-wishlist-full {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 10px; border: 1px solid var(--card-border);
  border-radius: 10px; background: var(--card-bg); color: var(--text-muted);
  cursor: pointer; font-size: .85rem; transition: all .2s;
}
.btn-wishlist-full:hover { border-color: #ef4444; color: #ef4444; }
.btn-wishlist-full.active { border-color: #ef4444; color: #ef4444; background: #fef2f2; }
.product-meta-list {
  margin-top: 20px; border-top: 1px solid var(--card-border); padding-top: 16px;
}
.product-meta-item {
  display: flex; justify-content: space-between;
  padding: 6px 0; font-size: .82rem;
}
.product-meta-item .label { color: var(--text-muted); }
.product-meta-item .value { font-weight: 600; color: var(--text-heading); }

/* ─── Product Content ─────────────────────── */
.product-content {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 24px; margin-top: 24px;
}
.product-content h2 {
  font-size: 1.1rem; font-weight: 700; color: var(--text-heading);
  margin-bottom: 16px;
}
.product-content .prose { font-size: .9rem; line-height: 1.8; color: var(--text); }
.product-content .prose p { margin-bottom: 12px; }
.product-content .prose ul { list-style: disc; padding-left: 20px; margin-bottom: 12px; }
.product-content .prose li { margin-bottom: 4px; }

/* ─── Reviews ─────────────────────────────── */
.reviews-section {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 24px; margin-top: 24px;
}
.review-item {
  padding: 16px 0; border-bottom: 1px solid var(--card-border);
}
.review-item:last-child { border-bottom: none; }
.review-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.review-author { font-weight: 600; font-size: .85rem; }
.review-date { font-size: .75rem; color: var(--text-muted); }
.review-stars { color: #f59e0b; font-size: .85rem; margin-bottom: 6px; }
.review-text { font-size: .85rem; line-height: 1.6; color: var(--text); }
.review-form textarea {
  width: 100%; padding: 12px; border: 1px solid var(--card-border);
  border-radius: 10px; font-size: .85rem; resize: vertical;
  min-height: 80px; background: var(--input-bg); color: var(--text);
}
.review-form textarea:focus { outline: none; border-color: var(--primary); }
.star-select { display: flex; gap: 4px; margin-bottom: 12px; }
.star-select button {
  background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: var(--card-border); transition: color .1s;
}
.star-select button:hover, .star-select button.active { color: #f59e0b; }

/* ─── Purchases Page ──────────────────────── */
.purchase-item {
  display: flex; gap: 16px; padding: 16px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 12px; margin-bottom: 12px; align-items: center;
}
.purchase-item img {
  width: 80px; height: 56px; object-fit: cover; border-radius: 8px;
  flex-shrink: 0;
}
.purchase-info { flex: 1; min-width: 0; }
.purchase-info h3 { font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.purchase-info .meta { font-size: .75rem; color: var(--text-muted); }
.purchase-actions { flex-shrink: 0; }

/* ─── Empty States ────────────────────────── */
.store-empty {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.store-empty .icon { font-size: 3rem; margin-bottom: 12px; opacity: .4; }
.store-empty h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.store-empty p { font-size: .85rem; margin-bottom: 20px; }

/* ─── Store Responsive ────────────────────── */
@media (max-width: 900px) {
  .store-grid { grid-template-columns: repeat(2, 1fr); }
  .product-layout { grid-template-columns: 1fr; }
  .product-sidebar { position: static; }
}
@media (max-width: 560px) {
  .store-grid { grid-template-columns: 1fr; }
  .store-hero { padding: 32px 16px; }
  .store-hero h1 { font-size: 1.5rem; }
  .purchase-item { flex-direction: column; align-items: flex-start; }
}
