*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #5C6BC0;
  --accent: #7C4DFF;
  --bg: #0A0B14;
  --bg2: #0F1020;
  --surface: #1A1D35;
  --surface2: #1F2340;
  --border: rgba(255,255,255,0.07);
  --text: #F0F2FF;
  --text-muted: #8B90B8;
  --text-dim: #5A5F80;
  --radius: 14px;
  --sidebar-w: 260px;
  --topnav-h: 56px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}
[dir="ltr"] body {
  font-family: 'Inter', sans-serif;
}

/* ── TOPNAV ── */
.topnav {
  position: fixed; top: 0; right: 0; left: 0; z-index: 100;
  height: var(--topnav-h);
  background: rgba(10,11,20,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.topnav-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 24px; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.back-link {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-muted); text-decoration: none;
  font-size: 14px; transition: color 0.2s;
}
.back-link:hover { color: var(--text); }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.logo-icon {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: white;
}

/* ── LANGUAGE SELECTOR ── */
.lang-selector {
  margin-right: 16px;
}
[dir="ltr"] .lang-selector {
  margin-right: 0;
  margin-left: 16px;
}
.lang-selector select {
  background: linear-gradient(135deg, var(--surface), var(--surface2));
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 28px 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238B90B8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
[dir="ltr"] .lang-selector select {
  background-position: right 8px center;
}
.lang-selector select:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--surface2), var(--surface));
}
.lang-selector select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(92,107,192,0.2);
}
.lang-selector select option {
  background: var(--surface);
  color: var(--text);
  padding: 8px;
}

/* ── LAYOUT ── */
.layout {
  display: flex;
  padding-top: var(--topnav-h);
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: var(--topnav-h);
  height: calc(100vh - var(--topnav-h));
  overflow-y: auto;
  border-left: 1px solid var(--border);
  background: var(--bg2);
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.sidebar-inner { padding: 24px 16px; }
.sidebar-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--text-dim); text-transform: uppercase;
  margin-bottom: 12px; padding: 0 8px;
}
.toc { display: flex; flex-direction: column; gap: 2px; }
.toc-item {
  display: block; padding: 7px 10px;
  color: var(--text-muted); text-decoration: none;
  font-size: 14px; border-radius: 8px;
  transition: all 0.15s;
}
.toc-item:hover { color: var(--text); background: var(--surface); }
.toc-item.toc-section { font-weight: 600; color: var(--text); margin-top: 8px; }
.toc-sub {
  display: block; padding: 5px 10px 5px 20px;
  color: var(--text-dim); text-decoration: none;
  font-size: 13px; border-radius: 8px;
  transition: all 0.15s;
}
.toc-sub:hover { color: var(--text-muted); background: var(--surface); }

/* ── CONTENT ── */
.content {
  flex: 1; min-width: 0;
  padding: 48px 64px;
  max-width: 860px;
}

/* ── SECTIONS ── */
.doc-section {
  margin-bottom: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--border);
}
.doc-section:last-of-type { border-bottom: none; }

.section-badge {
  display: inline-block;
  padding: 4px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 600;
  background: rgba(92,107,192,0.15);
  border: 1px solid rgba(92,107,192,0.25);
  color: #9FA8DA;
  margin-bottom: 12px;
}
.tab-badge-today { background: rgba(92,107,192,0.15); border-color: rgba(92,107,192,0.3); color: #9FA8DA; }
.tab-badge-reflect { background: rgba(245,124,0,0.12); border-color: rgba(245,124,0,0.3); color: #FFCC80; }
.tab-badge-trend { background: rgba(0,151,167,0.12); border-color: rgba(0,151,167,0.3); color: #80DEEA; }
.tab-badge-profile { background: rgba(56,142,60,0.12); border-color: rgba(56,142,60,0.3); color: #A5D6A7; }

h1 { font-size: 36px; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
h2 { font-size: 28px; font-weight: 700; margin-bottom: 14px; margin-top: 40px; }
h2:first-of-type { margin-top: 0; }
h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; margin-top: 32px; color: #C5CAE9; }
h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
p { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; }

.lead { font-size: 18px; color: var(--text-muted); margin-bottom: 24px; }

/* ── BOXES ── */
.info-box {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(92,107,192,0.08);
  border: 1px solid rgba(92,107,192,0.2);
  border-radius: var(--radius);
  padding: 16px 18px; margin: 20px 0;
}
.info-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.info-box strong { display: block; color: var(--text); margin-bottom: 4px; }
.info-box span { font-size: 14px; color: var(--text-muted); }

.tip-box {
  background: rgba(255,193,7,0.07);
  border: 1px solid rgba(255,193,7,0.2);
  border-radius: var(--radius);
  padding: 14px 18px; margin: 16px 0;
  font-size: 14px; color: #FFE082;
}
.tip-box strong { color: #FFD54F; }

.warning-box {
  background: rgba(229,57,53,0.07);
  border: 1px solid rgba(229,57,53,0.2);
  border-radius: var(--radius);
  padding: 14px 18px; margin: 16px 0;
  font-size: 14px; color: #EF9A9A;
}

/* ── FEATURE LIST ── */
.feature-list {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
  margin: 12px 0 20px;
}
.feature-list li {
  font-size: 15px; color: var(--text-muted);
  padding-right: 20px; position: relative;
}

/* ── LTR OVERRIDES ── */
[dir="ltr"] .feature-list li { padding-right: 0; padding-left: 20px; }
[dir="ltr"] .feature-list li::before { right: auto; left: 0; }
[dir="ltr"] .toc-sub { padding-right: 10px; padding-left: 20px; }
[dir="ltr"] .step-num { margin-left: 0; margin-right: 12px; }
[dir="ltr"] .step { flex-direction: row; }
[dir="ltr"] .info-box { flex-direction: row; }
[dir="ltr"] .highlight-points { flex-direction: column; }
[dir="ltr"] .h-point { flex-direction: row; }
[dir="ltr"] .reflect-questions { flex-direction: column; }
[dir="ltr"] .rq-item { flex-direction: row; }
[dir="ltr"] .two-col { flex-direction: row; }
[dir="ltr"] .tips-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
[dir="ltr"] .topnav-inner { flex-direction: row; }
[dir="ltr"] .back-link { margin-right: auto; margin-left: 0; }
[dir="ltr"] .nav-logo { margin-right: auto; margin-left: 0; }
[dir="ltr"] .sidebar { order: 0; }
[dir="ltr"] .content { order: 1; }
[dir="ltr"] .pattern-grid { direction: ltr; }
[dir="ltr"] .cat-table { direction: ltr; }
[dir="ltr"] .tag-list { direction: ltr; }
[dir="ltr"] .doc-footer { text-align: center; }
[dir="ltr"] .section-header { text-align: center; }
[dir="ltr"] .h1, [dir="ltr"] h2, [dir="ltr"] h3, [dir="ltr"] h4 { text-align: left; }
[dir="ltr"] .step-body { margin-right: 0; margin-left: 0; }
[dir="ltr"] .comp-group-header { flex-direction: row; }
[dir="ltr"] .comp-item { flex-direction: row; }
[dir="ltr"] .reminder-item { flex-direction: row; }
[dir="ltr"] .req-grid { direction: ltr; }
[dir="ltr"] .toggle-explain { direction: ltr; }
[dir="ltr"] .status-legend { direction: ltr; }
[dir="ltr"] .code-block { direction: ltr; text-align: left; }
[dir="ltr"] .reflect-questions { direction: ltr; }
[dir="ltr"] .pattern-card { text-align: left; }
[dir="ltr"] .tip-card { text-align: left; }

/* ── RTL OVERRIDES ── */
[dir="rtl"] .nav-logo { margin: 0 auto; }
[dir="rtl"] .back-link { margin-right: 0; margin-left: 16px; }
[dir="rtl"] .lang-selector { margin-right: 16px; margin-left: 0; }
[dir="rtl"] .sidebar { order: 0; }
[dir="rtl"] .content { order: 1; }
.feature-list li::before {
  content: '◆'; position: absolute; right: 0;
  color: var(--primary); font-size: 8px; top: 6px;
}

/* ── STEPS ── */
.steps { display: flex; flex-direction: column; gap: 0; margin: 20px 0; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.step-body h4 { margin-bottom: 4px; }
.step-body p { margin: 0; font-size: 14px; }

/* ── REQ BOX ── */
.req-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px; margin-top: 24px;
}
.req-box h4 { margin-bottom: 14px; }
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.req-item { display: flex; justify-content: space-between; font-size: 14px; }
.req-label { color: var(--text-muted); }
.req-val { color: var(--text); font-weight: 500; }

/* ── UI ANATOMY ── */
.ui-anatomy {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px; margin: 20px 0;
  display: flex; flex-direction: column; gap: 10px;
}
.anatomy-item {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px; color: var(--text-muted);
}
.anatomy-num {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: rgba(92,107,192,0.2);
  border: 1px solid rgba(92,107,192,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #9FA8DA;
}
.anatomy-item strong { color: var(--text); }

/* ── CODE BLOCK ── */
.code-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px; margin: 16px 0;
  font-family: monospace;
}
.cb-row { display: flex; gap: 10px; align-items: center; padding: 4px 0; font-size: 14px; color: var(--text-muted); }
.cb-icon { color: #4CAF50; }
.cb-dots { display: flex; gap: 6px; margin-top: 10px; justify-content: center; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); }
.dot.active { background: var(--primary); }

/* ── TWO COL ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.col-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.col-icon { font-size: 28px; margin-bottom: 10px; }
.col-card h4 { margin-bottom: 8px; }
.col-card p { font-size: 14px; margin: 0; }

/* ── LOGIC TABLE ── */
.logic-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; margin: 20px 0;
}
.lt-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  padding: 12px 20px; gap: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px; align-items: center;
}
.lt-row:last-child { border-bottom: none; }
.lt-header { background: rgba(255,255,255,0.03); font-weight: 600; color: var(--text-muted); font-size: 12px; }
.badge-quick {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  background: rgba(245,124,0,0.15); color: #FFCC80;
  font-size: 12px; font-weight: 600;
}
.badge-full {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  background: rgba(92,107,192,0.2); color: #9FA8DA;
  font-size: 12px; font-weight: 600;
}

/* ── RANGE PILLS ── */
.range-pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 24px; }
.pill {
  padding: 6px 16px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted); cursor: pointer;
}
.pill.active { background: var(--primary); border-color: var(--primary); color: white; font-weight: 600; }

/* ── CARDS DEMO ── */
.cards-demo { display: flex; gap: 12px; margin: 20px 0; flex-wrap: wrap; }
.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px; flex: 1; min-width: 140px;
}
.demo-card.clickable { border-color: rgba(92,107,192,0.3); cursor: pointer; }
.dc-label { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.dc-value { font-size: 28px; font-weight: 800; color: var(--text); }
.dc-sub { font-size: 11px; color: var(--text-dim); margin-top: 4px; }

/* ── TOGGLE EXPLAIN ── */
.toggle-explain {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; margin: 16px 0;
}
.te-row {
  display: flex; gap: 16px; padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.te-row:last-child { border-bottom: none; }
.te-label { flex: 0 0 180px; color: var(--text-muted); font-weight: 500; }
.te-desc { color: var(--text-dim); }
.te-desc strong { color: var(--text); }

/* ── STATUS LEGEND ── */
.status-legend { display: flex; gap: 20px; flex-wrap: wrap; margin: 16px 0; }
.sl-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }
.sl-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

/* ── NOTIF DEMO ── */
.notif-demo { margin: 20px 0; }
.notif-card {
  background: #1C1C1E;
  border-radius: 14px;
  padding: 14px 16px;
  max-width: 380px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.notif-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.notif-app-icon {
  width: 20px; height: 20px; border-radius: 5px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
}
.notif-app-name { font-size: 12px; color: #8E8E93; flex: 1; }
.notif-time { font-size: 11px; color: #8E8E93; }
.notif-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.notif-text { font-size: 13px; color: #8E8E93; margin-bottom: 12px; }
.notif-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.notif-btn {
  padding: 6px 14px; border-radius: 8px;
  background: rgba(255,255,255,0.08);
  font-size: 12px; font-weight: 500; color: var(--text);
}
.notif-btn.stop { background: rgba(229,57,53,0.2); color: #EF9A9A; }

/* ── REMINDER LIST ── */
.reminder-list { display: flex; flex-direction: column; gap: 0; margin: 20px 0; }
.reminder-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.reminder-item:last-child { border-bottom: none; }
.reminder-time {
  flex: 0 0 60px; font-size: 15px; font-weight: 700;
  color: var(--primary); padding-top: 2px;
}
.reminder-body h4 { margin-bottom: 4px; }
.reminder-body p { font-size: 14px; margin: 0; }

/* ── CAT TABLE ── */
.cat-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; margin: 20px 0;
}
.ct-row {
  display: grid; grid-template-columns: 1fr 1.2fr 0.8fr 1.5fr;
  padding: 11px 20px; gap: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px; align-items: center;
}
.ct-row:last-child { border-bottom: none; }
.ct-header { background: rgba(255,255,255,0.03); font-weight: 600; color: var(--text-muted); font-size: 12px; }
.ct-row span { color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.ct-row span:first-child { color: var(--text); font-weight: 500; }
.color-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ── FEATURE OVERVIEW ── */
.feature-overview {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0;
}
.fo-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: 8px 16px;
  font-size: 14px; color: var(--text-muted);
}
.fo-icon { font-size: 16px; }

/* ── TIPS GRID ── */
.tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.tip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.2s;
}
.tip-card:hover { border-color: rgba(92,107,192,0.3); transform: translateY(-2px); }
.tip-emoji { font-size: 28px; margin-bottom: 10px; }
.tip-card h4 { margin-bottom: 8px; }
.tip-card p { font-size: 14px; margin: 0; }

/* ── DOC FOOTER ── */
.doc-footer {
  margin-top: 60px; padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.doc-footer p { font-size: 13px; color: var(--text-dim); margin: 0; }
.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  padding: 10px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  transition: all 0.2s;
}
.back-btn:hover { background: var(--surface2); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .content { padding: 32px 24px; }
  .two-col { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .ct-row { grid-template-columns: 1fr 1fr; }
  .ct-row span:nth-child(3), .ct-row span:nth-child(4) { display: none; }
  .lt-row { grid-template-columns: 1fr 1fr; }
  .lt-row span:nth-child(2) { display: none; }
}

/* ── COMPENSATION DEMO ── */
.comp-demo { margin: 20px 0; }
.comp-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.comp-group-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.comp-date { font-weight: 600; color: var(--text); flex: 1; }
.comp-count { font-size: 12px; color: var(--text-dim); }
.comp-chevron { color: var(--text-dim); font-size: 11px; }
.comp-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.comp-item:last-child { border-bottom: none; }
.comp-icon { font-size: 20px; flex-shrink: 0; }
.comp-body { flex: 1; }
.comp-title { color: var(--text); font-weight: 500; margin-bottom: 3px; }
.comp-sub { color: var(--text-dim); font-size: 12px; }
.comp-badge {
  padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 600; flex-shrink: 0;
}
.pending-badge { background: rgba(245,124,0,0.15); color: #FFCC80; }
.done-badge { background: rgba(76,175,80,0.15); color: #A5D6A7; }

/* ── RECURRENCE GRID ── */
.recur-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin: 20px 0;
}
.recur-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px; text-align: center;
  transition: all 0.2s;
}
.recur-item.highlight { border-color: rgba(92,107,192,0.4); }
.recur-item:hover { border-color: rgba(92,107,192,0.3); transform: translateY(-2px); }
.recur-icon { font-size: 24px; margin-bottom: 8px; }
.recur-label { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.recur-desc { font-size: 12px; color: var(--text-dim); }

/* ── HADITH DEMO ── */
.hadith-demo {
  background: var(--surface);
  border: 1px solid rgba(124,77,255,0.2);
  border-radius: var(--radius);
  padding: 24px 28px; margin: 20px 0;
  text-align: center;
}
.hadith-arabic {
  font-size: 20px; font-weight: 700; color: var(--text);
  line-height: 1.8; margin-bottom: 14px;
  direction: rtl;
}
.hadith-farsi {
  font-size: 15px; color: var(--text-muted);
  line-height: 1.8; margin-bottom: 10px;
}
.hadith-ref {
  font-size: 13px; color: var(--text-dim);
  font-style: italic;
}

/* ── TIME TRAVEL CONTROLS ── */
.timetravel-controls {
  display: flex; flex-direction: column; gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; margin: 20px 0;
}
.tt-item {
  display: flex; gap: 16px; align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.tt-item:last-child { border-bottom: none; }
.tt-icon { font-size: 22px; flex-shrink: 0; width: 32px; text-align: center; }
.tt-label { font-weight: 600; color: var(--text); margin-bottom: 3px; }
.tt-desc { font-size: 13px; color: var(--text-dim); }

@media (max-width: 900px) {
  .recur-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── REFLECT QUESTIONS ── */
.reflect-questions {
  display: flex; flex-direction: column; gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; margin: 20px 0;
}
.rq-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.rq-item:last-child { border-bottom: none; }
.rq-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: white;
}
.rq-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.rq-desc { font-size: 13px; color: var(--text-dim); }

/* ── PROGRESS BUTTONS ── */
.progress-btns {
  display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap;
}
.pb-item {
  flex: 1; min-width: 120px;
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; text-align: center;
  border: 1px solid var(--border);
}
.pb-item.regress { background: rgba(229,57,53,0.08); color: #EF9A9A; border-color: rgba(229,57,53,0.2); }
.pb-item.same { background: rgba(255,255,255,0.04); color: var(--text-muted); }
.pb-item.progress { background: rgba(76,175,80,0.08); color: #A5D6A7; border-color: rgba(76,175,80,0.2); }

/* ── PATTERN GRID ── */
.pattern-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin: 20px 0;
}
.pattern-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px; text-align: center;
  transition: all 0.2s;
}
.pattern-card:hover { border-color: rgba(92,107,192,0.4); transform: translateY(-2px); }
.pattern-emoji { font-size: 28px; margin-bottom: 8px; }
.pattern-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.pattern-desc { font-size: 12px; color: var(--text-dim); line-height: 1.5; }

/* ── TAG GROUPS ── */
.tag-groups { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.tag-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.tag-group-label {
  font-size: 12px; font-weight: 700; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  padding: 4px 12px; border-radius: 100px;
  background: rgba(92,107,192,0.1);
  border: 1px solid rgba(92,107,192,0.2);
  font-size: 13px; color: #9FA8DA;
}

@media (max-width: 900px) {
  .pattern-grid { grid-template-columns: repeat(2, 1fr); }
  .progress-btns { flex-direction: column; }
}
