/* Vonk Daily Rates v2.1 */

.mr-widget {
  --mr-accent: #0F766E;
  --mr-accent-rgb: 15, 118, 110;
  --mr-bg: transparent;
  --mr-card-bg: #FFFFFF;
  --mr-text-primary: #111827;
  --mr-text-secondary: #6B7280;
  --mr-text-muted: #9CA3AF;
  --mr-text-faint: #D1D5DB;
  --mr-border: #E5E7EB;
  --mr-live-bg: #ECFDF5;
  --mr-live-border: #A7F3D0;
  --mr-live-text: #065F46;
  --mr-live-dot: #10B981;
  --mr-warn-bg: #FFF7ED;
  --mr-warn-border: #FED7AA;
  --mr-warn-title: #92400E;
  --mr-warn-text: #B45309;
  --mr-shimmer: #F3F4F6;
}
.mr-widget.mr-dark {
  --mr-bg: transparent;
  --mr-card-bg: #1A1D27;
  --mr-text-primary: #F3F4F6;
  --mr-text-secondary: #9CA3AF;
  --mr-text-muted: #6B7280;
  --mr-text-faint: #4B5563;
  --mr-border: #2D3142;
  --mr-live-bg: #064E3B;
  --mr-live-border: #065F46;
  --mr-live-text: #A7F3D0;
  --mr-live-dot: #34D399;
  --mr-warn-bg: #451A03;
  --mr-warn-border: #78350F;
  --mr-warn-title: #FDE68A;
  --mr-warn-text: #FCD34D;
  --mr-shimmer: #2D3142;
}

.mr-widget { font-family: inherit; background: var(--mr-bg); position: relative; overflow: hidden; padding: 48px 20px 60px; box-sizing: border-box; }
.mr-widget *, .mr-widget *::before, .mr-widget *::after { box-sizing: border-box; margin: 0; padding: 0; }
.mr-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }

.mr-header { text-align: center; margin-bottom: 48px; animation: mrFadeIn 0.8s ease both; }
.mr-live-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--mr-live-bg); border: 1px solid var(--mr-live-border); border-radius: 100px; padding: 6px 16px; margin-bottom: 20px; }
.mr-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mr-live-dot); animation: mrPulse 2s infinite; }
.mr-live-label { font-size: 12px; font-weight: 600; color: var(--mr-live-text); letter-spacing: 0.04em; text-transform: uppercase; }
.mr-title { font-family: inherit; font-size: clamp(28px, 5vw, 48px); font-weight: 700; letter-spacing: -0.035em; color: var(--mr-text-primary); margin: 0 0 10px; line-height: 1.1; }
.mr-subtitle { font-size: 16px; color: var(--mr-text-secondary); line-height: 1.6; max-width: 480px; margin: 0 auto; }

.mr-grid { display: grid; gap: 18px; margin-bottom: 40px; }
@media (max-width: 680px) { .mr-grid { grid-template-columns: 1fr !important; } }

.mr-card { background: var(--mr-card-bg); border-radius: 20px; padding: 26px 24px; position: relative; overflow: hidden; transition: all 0.4s cubic-bezier(0.23,1,0.32,1); border: 1px solid var(--mr-border); cursor: default; min-height: 210px; display: flex; flex-direction: column; }
.mr-card:hover { background: var(--mr-accent); border-color: transparent; transform: translateY(-6px) scale(1.02); box-shadow: 0 20px 60px rgba(var(--mr-accent-rgb),0.35), 0 8px 20px rgba(0,0,0,0.1); }
.mr-card:hover .mr-card-orb { background: rgba(255,255,255,0.12) !important; }
.mr-card:hover .mr-card-label { color: #FFF; }
.mr-card:hover .mr-card-desc { color: rgba(255,255,255,0.7); }
.mr-card:hover .mr-rate-value { color: #FFF !important; }
.mr-card:hover .mr-rate-pct { color: rgba(255,255,255,0.8) !important; opacity: 1; }
.mr-card:hover .mr-rate-payment { color: rgba(255,255,255,0.65); }
.mr-card:hover .mr-shimmer { background: rgba(255,255,255,0.15); }

.mr-card-orb { position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(var(--mr-accent-rgb),0.06); transition: all 0.4s ease; }
.mr-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; position: relative; z-index: 1; }
.mr-card-icon { font-size: 24px; }
.mr-card-label { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; color: var(--mr-text-primary); transition: color 0.3s ease; }
.mr-card-desc { font-size: 12.5px; color: var(--mr-text-muted); margin: 0 0 18px; transition: color 0.3s ease; position: relative; z-index: 1; }
.mr-card-body { flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }

.mr-rate-value { font-family: inherit; font-size: 42px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--mr-accent); transition: color 0.3s ease; }
.mr-rate-pct { font-family: inherit; font-size: 20px; font-weight: 700; color: var(--mr-accent); opacity: 0.65; transition: color 0.3s ease, opacity 0.3s ease; }
.mr-rate-payment { font-size: 13px; color: var(--mr-text-secondary); margin: 8px 0 0; transition: color 0.3s ease; }
.mr-rate-na { font-size: 14px; color: var(--mr-text-muted); }
.mr-shimmer { width: 140px; height: 42px; border-radius: 10px; background: var(--mr-shimmer); animation: mrShimmer 1.5s infinite ease-in-out; }

.mr-warn { background: var(--mr-warn-bg); border: 1px solid var(--mr-warn-border); border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; animation: mrFadeIn 0.5s ease both; flex-wrap: wrap; }
.mr-warn-icon { font-size: 18px; }
.mr-warn-title { font-size: 14px; font-weight: 600; color: var(--mr-warn-title); margin: 0; }
.mr-warn-text { font-size: 12.5px; color: var(--mr-warn-text); margin: 2px 0 0; }
.mr-warn-btn { margin-left: auto; background: var(--mr-accent); color: white; border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; transition: opacity 0.2s; }
.mr-warn-btn:hover { opacity: 0.85; }

.mr-footer { text-align: center; animation: mrFadeIn 1s ease 0.8s both; }
.mr-footer-time { font-size: 12.5px; color: var(--mr-text-muted); margin: 0 0 4px; }
.mr-footer-source { font-size: 12px; color: var(--mr-text-faint); margin: 0 0 14px; }
.mr-footer-disc { font-size: 11.5px; color: var(--mr-text-faint); max-width: 600px; margin: 0 auto; line-height: 1.5; }

@keyframes mrSlideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mrShimmer { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.8; } }
@keyframes mrFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mrPulse { 0%, 100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.05); opacity: 1; } }

/* ---- Card as link ---- */
a.mr-card { text-decoration: none; color: inherit; cursor: pointer; }

/* ---- CTA on card ---- */
.mr-card-cta {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mr-accent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
.mr-card-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.mr-card:hover .mr-card-cta {
  opacity: 1;
  transform: translateY(0);
  color: rgba(255,255,255,0.85);
}
.mr-card:hover .mr-card-arrow {
  transform: translateX(4px);
}
