@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;0,900;1,700&family=DM+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --ink: #0f0e0d;
  --paper: #faf8f3;
  --cream: #f2ede2;
  --cream-dark: #e8e1d0;
  --saffron: #e85d04;
  --saffron-light: #ff9a3c;
  --saffron-pale: #fff3eb;
  --green: #1b4332;
  --green-mid: #2d6a4f;
  --green-light: #d8f3dc;
  --gold: #c9860a;
  --gold-pale: #fff8e0;
  --blue: #1565c0;
  --blue-pale: #e8f0fe;
  --purple: #6a1b9a;
  --purple-pale: #f3e5f5;
  --muted: #6b6558;
  --border: #ddd8cc;
  --shadow-soft: 0 2px 20px rgba(15, 14, 13, 0.06);
  --shadow-card: 0 4px 32px rgba(15, 14, 13, 0.10);
  --shadow-heavy: 0 12px 48px rgba(15, 14, 13, 0.16);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-xs: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--ink);
  color: #aaa;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 6px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.03em;
}

.ticker-wrap {
  overflow: hidden;
  flex: 1;
}

.ticker {
  display: flex;
  gap: 40px;
  animation: ticker 35s linear infinite;
  white-space: nowrap;
}

.ticker:hover {
  animation-play-state: paused;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.ticker-item em {
  color: var(--saffron);
  font-style: normal;
  margin-right: 6px;
}

.topbar-right {
  display: flex;
  gap: 16px;
  padding-left: 24px;
  flex-shrink: 0;
}

.topbar-right a {
  color: #888;
  text-decoration: none;
  transition: color 0.15s;
}

.topbar-right a:hover {
  color: var(--saffron-light);
}

/* ── HEADER ── */
.site-header {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 220;
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--saffron);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  color: white;
  font-size: 1.1rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.logo-name em {
  color: var(--saffron);
  font-style: normal;
}

.logo-sub {
  font-size: 0.58rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.nav-toggle:hover {
  background: var(--cream);
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.18s;
  white-space: nowrap;
  letter-spacing: 0.01em;
  position: relative;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--cream);
}

.nav-link.active {
  color: var(--ink);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--saffron);
  border-radius: 2px;
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 6px;
}

.btn-primary {
  background: var(--saffron);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
  padding: 8px 20px;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--cream);
}

/* ── TAGS / BADGES ── */
.tag {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.tag-prelims {
  background: var(--saffron-pale);
  color: var(--saffron);
  border: 1px solid #f5c9a8;
}

.tag-mains {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid #b7e4c7;
}

.tag-gs1 {
  background: var(--purple-pale);
  color: var(--purple);
  border: 1px solid #d8b4f8;
}

.tag-gs2 {
  background: var(--blue-pale);
  color: var(--blue);
  border: 1px solid #b3c8f7;
}

.tag-gs3 {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid #b7e4c7;
}

.tag-gs4 {
  background: #fce8d4;
  color: #7b3000;
  border: 1px solid #f5c099;
}

.tag-rj {
  background: var(--gold-pale);
  color: var(--gold);
  border: 1px solid #f0d490;
}

.tag-topic {
  background: var(--cream);
  color: var(--muted);
  border: 1px solid var(--border);
}

.priority-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.priority-dot.high {
  background: var(--saffron);
}

.priority-dot.medium {
  background: var(--gold);
}

.priority-dot.low {
  background: #ccc;
}

.diff-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.diff-hard {
  background: #fdecea;
  color: #b71c1c;
  border: 1px solid #f5a5a0;
}

.diff-medium {
  background: var(--gold-pale);
  color: #7a4000;
  border: 1px solid #f5dc9a;
}

.diff-easy {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid #b7e4c7;
}

/* ── LAYOUT ── */
.page-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 44px;
  align-items: start;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.section-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.section-head .sub {
  color: var(--muted);
  font-size: 0.78rem;
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ── ARTICLE CARD ── */
.article-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 20px;
  transition: all 0.25s;
  position: relative;
  cursor: pointer;
  animation: fadeUp 0.4s ease both;
}

.article-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--border);
  border-radius: 4px 0 0 4px;
  transition: background 0.2s;
}

.article-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.article-card:hover::before,
.article-card.high::before {
  background: var(--saffron);
}

.article-card.medium::before {
  background: var(--gold);
}

.card-meta {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 11px;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 11px;
  transition: color 0.15s;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-card:hover .card-title {
  color: var(--saffron);
}

.card-points {
  list-style: none;
  margin-bottom: 16px;
}

.card-points li {
  font-size: 0.83rem;
  color: #2a2a2a;
  padding: 4px 0 4px 18px;
  position: relative;
  border-bottom: 1px dashed #ede8dc;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card-points li:last-child {
  border-bottom: none;
}

.card-points li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--saffron);
  font-size: 0.72rem;
  top: 6px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  gap: 10px;
  flex-wrap: wrap;
}

.card-source {
  font-size: 0.68rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.src-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-mid);
  flex-shrink: 0;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-sm {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: var(--radius-xs);
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.18s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-sm-primary {
  background: var(--saffron);
  color: white;
}

.btn-sm-primary:hover {
  background: #c44e00;
}

.btn-sm-outline {
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-sm-outline:hover {
  background: var(--cream-dark);
}

/* ── INTERLINKS ── */
.interlinks {
  background: var(--cream);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 14px;
  border: 1px solid var(--border);
}

.interlinks-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 10px;
}

.interlink-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--green-mid);
  padding: 5px 0;
  text-decoration: none;
  transition: color 0.15s;
  border-bottom: 1px dashed var(--border);
}

.interlink-item:last-child {
  border-bottom: none;
}

.interlink-item:hover {
  color: var(--saffron);
}

/* ── SIDEBAR ── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.widget-head {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--cream);
}

.widget-head a {
  color: var(--saffron);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
}

/* ── FILTER BAR ── */
.filter-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0px;
  z-index: 120;
  box-shadow: var(--shadow-soft);
}

.filter-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 8px 40px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  align-items: center;
  min-height: 54px;
}

.filter-inner::-webkit-scrollbar {
  display: none;
}

.filter-label {
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.chip {
  font-size: 0.73rem;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}

.chip:hover {
  border-color: var(--saffron);
  color: var(--saffron);
}

.chip.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.chip-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 6px;
  flex-shrink: 0;
}

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 14, 13, 0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: white;
  border-radius: 18px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
  animation: modalIn 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
  display: flex;
  flex-direction: column;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(24px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: 22px 26px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.modal-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--cream);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.modal-close:hover {
  background: var(--border);
}

.modal-body {
  padding: 24px 26px;
  overflow-y: auto;
  max-height: calc(90vh - 88px);
}

.otp-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.otp-modal-card {
  background: white;
  border-radius: 16px;
  padding: 36px 32px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  position: relative;
}

.otp-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #888;
}

.otp-modal-intro {
  text-align: center;
  margin-bottom: 24px;
}

.otp-modal-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.otp-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.otp-modal-copy {
  color: #6b6558;
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 30rem;
  margin: 0 auto;
}

.otp-modal-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #555;
  display: block;
  margin-bottom: 6px;
}

.otp-modal-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.otp-modal-phone {
  flex: 1;
  min-height: 56px;
  padding: 14px 16px;
  border: 1.5px solid #ddd;
  border-radius: 16px;
  font-size: 0.98rem;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  background: #fff;
}

.otp-modal-phone:focus,
.otp-single-box:focus {
  border-color: var(--saffron);
}

.otp-modal-btn {
  background: var(--saffron, #e85d04);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}

.otp-modal-btn.full {
  width: 100%;
  padding: 16px 18px;
  font-size: 1rem;
  border-radius: 16px;
}

.otp-modal-error {
  color: #e74c3c;
  font-size: 0.78rem;
  min-height: 16px;
}

.otp-modal-error-center {
  margin-top: 10px;
  text-align: center;
}

.otp-modal-hint {
  font-size: 0.68rem;
  color: #999;
  margin-top: 8px;
}

.otp-verify-copy {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 4px;
}

.otp-verify-meta {
  text-align: center;
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 16px;
}

.otp-profile-phase {
  margin-top: 8px;
}

.otp-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-light);
  border: 1px solid #b7e4c7;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0 0 18px;
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 600;
}

.otp-profile-title-wrap {
  margin-bottom: 18px;
}

.otp-profile-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #221d17;
}

.otp-profile-subtitle {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #6b6558;
}

.otp-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.otp-profile-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.otp-profile-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #4b463d;
}

.otp-profile-full {
  grid-column: 1 / -1;
}

.otp-verify-meta a {
  color: var(--saffron, #e85d04);
}

.otp-boxes {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.otp-single-box {
  width: 46px;
  height: 52px;
  text-align: center;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  outline: none;
  transition: border-color 0.2s;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--ink);
  color: #888;
  margin-top: 80px;
  padding: 56px 40px 28px;
}

.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.8;
  margin-top: 12px;
  max-width: 280px;
}

.footer-col h4 {
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: #777;
  font-size: 0.78rem;
  margin-bottom: 9px;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--saffron-light);
}

.footer-bottom {
  border-top: 1px solid #1e1c1a;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.7rem;
  color: #444;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.article-card:nth-child(1) {
  animation-delay: 0.04s;
}

.article-card:nth-child(2) {
  animation-delay: 0.10s;
}

.article-card:nth-child(3) {
  animation-delay: 0.16s;
}

.article-card:nth-child(4) {
  animation-delay: 0.22s;
}

.article-card:nth-child(5) {
  animation-delay: 0.28s;
}

/* ── FORM ELEMENTS ── */
.input-field {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.88rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  background: white;
  color: var(--ink);
}

.input-field:focus {
  border-color: var(--saffron);
}

.input-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  display: block;
}

/* ── PROGRESS BAR ── */
.prog-bar {
  background: var(--cream);
  border-radius: 4px;
  overflow: hidden;
  height: 6px;
}

.prog-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--saffron);
  transition: width 0.6s ease;
}

.prog-fill.green {
  background: var(--green-mid);
}

.prog-fill.gold {
  background: var(--gold);
}

/* ── NOTIFICATION BAR ── */
.notif-bar {
  background: var(--green);
  color: white;
  font-size: 0.77rem;
  padding: 9px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-bar strong {
  color: #a8e6c3;
}

.notif-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  cursor: pointer;
  padding: 0 4px;
}

.notif-close:hover {
  color: white;
}

/* ── STREAK (shared across index + dashboard) ── */
.streak-box {
  padding: 18px 18px 16px;
}

.streak-big {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--saffron);
  line-height: 1;
}

.streak-lbl {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 14px;
}

.streak-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.streak-cell {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--cream);
}

.streak-cell.done {
  background: var(--saffron);
}

.streak-cell.today {
  background: var(--ink);
}

/* ── LOAD MORE BUTTON (shared) ── */
.btn-load-more {
  background: white;
  color: var(--ink);
  border: 1.5px solid var(--border);
  padding: 12px 36px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}

.btn-load-more:hover {
  border-color: var(--ink);
  background: var(--cream);
}

.load-more-wrap {
  text-align: center;
  padding: 4px 0 36px;
}

/* ── THEME CARD MODIFIERS (microthemes) ── */
.theme-card.hot::after {
  background: var(--saffron);
}

.theme-card.warm::after {
  background: var(--gold);
}

.theme-card.cool::after {
  background: var(--blue);
}

/* also used as border modifier on article cards */
.article-card.high::before {
  background: var(--saffron);
}

.article-card.medium::before {
  background: var(--gold);
}

@media (max-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {

  .topbar,
  .notif-bar {
    display: none;
  }

  .header-inner {
    padding: 0 16px;
  }

  .page-container {
    padding: 0 16px;
  }

  .filter-inner {
    padding: 8px 16px;
    min-height: 50px;
  }

  .topbar,
  .notif-bar {
    display: none;
  }

  .site-header {
    top: 0;
  }

  .header-inner {
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 210;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-card);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link:not(.btn-primary) {
    display: block;
    padding: 12px 10px;
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-divider {
    display: none;
  }

  #nav-login-btn {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
  }

  .filter-bar {
    top: 0px;
  }

  .section-head .sub {
    margin-left: 0;
    width: 100%;
  }

  .article-card {
    padding: 18px;
  }

  .card-actions {
    width: 100%;
    justify-content: stretch;
  }

  .btn-sm {
    flex: 1 1 140px;
    white-space: normal;
  }

  .modal-overlay {
    padding: 12px;
  }

  .modal {
    border-radius: 14px;
    max-height: 92vh;
  }

  .modal-header {
    padding: 18px 18px 14px;
  }

  .modal-body {
    padding: 18px;
    max-height: calc(92vh - 76px);
  }

  .otp-modal-overlay {
    padding: 12px;
  }

  .otp-modal-card {
    padding: 26px 18px 20px;
    border-radius: 14px;
    max-width: 100%;
  }

  .otp-modal-row {
    flex-direction: column;
  }

  .otp-modal-btn {
    width: 100%;
    justify-content: center;
  }

  .otp-profile-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .otp-boxes {
    gap: 6px;
  }

  .otp-single-box {
    width: 42px;
    height: 48px;
    font-size: 1.15rem;
  }
}
