@media (max-width: 768px) {

/* =====================================
   0. GLOBAL MOBILE SAFETY
===================================== */

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* =====================================
   1. RESEARCH & INSIGHTS STRIP
   Compact editorial insight briefs
===================================== */

.cc-insights {
  position: relative;
  width: 100%;
  margin: 14px auto 8px;
  padding: 8px 0 8px;
  overflow: hidden;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.cc-insights-header {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 0 18px 16px;
  margin: 0 auto;
  text-align: center;
}

.cc-insights-header h2 {
  margin: 0;
  color: var(--text-main);
  font-size: 11.25px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cc-insights-header p {
  display: none !important;
}

.cc-insights-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: fit-content;
  max-width: calc(100% - 36px);
  margin: 0 auto;
  padding: 11px 16px;

  border: 1px solid rgba(184, 139, 79, 0.28) !important;
  border-radius: 10px !important;

  background:
    linear-gradient(
      135deg,
      rgba(184, 139, 79, 0.13),
      rgba(255, 232, 184, 0.045)
    ) !important;

  color: #d8b16f !important;
  font-size: 11.5px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.035em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;

  box-shadow:
    inset 0 1px 0 rgba(255, 232, 184, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.18) !important;

  opacity: 0.96;
}

.cc-insights-grid {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 18px 4px;
  overflow: visible;
  scroll-snap-type: none;
  scrollbar-width: none;
}

.cc-insights-grid::-webkit-scrollbar {
  display: none;
}

.cc-insights-grid::before,
.cc-insights-grid::after {
  content: none;
  display: none;
}

.cc-insight-card {
  position: relative;
  flex: 0 0 auto;
  width: min(78vw, 304px);
  min-height: 304px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  padding: 24px 20px 20px;
  scroll-snap-align: none;

  display: grid;
  grid-template-rows: 126px auto auto 1fr auto;
  align-items: start;
  justify-items: center;
  row-gap: 10px;

  text-align: center;

  border: 1px solid rgba(184, 139, 79, 0.24) !important;
  border-radius: 24px !important;

  background:
    radial-gradient(
      circle at 50% 10%,
      rgba(232, 196, 127, 0.14),
      transparent 36%
    ),
    linear-gradient(
      145deg,
      rgba(32, 27, 20, 0.96),
      rgba(13, 12, 10, 0.97) 50%,
      rgba(24, 19, 13, 0.96)
    ) !important;

  box-shadow:
    0 0 24px rgba(232, 196, 127, 0.08),
    inset 0 1px 0 rgba(255, 232, 184, 0.09),
    inset 0 0 0 1px rgba(184, 139, 79, 0.08),
    0 18px 38px rgba(0, 0, 0, 0.34) !important;

  overflow: hidden;
}

.cc-insight-card::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 82px;
  height: 82px;
  transform: translateX(-50%);
  border-radius: 22px;
  border: 1px solid rgba(232, 196, 127, 0.2);
  background:
    radial-gradient(
      circle,
      rgba(232, 196, 127, 0.18),
      transparent 64%
    ) !important;
  box-shadow:
    0 0 30px rgba(232, 196, 127, 0.11),
    inset 0 1px 0 rgba(255, 232, 184, 0.09);
}

.cc-insight-card::after {
  content: "";
  position: absolute;
  right: -62px;
  top: -72px;
  width: 154px;
  height: 154px;
  border-radius: 50%;
  border: 1px solid rgba(184, 139, 79, 0.14);
  background:
    radial-gradient(
      circle,
      rgba(184, 139, 79, 0.08),
      transparent 62%
    ) !important;
  pointer-events: none;
}

.cc-insight-card h3,
.cc-insight-card p,
.cc-insight-link,
.cc-insight-card .cc-insight-category,
.cc-insight-card .cc-insight-meta,
.cc-insight-card .cc-insight-eyebrow {
  position: relative;
  z-index: 1;
}

.cc-insight-card .cc-insight-category,
.cc-insight-card .cc-insight-meta,
.cc-insight-card .cc-insight-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  margin: 18px auto 10px;
  padding: 0;

  color: #d8b16f;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-align: center !important;
  text-transform: uppercase;
}

.cc-insight-card h3 {
  margin: 0 auto;
  padding: 0;

  max-width: 14ch;

  color: #fff7e8;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.03;
  letter-spacing: -0.045em;
  text-align: center;
}

.cc-insight-card p {
  margin: 0 auto;
  padding: 0;

  max-width: 25ch;

  color: rgba(255, 248, 234, 0.72);
  font-size: 12.4px;
  font-weight: 690;
  line-height: 1.38;
  letter-spacing: -0.012em;
  text-align: center;
  opacity: 0.96;
}

.cc-insight-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;

  margin: 2px auto 0;
  padding: 0;

  color: #e8c47f !important;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.055em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0.96;
}

body:not(.dark-mode) .cc-insights-link {
  border-color: rgba(154, 109, 52, 0.26) !important;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.76),
      rgba(232, 196, 127, 0.16)
    ) !important;
  color: #8b622d !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 8px 18px rgba(108, 82, 46, 0.08) !important;
}

body:not(.dark-mode) .cc-insight-card {
  border-color: rgba(154, 109, 52, 0.18) !important;

  background:
    radial-gradient(
      circle at 50% 10%,
      rgba(154, 109, 52, 0.13),
      transparent 36%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.86),
      rgba(242, 234, 220, 0.62) 52%,
      rgba(255, 250, 240, 0.84)
    ) !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    inset 0 0 0 1px rgba(154, 109, 52, 0.08),
    0 14px 28px rgba(108, 82, 46, 0.1) !important;
}

body:not(.dark-mode) .cc-insight-card::before {
  border-color: rgba(154, 109, 52, 0.2);
  background:
    radial-gradient(
      circle,
      rgba(154, 109, 52, 0.13),
      transparent 64%
    ) !important;
  box-shadow: none;
}

body:not(.dark-mode) .cc-insight-card::after {
  border-color: rgba(154, 109, 52, 0.14);
  background:
    radial-gradient(
      circle,
      rgba(154, 109, 52, 0.075),
      transparent 62%
    ) !important;
}

body:not(.dark-mode) .cc-insight-card .cc-insight-category,
body:not(.dark-mode) .cc-insight-card .cc-insight-meta,
body:not(.dark-mode) .cc-insight-card .cc-insight-eyebrow {
  color: #9a6d34;
}

body:not(.dark-mode) .cc-insight-card h3 {
  color: var(--text-main);
}

body:not(.dark-mode) .cc-insight-card p {
  color: var(--text-muted);
}

body:not(.dark-mode) .cc-insight-link {
  color: #9a6d34 !important;
}

/* =====================================
   2. SHARED SEO LAUNCHER SYSTEM
   Base styles used by every mobile SEO block
===================================== */

/* ---------- 2.1 SEO Flow Wrapper ---------- */

.cc-mobile-flow {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 28px 22px 34px;
  padding: 0 0 42px !important;
  overflow: visible !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(47, 43, 39, 0.22) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.cc-mobile-flow + .cc-mobile-flow {
  margin-top: 6px;
}

/* ---------- 2.2 SEO Surface Reset ---------- */

.cc-mobile-flow {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.cc-mobile-flow .cc-seo-duo-text,
.cc-mobile-flow .cc-seo-duo-visual {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ---------- 2.3 SEO Section Dividers ---------- */

.cc-mobile-flow::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin: 0 0 24px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(47, 43, 39, 0.28),
    transparent
  ) !important;
}

body.dark-mode .cc-mobile-flow::before {
  background: linear-gradient(
    to right,
    transparent,
    rgba(232, 196, 127, 0.38),
    rgba(255, 255, 255, 0.18),
    rgba(232, 196, 127, 0.38),
    transparent
  ) !important;
}

body.dark-mode .cc-mobile-flow {
  border-bottom: 1px solid rgba(232, 196, 127, 0.34) !important;
  box-shadow:
    0 28px 42px -42px rgba(232, 196, 127, 0.55) !important;
}

/* ---------- 2.4 SEO Top Statement ---------- */

.cc-mobile-flow .cc-seo-duo-visual {
  order: 1;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.cc-mobile-flow .cc-seo-duo-visual .cc-seo-stat {
  display: block;
  max-width: 10.6ch;
  margin: 0;
  color: var(--text-main);
  font-size: clamp(38px, 10.4vw, 56px);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.088em;
  background: transparent !important;
}

.cc-mobile-flow .cc-seo-duo-visual .cc-seo-stat::after {
  content: "";
  display: block;
  width: min(78%, 300px);
  height: 2px;
  margin: 20px 0 0;
  border-radius: 999px;
  background: rgba(47, 43, 39, 0.72) !important;
}

.cc-mobile-flow .cc-seo-duo-visual p {
  max-width: 34ch;
  margin: 24px 0 0;
  color: var(--text-main);
  font-size: 15.25px;
  font-weight: 760;
  line-height: 1.42;
  letter-spacing: -0.025em;
  opacity: 0.82;
  background: transparent !important;
}

.cc-mobile-flow .cc-seo-duo-visual p::after {
  content: "";
  display: block;
  width: 142px;
  height: 24px;
  margin: 26px 0 0;
  background:
    linear-gradient(rgba(47,43,39,0.50), rgba(47,43,39,0.50)) left 0 / 142px 2px no-repeat,
    linear-gradient(rgba(47,43,39,0.32), rgba(47,43,39,0.32)) left 10px / 102px 2px no-repeat,
    linear-gradient(rgba(47,43,39,0.18), rgba(47,43,39,0.18)) left 20px / 64px 2px no-repeat !important;
}

/* ---------- 2.5 SEO Explanation Block ---------- */

.cc-mobile-flow .cc-seo-duo-text {
  order: 2;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.cc-mobile-flow .cc-seo-kicker {
  display: block;
  margin: 0 0 14px;
  padding: 0 !important;
  color: var(--accent-dark);
  font-size: 10.5px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.cc-mobile-flow .cc-seo-duo-text h2 {
  max-width: 12.5ch;
  margin: 0 0 16px;
  color: var(--text-main);
  font-size: clamp(31px, 8.4vw, 42px);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: -0.08em;
  background: transparent !important;
}

.cc-mobile-flow .cc-seo-lede {
  max-width: 35ch;
  margin: 0 0 26px;
  color: var(--text-muted);
  font-size: 15.25px;
  font-weight: 690;
  line-height: 1.52;
  letter-spacing: -0.02em;
  opacity: 0.9;
  background: transparent !important;
}

/* ---------- 2.6 SEO Arrow Insights ---------- */

.cc-mobile-flow .cc-seo-points {
  display: grid;
  gap: 19px;
  margin: 0;
  padding: 0;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.cc-mobile-flow .cc-seo-points div {
  position: relative;
  padding: 0 0 0 40px;
  color: var(--text-main);
  font-size: 15.25px;
  font-weight: 830;
  line-height: 1.34;
  letter-spacing: -0.026em;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.cc-mobile-flow .cc-seo-points div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 23px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-main) !important;
  transform: translateY(-50%);
}

.cc-mobile-flow .cc-seo-points div::after {
  content: "";
  position: absolute;
  left: 21px;
  top: calc(0.66em - 5px);
  width: 0;
  height: 0;
  border-top: 5px solid transparent !important;
  border-bottom: 5px solid transparent !important;
  border-left: 8px solid var(--text-main) !important;
  background: transparent !important;
}

/* ---------- 2.7 SEO OPEN TOOL CTA ---------- */

.cc-mobile-tool-cta {
  display: flex;
  align-items: center;
  justify-content: center;

  width: fit-content;
  max-width: calc(100% - 36px);
  margin: 18px auto 0;
  padding: 11px 16px;

  border: 1px solid rgba(184, 139, 79, 0.42) !important;
  border-radius: 999px !important;

  background:
    radial-gradient(circle at 50% 50%, rgba(232, 196, 127, 0.28), transparent 68%),
    linear-gradient(135deg, rgba(184, 139, 79, 0.22), rgba(255, 255, 255, 0.06)) !important;

  color: #b88b4f !important;
  -webkit-text-fill-color: #b88b4f;

  font-size: 12.5px;
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: 0.035em;
  text-align: center;
  text-transform: uppercase;

  box-shadow:
    0 0 22px rgba(232, 196, 127, 0.22),
    0 10px 28px rgba(0, 0, 0, 0.12) !important;

  opacity: 0.96;
  cursor: pointer;

  animation: ccSwipeHintPulse 2.2s ease-in-out infinite;
}

body.dark-mode .cc-mobile-tool-cta {
  color: #fff3d8 !important;
  -webkit-text-fill-color: #fff3d8;

  background:
    radial-gradient(circle at 50% 50%, rgba(232, 196, 127, 0.30), transparent 68%),
    linear-gradient(135deg, rgba(184, 139, 79, 0.30), rgba(90, 63, 31, 0.82)) !important;

  border-color: rgba(232, 196, 127, 0.42) !important;
}

body:not(.dark-mode) .cc-mobile-tool-cta {
  color: #7c5528 !important;
  -webkit-text-fill-color: #7c5528;

  background:
    radial-gradient(circle at 50% 50%, rgba(184, 139, 79, 0.20), transparent 68%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(232, 196, 127, 0.22)) !important;

  border-color: rgba(154, 109, 52, 0.36) !important;

  box-shadow:
    0 0 22px rgba(184, 139, 79, 0.18),
    0 10px 24px rgba(108, 82, 46, 0.10) !important;
}

.cc-mobile-tool-cta:active {
  transform: scale(0.985);
}

@keyframes ccSwipeHintPulse {
  0%,
  100% {
    transform: translateX(0);
    box-shadow:
      0 0 18px rgba(232, 196, 127, 0.16),
      0 10px 28px rgba(0, 0, 0, 0.10) !important;
    opacity: 0.88;
  }

  50% {
    transform: translateX(-3px);
    box-shadow:
      0 0 30px rgba(232, 196, 127, 0.38),
      0 12px 34px rgba(0, 0, 0, 0.16) !important;
    opacity: 1;
  }
}

/* =====================================
   3. SEO TOP STATEMENT (TIGHTER)
   Used for intro / wallet framing
===================================== */

.cc-mobile-flow .cc-seo-duo-visual {
  order: 1;

  padding: 0 !important;
  margin: 0 !important;

  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* --- Main Statement --- */

.cc-mobile-flow .cc-seo-duo-visual .cc-seo-stat {
  display: block;
  max-width: 11.2ch;
  margin: 0;

  color: var(--text-main);
  font-size: clamp(34px, 9.2vw, 50px);
  font-weight: 950;
  line-height: 0.88; /* tighter */
  letter-spacing: -0.095em; /* tighter tracking */

  background: transparent !important;
}

/* Underline accent */

.cc-mobile-flow .cc-seo-duo-visual .cc-seo-stat::after {
  content: "";
  display: block;

  width: min(64%, 240px);
  height: 2px;
  margin: 14px 0 0; /* reduced spacing */

  border-radius: 999px;
  background: rgba(47, 43, 39, 0.78) !important;
}

/* Supporting line */

.cc-mobile-flow .cc-seo-duo-visual p {
  max-width: 32ch;
  margin: 16px 0 0; /* tighter */

  color: var(--text-main);
  font-size: 14.5px;
  font-weight: 740;
  line-height: 1.34; /* tighter */
  letter-spacing: -0.02em;
  opacity: 0.78;

  background: transparent !important;
}

/* Decorative lines (tightened) */

.cc-mobile-flow .cc-seo-duo-visual p::after {
  content: "";
  display: block;

  width: 128px;
  height: 18px;
  margin: 18px 0 0;

  background:
    linear-gradient(rgba(47,43,39,0.55), rgba(47,43,39,0.55)) left 0 / 128px 2px no-repeat,
    linear-gradient(rgba(47,43,39,0.32), rgba(47,43,39,0.32)) left 8px / 92px 2px no-repeat,
    linear-gradient(rgba(47,43,39,0.18), rgba(47,43,39,0.18)) left 16px / 58px 2px no-repeat !important;
}


/* =====================================
   4. SPENDING SEO BLOCK
   Spending Breakdown & Rewards Reality
===================================== */

/* ---------- 4.1 Spending Flow ---------- */

.cc-mobile-spending-flow {
  gap: 30px;
  margin-top: 28px;
  padding-bottom: 48px !important;
}

/* ---------- 4.2 Spending Top Statement ---------- */

.cc-mobile-spending-flow .cc-seo-duo-visual {
  display: none !important;
}

/* ---------- 4.3 Spending Explanation Block ---------- */

.cc-mobile-spending-flow .cc-seo-duo-text {
  margin-top: 2px;
}

.cc-mobile-spending-flow .cc-seo-kicker {
  margin-bottom: 16px;

  font-size: 10.5px;
  letter-spacing: 0.15em;
}

.cc-mobile-spending-flow .cc-seo-duo-text h2 {
  max-width: 14.5ch;
  margin-bottom: 22px;

  font-size: clamp(32px, 8.6vw, 44px);
  line-height: 0.98;
  letter-spacing: -0.078em;
}

.cc-mobile-spending-flow .cc-seo-lede {
  max-width: 37ch;
  margin-bottom: 34px;

  font-size: 15px;
  line-height: 1.6;
  font-weight: 680;
  letter-spacing: -0.018em;
  opacity: 0.88;
}

/* ---------- 4.4 Spending Arrow Insights ---------- */

.cc-mobile-spending-flow .cc-seo-points {
  gap: 24px;
}

.cc-mobile-spending-flow .cc-seo-points div {
  padding-left: 42px;

  font-size: 15px;
  line-height: 1.42;
  font-weight: 820;
  letter-spacing: -0.022em;
}

.cc-mobile-spending-flow .cc-seo-points div::before {
  width: 24px;
}

.cc-mobile-spending-flow .cc-seo-points div::after {
  left: 22px;
}

/* =====================================
   5. PERKS SEO BLOCK
   Credit Card Perk Reality Check
===================================== */

/* ---------- 5.1 Perks Flow ---------- */
/* Add perks-only flow spacing overrides here. */


/* ---------- 5.2 Perks Top Statement ---------- */
/* Add perks-only top-statement overrides here. */


/* ---------- 5.3 Perks Explanation Block ---------- */
/* Add perks-only headline, lede, or kicker overrides here. */


/* ---------- 5.4 Perks Arrow Insights ---------- */
/* Add perks-only arrow insight overrides here. */


/* =====================================
   6. PERFORMANCE SEO BLOCK
   Wallet Performance
===================================== */

/* ---------- 6.1 Performance Flow ---------- */
/* Add performance-only flow spacing overrides here. */


/* ---------- 6.2 Performance Top Statement ---------- */
/* Add performance-only top-statement overrides here. */


/* ---------- 6.3 Performance Explanation Block ---------- */
/* Add performance-only headline, lede, or kicker overrides here. */


/* ---------- 6.4 Performance Arrow Insights ---------- */
/* Add performance-only arrow insight overrides here. */


/* =====================================
   7. CATEGORIES SEO BLOCK
   Category Breakdown
===================================== */

/* ---------- 7.1 Categories Flow ---------- */
/* Add categories-only flow spacing overrides here. */


/* ---------- 7.2 Categories Top Statement ---------- */
/* Add categories-only top-statement overrides here. */


/* ---------- 7.3 Categories Explanation Block ---------- */
/* Add categories-only headline, lede, or kicker overrides here. */


/* ---------- 7.4 Categories Arrow Insights ---------- */
/* Add categories-only arrow insight overrides here. */


/* =====================================
   8. INTEREST SEO BLOCK
   Credit Card Interest Reality Check
===================================== */

/* ---------- 8.1 Interest Flow ---------- */
/* Add interest-only flow spacing overrides here. */


/* ---------- 8.2 Interest Top Statement ---------- */
/* Add interest-only top-statement overrides here. */


/* ---------- 8.3 Interest Explanation Block ---------- */
/* Add interest-only headline, lede, or kicker overrides here. */


/* ---------- 8.4 Interest Arrow Insights ---------- */
/* Add interest-only arrow insight overrides here. */


/* =====================================
   9. MOBILE TOOL PANEL SYSTEM
===================================== */

/* ---------- 9.1 Tool Open Backdrop ---------- */

body.mobile-tool-open:has(
  #cc-wallet.is-mobile-tool-active,
  #cc-spending.is-mobile-tool-active,
  #cc-perks.is-mobile-tool-active,
  #cc-performance.is-mobile-tool-active,
  #cc-categories.is-mobile-tool-active,
  #cc-interest.is-mobile-tool-active
)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1990;

  background: rgba(0, 0, 0, 0.82);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  pointer-events: none;
}

/* Prevent dark-mode page isolation from trapping active tools below the backdrop */

body.mobile-tool-open.credit-cards-page main.container {
  isolation: auto !important;
  z-index: auto !important;
}

/* ---------- 9.2 Slide-In Tool Panels ---------- */

#cc-wallet,
#cc-spending,
#cc-perks,
#cc-performance,
#cc-categories,
#cc-interest {
  position: fixed !important;
  top: 72px !important;
  left: 100% !important;
  right: -100% !important;
  bottom: 0 !important;
  z-index: 2600 !important;

  width: 100%;
  max-width: 100%;
  height: calc(100svh - 72px);

  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: none !important;

  transition:
    left 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    right 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.22s ease,
    visibility 0s linear 0.38s;
}

#cc-wallet.is-mobile-tool-active,
#cc-spending.is-mobile-tool-active,
#cc-perks.is-mobile-tool-active,
#cc-performance.is-mobile-tool-active,
#cc-categories.is-mobile-tool-active,
#cc-interest.is-mobile-tool-active {
  left: 0 !important;
  right: 0 !important;

  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;

  transition:
    left 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    right 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.22s ease,
    visibility 0s linear 0s;
}

/* Dark-mode surface fallback for mobile tools that rely on undefined --bg-main */

body.dark-mode #cc-spending.is-mobile-tool-active,
body.dark-mode #cc-perks.is-mobile-tool-active,
body.dark-mode #cc-categories.is-mobile-tool-active,
body.dark-mode #cc-interest.is-mobile-tool-active {
  background:
    radial-gradient(
      circle at 50% -14%,
      rgba(184, 139, 79, 0.16),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      #12100d 0%,
      #080706 45%,
      #050505 100%
    ) !important;

  color: var(--text-main) !important;
}

/* ---------- 9.3 Mobile Scroll Lock ---------- */

html.mobile-scroll-locked,
body.mobile-scroll-locked {
  overflow: hidden !important;
  height: 100% !important;
}

/* =====================================
   10. COLLAPSIBLE TOOL HEADERS
===================================== */

.cc-collapsible-header {
  text-align: center;
  padding: 20px 16px 16px;
}

.cc-collapsible-header h2 {
  font-size: 26px;
  line-height: 1.05;
}

.cc-collapsible-header p {
  font-size: 14px;
}

/* =====================================
   11. GENERAL MOBILE COMPACTION
===================================== */

.card {
  border-radius: 22px;
  padding: 14px;
}

.wallet-review-summary,
.perk-summary-box,
.payoff-option-box {
  padding: 12px;
}

.chart-container {
  min-height: 240px;
}

/* =====================================
   12. HIDE DESKTOP NAV HELPERS
===================================== */

.cc-section-nav,
.section-nav,
.page-nav {
  display: none !important;
}

@media (max-width: 768px) {

/* =====================================
   HERO ORBIT LABELS — DISABLE ON MOBILE
   Keeps the 3D sphere, removes floating icons
===================================== */

.cc-hero-orbit-labels,
.cc-hero-orbit-labels *,
.cc-three-label {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  animation: none !important;
  pointer-events: none !important;
}

/* =====================================
   HERO SPHERE — MOBILE TIGHTENING
===================================== */

.cc-hero-inner {
  gap: 18px;
}

.cc-hero-three-wrap {
  margin-top: 4px;
}

#ccHeroSphere {
  display: block;
  max-width: 100%;
}

}

/* =========================
   MOBILE SEO FLOW ALIGNMENT
========================= */

.cc-mobile-flow .cc-seo-duo-text,
.cc-mobile-flow .cc-seo-duo-visual {
  text-align: center;
}

.cc-mobile-flow .cc-seo-kicker,
.cc-mobile-flow .cc-seo-duo-text h2,
.cc-mobile-flow .cc-seo-lede,
.cc-mobile-flow .cc-seo-duo-visual .cc-seo-stat,
.cc-mobile-flow .cc-seo-duo-visual p {
  margin-left: auto !important;
  margin-right: auto !important;
}

.cc-mobile-flow .cc-seo-points,
.cc-mobile-flow .cc-seo-points div {
  text-align: left;
}

.cc-mobile-flow .cc-seo-duo-visual .cc-seo-stat::after,
.cc-mobile-flow .cc-seo-duo-visual p::after {
  content: none !important;
  display: none !important;
}

/* =========================
   MOBILE SEO INSIGHT PANEL
========================= */

.cc-mobile-flow .cc-seo-points {
  position: relative !important;

  width: 100%;
  max-width: 620px;

  margin: 30px auto 0 !important;
  padding: 22px 22px !important;

  display: grid !important;
  gap: 0 !important;

  border-radius: 28px !important;

  background:
    radial-gradient(circle at 92% 0%, rgba(184, 139, 79, 0.08), transparent 44%),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.72),
      rgba(242, 234, 220, 0.50)
    ) !important;

  border: 1px solid rgba(154, 109, 52, 0.12) !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.54) !important;

  filter: none !important;
  overflow: hidden !important;
  isolation: isolate;
}

.cc-mobile-flow .cc-seo-points::before,
.cc-mobile-flow .cc-seo-points::after {
  content: none !important;
  display: none !important;
}

.cc-mobile-flow .cc-seo-points > div {
  position: relative !important;
  z-index: 1;

  display: flex !important;
  align-items: center;
  justify-content: center;

  min-height: 0 !important;
  padding: 15px 4px !important;

  text-align: center !important;

  color: var(--text-main) !important;
  font-size: 16px !important;
  font-weight: 875 !important;
  line-height: 1.28 !important;
  letter-spacing: -0.035em !important;

  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;

  overflow-wrap: break-word;
}

.cc-mobile-flow .cc-seo-points > div:first-child {
  padding-top: 0 !important;
}

.cc-mobile-flow .cc-seo-points > div:last-child {
  padding-bottom: 0 !important;
}

.cc-mobile-flow .cc-seo-points > div:not(:last-child) {
  border-bottom: 1px solid rgba(154, 109, 52, 0.10) !important;
}

.cc-mobile-flow .cc-seo-points > div::before,
.cc-mobile-flow .cc-seo-points > div::after {
  content: none !important;
  display: none !important;
}

/* =========================
   DARK MODE
========================= */

body.dark-mode .cc-mobile-flow .cc-seo-points {
  background:
    radial-gradient(circle at 92% 0%, rgba(232, 196, 127, 0.09), transparent 44%),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.018)
    ) !important;

  border-color: rgba(232, 196, 127, 0.12) !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .cc-mobile-flow .cc-seo-points > div:not(:last-child) {
  border-bottom-color: rgba(232, 196, 127, 0.09) !important;
}

/* =====================================
   MOBILE SEO SIMPLIFICATION
   Hide bulky summary/stat panels on mobile
===================================== */

.cc-mobile-flow .cc-seo-duo-visual {
  display: none !important;
}

.cc-mobile-flow .cc-seo-points {
  display: grid !important;
}

.cc-mobile-flow {
  gap: 18px !important;
  margin-top: 22px !important;
  margin-bottom: 26px !important;
  padding-bottom: 30px !important;
}

.cc-mobile-flow .cc-seo-duo-text {
  order: 1;
}

.cc-mobile-flow .cc-seo-kicker {
  margin-bottom: 12px !important;
}

.cc-mobile-flow .cc-seo-duo-text h2 {
  margin-bottom: 14px !important;
}

.cc-mobile-flow .cc-seo-lede {
  margin-bottom: 0 !important;
}

/* =====================================
   MOBILE SEO SPACING REBALANCE
===================================== */

.cc-mobile-flow {
  gap: 30px !important;
  margin-top: 22px !important;
  margin-bottom: 34px !important;
  padding-bottom: 42px !important;
}

.cc-mobile-flow .cc-seo-duo-text {
  display: grid;
  gap: 22px;
}

.cc-mobile-flow .cc-seo-kicker {
  margin-bottom: 0 !important;
}

.cc-mobile-flow .cc-seo-duo-text h2 {
  margin-bottom: 0 !important;
}

.cc-mobile-flow .cc-seo-lede {
  max-width: 34ch;
  margin-bottom: 8px !important;
  line-height: 1.58 !important;
}

.cc-mobile-flow .cc-seo-points {
  margin-top: 8px !important;
}

/* =====================================
   MOBILE SEO PREVIEW STORY REDESIGN
   CSS-only override: text -> preview -> insight
===================================== */

.cc-mobile-flow {
  gap: 26px !important;
  padding-bottom: 36px !important;
}

.cc-mobile-flow .cc-seo-duo-text {
  display: contents !important;
}

.cc-mobile-flow .cc-seo-kicker {
  order: 1 !important;
}

.cc-mobile-flow .cc-seo-duo-text h2 {
  order: 2 !important;
  margin-bottom: 0 !important;
}

.cc-mobile-flow .cc-seo-lede {
  display: none !important;
}

.cc-mobile-flow .cc-seo-duo-visual,
.cc-mobile-spending-flow .cc-seo-duo-visual {
  display: flex !important;
  order: 3 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 2px auto 0 !important;
  padding: 0 !important;
  justify-content: center !important;
  align-items: stretch !important;
}

.cc-mobile-flow .cc-seo-preview {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 340px !important;
  margin: 0 auto !important;
  padding: 18px !important;
  overflow: hidden !important;
  border: 1px solid rgba(164, 118, 52, 0.2) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(
      180deg,
      rgba(255, 252, 246, 0.96),
      rgba(244, 236, 220, 0.88)
    ) !important;
  box-shadow:
    0 18px 42px rgba(89, 62, 29, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  color: #201915 !important;
}

body.dark-mode .cc-mobile-flow .cc-seo-preview {
  border-color: rgba(217, 172, 96, 0.3) !important;
  background:
    linear-gradient(
      180deg,
      rgba(23, 21, 18, 0.98),
      rgba(15, 14, 12, 0.94)
    ) !important;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 232, 184, 0.08) !important;
  color: rgba(255, 248, 234, 0.96) !important;
}

.cc-mobile-flow .cc-seo-preview::before,
.cc-mobile-flow .cc-seo-preview::after {
  content: "" !important;
  position: absolute !important;
  pointer-events: none !important;
}

.cc-mobile-flow .cc-seo-preview::before {
  inset: 0 !important;
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(190, 136, 50, 0.16),
      transparent 34%
    ) !important;
  opacity: 0.8 !important;
}

.cc-mobile-flow .cc-seo-preview::after {
  inset: auto 18px 0 18px !important;
  height: 1px !important;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(176, 127, 52, 0.38),
    transparent
  ) !important;
}

.cc-mobile-flow .cc-seo-preview > * {
  position: relative !important;
  z-index: 1 !important;
}

.cc-mobile-flow .cc-seo-preview-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(162, 117, 52, 0.14) !important;
}

.cc-mobile-flow .cc-seo-preview-label,
.cc-mobile-flow .cc-seo-preview-status {
  font-size: 0.62rem !important;
  letter-spacing: 0.13em !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
}

.cc-mobile-flow .cc-seo-preview-label {
  color: #211916 !important;
  font-weight: 800 !important;
}

.cc-mobile-flow .cc-seo-preview-status {
  flex: 0 0 auto !important;
  padding: 6px 8px !important;
  border: 1px solid rgba(164, 118, 52, 0.22) !important;
  border-radius: 999px !important;
  color: #9a6a24 !important;
  background: rgba(255, 248, 236, 0.74) !important;
  font-weight: 800 !important;
}

body.dark-mode .cc-mobile-flow .cc-seo-preview-label {
  color: rgba(255, 248, 234, 0.96) !important;
}

body.dark-mode .cc-mobile-flow .cc-seo-preview-status {
  border-color: rgba(217, 172, 96, 0.3) !important;
  color: #e2b76a !important;
  background: rgba(217, 172, 96, 0.1) !important;
}

.cc-mobile-flow .cc-seo-preview-body {
  display: grid !important;
  gap: 14px !important;
}

.cc-mobile-flow .cc-seo-preview-metric {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.cc-mobile-flow .cc-seo-preview-metric strong,
.cc-mobile-flow .cc-seo-interest-value,
.cc-mobile-flow .cc-seo-performance-lift-value,
.cc-mobile-flow .cc-seo-preview-offer-value {
  display: block !important;
  font-size: clamp(2.2rem, 12vw, 3.3rem) !important;
  line-height: 0.9 !important;
  letter-spacing: -0.06em !important;
  color: #a16f24 !important;
}

.cc-mobile-flow .cc-seo-preview-metric span,
.cc-mobile-flow .cc-seo-interest-label,
.cc-mobile-flow .cc-seo-interest-subtitle {
  display: block !important;
  margin-top: 6px !important;
  font-size: 0.64rem !important;
  line-height: 1.25 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: rgba(44, 35, 27, 0.68) !important;
}

.cc-mobile-flow .cc-seo-preview-grid,
.cc-mobile-flow .cc-seo-preview-category-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.cc-mobile-flow .cc-seo-preview-grid div,
.cc-mobile-flow .cc-seo-preview-category-grid div {
  min-width: 0 !important;
  padding: 12px !important;
  border: 1px solid rgba(164, 118, 52, 0.12) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.48) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58) !important;
  overflow: hidden !important;
}

.cc-mobile-flow .cc-seo-preview-grid div span,
.cc-mobile-flow .cc-seo-preview-category-grid div span {
  display: block !important;
  margin-bottom: 7px !important;
  font-size: 0.58rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: rgba(44, 35, 27, 0.62) !important;
  overflow-wrap: anywhere !important;
}

.cc-mobile-flow .cc-seo-preview-grid div strong,
.cc-mobile-flow .cc-seo-preview-category-grid div strong {
  display: block !important;
  font-size: 1rem !important;
  line-height: 1.2 !important;
  color: #201915 !important;
  overflow-wrap: anywhere !important;
}

.cc-mobile-flow .cc-seo-preview-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.cc-mobile-flow .cc-seo-preview-category-grid div {
  text-align: center !important;
  padding: 11px 7px !important;
}

.cc-mobile-flow .cc-seo-preview-category-grid div span {
  margin-bottom: 6px !important;
  font-size: 0.56rem !important;
}

.cc-mobile-flow .cc-seo-preview-footer {
  font-size: 0.76rem !important;
  line-height: 1.55 !important;
  color: rgba(44, 35, 27, 0.68) !important;
  overflow-wrap: anywhere !important;
}

.cc-mobile-flow .cc-seo-brief {
  order: 5 !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: center !important;
  width: min(100%, 340px) !important;
  margin: 0 auto !important;
  padding: 18px 18px !important;
  border: 1px solid rgba(164, 118, 52, 0.16) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(
      180deg,
      rgba(255, 252, 246, 0.78),
      rgba(247, 239, 224, 0.58)
    ) !important;
  box-shadow:
    0 14px 34px rgba(90, 62, 27, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  text-align: left !important;
}

.cc-mobile-flow .cc-seo-brief-mark {
  display: inline-grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(164, 118, 52, 0.2) !important;
  background: rgba(255, 248, 236, 0.82) !important;
  color: #a16f24 !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.12em !important;
}

.cc-mobile-flow .cc-seo-brief span:last-child {
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
  color: rgba(43, 36, 29, 0.76) !important;
  overflow-wrap: anywhere !important;
}

.cc-mobile-flow .cc-mobile-tool-cta {
  order: 4 !important;
  margin-top: -4px !important;
  margin-bottom: 2px !important;
}

/* Spending preview compression */

.cc-mobile-flow .cc-seo-preview-donut-hero {
  display: grid !important;
  justify-items: center !important;
  gap: 12px !important;
}

.cc-mobile-flow .cc-seo-preview-donut {
  width: 148px !important;
  height: 148px !important;
  margin: 0 auto !important;
}

.cc-mobile-flow .cc-seo-preview-donut-value {
  font-size: 1.1rem !important;
}

/* Perks / performance / interest preview compression */

.cc-mobile-flow .cc-seo-preview-offer-hero,
.cc-mobile-flow .cc-seo-performance-hero,
.cc-mobile-flow .cc-seo-performance-lift,
.cc-mobile-flow .cc-seo-interest-hero {
  padding: 14px !important;
  border: 1px solid rgba(164, 118, 52, 0.14) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.46) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58) !important;
}

.cc-mobile-flow .cc-seo-top-card-preview,
.cc-mobile-flow .cc-seo-merchant-row {
  padding: 12px !important;
  border: 1px solid rgba(164, 118, 52, 0.12) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.5) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54) !important;
  overflow: hidden !important;
}

.cc-mobile-flow .cc-seo-merchant-row {
  display: grid !important;
  gap: 8px !important;
}

.cc-mobile-flow .cc-seo-merchant-row span,
.cc-mobile-flow .cc-seo-merchant-row strong,
.cc-mobile-flow .cc-seo-top-card-preview span,
.cc-mobile-flow .cc-seo-top-card-preview strong {
  overflow-wrap: anywhere !important;
}

.cc-mobile-flow .cc-seo-preview-merchants .cc-seo-preview-grid {
  grid-template-columns: 1fr !important;
}

.cc-mobile-flow .cc-seo-preview-interest {
  border-color: rgba(184, 91, 54, 0.22) !important;
}

body.dark-mode .cc-mobile-flow .cc-seo-preview-grid div,
body.dark-mode .cc-mobile-flow .cc-seo-preview-category-grid div,
body.dark-mode .cc-mobile-flow .cc-seo-preview-offer-hero,
body.dark-mode .cc-mobile-flow .cc-seo-performance-hero,
body.dark-mode .cc-mobile-flow .cc-seo-performance-lift,
body.dark-mode .cc-mobile-flow .cc-seo-interest-hero,
body.dark-mode .cc-mobile-flow .cc-seo-top-card-preview,
body.dark-mode .cc-mobile-flow .cc-seo-merchant-row,
body.dark-mode .cc-mobile-flow .cc-seo-brief {
  border-color: rgba(217, 172, 96, 0.18) !important;
  background: rgba(255, 232, 184, 0.055) !important;
  box-shadow: inset 0 1px 0 rgba(255, 232, 184, 0.06) !important;
}

body.dark-mode .cc-mobile-flow .cc-seo-preview-grid div strong,
body.dark-mode .cc-mobile-flow .cc-seo-preview-category-grid div strong {
  color: rgba(255, 248, 234, 0.96) !important;
}

body.dark-mode .cc-mobile-flow .cc-seo-preview-grid div span,
body.dark-mode .cc-mobile-flow .cc-seo-preview-category-grid div span,
body.dark-mode .cc-mobile-flow .cc-seo-preview-footer,
body.dark-mode .cc-mobile-flow .cc-seo-brief span:last-child,
body.dark-mode .cc-mobile-flow .cc-seo-preview-metric span,
body.dark-mode .cc-mobile-flow .cc-seo-interest-label,
body.dark-mode .cc-mobile-flow .cc-seo-interest-subtitle {
  color: rgba(255, 248, 234, 0.66) !important;
}

body.dark-mode .cc-mobile-flow .cc-seo-brief-mark {
  border-color: rgba(217, 172, 96, 0.28) !important;
  background: rgba(217, 172, 96, 0.11) !important;
  color: #e2b76a !important;
}

@media (max-width: 390px) {
  .cc-mobile-flow .cc-seo-preview,
  .cc-mobile-flow .cc-seo-brief {
    max-width: 318px !important;
  }

  .cc-mobile-flow .cc-seo-preview-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .cc-mobile-flow .cc-seo-preview-donut {
    width: 132px !important;
    height: 132px !important;
  }
}

/* Restore spending donut center on mobile without overriding JS colors */

.cc-mobile-flow .cc-seo-preview-donut {
  background-color: transparent !important;
}

.cc-mobile-flow .cc-seo-preview-donut::before {
  background:
    linear-gradient(
      180deg,
      rgba(255, 252, 246, 0.96),
      rgba(244, 236, 220, 0.92)
    ) !important;
}

body.dark-mode .cc-mobile-flow .cc-seo-preview-donut::before {
  background:
    linear-gradient(
      180deg,
      rgba(23, 21, 18, 0.98),
      rgba(15, 14, 12, 0.94)
    ) !important;
}

/* Add matching category colors to mobile spending tiles */

.cc-mobile-flow .cc-seo-preview-category-grid div {
  position: relative !important;
}

.cc-mobile-flow .cc-seo-preview-category-grid div::before {
  content: "" !important;
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 999px !important;
  background-color: rgba(143, 150, 163, 0.9) !important;
}

.cc-mobile-flow .cc-seo-preview-category-grid div[data-category="dining"]::before {
  background-color: #d8a24c !important;
}

.cc-mobile-flow .cc-seo-preview-category-grid div[data-category="groceries"]::before {
  background-color: #6fbf73 !important;
}

.cc-mobile-flow .cc-seo-preview-category-grid div[data-category="travel"]::before {
  background-color: #5aa9e6 !important;
}

.cc-mobile-flow .cc-seo-preview-category-grid div[data-category="gas"]::before {
  background-color: #f28c45 !important;
}

.cc-mobile-flow .cc-seo-preview-category-grid div[data-category="amazon"]::before {
  background-color: #c9853b !important;
}

.cc-mobile-flow .cc-seo-preview-category-grid div[data-category="streaming"]::before {
  background-color: #9b7cf6 !important;
}

.cc-mobile-flow .cc-seo-preview-category-grid div[data-category="other"]::before {
  background-color: #8f96a3 !important;
}

/* Restore dark mode contrast for mobile SEO preview redesign */

body.dark-mode .cc-mobile-flow .cc-seo-kicker {
  color: #d8b16f !important;
}

body.dark-mode .cc-mobile-flow .cc-seo-duo-text h2 {
  color: #ffffff !important;
}

body.dark-mode .cc-mobile-flow .cc-seo-preview-metric strong,
body.dark-mode .cc-mobile-flow .cc-seo-interest-value,
body.dark-mode .cc-mobile-flow .cc-seo-performance-lift-value,
body.dark-mode .cc-mobile-flow .cc-seo-preview-offer-value {
  color: #e2b76a !important;
}

body.dark-mode .cc-mobile-flow .cc-seo-preview-metric {
  background: rgba(255, 232, 184, 0.045) !important;
}

/* =====================================
   DARK MODE — MOBILE SEO PREVIEW CONTRAST
   Minimal contrast restore without blacking out cards
===================================== */

body.dark-mode .cc-mobile-flow .cc-seo-kicker {
  color: #d8b16f !important;
}

body.dark-mode .cc-mobile-flow .cc-seo-duo-text h2 {
  color: #ffffff !important;
}

body.dark-mode .cc-mobile-flow .cc-seo-duo-text h2 span,
body.dark-mode .cc-mobile-flow .cc-seo-preview-metric strong,
body.dark-mode .cc-mobile-flow .cc-seo-interest-value,
body.dark-mode .cc-mobile-flow .cc-seo-performance-lift-value,
body.dark-mode .cc-mobile-flow .cc-seo-preview-offer-value {
  color: #e2b76a !important;
}

body.dark-mode .cc-mobile-flow .cc-seo-preview-metric {
  background: rgba(255, 232, 184, 0.045) !important;
}

/* Dark mode mobile browser/status safe-area polish */

body.dark-mode,
body.dark-mode.credit-cards-page {
  background-color: #000000 !important;
}

body.dark-mode::before {
  background: #000000 !important;
}

/* Dark mode Open Denarius button */

body.dark-mode .cc-mobile-tool-cta {
  border-color: rgba(226, 183, 106, 0.38) !important;
  background:
    linear-gradient(
      135deg,
      rgba(18, 16, 13, 0.98),
      rgba(7, 6, 5, 0.98)
    ) !important;
  color: #e8c47f !important;
  -webkit-text-fill-color: #e8c47f !important;
  box-shadow:
    0 0 18px rgba(226, 183, 106, 0.14),
    0 12px 30px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 232, 184, 0.08) !important;
}

/* Dark mode Denarius launcher — premium black and gold CTA */

body.dark-mode .site-assistant-toggle,
body.dark-mode #siteAssistantToggle,
body.dark-mode [data-assistant-toggle] {
  border: 1px solid rgba(226, 183, 106, 0.42) !important;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(226, 183, 106, 0.13),
      transparent 64%
    ),
    linear-gradient(
      135deg,
      rgba(19, 16, 12, 0.98) 0%,
      rgba(8, 7, 6, 0.99) 52%,
      rgba(17, 13, 9, 0.98) 100%
    ) !important;

  color: #e8c47f !important;
  -webkit-text-fill-color: #e8c47f !important;

  font-weight: 950 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;

  box-shadow:
    0 0 18px rgba(226, 183, 106, 0.16),
    0 12px 32px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 232, 184, 0.10),
    inset 0 -1px 0 rgba(226, 183, 106, 0.10) !important;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.dark-mode .site-assistant-toggle:hover,
body.dark-mode #siteAssistantToggle:hover,
body.dark-mode [data-assistant-toggle]:hover {
  border-color: rgba(232, 196, 127, 0.58) !important;
  color: #f3d894 !important;
  -webkit-text-fill-color: #f3d894 !important;

  box-shadow:
    0 0 24px rgba(226, 183, 106, 0.22),
    0 14px 34px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 232, 184, 0.14),
    inset 0 -1px 0 rgba(226, 183, 106, 0.12) !important;
}

/* =====================================
   MOBILE INSIGHTS CARD — TARGETED REPAIR
   Fixes real rendered card structure
===================================== */

.cc-insight-card,
.cc-insight-card:first-child {
  width: min(86vw, 336px) !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto !important;
  padding: 22px 20px 24px !important;
  overflow: hidden !important;
}

.cc-insight-card .cc-insight-icon {
  width: 76px !important;
  height: 76px !important;
  min-height: 76px !important;
  margin: 0 auto 18px !important;
}

.cc-insight-card .cc-insight-content {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.cc-insight-card .cc-insight-meta {
  width: 100% !important;
  margin: 0 auto 8px !important;
  justify-content: center !important;
  text-align: center !important;
}

.cc-insight-card .cc-insight-meta span {
  text-align: center !important;
}

.cc-insight-card h3,
.cc-insight-card:first-child h3 {
  max-width: 14ch !important;
  margin: 0 auto 10px !important;
  text-align: center !important;
  font-size: 20px !important;
  line-height: 1.03 !important;
}

.cc-insight-card p {
  max-width: 25ch !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.cc-insight-link {
  align-self: center !important;
  margin: 12px auto 0 !important;
  text-align: center !important;
}

.cc-insights + .cc-section-nav-wrapper {
  min-height: 0 !important;
  margin: 0 !important;
}

}