/* ═══════════════════════════════════════════════════════════════════════════════
   UX OVERHAUL — Task #1186715
   AI Matcher Quiz · Money Finder Widget · Bottom Tab Bar · Micro-interactions
   Premium fintech quality (Robinhood × Stripe)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────────────────────
   SECTION 1: AI MATCHER QUIZ MODAL
   ─────────────────────────────────────────────────────────────────────────────── */

/* Overlay */
#srMatcherOverlay {
  position: fixed;
  inset: 0;
  z-index: 99000;
  background: rgba(10, 22, 40, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
#srMatcherOverlay.sr-matcher-open {
  opacity: 1;
  visibility: visible;
}

/* Panel */
#srMatcherPanel {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28), 0 8px 24px rgba(0, 0, 0, 0.12);
  width: 100%;
  max-width: 480px;
  padding: 2rem 2rem 2.25rem;
  position: relative;
  transform: translateY(32px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}
#srMatcherOverlay.sr-matcher-open #srMatcherPanel {
  transform: translateY(0) scale(1);
}

/* Close button */
#srMatcherClose {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 1.15rem;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  z-index: 1;
}
#srMatcherClose:hover {
  background: #e5e7eb;
  color: #111827;
  transform: rotate(90deg);
}

/* Progress dots */
.sr-matcher-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.75rem;
}
.sr-matcher-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e7eb;
  transition: all 0.3s ease;
}
.sr-matcher-dot.active {
  background: #2563eb;
  width: 24px;
  border-radius: 4px;
}
.sr-matcher-dot.done {
  background: #10b981;
}

/* Step container — slides */
.sr-matcher-steps-wrap {
  overflow: hidden;
  position: relative;
}
.sr-matcher-step {
  display: none;
  animation: srMatcherSlideIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.sr-matcher-step.sr-step-active {
  display: block;
}
.sr-matcher-step.sr-step-exit {
  display: block;
  animation: srMatcherSlideOut 0.22s ease-in forwards;
}
@keyframes srMatcherSlideIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes srMatcherSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-40px); }
}

/* Step header */
.sr-matcher-step-icon {
  font-size: 2.5rem;
  display: block;
  text-align: center;
  margin-bottom: 0.5rem;
}
.sr-matcher-step-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2563eb;
  text-align: center;
  margin-bottom: 0.3rem;
}
.sr-matcher-step-title {
  font-size: clamp(1.35rem, 4vw, 1.6rem);
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.sr-matcher-step-sub {
  font-size: 0.88rem;
  color: #6b7280;
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Input styles */
.sr-matcher-input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.sr-matcher-input:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.sr-matcher-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* Category grid */
.sr-matcher-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 0.5rem;
}
@media (max-width: 380px) {
  .sr-matcher-cats { grid-template-columns: 1fr; }
}
.sr-matcher-cat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.sr-matcher-cat:hover {
  border-color: rgba(37, 99, 235, 0.4);
  background: #eff6ff;
}
.sr-matcher-cat.sr-cat-selected {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.07);
  color: #1d4ed8;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}
.sr-matcher-cat-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
.sr-matcher-cat input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sr-matcher-cat-check {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid #d1d5db;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
  transition: all 0.15s ease;
  font-size: 0.7rem;
  color: transparent;
}
.sr-matcher-cat.sr-cat-selected .sr-matcher-cat-check {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

/* CTA button */
.sr-matcher-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  margin-top: 1.25rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease, opacity 0.2s;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35), 0 1px 3px rgba(0, 0, 0, 0.08);
  -webkit-tap-highlight-color: transparent;
}
.sr-matcher-cta:hover {
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.45), 0 2px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}
.sr-matcher-cta:active {
  transform: translateY(0) scale(0.985);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.sr-matcher-cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Results loading step */
.sr-matcher-loading-step {
  text-align: center;
  padding: 2rem 0;
}
.sr-matcher-radar-spin {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #e2e8f0;
  border-top-color: #2563eb;
  animation: srMatcherSpin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes srMatcherSpin {
  to { transform: rotate(360deg); }
}
.sr-matcher-loading-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.4rem;
}
.sr-matcher-loading-sub {
  font-size: 0.88rem;
  color: #6b7280;
}
.sr-matcher-loading-bar-wrap {
  width: 100%;
  max-width: 260px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  margin: 1.25rem auto 0;
}
.sr-matcher-loading-bar {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 2px;
  width: 0%;
  animation: srMatcherProgress 2.2s ease-out forwards;
}
@keyframes srMatcherProgress {
  0%   { width: 0%; }
  30%  { width: 38%; }
  65%  { width: 72%; }
  90%  { width: 88%; }
  100% { width: 96%; }
}

/* Matcher hint */
.sr-matcher-hint {
  text-align: center;
  font-size: 0.76rem;
  color: #9ca3af;
  margin-top: 0.85rem;
}
.sr-matcher-back {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  transition: color 0.15s;
}
.sr-matcher-back:hover { color: #111827; }

/* ───────────────────────────────────────────────────────────────────────────────
   SECTION 2: MONEY FINDER WIDGET (Homepage hero)
   ─────────────────────────────────────────────────────────────────────────────── */

.sr-money-finder {
  width: 100%;
  max-width: 440px;
  margin: 0 auto 1.25rem;
}
.sr-money-finder-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.sr-money-finder-form {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 6px 6px 6px 16px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.sr-money-finder-form:focus-within {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(147, 197, 253, 0.6);
  box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.12);
}
.sr-money-finder-input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  padding: 0.3rem 0;
}
.sr-money-finder-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.sr-money-finder-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.7rem 1.25rem;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s ease, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(29, 78, 216, 0.4);
  -webkit-tap-highlight-color: transparent;
}
.sr-money-finder-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.55);
}
.sr-money-finder-btn:active {
  transform: scale(0.97);
}
@media (max-width: 420px) {
  .sr-money-finder-form {
    flex-direction: column;
    padding: 8px;
    gap: 6px;
  }
  .sr-money-finder-input {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
  }
  .sr-money-finder-btn {
    padding: 0.8rem 1rem;
    border-radius: 10px;
  }
}

/* ───────────────────────────────────────────────────────────────────────────────
   SECTION 3: MOBILE BOTTOM TAB BAR
   ─────────────────────────────────────────────────────────────────────────────── */

#srBottomTabBar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9500;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
  padding: 0 0 env(safe-area-inset-bottom, 0px);
  /* Prevent during keyboard */
  transition: transform 0.25s ease;
}
@media (max-width: 768px) {
  #srBottomTabBar {
    display: flex;
  }
}
/* Hide when keyboard is visible */
#srBottomTabBar.sr-tab-hidden {
  transform: translateY(110%);
}
/* Reserve space for content above tab bar */
@media (max-width: 768px) {
  body.sr-has-tabbar {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
}

.sr-tab-items {
  display: flex;
  width: 100%;
  align-items: stretch;
}
.sr-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 4px 10px;
  text-decoration: none;
  color: #9ca3af;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  min-height: 56px;
}
.sr-tab-item:hover,
.sr-tab-item:active {
  color: #2563eb;
}
.sr-tab-item.sr-tab-active {
  color: #2563eb;
}
.sr-tab-icon {
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
}
.sr-tab-item.sr-tab-active .sr-tab-icon {
  transform: translateY(-2px);
}
.sr-tab-item:active .sr-tab-icon {
  transform: scale(0.88) translateY(-1px);
}
.sr-tab-label {
  display: block;
  line-height: 1;
}

/* Active indicator dot */
.sr-tab-item.sr-tab-active::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2563eb;
  animation: srTabDotPop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes srTabDotPop {
  from { transform: translateX(-50%) scale(0); }
  to   { transform: translateX(-50%) scale(1); }
}

/* Alert badge */
.sr-tab-badge {
  position: absolute;
  top: 5px;
  right: calc(50% - 20px);
  min-width: 16px;
  height: 16px;
  background: #ef4444;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  animation: srBadgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes srBadgePop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ───────────────────────────────────────────────────────────────────────────────
   SECTION 4: SETTLEMENT DETAIL UPGRADES
   ─────────────────────────────────────────────────────────────────────────────── */

/* "What You'll Need" Checklist */
.sr-need-checklist {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  margin: 1rem 0;
}
.sr-need-checklist-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #374151;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.sr-need-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.sr-need-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.86rem;
  color: #374151;
  font-weight: 500;
  line-height: 1.4;
}
.sr-need-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.1);
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  color: #059669;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* "X people filed this week" badge */
.sr-week-filed-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #b91c1c;
  margin: 0.5rem 0;
}
.sr-week-filed-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: srWeekFiledPulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes srWeekFiledPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.8); }
}

/* Similar Settlements Section */
#srSimilarSettlements {
  margin: 2rem 0 1rem;
  padding: 0 0 0.5rem;
}
.sr-similar-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.sr-similar-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
}
.sr-similar-see-all {
  font-size: 0.82rem;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}
.sr-similar-see-all:hover { text-decoration: underline; }
.sr-similar-track {
  display: flex;
  gap: 0.875rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.sr-similar-track::-webkit-scrollbar { display: none; }
.sr-similar-card {
  flex: 0 0 clamp(220px, 72vw, 260px);
  scroll-snap-align: start;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}
.sr-similar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: rgba(37, 99, 235, 0.3);
  text-decoration: none;
}

/* Match % badge */
.sr-match-pct {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.sr-similar-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}
.sr-similar-ttl {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  padding-right: 44px; /* room for badge */
}
.sr-similar-payout {
  font-size: 0.92rem;
  font-weight: 800;
  color: #059669;
}
.sr-similar-payout-label {
  font-size: 0.72rem;
  color: #6b7280;
  font-weight: 500;
}
.sr-similar-easy {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.73rem;
  font-weight: 600;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.07);
  border-radius: 6px;
  padding: 2px 7px;
}

/* Similar settlements skeleton */
.sr-similar-skel {
  flex: 0 0 clamp(220px, 72vw, 260px);
  height: 140px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e9eaec 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  border-radius: 14px;
  animation: srSkelShimmer 1.5s infinite;
}
@keyframes srSkelShimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ───────────────────────────────────────────────────────────────────────────────
   SECTION 5: MICRO-INTERACTIONS
   ─────────────────────────────────────────────────────────────────────────────── */

/* Page enter transition */
.sr-page-enter {
  animation: srPageFadeIn 0.35s ease-out forwards;
}
@keyframes srPageFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Button haptic feedback (CSS-only) */
.btn, .sr-btn, .btn-primary, .rs-btn-primary-dominant,
.sr-hero-cta-main, .sr-matcher-cta, .sr-money-finder-btn,
a[class*="btn-primary"], button[class*="btn"] {
  will-change: transform;
}
@media (hover: none) {
  .btn:active, .sr-btn:active, .btn-primary:active,
  .rs-btn-primary-dominant:active, .sr-hero-cta-main:active {
    transform: scale(0.964) translateY(1px) !important;
    transition: transform 0.08s ease !important;
  }
}

/* Skeleton loader — generic */
.sr-skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e9eaec 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: srSkelShimmer 1.5s infinite;
  border-radius: 8px;
}

/* Settlement card hover ripple */
.es-card, .result-card, [class*="settlement-card"] {
  position: relative;
  overflow: hidden;
}
.es-card::after, [class*="settlement-card"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(37, 99, 235, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.es-card:hover::after, [class*="settlement-card"]:hover::after {
  opacity: 1;
}

/* Link tap feedback for mobile */
@media (hover: none) {
  a:active, button:active {
    opacity: 0.75;
    transition: opacity 0.05s;
  }
}

/* Pull-to-refresh shimmer (applied to settlement directory hero) */
.sr-refresh-shimmer {
  position: relative;
  overflow: hidden;
}
.sr-refresh-shimmer::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: srRefreshSwipe 2.5s ease-in-out infinite;
}
@keyframes srRefreshSwipe {
  0%   { left: -60%; opacity: 0; }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Scroll reveal — elements fade up as they enter viewport */
.sr-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.sr-reveal.sr-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Input focus glow — global enhancement */
input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Shimmer on CTA buttons */
@keyframes srCtaShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.sr-shimmer-btn {
  background: linear-gradient(105deg,
    transparent 35%,
    rgba(255,255,255,0.25) 50%,
    transparent 65%
  ), linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  background-size: 200% 100%, 100% 100%;
  animation: srCtaShimmer 2.5s linear infinite;
}

/* ───────────────────────────────────────────────────────────────────────────────
   SECTION 6: GENERAL PREMIUM POLISH
   ─────────────────────────────────────────────────────────────────────────────── */

/* Smooth link transitions — feels native */
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* Bottom padding for pages with tab bar */
@media (max-width: 768px) {
  .sr-has-tabbar .sr-ramsey-footer,
  .sr-has-tabbar footer {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
}

/* Prevent tab bar overlap with mobile CTA bar — hide old bar when tab bar active */
@media (max-width: 768px) {
  body.sr-has-tabbar #sr-mobile-cta-bar {
    display: none !important;
  }
}

/* ───────────────────────────────────────────────────────────────────────────────
   REDUCE MOTION SUPPORT
   ─────────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #srMatcherPanel,
  .sr-matcher-step,
  .sr-matcher-step.sr-step-exit,
  .sr-page-enter,
  .sr-reveal,
  .sr-similar-card {
    animation: none !important;
    transition: opacity 0.1s !important;
  }
  .sr-matcher-loading-bar { animation-duration: 3s; }
  .sr-skeleton, .sr-similar-skel { animation: none; background: #f3f4f6; }
}
