/* ============================================
   Saweria donate banner & components
   ============================================ */

.saweria-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 2rem 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6f61 0%, #ffb347 100%);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(255, 111, 97, 0.35);
  overflow: hidden;
  flex-wrap: wrap;
}

.saweria-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.saweria-banner__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 1;
}

.saweria-banner__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.saweria-banner__subtitle {
  font-size: 0.875rem;
  opacity: 0.93;
}

.saweria-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: #fff;
  color: #d04632 !important;
  font-weight: 700;
  text-decoration: none !important;
  font-size: 0.9rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  z-index: 1;
  white-space: nowrap;
}

.saweria-banner__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  color: #b73c2a !important;
}

.saweria-banner__btn::before {
  content: "☕";
  font-size: 1.1em;
}

/* Compact version untuk inline content */
.saweria-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6f61 0%, #ffb347 100%);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none !important;
  font-size: 0.85rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.saweria-inline:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(255, 111, 97, 0.4);
  color: #fff !important;
}

/* Donate CTA card untuk page kredit/support */
.donate-card {
  margin: 2rem 0;
  padding: 2rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #2d1b4e 0%, #4a2c7a 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

[data-md-color-scheme="default"] .donate-card {
  background: linear-gradient(135deg, #fff5e6 0%, #ffe0cc 100%);
  color: #2d1b4e;
  border: 2px solid #ffb347;
}

.donate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 179, 71, 0.25) 0%, transparent 50%);
  pointer-events: none;
}

.donate-card h3 {
  margin: 0 0 0.5rem 0 !important;
  font-size: 1.6rem !important;
  color: inherit !important;
}

.donate-card p {
  margin: 0.5rem 0 1.25rem 0;
  opacity: 0.92;
  font-size: 0.95rem;
}

.donate-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  background: #ffb347;
  color: #2d1b4e !important;
  font-weight: 700;
  text-decoration: none !important;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  z-index: 1;
  position: relative;
}

.donate-card__btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(255, 179, 71, 0.5);
  background: #ffc266;
  color: #2d1b4e !important;
}

.donate-card__btn::before {
  content: "🧡";
  font-size: 1.1em;
}

/* ============================================
   Exit intent popup (Shopee)
   ============================================ */

#shopee-exit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: shopee-fade-in 0.25s ease-out;
  padding: 1rem;
}

#shopee-exit-overlay.show {
  display: flex;
}

@keyframes shopee-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shopee-pop-in {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.shopee-popup {
  background: #fff;
  color: #222;
  max-width: 440px;
  width: 100%;
  border-radius: 18px;
  padding: 2rem 1.75rem 1.75rem 1.75rem;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  animation: shopee-pop-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-md-color-scheme="slate"] .shopee-popup {
  background: #1e1e2e;
  color: #f5f5f5;
}

.shopee-popup__close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: 0;
  font-size: 0.85rem;
  cursor: pointer;
  color: #ccc;
  line-height: 1;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  transition: color 0.15s ease;
  opacity: 0.5;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shopee-popup__close:hover {
  color: #888;
  opacity: 1;
}

[data-md-color-scheme="slate"] .shopee-popup__close {
  color: #555;
}

[data-md-color-scheme="slate"] .shopee-popup__close:hover {
  color: #999;
}

.shopee-popup__badge {
  display: inline-block;
  background: linear-gradient(135deg, #ee4d2d 0%, #f53d2d 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.shopee-popup__title {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0 !important;
  line-height: 1.25;
  color: inherit !important;
}

.shopee-popup__subtitle {
  font-size: 0.95rem;
  opacity: 0.8;
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

.shopee-popup__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.95rem 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #ee4d2d 0%, #f53d2d 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin-bottom: 0.75rem;
  cursor: pointer;
  border: 0;
}

.shopee-popup__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(238, 77, 45, 0.5);
  color: #fff !important;
}

.shopee-popup__cta::before {
  content: "🛒";
  font-size: 1.2em;
}

.shopee-popup__skip {
  background: transparent;
  border: 0;
  color: #aaa;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  text-decoration: underline;
  transition: color 0.15s ease;
  opacity: 0.6;
}

.shopee-popup__skip:hover {
  color: #666;
  opacity: 1;
}

[data-md-color-scheme="slate"] .shopee-popup__skip:hover {
  color: #bbb;
}

.shopee-popup__telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem 1.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #229ED9 0%, #1A8AC4 100%);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin-bottom: 0.5rem;
  border: 0;
  cursor: pointer;
}

.shopee-popup__telegram:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(34, 158, 217, 0.4);
  color: #fff !important;
}

.shopee-popup__telegram svg {
  flex-shrink: 0;
}

.shopee-popup__disclaimer {
  font-size: 0.7rem;
  opacity: 0.55;
  margin-top: 0.75rem;
  line-height: 1.4;
}

/* ============================================
   Sticky footer dengan support links
   ============================================ */

.support-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

.support-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  text-decoration: none !important;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.support-footer__link:hover {
  opacity: 1;
}

/* ============================================
   Sticky bottom Shopee banner (Tier 1)
   ============================================ */

#shopee-sticky-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #ee4d2d 0%, #f53d2d 100%);
  color: #fff;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 9990;
  box-shadow: 0 -4px 20px rgba(238, 77, 45, 0.35);
  font-size: 0.9rem;
  font-weight: 600;
  flex-wrap: wrap;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

#shopee-sticky-bottom.hidden {
  transform: translateY(100%);
}

.shopee-sticky__text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shopee-sticky__text::before {
  content: "🔥";
  font-size: 1.2em;
}

.shopee-sticky__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  color: #ee4d2d !important;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none !important;
  transition: transform 0.15s ease;
  white-space: nowrap;
}

.shopee-sticky__btn:hover {
  transform: scale(1.05);
  color: #d83817 !important;
}

.shopee-sticky__close {
  background: rgba(255, 255, 255, 0.2);
  border: 0;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  transition: background 0.15s ease;
}

.shopee-sticky__close:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Adjust body padding biar konten ga ke-cover sticky bar */
body.has-sticky-shopee {
  padding-bottom: 56px;
}

@media (max-width: 600px) {
  #shopee-sticky-bottom {
    font-size: 0.8rem;
    padding: 0.55rem 0.6rem;
    gap: 0.5rem;
  }
  .shopee-sticky__text::before {
    font-size: 1em;
  }
  .shopee-sticky__btn {
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
  }
  body.has-sticky-shopee {
    padding-bottom: 64px;
  }
}

/* ============================================
   Floating widget kanan bawah (Tier 1)
   ============================================ */

#shopee-floating-widget {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 9985;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.shopee-floating__telegram {
  background: linear-gradient(135deg, #229ED9 0%, #1A8AC4 100%);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(34, 158, 217, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shopee-floating__telegram:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 22px rgba(34, 158, 217, 0.6);
}

@media (max-width: 600px) {
  .shopee-floating__telegram {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
}

#shopee-floating-widget.hidden {
  opacity: 0;
  transform: translateX(120%);
  pointer-events: none;
}

.shopee-floating__btn {
  background: linear-gradient(135deg, #ee4d2d 0%, #f53d2d 100%);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(238, 77, 45, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: shopee-pulse 2.5s ease-in-out infinite;
  text-decoration: none;
  line-height: 1;
}

.shopee-floating__btn:hover {
  transform: scale(1.1);
  animation-play-state: paused;
}

@keyframes shopee-pulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(238, 77, 45, 0.5), 0 0 0 0 rgba(238, 77, 45, 0.55);
  }
  70% {
    box-shadow: 0 6px 20px rgba(238, 77, 45, 0.5), 0 0 0 18px rgba(238, 77, 45, 0);
  }
}

.shopee-floating__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ffd700;
  color: #b8000a;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.shopee-floating__tooltip {
  background: #fff;
  color: #333;
  padding: 0.4rem 0.8rem;
  border-radius: 12px 12px 0 12px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

#shopee-floating-widget:hover .shopee-floating__tooltip,
#shopee-floating-widget.show-tooltip .shopee-floating__tooltip {
  opacity: 1;
  transform: translateY(0);
}

[data-md-color-scheme="slate"] .shopee-floating__tooltip {
  background: #2a2a40;
  color: #f5f5f5;
}

@media (max-width: 600px) {
  #shopee-floating-widget {
    bottom: 75px;
    right: 12px;
  }
  .shopee-floating__btn {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }
}

/* ============================================
   Inline contextual Shopee CTA (Tier 1)
   ============================================ */

.shopee-inline-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(238, 77, 45, 0.08) 0%, rgba(245, 61, 45, 0.04) 100%);
  border-left: 4px solid #ee4d2d;
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.shopee-inline-cta:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(238, 77, 45, 0.2);
  background: linear-gradient(135deg, rgba(238, 77, 45, 0.15) 0%, rgba(245, 61, 45, 0.08) 100%);
}

.shopee-inline-cta__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ee4d2d 0%, #f53d2d 100%);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shopee-inline-cta__body {
  flex: 1;
  min-width: 0;
}

.shopee-inline-cta__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.15rem 0;
}

.shopee-inline-cta__subtitle {
  font-size: 0.82rem;
  opacity: 0.78;
  margin: 0;
  line-height: 1.4;
}

.shopee-inline-cta__arrow {
  flex-shrink: 0;
  color: #ee4d2d;
  font-size: 1.4rem;
  font-weight: 700;
}

/* ============================================
   Countdown timer di popup (Tier 2)
   ============================================ */

.shopee-popup__countdown {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.5rem 0 1rem 0;
  color: #ee4d2d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.shopee-popup__countdown-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ee4d2d 0%, #f53d2d 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  animation: countdown-pulse 1s ease-in-out infinite;
}

@keyframes countdown-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ============================================================
   ====  MEDIUM-STYLE GLOBAL OVERRIDE  ========================
   Added: Medium aesthetic — serif typography, narrow article,
   calm palette, generous whitespace, subtle dividers.
   Loaded last so it overrides earlier rules.
   ============================================================ */

:root {
  --md-typeset-font: 'Charter', 'Iowan Old Style', 'Apple Garamond', 'Baskerville', source-serif-pro, 'Times New Roman', Times, serif;
  --md-ui-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --medium-green: #1A8917;
  --medium-green-hover: #156D13;
  --medium-text: #242424;
  --medium-text-soft: #6B6B6B;
  --medium-border: #E6E6E6;
  --medium-border-soft: #F0F0F0;
  --medium-bg: #FFFFFF;
  --medium-bg-soft: #FAFAFA;
}

/* ---- Header — minimal, white, bottom-border ---- */
.md-header {
  background: #fff !important;
  color: var(--medium-text) !important;
  box-shadow: none !important;
  border-bottom: 1px solid var(--medium-border) !important;
}

.md-header__title,
.md-header__button,
.md-header__topic {
  color: var(--medium-text) !important;
}

.md-header__topic > .md-ellipsis {
  font-family: var(--md-ui-font) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

.md-search__input {
  background: var(--medium-bg-soft) !important;
  color: var(--medium-text) !important;
}

.md-search__input::placeholder {
  color: var(--medium-text-soft) !important;
}

.md-search__icon {
  color: var(--medium-text-soft) !important;
}

/* ---- Tab strip under header — minimal ---- */
.md-tabs {
  background: #fff !important;
  color: var(--medium-text) !important;
  border-bottom: 1px solid var(--medium-border) !important;
}

.md-tabs__link {
  color: var(--medium-text-soft) !important;
  opacity: 1 !important;
  font-family: var(--md-ui-font) !important;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
}

.md-tabs__link--active,
.md-tabs__link:hover {
  color: var(--medium-text) !important;
  border-bottom: 2px solid var(--medium-text);
}

/* ---- Article — serif, narrow, generous spacing ---- */
.md-content {
  max-width: 720px;
  margin: 0 auto !important;
}

.md-typeset {
  font-family: var(--md-typeset-font) !important;
  font-size: 1.125rem !important;
  line-height: 1.75 !important;
  color: var(--medium-text) !important;
  letter-spacing: -0.003em;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  font-family: var(--md-typeset-font) !important;
  color: var(--medium-text) !important;
  font-weight: 700 !important;
  letter-spacing: -0.018em !important;
}

.md-typeset h1 {
  font-size: 2.4rem !important;
  line-height: 1.15 !important;
  margin-top: 0 !important;
  margin-bottom: 1.25rem !important;
}

.md-typeset h2 {
  font-size: 1.7rem !important;
  line-height: 1.25 !important;
  margin-top: 2.5rem !important;
  margin-bottom: 0.9rem !important;
}

.md-typeset h3 {
  font-size: 1.3rem !important;
  margin-top: 2rem !important;
}

.md-typeset p,
.md-typeset li {
  color: var(--medium-text) !important;
}

.md-typeset a {
  color: var(--medium-text) !important;
  text-decoration: underline;
  text-decoration-color: var(--medium-text-soft);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}

.md-typeset a:hover {
  text-decoration-color: var(--medium-text);
}

.md-typeset blockquote {
  font-family: var(--md-typeset-font) !important;
  font-style: italic;
  color: var(--medium-text) !important;
  border-left: 3px solid var(--medium-text);
  padding-left: 1.4rem;
  margin-left: 0;
  font-size: 1.2rem;
  line-height: 1.55;
}

.md-typeset code {
  font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Menlo', Consolas, monospace !important;
  font-size: 0.88em !important;
  background: var(--medium-bg-soft);
  padding: 0.12em 0.35em;
  border-radius: 3px;
  color: #c7254e;
}

[data-md-color-scheme="slate"] .md-typeset code {
  background: #2a2a2a;
  color: #ff79c6;
}

.md-typeset pre > code,
.md-typeset .highlight pre {
  background: var(--medium-bg-soft) !important;
  border: 1px solid var(--medium-border);
  border-radius: 4px;
  font-size: 0.9rem !important;
}

[data-md-color-scheme="slate"] .md-typeset pre > code,
[data-md-color-scheme="slate"] .md-typeset .highlight pre {
  background: #1a1a1a !important;
  border-color: #2a2a2a;
}

/* Tables — Medium-style minimal */
.md-typeset table:not([class]) {
  font-family: var(--md-ui-font) !important;
  font-size: 0.95rem !important;
  border: 0;
  box-shadow: none;
}

.md-typeset table:not([class]) th {
  background: transparent !important;
  border-bottom: 2px solid var(--medium-text) !important;
  color: var(--medium-text) !important;
  font-weight: 600;
  text-align: left;
  padding: 0.6rem 0.75rem;
}

.md-typeset table:not([class]) td {
  border-bottom: 1px solid var(--medium-border) !important;
  padding: 0.6rem 0.75rem;
  color: var(--medium-text) !important;
}

/* ---- Sidebar nav — calm ---- */
.md-nav {
  font-family: var(--md-ui-font) !important;
  font-size: 0.85rem !important;
}

.md-nav__title {
  color: var(--medium-text) !important;
  font-weight: 600;
}

.md-nav__link {
  color: var(--medium-text-soft) !important;
  padding: 0.25rem 0.5rem;
}

.md-nav__link--active,
.md-nav__link:hover {
  color: var(--medium-text) !important;
}

.md-nav__link--active {
  font-weight: 600;
  border-left: 2px solid var(--medium-green);
  padding-left: calc(0.5rem - 2px);
}

/* ---- Footer — clean white ---- */
.md-footer {
  background: #fff !important;
  color: var(--medium-text) !important;
  border-top: 1px solid var(--medium-border);
}

.md-footer-meta {
  background: #fff !important;
  color: var(--medium-text-soft) !important;
}

.md-footer-meta.md-typeset a {
  color: var(--medium-text) !important;
}

.md-footer__title,
.md-footer__direction {
  color: var(--medium-text-soft) !important;
}

.md-footer__link {
  color: var(--medium-text) !important;
}

.md-copyright {
  color: var(--medium-text-soft) !important;
}

/* ---- Dark mode adjustments ---- */
[data-md-color-scheme="slate"] {
  --md-default-bg-color: #0f0f0f;
  --md-default-fg-color: #e6e6e6;
}

[data-md-color-scheme="slate"] .md-header,
[data-md-color-scheme="slate"] .md-tabs,
[data-md-color-scheme="slate"] .md-footer,
[data-md-color-scheme="slate"] .md-footer-meta {
  background: #0f0f0f !important;
  color: #e6e6e6 !important;
  border-bottom-color: #2a2a2a !important;
  border-top-color: #2a2a2a !important;
}

[data-md-color-scheme="slate"] .md-typeset,
[data-md-color-scheme="slate"] .md-typeset h1,
[data-md-color-scheme="slate"] .md-typeset h2,
[data-md-color-scheme="slate"] .md-typeset h3,
[data-md-color-scheme="slate"] .md-typeset h4,
[data-md-color-scheme="slate"] .md-typeset p,
[data-md-color-scheme="slate"] .md-typeset li,
[data-md-color-scheme="slate"] .md-typeset a {
  color: #e6e6e6 !important;
}

[data-md-color-scheme="slate"] .md-typeset blockquote {
  border-left-color: #e6e6e6;
}

[data-md-color-scheme="slate"] .md-tabs__link {
  color: #999 !important;
}

[data-md-color-scheme="slate"] .md-tabs__link--active {
  color: #fff !important;
  border-bottom-color: #fff;
}

[data-md-color-scheme="slate"] .md-nav__link {
  color: #999 !important;
}

[data-md-color-scheme="slate"] .md-nav__link--active {
  color: #fff !important;
}

[data-md-color-scheme="slate"] .md-search__input {
  background: #1a1a1a !important;
  color: #e6e6e6 !important;
}

/* ============================================================
   ====  MEDIUM-STYLE POPUP OVERRIDE  =========================
   Reskin popup ke aesthetic Medium recommendation card.
   ============================================================ */

#shopee-exit-overlay {
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  animation: medium-fade-in 0.3s ease-out !important;
}

@keyframes medium-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes medium-card-in {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.shopee-popup {
  background: #fff !important;
  color: var(--medium-text) !important;
  max-width: 460px !important;
  width: 100% !important;
  border-radius: 4px !important;
  padding: 2rem 2rem 1.5rem 2rem !important;
  text-align: left !important;
  position: relative !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  animation: medium-card-in 0.35s cubic-bezier(0.2, 0.8, 0.4, 1) !important;
  font-family: var(--md-typeset-font) !important;
  border: 1px solid var(--medium-border) !important;
}

[data-md-color-scheme="slate"] .shopee-popup {
  background: #1a1a1a !important;
  color: #e6e6e6 !important;
  border-color: #2a2a2a !important;
}

/* Tiny close button — Medium-style */
.shopee-popup__close {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  color: #bbb !important;
  line-height: 1 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  width: 22px !important;
  height: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0.65 !important;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease !important;
}

.shopee-popup__close:hover {
  opacity: 1 !important;
  color: #6b6b6b !important;
  background: #f5f5f5 !important;
}

[data-md-color-scheme="slate"] .shopee-popup__close:hover {
  background: #2a2a2a !important;
  color: #999 !important;
}

/* Replace garish red badge with calm Medium-style label */
.shopee-popup__badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  background: transparent !important;
  color: var(--medium-text-soft) !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  padding: 0 !important;
  border-radius: 0 !important;
  margin-bottom: 0.85rem !important;
  text-transform: uppercase !important;
  font-family: var(--md-ui-font) !important;
}

.shopee-popup__badge::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--medium-green);
}

/* Serif heading like Medium article title */
.shopee-popup__title {
  font-family: var(--md-typeset-font) !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  margin: 0 0 0.6rem 0 !important;
  line-height: 1.2 !important;
  color: inherit !important;
  letter-spacing: -0.018em !important;
}

.shopee-popup__subtitle {
  font-family: var(--md-ui-font) !important;
  font-size: 0.95rem !important;
  color: var(--medium-text-soft) !important;
  margin: 0 0 1.5rem 0 !important;
  line-height: 1.55 !important;
  opacity: 1 !important;
}

[data-md-color-scheme="slate"] .shopee-popup__subtitle {
  color: #aaa !important;
}

/* Countdown — calmer Medium-style */
.shopee-popup__countdown {
  background: var(--medium-bg-soft) !important;
  color: var(--medium-text-soft) !important;
  border: 1px solid var(--medium-border) !important;
  border-radius: 4px !important;
  padding: 0.6rem 0.85rem !important;
  font-family: var(--md-ui-font) !important;
  font-size: 0.82rem !important;
  font-weight: 400 !important;
  margin-bottom: 1.1rem !important;
}

[data-md-color-scheme="slate"] .shopee-popup__countdown {
  background: #1f1f1f !important;
  border-color: #2a2a2a !important;
  color: #aaa !important;
}

.shopee-popup__countdown-circle {
  background: var(--medium-green) !important;
  color: #fff !important;
  width: 22px !important;
  height: 22px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
}

/* Main CTA — Medium green pill */
.shopee-popup__cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  width: 100% !important;
  padding: 0.8rem 1.5rem !important;
  border-radius: 999px !important;
  background: var(--medium-green) !important;
  color: #fff !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  font-family: var(--md-ui-font) !important;
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.1s ease !important;
  margin-bottom: 0.6rem !important;
  cursor: pointer !important;
  border: 0 !important;
  letter-spacing: 0.005em !important;
}

.shopee-popup__cta:hover {
  background: var(--medium-green-hover) !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: none !important;
}

.shopee-popup__cta:active {
  transform: scale(0.985) !important;
}

.shopee-popup__cta::before {
  content: none !important;
}

/* Telegram secondary CTA — outline style */
.shopee-popup__telegram {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  width: 100% !important;
  padding: 0.7rem 1.5rem !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--medium-text) !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  font-family: var(--md-ui-font) !important;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
  margin-bottom: 0.85rem !important;
  border: 1px solid #d4d4d4 !important;
  cursor: pointer !important;
}

.shopee-popup__telegram:hover {
  background: var(--medium-bg-soft) !important;
  border-color: var(--medium-text) !important;
  color: var(--medium-text) !important;
  transform: none !important;
  box-shadow: none !important;
}

[data-md-color-scheme="slate"] .shopee-popup__telegram {
  color: #e6e6e6 !important;
  border-color: #3a3a3a !important;
}

[data-md-color-scheme="slate"] .shopee-popup__telegram:hover {
  background: #2a2a2a !important;
  border-color: #888 !important;
  color: #fff !important;
}

.shopee-popup__telegram svg {
  flex-shrink: 0;
  color: #229ED9;
}

/* Skip — text link, no underline default */
.shopee-popup__skip {
  background: transparent !important;
  border: 0 !important;
  color: var(--medium-text-soft) !important;
  font-size: 0.8rem !important;
  cursor: pointer !important;
  padding: 0.45rem 0.5rem !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
  font-family: var(--md-ui-font) !important;
  display: block !important;
  margin: 0 auto !important;
  text-align: center !important;
  opacity: 1 !important;
}

.shopee-popup__skip:hover {
  color: var(--medium-text) !important;
  text-decoration: underline !important;
}

[data-md-color-scheme="slate"] .shopee-popup__skip {
  color: #888 !important;
}

[data-md-color-scheme="slate"] .shopee-popup__skip:hover {
  color: #ddd !important;
}

/* Disclaimer — Medium meta style */
.shopee-popup__disclaimer {
  font-family: var(--md-ui-font) !important;
  font-size: 0.72rem !important;
  color: #999 !important;
  margin-top: 1.25rem !important;
  line-height: 1.5 !important;
  text-align: center !important;
  padding-top: 1rem !important;
  border-top: 1px solid var(--medium-border-soft) !important;
  opacity: 1 !important;
}

[data-md-color-scheme="slate"] .shopee-popup__disclaimer {
  color: #777 !important;
  border-top-color: #2a2a2a !important;
}

/* ============================================================
   ====  ADJUST OLD SATURATED COMPONENTS  =====================
   Tame the sticky banner, saweria banner, and donate card
   to fit Medium aesthetic (less saturated, more like callout).
   ============================================================ */

.saweria-banner {
  background: var(--medium-bg-soft) !important;
  color: var(--medium-text) !important;
  border: 1px solid var(--medium-border) !important;
  border-left: 3px solid #FFB347 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  font-family: var(--md-ui-font) !important;
}

[data-md-color-scheme="slate"] .saweria-banner {
  background: #1a1a1a !important;
  border-color: #2a2a2a !important;
  border-left-color: #FFB347 !important;
}

.saweria-banner__title {
  font-family: var(--md-typeset-font) !important;
  color: var(--medium-text) !important;
}

[data-md-color-scheme="slate"] .saweria-banner__title {
  color: #e6e6e6 !important;
}

.saweria-banner__subtitle {
  color: var(--medium-text-soft) !important;
}

.saweria-banner__btn {
  background: #FFB347 !important;
  color: #242424 !important;
  border-radius: 999px !important;
  font-family: var(--md-ui-font) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.saweria-banner__btn:hover {
  background: #FFA52E !important;
  color: #242424 !important;
  box-shadow: 0 2px 8px rgba(255, 165, 46, 0.3) !important;
  transform: none !important;
}

.donate-card {
  background: var(--medium-bg-soft) !important;
  border: 1px solid var(--medium-border) !important;
  border-left: 3px solid #FFB347 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  color: var(--medium-text) !important;
}

[data-md-color-scheme="slate"] .donate-card {
  background: #1a1a1a !important;
  border-color: #2a2a2a !important;
  color: #e6e6e6 !important;
}

.donate-card h3 {
  color: var(--medium-text) !important;
  font-family: var(--md-typeset-font) !important;
}

[data-md-color-scheme="slate"] .donate-card h3 {
  color: #e6e6e6 !important;
}

.donate-card p {
  color: var(--medium-text-soft) !important;
}

.donate-card__btn {
  background: #FFB347 !important;
  color: #242424 !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.donate-card__btn:hover {
  background: #FFA52E !important;
  color: #242424 !important;
  transform: none !important;
}

/* Sticky bottom banner — quieter Medium-style */
#shopee-sticky-bottom {
  background: #fff !important;
  color: var(--medium-text) !important;
  border-top: 1px solid var(--medium-border) !important;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06) !important;
  font-family: var(--md-ui-font) !important;
  font-weight: 500 !important;
  font-size: 0.88rem !important;
}

[data-md-color-scheme="slate"] #shopee-sticky-bottom {
  background: #0f0f0f !important;
  color: #e6e6e6 !important;
  border-top-color: #2a2a2a !important;
}

.shopee-sticky__text {
  color: var(--medium-text) !important;
}

[data-md-color-scheme="slate"] .shopee-sticky__text {
  color: #e6e6e6 !important;
}

.shopee-sticky__btn {
  background: var(--medium-green) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 500 !important;
  padding: 0.4rem 1rem !important;
  border: 0 !important;
}

.shopee-sticky__btn:hover {
  background: var(--medium-green-hover) !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: none !important;
}

.shopee-sticky__close {
  color: var(--medium-text-soft) !important;
  opacity: 0.6 !important;
}

.shopee-sticky__close:hover {
  color: var(--medium-text) !important;
  opacity: 1 !important;
}

/* Floating widget — keep but soften shadows */
.shopee-floating__btn {
  box-shadow: 0 4px 14px rgba(238, 77, 45, 0.35) !important;
}

.shopee-floating__telegram {
  box-shadow: 0 4px 14px rgba(34, 158, 217, 0.35) !important;
}

/* Inline CTA — Medium "callout" style */
.shopee-inline-cta {
  background: var(--medium-bg-soft) !important;
  border: 1px solid var(--medium-border) !important;
  border-left: 3px solid var(--medium-green) !important;
  border-radius: 4px !important;
  color: var(--medium-text) !important;
  box-shadow: none !important;
  font-family: var(--md-ui-font) !important;
}

[data-md-color-scheme="slate"] .shopee-inline-cta {
  background: #1a1a1a !important;
  border-color: #2a2a2a !important;
  border-left-color: var(--medium-green) !important;
  color: #e6e6e6 !important;
}

.shopee-inline-cta:hover {
  background: #f5f5f5 !important;
  border-left-color: var(--medium-green-hover) !important;
  transform: none !important;
  box-shadow: none !important;
}

[data-md-color-scheme="slate"] .shopee-inline-cta:hover {
  background: #222 !important;
}

