@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ─────────────────────────────────────────
   BASE
───────────────────────────────────────── */
body {
  font-family: 'Inter', sans-serif;
}

* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────
   PREMIUM DEPTH & ENGAGEMENT
   (Ambient Glows, Shimmers, Staggered Flow)
───────────────────────────────────────── */
.bg-blob {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -10;
  pointer-events: none;
  opacity: 0.12;
  transition: opacity 1s ease;
}

@keyframes shimmer-line {
  0% { transform: translateX(-100%) skewX(-20deg); opacity: 0; }
  20% { opacity: 0.5; }
  50% { transform: translateX(100%) skewX(-20deg); opacity: 0; }
  100% { transform: translateX(100%) skewX(-20deg); opacity: 0; }
}

.shimmer-underline {
  position: relative;
  overflow: hidden;
}

.shimmer-underline::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 40px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer-line 4s infinite linear;
}

.stagger-item {
  opacity: 0;
  animation: fadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

/* ─────────────────────────────────────────
   SCROLLBAR  (global)
───────────────────────────────────────── */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 99px;
}

.dark ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}

/* ─────────────────────────────────────────
   CARD  (index.html)
───────────────────────────────────────── */
.card {
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.15rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.05); /* Inner Glow */
}

a.card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(34, 211, 238, 0.07);
}

/* ─────────────────────────────────────────
   NAV LINK  (index.html)
───────────────────────────────────────── */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(34, 211, 238, 0.2);
}

.nav-link:hover .nav-arrow {
  opacity: 1;
  transform: translateX(2px);
}

.nav-arrow {
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  margin-left: auto;
}

.nav-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.05rem;
}

/* ─────────────────────────────────────────
   PROJECT / GAME CARD ENTRANCE  (projects.html, games.html)
───────────────────────────────────────── */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.project-card,
.game-card {
  animation: cardIn 0.28s ease both;
}

.card-link {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card-link:hover {
  transform: translateY(-3px);
}

/* ─────────────────────────────────────────
   FILTER PILLS  (projects.html, articles.html)
───────────────────────────────────────── */
html .filter-pill.active {
  background-color: #0891b2;
  color: #ffffff;
  border-color: #0891b2;
}

html.dark .filter-pill.active {
  background-color: #22d3ee;
  color: #0f172a;
  border-color: #22d3ee;
}

/* ─────────────────────────────────────────
   SEARCH INPUT  (projects.html, games.html, articles.html)
───────────────────────────────────────── */
.search-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.2);
  border-color: #0891b2;
}

.dark .search-input:focus {
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
  border-color: #22d3ee;
}

/* ─────────────────────────────────────────
   FEATURED SHIMMER TEXT  (projects.html, games.html)
───────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.featured-text {
  background: linear-gradient(90deg, #22d3ee 0%, #a5f3fc 40%, #22d3ee 70%, #0891b2 100%);
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─────────────────────────────────────────
   COMPLEXITY / DIFFICULTY DOTS
───────────────────────────────────────── */
.dot-on {
  background-color: #22d3ee;
}

.dot-off {
  background-color: #e5e7eb;
}

.dark .dot-off {
  background-color: #334155;
}

/* ─────────────────────────────────────────
   EMPTY STATE
───────────────────────────────────────── */
#no-results {
  display: none !important;
}

#no-results.visible {
  display: flex !important;
}

.ach-card {
  background: rgb(17, 24, 39);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ach-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  border-color: rgba(8, 145, 178, 0.25);
}

.card-photo {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ─────────────────────────────────────────
   STAT TILES  (achievements.html)
───────────────────────────────────────── */
.stat {
  background: rgba(8, 145, 178, 0.04);
  border: 1px solid rgba(8, 145, 178, 0.11);
  border-radius: 0.8rem;
  padding: 1rem 0.75rem;
  text-align: center;
}

.dark .stat {
  background: rgba(34, 211, 238, 0.04);
  border-color: rgba(34, 211, 238, 0.11);
}

/* ─────────────────────────────────────────
   FADE UP ANIMATION  (achievements.html, gallery.html)
───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.fade-up {
  animation: fadeUp 0.35s ease both;
}

/* ─────────────────────────────────────────
   TRADING CARD  (achievements.html)
───────────────────────────────────────── */
.trading-card {
  background: #ffffff;
  border: 1px solid rgba(8, 145, 178, 0.18);
  border-radius: 1rem;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dark .trading-card {
  background: rgb(17, 24, 39);
  border-color: rgba(34, 211, 238, 0.18);
}

.trading-card:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 145, 178, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.dark .trading-card:hover {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

/* ─────────────────────────────────────────
   EQUITY CHART  (achievements.html)
───────────────────────────────────────── */
#chart-wrap {
  position: relative;
  border-radius: 0.5rem;
  cursor: crosshair;
}

#equity-canvas {
  display: block;
  width: 100%;
  height: 90px;
  border-radius: 0.5rem;
}

#chart-tip {
  position: absolute;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(8, 145, 178, 0.3);
  border-radius: 0.45rem;
  padding: 6px 10px;
  font-size: 10px;
  line-height: 1.65;
  white-space: nowrap;
  color: #1e293b;
  display: none;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.dark #chart-tip {
  background: rgba(15, 23, 42, 0.95);
  color: #e2e8f0;
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* ─────────────────────────────────────────
   EXTERNAL LINK PILL  (achievements.html)
───────────────────────────────────────── */
.ext-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  transition: opacity 0.15s;
  text-decoration: none;
}

.ext-link:hover {
  opacity: 0.75;
}

/* ─────────────────────────────────────────
   GALLERY MASONRY LAYOUT  (gallery.html)
───────────────────────────────────────── */
.masonry {
  columns: 1;
  column-gap: 0.875rem;
}

@media (min-width: 640px) {
  .masonry {
    columns: 2;
  }
}

@media (min-width: 1024px) {
  .masonry {
    columns: 3;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 0.875rem;
  display: block;
}

/* ─────────────────────────────────────────
   PHOTO CARD  (gallery.html)
───────────────────────────────────────── */
.photo-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgb(229, 231, 235);
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.22s ease;
}

.dark .photo-card {
  background: rgb(17, 24, 39);
  border-color: rgba(255, 255, 255, 0.06);
}

.photo-card:hover {
  transform: translateY(-3px) scale(1.012);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(34, 211, 238, 0.14);
}

.dark .photo-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(34, 211, 238, 0.08);
}

.photo-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.22s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
}

.photo-card:hover .overlay {
  opacity: 1;
}

.photo-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-card:hover img {
  transform: scale(1.04);
}

/* ─────────────────────────────────────────
   TAG PILL  (gallery.html)
───────────────────────────────────────── */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  background: rgba(34, 211, 238, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.25);
}

/* ─────────────────────────────────────────
   LIGHTBOX  (gallery.html)
───────────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 16, 0.94);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1.5rem;
}

#lightbox.open {
  opacity: 1;
  pointer-events: all;
}

#lightbox-img {
  max-width: min(860px, 92vw);
  max-height: 80vh;
  border-radius: 1rem;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8);
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  font-size: 1.1rem;
}

#lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

#lightbox-nav {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lb-nav-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.lb-nav-btn:hover {
  background: rgba(34, 211, 238, 0.18);
  color: #22d3ee;
}

#lightbox-caption {
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 500;
  text-align: center;
  min-width: 120px;
}

#lightbox-meta {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

#lightbox-title {
  color: #f1f5f9;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

#lightbox-sub {
  color: #64748b;
  font-size: 0.75rem;
}

/* ─────────────────────────────────────────
   FILTER BUTTONS  (gallery.html)
───────────────────────────────────────── */
.filter-btn {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  border: 1px solid rgb(229, 231, 235);
  color: #6b7280;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dark .filter-btn {
  border-color: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.filter-btn:hover {
  border-color: rgba(34, 211, 238, 0.4);
  color: #22d3ee;
}

.filter-btn.active {
  background: rgba(8, 145, 178, 0.1);
  border-color: rgba(8, 145, 178, 0.4);
  color: #0891b2;
}

.dark .filter-btn.active {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.4);
  color: #22d3ee;
}

/* ─────────────────────────────────────────
   SKELETON LOADER  (gallery.html)
───────────────────────────────────────── */
@keyframes skeletonShimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

.skeleton {
  border-radius: 1rem;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 600px 100%;
  animation: skeletonShimmer 1.4s infinite linear;
}

.dark .skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 600px 100%;
}

/* ─────────────────────────────────────────
   ARTICLE CARD  (articles.html)
───────────────────────────────────────── */
.article-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

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

.article-tag {
  transition: background-color 0.1s ease, color 0.1s ease;
}

/* ─────────────────────────────────────────
   MODAL ANIMATIONS  (articles.html)
───────────────────────────────────────── */
.modal-backdrop {
  animation: fadeIn 0.2s ease;
}

.modal-content {
  animation: slideUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ─────────────────────────────────────────
   MODAL BODY STYLING  (articles.html)
───────────────────────────────────────── */

/* ── Scrollbar — clean, thin, themed ── */
.modal-scroll::-webkit-scrollbar {
  width: 5px;
}
.modal-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(8, 145, 178, 0.3);
  border-radius: 99px;
}
.modal-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(8, 145, 178, 0.55);
}
.dark .modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(34, 211, 238, 0.25);
}
.dark .modal-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 211, 238, 0.45);
}

/* ── Body wrapper ── */
.modal-body {
  font-size: 1.05rem !important;
  line-height: 2 !important;
  padding: 2.5rem 2.5rem 3.5rem !important;
}

@media (max-width: 640px) {
  .modal-body {
    font-size: 1rem !important;
    line-height: 1.9 !important;
    padding: 1.5rem 1.25rem 2.5rem !important;
  }
}

.modal-body p {
  font-size: 1.05rem !important;
  line-height: 2 !important;
  margin-top: 0 !important;
  margin-bottom: 1.75rem !important;
}

.modal-body h3 {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.015em !important;
  color: #0f172a !important;
  margin-top: 3rem !important;
  margin-bottom: 1.25rem !important;
  padding-bottom: 0.65rem !important;
  border-bottom: 2px solid rgba(8, 145, 178, 0.2) !important;
}

.dark .modal-body h3 {
  color: #f1f5f9 !important;
  border-bottom-color: rgba(34, 211, 238, 0.2) !important;
}

.modal-body h3[style] {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: #0891b2 !important;
  margin-top: 2.25rem !important;
  margin-bottom: 0.75rem !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
  letter-spacing: -0.005em !important;
}

.dark .modal-body h3[style] {
  color: #22d3ee !important;
}

.modal-body > *:first-child {
  margin-top: 0 !important;
}

.modal-body .section-divider {
  height: 1px !important;
  background: linear-gradient(
    to right,
    transparent,
    rgba(8, 145, 178, 0.35) 20%,
    rgba(8, 145, 178, 0.35) 80%,
    transparent
  ) !important;
  margin: 3rem 0 !important;
  border: none !important;
}

.dark .modal-body .section-divider {
  background: linear-gradient(
    to right,
    transparent,
    rgba(34, 211, 238, 0.3) 20%,
    rgba(34, 211, 238, 0.3) 80%,
    transparent
  ) !important;
}

.modal-body ul {
  margin-bottom: 1.75rem !important;
  padding-left: 0 !important;
  list-style: none !important;
}

.modal-body ul li {
  position: relative !important;
  padding-left: 1.6rem !important;
  margin-bottom: 1rem !important;
  line-height: 1.85 !important;
  font-size: 1.05rem !important;
}

.modal-body ul li::before {
  content: '▸' !important;
  position: absolute !important;
  left: 0 !important;
  font-size: 0.75rem !important;
  top: 0.35rem !important;
  color: #0891b2 !important;
}

.dark .modal-body ul li::before {
  color: #22d3ee !important;
}

.modal-body .callout {
  background: rgba(8, 145, 178, 0.06) !important;
  border-left: 3px solid #0891b2 !important;
  border-radius: 0 0.6rem 0.6rem 0 !important;
  padding: 1.25rem 1.5rem !important;
  margin: 2rem 0 !important;
}

.dark .modal-body .callout {
  background: rgba(34, 211, 238, 0.06) !important;
  border-left-color: #22d3ee !important;
}

.modal-body .callout-warning {
  background: rgba(217, 119, 6, 0.07) !important;
  border-left-color: #d97706 !important;
}

.dark .modal-body .callout-warning {
  background: rgba(251, 191, 36, 0.07) !important;
  border-left-color: #fbbf24 !important;
}

.modal-body .callout-danger {
  background: rgba(220, 38, 38, 0.06) !important;
  border-left-color: #dc2626 !important;
}

.dark .modal-body .callout-danger {
  background: rgba(239, 68, 68, 0.07) !important;
  border-left-color: #ef4444 !important;
}

.modal-body .callout p,
.modal-body .callout div {
  font-size: 0.9375rem !important;
  line-height: 1.8 !important;
  margin-bottom: 0.5rem !important;
}

.modal-body .callout p:last-child,
.modal-body .callout div:last-child {
  margin-bottom: 0 !important;
}

.modal-body .verdict-box {
  background: rgba(8, 145, 178, 0.05) !important;
  border: 1px solid rgba(8, 145, 178, 0.22) !important;
  border-radius: 0.85rem !important;
  padding: 1.5rem 1.75rem !important;
  margin: 2rem 0 !important;
}

.dark .modal-body .verdict-box {
  background: rgba(34, 211, 238, 0.05) !important;
  border-color: rgba(34, 211, 238, 0.2) !important;
}

.modal-body .verdict-box p {
  font-size: 1rem !important;
  line-height: 1.85 !important;
  margin-bottom: 0.75rem !important;
}

.modal-body .verdict-box p:last-child {
  margin-bottom: 0 !important;
}

.modal-body .timeline-item {
  display: flex !important;
  gap: 1rem !important;
  margin-bottom: 1.35rem !important;
  font-size: 1rem !important;
  line-height: 1.8 !important;
}

.modal-body .timeline-dot {
  flex-shrink: 0 !important;
  width: 0.65rem !important;
  height: 0.65rem !important;
  border-radius: 50% !important;
  background: #0891b2 !important;
  margin-top: 0.45rem !important;
}

.dark .modal-body .timeline-dot {
  background: #22d3ee !important;
}

.modal-body .two-col {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1rem !important;
  margin: 1.5rem 0 !important;
}

@media (max-width: 560px) {
  .modal-body .two-col {
    grid-template-columns: 1fr !important;
  }
}

.modal-body .col-box {
  border-radius: 0.65rem !important;
  padding: 1.1rem 1.25rem !important;
}

.modal-body .col-box p {
  font-size: 0.9375rem !important;
  line-height: 1.75 !important;
  margin-bottom: 0.5rem !important;
}

.modal-body .col-box p:last-child {
  margin-bottom: 0 !important;
}

.modal-body .col-box-green {
  background: rgba(22, 163, 74, 0.05) !important;
  border: 1px solid rgba(22, 163, 74, 0.2) !important;
}

.dark .modal-body .col-box-green {
  background: rgba(34, 197, 94, 0.07) !important;
  border-color: rgba(34, 197, 94, 0.2) !important;
}

.modal-body .col-box-red {
  background: rgba(220, 38, 38, 0.05) !important;
  border: 1px solid rgba(220, 38, 38, 0.2) !important;
}

.dark .modal-body .col-box-red {
  background: rgba(239, 68, 68, 0.07) !important;
  border-color: rgba(239, 68, 68, 0.2) !important;
}

/* ─────────────────────────────────────────
   BOX SIZING (global reset)
───────────────────────────────────────── */
* {
  box-sizing: border-box;
}

/* ─────────────────────────────────────────
   SIP CALCULATOR (sip.html)
───────────────────────────────────────── */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
  transition: opacity .15s;
}
input[type=range]:hover { opacity: .9; }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2.5px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.range-cyan {
  background: linear-gradient(to right, #06b6d4 var(--val,50%), #1e293b var(--val,50%));
}
.range-cyan::-webkit-slider-thumb { background: #06b6d4; }
.dark .range-cyan {
  background: linear-gradient(to right, #06b6d4 var(--val,50%), #e2e8f0 var(--val,50%));
}
.range-violet {
  background: linear-gradient(to right, #8b5cf6 var(--val,50%), #1e293b var(--val,50%));
}
.range-violet::-webkit-slider-thumb { background: #8b5cf6; }
.dark .range-violet {
  background: linear-gradient(to right, #8b5cf6 var(--val,50%), #e2e8f0 var(--val,50%));
}

.app-card { transition: transform .2s ease, box-shadow .2s ease; }
.app-card:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.dark .app-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,.1); }

.bbar { transition: width .6s cubic-bezier(.4,0,.2,1); }
.stepup-active { box-shadow: 0 0 0 2px #06b6d4; }
.stat-val { font-variant-numeric: tabular-nums; transition: color .3s; }
.toggle-track { transition: background-color .25s; }

.tab-btn { position: relative; transition: color .2s; }
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #06b6d4;
  border-radius: 999px;
  transform: scaleX(0);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.tab-btn.active { color: #06b6d4; }
.tab-btn.active::after { transform: scaleX(1); }

[data-tip] { position: relative; cursor: help; }
[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #e2e8f0;
  font-size: .7rem;
  padding: .3rem .6rem;
  border-radius: .5rem;
  white-space: nowrap;
  z-index: 99;
  pointer-events: none;
  border: 1px solid #334155;
}
.dark [data-tip]:hover::after {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.fade-up-1 { animation-delay: .05s; }
.fade-up-2 { animation-delay: .1s; }
.fade-up-3 { animation-delay: .15s; }
.fade-up-4 { animation-delay: .2s; }
.fade-up-5 { animation-delay: .25s; }

.glow-cyan { box-shadow: 0 0 24px rgba(6,182,212,.18); }

/* ─────────────────────────────────────────
   CALCULATOR (calculator.html)
───────────────────────────────────────── */
.mono { font-family: 'JetBrains Mono', monospace; }

.glass {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(0,0,0,.08);
}
.dark .glass {
  background: rgba(15,23,42,.72);
  border-color: rgba(255,255,255,.08);
}

@keyframes ripple {
  from { transform: scale(0); opacity: .4; }
  to   { transform: scale(2.5); opacity: 0; }
}
.btn-ripple { position: relative; overflow: hidden; }
.btn-ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: white;
  transform: scale(0);
  opacity: 0;
}
.btn-ripple:active::after { animation: ripple .35s ease-out; }

#display { transition: font-size .1s; }

.mode-tab { transition: all .2s; }
.mode-tab.active {
  background: rgba(6,182,212,.15);
  color: #0891b2;
  border-color: rgba(6,182,212,.3);
}
.dark .mode-tab.active {
  background: rgba(6,182,212,.18);
  color: #06b6d4;
  border-color: rgba(6,182,212,.35);
}
.mode-tab:not(.active) { color: rgba(0,0,0,.4); border-color: transparent; }
.dark .mode-tab:not(.active) { color: rgba(255,255,255,.45); border-color: transparent; }

.btn-op  { background: rgba(217,119,6,.12); color: #d97706; }
.btn-op:hover { background: rgba(217,119,6,.22); }
.dark .btn-op  { background: rgba(251,191,36,.1); color: #fbbf24; }
.dark .btn-op:hover { background: rgba(251,191,36,.2); }
.btn-eq {
  background: linear-gradient(135deg,#06b6d4,#3b82f6);
  box-shadow: 0 6px 24px rgba(6,182,212,.35);
}
.btn-eq:hover  { opacity: .92; }
.btn-eq:active { transform: scale(.96); }
.btn-num { background: rgba(0,0,0,.04); }
.btn-num:hover { background: rgba(0,0,0,.1); }
.dark .btn-num { background: rgba(255,255,255,.05); }
.dark .btn-num:hover { background: rgba(255,255,255,.1); }
.btn-fn  { background: rgba(0,0,0,.04); color: rgba(0,0,0,.6); }
.btn-fn:hover { background: rgba(0,0,0,.1); }
.dark .btn-fn  { background: rgba(255,255,255,.03); color: rgba(255,255,255,.7); }
.dark .btn-fn:hover { background: rgba(255,255,255,.09); }
.btn-ac  { background: rgba(239,68,68,.1); color: #ef4444; }
.btn-ac:hover { background: rgba(239,68,68,.15); }
.dark .btn-ac  { background: rgba(239,68,68,.12); color: #f87171; }
.dark .btn-ac:hover { background: rgba(239,68,68,.22); }

.hist-item { transition: background .15s; }
.hist-item:hover { background: rgba(0,0,0,.06); }
.dark .hist-item:hover { background: rgba(255,255,255,.06); }

.sci-btn {
  font-size: .7rem;
  font-weight: 600;
  background: rgba(109,40,217,.08);
  color: #7c3aed;
  border: 1px solid rgba(109,40,217,.2);
  border-radius: .75rem;
  padding: .5rem;
  transition: all .15s;
  cursor: pointer;
}
.sci-btn:hover { background: rgba(109,40,217,.18); }
.dark .sci-btn {
  background: rgba(139,92,246,.1);
  color: #a78bfa;
  border-color: rgba(139,92,246,.18);
}
.dark .sci-btn:hover { background: rgba(139,92,246,.2); }

#angle-badge { cursor: pointer; user-select: none; }

/* ───────────────────────────────────────────
   BUDGET TRACKER (budget.html)
─────────────────────────────────────────── */

/* ── Balance card: force white text always (it's on a dark gradient) ── */
.budget-page #balance-card,
.budget-page #balance-card * {
  color: #ffffff !important;
}

/* Savings-rate pill inside card */
.budget-page #balance-card #savings-rate {
  color: #ffffff !important;
}

.budget-page .app-card {
  background-color: #ffffff;
  border: 1px solid rgb(229, 231, 235);
}

.dark .budget-page .app-card {
  background-color: rgb(15, 23, 42);
  border-color: rgba(255, 255, 255, 0.08);
}

.budget-page .app-card:hover {
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.dark .budget-page .app-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.budget-page .budget-icon-btn {
  background: #ffffff;
  color: #334155;
  border: 1px solid rgb(229, 231, 235);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.budget-page .budget-icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(8, 145, 178, 0.4);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.dark .budget-page .budget-icon-btn {
  background: rgb(30, 41, 59);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.dark .budget-page .budget-icon-btn:hover {
  border-color: rgba(34, 211, 238, 0.35);
}

.budget-page #name-modal {
  backdrop-filter: blur(8px);
}

.budget-page #name-input,
.budget-page #description,
.budget-page #amount,
.budget-page #type,
.budget-page #mode,
.budget-page #category,
.budget-page #filter-category,
.budget-page #filter-type {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  color-scheme: light !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.budget-page #name-input::placeholder,
.budget-page #description::placeholder,
.budget-page #amount::placeholder {
  color: #94a3b8 !important;
}

html.dark .budget-page #name-input,
html.dark .budget-page #description,
html.dark .budget-page #amount,
html.dark .budget-page #type,
html.dark .budget-page #mode,
html.dark .budget-page #category,
html.dark .budget-page #filter-category,
html.dark .budget-page #filter-type {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
  color-scheme: dark !important;
}

html.dark .budget-page #name-input::placeholder,
html.dark .budget-page #description::placeholder,
html.dark .budget-page #amount::placeholder {
  color: #64748b !important;
}

.budget-page #name-input:focus,
.budget-page #description:focus,
.budget-page #amount:focus,
.budget-page #type:focus,
.budget-page #mode:focus,
.budget-page #category:focus,
.budget-page #filter-category:focus,
.budget-page #filter-type:focus {
  outline: none;
  border-color: #0891b2 !important;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.16);
}

html.dark .budget-page #name-input:focus,
html.dark .budget-page #description:focus,
html.dark .budget-page #amount:focus,
html.dark .budget-page #type:focus,
html.dark .budget-page #mode:focus,
html.dark .budget-page #category:focus,
html.dark .budget-page #filter-category:focus,
html.dark .budget-page #filter-type:focus {
  border-color: #22d3ee !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}

.budget-page .budget-entry-item {
  background: #ffffff;
  border: 1px solid rgb(229, 231, 235);
}

.dark .budget-page .budget-entry-item {
  background: rgb(15, 23, 42);
  border-color: rgba(255, 255, 255, 0.08);
}

.budget-page .budget-entry-item:hover {
  border-color: rgba(34, 211, 238, 0.32);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.dark .budget-page .budget-entry-item:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.budget-page #toast {
  transition: opacity 0.3s, transform 0.3s;
  background: rgba(15, 23, 42, 0.94);
  color: #e2e8f0;
  border: 1px solid rgba(34, 211, 238, 0.2);
  box-shadow: 0 18px 45px rgba(2, 8, 23, 0.24);
}

.dark .budget-page #toast {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(34, 211, 238, 0.24);
}

.budget-page #entries-empty,
.budget-page #chart-empty {
  color: #94a3b8;
}

.dark .budget-page #entries-empty,
.dark .budget-page #chart-empty {
  color: #64748b;
}

.budget-page .prog-bar {
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.budget-page .glow-cyan {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.budget-page .glow-green {
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.budget-page .glow-red {
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.budget-page .d1 { animation-delay: .05s; }
.budget-page .d2 { animation-delay: .1s; }
.budget-page .d3 { animation-delay: .15s; }
.budget-page .d4 { animation-delay: .2s; }
.budget-page .d5 { animation-delay: .25s; }
.budget-page .d6 { animation-delay: .3s; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.budget-page .entry-item {
  animation: slideIn 0.25s ease both;
}

/* ═══════════════════════════════════════════════════════════════
   ARTICLES PAGE  (articles.html)
   All styles scoped to .articles-page or unique class names
   so nothing bleeds into projects.html / games.html / etc.
═══════════════════════════════════════════════════════════════ */

/* ── Article filter pills (scoped — no bleed to other pages) ──
   Uses .art-filter instead of .filter-pill to avoid conflicts  */
.art-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgb(209, 213, 219);
  color: #6b7280;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  line-height: 1.4;
}

.dark .art-filter {
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.art-filter:not(.active):hover {
  border-color: rgba(8, 145, 178, 0.4);
  color: #0891b2;
}

.dark .art-filter:not(.active):hover {
  border-color: rgba(34, 211, 238, 0.35);
  color: #22d3ee;
}

/* Active state — filled, same as home page's cyan accent */
html .art-filter.active {
  background-color: #0891b2;
  border-color: #0891b2;
  color: #ffffff;
}

html.dark .art-filter.active {
  background-color: #22d3ee;
  border-color: #22d3ee;
  color: #0f172a;
}

/* ── Article card — reuses .card from global.css,
   adds entrance animation + hover lift               ── */
.art-card {
  animation: cardIn 0.26s ease both;
}

/* ── Article meta items (date / read time) ── */
.art-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.68rem;
  color: #9ca3af;
  font-weight: 500;
}

.dark .art-meta {
  color: #64748b;
}

.art-meta i { font-size: 0.6rem; }

.art-meta-dot {
  font-size: 0.6rem;
  color: #e5e7eb;
  line-height: 1;
}

.dark .art-meta-dot { color: #334155; }

/* ── Category badges ── */
.cat-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
}

.cat-badge-cyan {
  background: rgba(8, 145, 178, 0.08);
  color: #0891b2;
  border: 1px solid rgba(8, 145, 178, 0.18);
}
.dark .cat-badge-cyan {
  background: rgba(34, 211, 238, 0.09);
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.18);
}

.cat-badge-amber {
  background: rgba(217, 119, 6, 0.07);
  color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.16);
}
.dark .cat-badge-amber {
  background: rgba(251, 191, 36, 0.08);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.18);
}

.cat-badge-indigo {
  background: rgba(99, 102, 241, 0.07);
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.16);
}
.dark .cat-badge-indigo {
  background: rgba(129, 140, 248, 0.09);
  color: #818cf8;
  border-color: rgba(129, 140, 248, 0.2);
}

/* ── Article tags ── */
.art-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.12rem 0.45rem;
  border-radius: 9999px;
  background: rgb(243, 244, 246);
  color: #6b7280;
  border: 1px solid rgb(229, 231, 235);
  letter-spacing: 0.02em;
  transition: background 0.1s, color 0.1s;
}

.dark .art-tag {
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.07);
}

.art-tag:hover {
  background: rgba(8, 145, 178, 0.07);
  color: #0891b2;
  border-color: rgba(8, 145, 178, 0.18);
}
.dark .art-tag:hover {
  background: rgba(34, 211, 238, 0.07);
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.16);
}

/* ── Empty state visibility fix ── */
#no-results { display: none !important; }
#no-results.visible { display: flex !important; }

/* ═══════════════════════════════════════════════════════════════
   MODAL BODY — reading experience
   These !important rules override the base modal-body styles
   from global.css (which has conflicting values).
═══════════════════════════════════════════════════════════════ */

.modal-body {
  font-size: 0.9375rem !important;
  line-height: 1.85 !important;
  padding: 2rem 2.25rem 3rem !important;
  color: #374151;
}
.dark .modal-body { color: #cbd5e1; }

@media (max-width: 640px) {
  .modal-body {
    font-size: 0.9rem !important;
    padding: 1.25rem 1.25rem 2.5rem !important;
  }
}

/* Paragraphs */
.modal-body p {
  font-size: 0.9375rem !important;
  line-height: 1.85 !important;
  margin-top: 0 !important;
  margin-bottom: 1.25rem !important;
  color: #374151;
}
.dark .modal-body p { color: #cbd5e1; }
.modal-body > *:first-child { margin-top: 0 !important; }

/* Section headers (H3) */
.modal-body h3 {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.012em !important;
  color: #0f172a !important;
  margin-top: 2.25rem !important;
  margin-bottom: 0.75rem !important;
  padding-bottom: 0.45rem !important;
  border-bottom: 2px solid rgba(8, 145, 178, 0.15) !important;
}
.dark .modal-body h3 {
  color: #f1f5f9 !important;
  border-bottom-color: rgba(34, 211, 238, 0.15) !important;
}

/* Sub-headings (numbered: "1 · The Depreciation Play") */
.modal-body h3[style] {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #0891b2 !important;
  margin-top: 1.5rem !important;
  margin-bottom: 0.4rem !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
  letter-spacing: -0.005em !important;
}
.dark .modal-body h3[style] { color: #22d3ee !important; }

/* Section divider */
.modal-body .section-divider {
  height: 1px !important;
  background: linear-gradient(to right, transparent, rgba(8,145,178,0.25) 20%, rgba(8,145,178,0.25) 80%, transparent) !important;
  margin: 2rem 0 !important;
  border: none !important;
}
.dark .modal-body .section-divider {
  background: linear-gradient(to right, transparent, rgba(34,211,238,0.2) 20%, rgba(34,211,238,0.2) 80%, transparent) !important;
}

/* Callout boxes */
.modal-body .callout {
  background: rgba(8, 145, 178, 0.05) !important;
  border-left: 3px solid #0891b2 !important;
  border-radius: 0 0.55rem 0.55rem 0 !important;
  padding: 0.875rem 1.125rem !important;
  margin: 1.25rem 0 !important;
}
.dark .modal-body .callout {
  background: rgba(34, 211, 238, 0.05) !important;
  border-left-color: #22d3ee !important;
}
.modal-body .callout-warning {
  background: rgba(217, 119, 6, 0.055) !important;
  border-left-color: #d97706 !important;
}
.dark .modal-body .callout-warning {
  background: rgba(251, 191, 36, 0.055) !important;
  border-left-color: #fbbf24 !important;
}
.modal-body .callout-danger {
  background: rgba(220, 38, 38, 0.05) !important;
  border-left-color: #dc2626 !important;
}
.dark .modal-body .callout-danger {
  background: rgba(239, 68, 68, 0.055) !important;
  border-left-color: #ef4444 !important;
}
.modal-body .callout p,
.modal-body .callout div {
  font-size: 0.875rem !important;
  line-height: 1.75 !important;
  margin-bottom: 0.35rem !important;
  color: #374151;
}
.dark .modal-body .callout p,
.dark .modal-body .callout div { color: #cbd5e1; }
.modal-body .callout p:last-child,
.modal-body .callout div:last-child { margin-bottom: 0 !important; }

/* Verdict box */
.modal-body .verdict-box {
  background: rgba(8, 145, 178, 0.04) !important;
  border: 1px solid rgba(8, 145, 178, 0.18) !important;
  border-radius: 0.8rem !important;
  padding: 1.25rem 1.4rem !important;
  margin: 1.5rem 0 !important;
}
.dark .modal-body .verdict-box {
  background: rgba(34, 211, 238, 0.04) !important;
  border-color: rgba(34, 211, 238, 0.16) !important;
}
.modal-body .verdict-box p {
  font-size: 0.9rem !important;
  line-height: 1.8 !important;
  margin-bottom: 0.5rem !important;
  color: #374151;
}
.dark .modal-body .verdict-box p { color: #cbd5e1; }
.modal-body .verdict-box p:last-child { margin-bottom: 0 !important; }

/* Timeline */
.modal-body .timeline-item {
  display: flex !important;
  gap: 0.875rem !important;
  margin-bottom: 0.875rem !important;
  font-size: 0.875rem !important;
  line-height: 1.75 !important;
  color: #374151;
}
.dark .modal-body .timeline-item { color: #cbd5e1; }

.modal-body .timeline-dot {
  flex-shrink: 0 !important;
  width: 0.55rem !important;
  height: 0.55rem !important;
  border-radius: 50% !important;
  background: #0891b2 !important;
  margin-top: 0.5rem !important;
  box-shadow: 0 0 0 3px rgba(8,145,178,0.1) !important;
}
.dark .modal-body .timeline-dot {
  background: #22d3ee !important;
  box-shadow: 0 0 0 3px rgba(34,211,238,0.08) !important;
}

/* Two-column comparison */
.modal-body .two-col {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.75rem !important;
  margin: 1.25rem 0 !important;
}
@media (max-width: 560px) {
  .modal-body .two-col { grid-template-columns: 1fr !important; }
}
.modal-body .col-box {
  border-radius: 0.6rem !important;
  padding: 0.875rem 1rem !important;
}
.modal-body .col-box p {
  font-size: 0.85rem !important;
  line-height: 1.7 !important;
  margin-bottom: 0.35rem !important;
}
.modal-body .col-box p:last-child { margin-bottom: 0 !important; }
.modal-body .col-box-green {
  background: rgba(22,163,74,0.04) !important;
  border: 1px solid rgba(22,163,74,0.16) !important;
}
.dark .modal-body .col-box-green {
  background: rgba(34,197,94,0.05) !important;
  border-color: rgba(34,197,94,0.16) !important;
}
.modal-body .col-box-red {
  background: rgba(220,38,38,0.04) !important;
  border: 1px solid rgba(220,38,38,0.16) !important;
}
.dark .modal-body .col-box-red {
  background: rgba(239,68,68,0.05) !important;
  border-color: rgba(239,68,68,0.16) !important;
}

/* Lists */
.modal-body ul {
  margin-bottom: 1.25rem !important;
  padding-left: 0 !important;
  list-style: none !important;
}
.modal-body ul li {
  position: relative !important;
  padding-left: 1.4rem !important;
  margin-bottom: 0.55rem !important;
  line-height: 1.75 !important;
  font-size: 0.875rem !important;
  color: #374151;
}
.dark .modal-body ul li { color: #cbd5e1; }
.modal-body ul li::before {
  content: '▸' !important;
  position: absolute !important;
  left: 0 !important;
  font-size: 0.65rem !important;
  top: 0.32rem !important;
  color: #0891b2 !important;
}
.dark .modal-body ul li::before { color: #22d3ee !important; }

/* Modal scrollbar */
.modal-scroll::-webkit-scrollbar        { width: 4px; }
.modal-scroll::-webkit-scrollbar-track  { background: transparent; }
.modal-scroll::-webkit-scrollbar-thumb  {
  background: rgba(8,145,178,0.22);
  border-radius: 99px;
}
.modal-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(8,145,178,0.45);
}
.dark .modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(34,211,238,0.18);
}
.dark .modal-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(34,211,238,0.38);
}
